summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* capitialize utime statusesBenjamin Peterson2012-05-251-20/+20
|
* Backed out changeset 709850f1ec67Benjamin Peterson2012-05-061-333/+31
|
* Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.)Larry Hastings2012-05-061-31/+333
|
* Fix typo in exception message.Stefan Krah2012-05-051-1/+1
|
* initialization not neededBenjamin Peterson2012-05-041-1/+1
|
* Fix for fatal errors in os.*utime*()Richard Oudkerk2012-05-041-1/+1
| | | | The address of an object was being decreffed instead of the object.
* Issue #14127: Fix two bugs with the Windows implementation.Larry Hastings2012-05-041-19/+42
|
* what is a invalid tuple?Benjamin Peterson2012-05-041-2/+2
|
* clean up converted path on errorBenjamin Peterson2012-05-041-11/+20
|
* avoid unitialized memoryBenjamin Peterson2012-05-041-1/+1
|
* check correct variable for errorBenjamin Peterson2012-05-041-1/+1
|
* Issue #14127: Add ns= parameter to utime, futimes, and lutimes.Larry Hastings2012-05-031-204/+233
| | | | | | Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux!
* Backing out 86dc014cdd74. Not ready yetJesus Cea2012-04-261-7/+0
|
* Close #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-04-261-0/+7
|
* Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add ↵Jesus Cea2012-04-241-0/+10
| | | | some Solaris constants too)
* Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INITJesus Cea2012-04-241-0/+9
|
* 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
| | |