summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings2012-04-191-16/+48
|
* fix condition (#14296)Benjamin Peterson2012-03-161-1/+1
|
* try to fix compilation on glibc's with cpu sets (#14296)Benjamin Peterson2012-03-151-0/+4
|
* Close #14180: Factorize code to convert a number of seconds to time_t, ↵Victor Stinner2012-03-131-45/+20
| | | | | | | | | | | | | timeval or timespec time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t. datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero.
* Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-291-27/+3
| | | | the os module.
* Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-82/+31
|\
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-106/+18
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-106/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* | | Issue #13609: Add two functions to query the terminal size:Antoine Pitrou2012-02-081-0/+130
| | | | | | | | | | | | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek.
* | | Backout f8409b3d6449: the PEP 410 is not accepted yetVictor Stinner2012-02-081-124/+61
| | |
* | | PEP 410Victor Stinner2012-02-081-61/+124
| | |
* | | Issue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestampVictor Stinner2012-02-081-1/+0
| | | | | | | | | | | | with a subsecond resolution
* | | Issue #13964: Split os.*utime*() subsecond tests into multiple tests to helpVictor Stinner2012-02-081-77/+45
| | | | | | | | | | | | debugging
* | | Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), toCharles-François Natali2012-02-061-5/+5
| | | | | | | | | | | | | | | be consistent with other functions accepting file descriptors (fdlistdir() was added in 3.3, so hasn't been released yet).
* | | Issue #8828: Add new function os.replace(), for cross-platform renaming with ↵Antoine Pitrou2012-01-301-13/+34
| | | | | | | | | | | | overwriting.
* | | Issue #13772: In os.symlink() under Windows, do not try to guess the linkAntoine Pitrou2012-01-241-11/+0
|\ \ \ | |/ / | | | | | | | | | target's type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions).
| * | Issue #13772: In os.symlink() under Windows, do not try to guess the linkAntoine Pitrou2012-01-241-11/+0
| | | | | | | | | | | | | | | target's type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions).
* | | Use GetModuleHandleW to avoid *A functions where possible.Martin v. Löwis2012-01-141-3/+3
| | |
* | | Issue #13757: Change os.fdlistdir() so that it duplicates the passed fileCharles-François Natali2012-01-101-2/+5
| | | | | | | | | | | | descriptor (instead of closing it).
* | | Backed out changeset 36f2e236c601: For some reason, rewinddir() doesn't work asCharles-François Natali2012-01-081-1/+2
| | | | | | | | | | | | it should on OpenIndiana.
* | | Issue #13739: It's simpler and more direct to call rewinddir() at theCharles-François Natali2012-01-081-2/+1
| | | | | | | | | | | | beginning.
* | | Issue #13739: In os.listdir(), rewind the directory stream (so that listdir()Charles-François Natali2012-01-081-0/+2
| | | | | | | | | | | | can be called again on the same open file).
* | | Issue #13530: Document os.lseek() resultVictor Stinner2011-12-171-1/+2
|\ \ \ | |/ / | | | | | | Patch written by Jérémy Anger.
| * | Issue #13530: Document os.lseek() resultVictor Stinner2011-12-171-1/+2
| | | | | | | | | | | | Patch written by Jérémy Anger.
| * | Issue #13415: Test in configure if unsetenv() has a return value or not.Charles-François Natali2011-11-271-0/+6
| | |
| * | decref correct objectBenjamin Peterson2011-11-231-1/+1
| | |
* | | Issue #13560: Locale codec functions use the classic "errors" parameter,Victor Stinner2011-12-171-1/+1
| | | | | | | | | | | | | | | | | | instead of surrogateescape So it would be possible to support more error handlers later.
* | | Issue #13560: os.strerror() now uses the current locale encoding instead of ↵Victor Stinner2011-12-171-1/+1
| | | | | | | | | | | | UTF-8
* | | Close #13415: Test in configure if unsetenv() has a return value or not.Victor Stinner2011-11-241-1/+6
| | | | | | | | | | | | Patch written by Charles-François Natali.
* | | merge 3.2Benjamin Peterson2011-11-231-1/+5
|\ \ \ | |/ /
| * | plug refleakBenjamin Peterson2011-11-231-1/+3
| | |
* | | (Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore.Victor Stinner2011-11-221-81/+33
|\ \ \ | |/ /
| * | Issue #13415: os.unsetenv() doesn't ignore errors anymore.Victor Stinner2011-11-221-17/+11
| | |
* | | Fix compiler warningsVictor Stinner2011-11-221-1/+1
| | |
* | | Use the new Unicode APIVictor Stinner2011-11-221-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
* | | Issue #13374: Deprecate os.getcwdb() on WindowsVictor Stinner2011-11-161-0/+3
| | |
* | | Issue #13374: The Windows bytes API has been deprecated in the os module. UseVictor Stinner2011-11-151-147/+181
| | | | | | | | | | | | | | | Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any filename.
* | | Issue #12442: nt._getdiskusage() is now using the Windows Unicode APIVictor Stinner2011-11-091-3/+3
| | |
* | | Commit 59dca1e2363d for issue #13327 introduced a compilation warningJesus Cea2011-11-081-1/+2
| | |
* | | Fix #13327. utimensat now has the atime and mtime arguments set as optional,Brian Curtin2011-11-071-7/+12
| | | | | | | | | | | | | | | | | | | | | defaulting to None like the other utimes family members. It now accepts keyword arguments because, unlike other other functions in the family, it has a `flags` value at the end of the argument list (which retains its 0 default).
* | | Forgot to apply the futimesat change.Brian Curtin2011-11-071-4/+3
| | |
* | | Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,Brian Curtin2011-11-071-18/+17
| | | | | | | | | | | | and lutimes.
* | | Adjust None handling to be a bit more clean. Thanks to BenjaminBrian Curtin2011-11-071-4/+4
| | | | | | | | | | | | for pointing it out.
* | | Fix #13327. Remove the need for an explicit None as the second argument toBrian Curtin2011-11-061-7/+7
| | | | | | | | | | | | | | | os.utime in order to update to the current time. The second argument is now optional.
* | | (Merge 3.2) Issue #13339.Ross Lagerwall2011-11-041-1/+1
|\ \ \ | |/ /
| * | Issue #13339: Fix compile error in posixmodule.c due to missing semicolon.Ross Lagerwall2011-11-041-1/+1
| | | | | | | | | | | | Thanks to Robert Xiao.
* | | Issue #13226: Add RTLD_xxx constants to the os module. These constants can byVictor Stinner2011-10-251-0/+26
| | | | | | | | | | | | used with sys.setdlopenflags().
* | | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| | |
* | | Use PyUnicode_AsUnicodeAndSize() instead of PyUnicode_GET_SIZE()Victor Stinner2011-10-111-2/+1
| | |
* | | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-1/+2
| | |