summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #1602133: 'environ' is not really available with shared libraries on ↵Ronald Oussoren2013-01-251-3/+4
|\ | | | | | | | | | | | | | | | | OSX (merge from 3.3) There already was a workaround for this for framework builds on OSX, this changeset enables the same workaround for shared libraries. Closes #1602133
| * Issue #1602133: 'environ' is not really available with shared libraries on ↵Ronald Oussoren2013-01-251-3/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | OSX (merge from 3.2) There already was a workaround for this for framework builds on OSX, this changeset enables the same workaround for shared libraries. Closes #1602133
| | * Issue #1602133: 'environ' is not really available with shared libraries on OSXRonald Oussoren2013-01-251-3/+4
| | | | | | | | | | | | | | | | | | | | | There already was a workaround for this for framework builds on OSX, this changeset enables the same workaround for shared libraries. Closes #1602133
| * | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-1/+1
| |\ \ | | |/ | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| | * Issue #9644: Fix the encoding used by os.statvfs(): use the filesystem encodingVictor Stinner2013-01-011-3/+7
| | | | | | | | | | | | with the surrogateescape error handler, instead of UTF-8 in strict mode.
* | | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-141-1/+1
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks.
* | | Issue #15972: Fix error messages when os functions expecting a file name orSerhiy Storchaka2013-01-071-31/+35
|\ \ \ | |/ / | | | | | | file descriptor receive the incorrect type.
| * | Issue #15972: Fix error messages when os functions expecting a file name orSerhiy Storchaka2013-01-071-31/+35
| | | | | | | | | | | | file descriptor receive the incorrect type.
* | | Issue #16841: Set st_dev on Windows as unsigned long to match its DWORD type.Serhiy Storchaka2013-01-021-1/+3
| | |
* | | Backed out changeset 61bada808b34Brian Curtin2013-01-011-2/+1
| | |
* | | Set st_dev on Windows as unsigned long to match its DWORD type, related to ↵Brian Curtin2013-01-011-1/+2
| | | | | | | | | | | | the change to fix #11939.
* | | st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is ↵Brian Curtin2012-12-311-2/+2
| | | | | | | | | | | | set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines.
* | | Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.Brian Curtin2012-12-261-26/+2
| | | | | | | | | | | | | | | | | | By setting the st_dev attribute, we can then remove some Windows-specific code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py so all platforms share the same implementation.
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-1/+1
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ \ | |/ / | | | | | | Patch by Serhiy Storchaka.
| * | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| |\ \ | | |/ | | | | | | Patch by Serhiy Storchaka.
| | * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #15478: Oops, fix regression in os.open() on WindowsVictor Stinner2012-11-051-1/+1
| | | | | | | | | | | | os.open() uses _wopen() which sets errno, not the Windows error code.
* | | Issue #15478: Use source filename in OSError, not destination filenameVictor Stinner2012-10-311-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | And other fixes for Windows: * rename, replace and link require arguments of the same type on Windows * readlink only supports unicode filenames on Windows * os.open() specifies the filename on OSError
* | | Issue #15478: Use path_error() in more posix functions, especially in WindowsVictor Stinner2012-10-311-69/+24
| | | | | | | | | | | | implementation
* | | Issue #15478: Fix compilation on WindowsVictor Stinner2012-10-301-1/+0
| | |
* | | Issue #15478: Raising an OSError doesn't decode or encode the filename anymoreVictor Stinner2012-10-301-102/+110
| | | | | | | | | | | | | | | | | | | | | Pass the original filename argument to OSError constructor, instead of trying to encode it to or decode it from the filesystem encoding. This change avoids an additionnal UnicodeDecodeError on Windows if the filename cannot be decoded from the filesystem encoding (ANSI code page).
* | | Replace tabs with spaces in posixmodule.cPetri Lehtinen2012-10-231-6/+6
|\ \ \ | |/ /
| * | Replace tabs with spaces in posixmodule.cPetri Lehtinen2012-10-231-6/+6
| | |
* | | Issue #12034: Fix bogus caching of result in check_GetFinalPathNameByHandle.Antoine Pitrou2012-10-211-2/+2
| | | | | | | | | | | | Patch by Atsuo Ishimoto.
* | | #16135: Removal of OS/2 support (posixmodule y platform dependent files)Jesus Cea2012-10-041-546/+8
|/ /
* | Use C-style comments for C89 / ANSI C compatibilityChristian Heimes2012-09-231-1/+1
| |
* | #15965: Explicitly cast AT_FDCWD as (int).Trent Nelson2012-09-191-1/+8
| | | | | | | | | | Required on Solaris 10 (which defines AT_FDCWD as 0xffd19553), harmless on other platforms.
* | Issue #15926: Fix crash after multiple reinitializations of the interpreter.Antoine Pitrou2012-09-121-1/+1
| |
* | Issue #12655: Instead of requiring a custom type, os.sched_getaffinity andAntoine Pitrou2012-08-041-321/+130
| | | | | | | | | | os.sched_setaffinity now use regular sets of integers to represent the CPUs a process is restricted to.
* | Closes #15514: Correct __sizeof__ support for cpu_setJesus Cea2012-08-031-0/+15
| |
* | Issue #15413: os.times() had disappeared under Windows.Antoine Pitrou2012-07-241-25/+25
| |
* | Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open.Richard Oudkerk2012-07-061-3/+4
| |
* | Remove dead codeVictor Stinner2012-06-271-36/+0
| | | | | | | | | | os.urandom() has now one unique implementation, posix_urandom() which calls _PyOS_URandom(). _PyOS_URandom() uses RAND_pseudo_bytes() on VMS.
* | Use ValueError, not RuntimeError for a utime flag combination illegal on ↵Georg Brandl2012-06-261-1/+1
| | | | | | | | some systems.
* | Issue #15176: Clarified behavior, documentation, and implementationLarry Hastings2012-06-251-13/+22
| | | | | | | | of os.listdir().
* | Whitespace cleanup.Georg Brandl2012-06-241-6/+6
| |
* | Issue #15118: Change return value of os.uname() and os.times() fromLarry Hastings2012-06-241-24/+138
| | | | | | | | | | plain tuples to immutable iterable objects with named attributes (structseq objects).
* | Closes #15161: add support for giving path as a fd for truncate() and ↵Georg Brandl2012-06-241-20/+62
| | | | | | | | pathconf().
* | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"Larry Hastings2012-06-231-34/+67
| | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
* | Try to fix shutil.which() tests on Windows by fixing a typo introduced in ↵Georg Brandl2012-06-231-1/+1
| | | | | | | | 27f9c26fdd8b in posix_access().
* | Issue #14626: Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)Larry Hastings2012-06-231-2/+5
| |
* | Issue #14626: Fix buildbot issue on x86 Tiger 3.x.Larry Hastings2012-06-231-1/+1
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-2318/+2528
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Closes #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-221-0/+7
| |
* | Issue #14711: os.stat_float_times() has been deprecated.Victor Stinner2012-06-041-2/+6
| |
* | 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
| |