summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't use deprecated function PyUnicode_GET_SIZE()Victor Stinner2013-11-131-6/+5
| | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
* Issue #19437: Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc()Victor Stinner2013-11-071-1/+3
| | | | failure
* Issue #19437: Fix os.statvfs(), handle errorsVictor Stinner2013-10-301-0/+4
|
* Issue13234 Allow listdir to handle extended paths on Windows (Patch by ↵Tim Golden2013-10-251-4/+4
| | | | Santoso Wijaya)
* Issue4905: use INVALID_FILE_ATTRIBUTES where appropriate. (Patch by Ulrich ↵Tim Golden2013-10-251-5/+5
| | | | Eckhardt)
* fix compile issue on windows. path is now a struct ptrChristian Heimes2013-10-191-3/+3
|
* Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-96/+301
| | | | for C files to generate argument parsing code. (See PEP 436.)
* Issue #19209: Remove import of copyreg from the os module to speed upChristian Heimes2013-10-111-2/+2
| | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
* fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbotVictor Stinner2013-08-271-0/+2
|
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-38/+297
| | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* remove support for compiling on systems without getcwd()Benjamin Peterson2013-08-241-8/+0
| | | | | Do we need a fallback implementation of getcwd() from 1991 that claims to support "really old Unix systems"? I don't think so.
* Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernelChristian Heimes2013-08-161-0/+3
| | | | 3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
* Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.Larry Hastings2013-08-121-0/+4
|\
| * Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.Larry Hastings2013-08-121-0/+4
| |
* | Issue #15301: Parsing fd, uid, and gid parameters for builtinsLarry Hastings2013-08-081-80/+189
| | | | | | | | in Modules/posixmodule.c is now far more robust.
* | Issue #17557: merge from 3.3Ned Deily2013-08-021-0/+30
|\ \ | |/
| * Issue #17557: Fix os.getgroups() to work with the modified behavior ofNed Deily2013-08-021-0/+30
| | | | | | | | getgroups(2) on OS X 10.8. Original patch by Mateusz Lenik.
| * Issue #17899: Fix rare file descriptor leak in os.listdir().Larry Hastings2013-08-021-0/+11
| | | | | | | | (Done as separate patch from trunk as the code has diverged quite a bit.)
* | Issue #17899: Fix rare file descriptor leak in os.listdir().Larry Hastings2013-08-021-2/+12
| |
* | Issue #9035: os.path.ismount now recognises volumes mounted belowTim Golden2013-08-011-0/+42
| | | | | | | | a drive root on Windows. Original patch by Atsuo Ishimoto.
* | Initialize utime with 0. It fixes a couple of compiler warnung:Christian Heimes2013-07-311-0/+1
|\ \ | |/ | | | | warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
| * Initialize utime with 0. It fixes a couple of compiler warnung:Christian Heimes2013-07-311-0/+1
| | | | | | | | warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
* | Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-221-8/+16
| | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error
* | (Merge 3.3) Fix posix_chflags(): return_value was uninitialized whenVictor Stinner2013-07-181-1/+1
|\ \ | |/ | | | | follow_symlinks=False whereas the fchmodat() function is not avaialble.
| * Fix posix_chflags(): return_value was uninitialized when follow_symlinks=FalseVictor Stinner2013-07-181-1/+1
| | | | | | | | whereas the fchmodat() function is not avaialble.
* | Fix a compiler warning in posix_sendfile() on FreeBSD:Victor Stinner2013-07-071-2/+3
| | | | | | | | | | Modules/posixmodule.c: In function 'posix_sendfile': Modules/posixmodule.c:7700: warning: ISO C90 forbids mixed declarations and code
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-18/+17
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Fix os.confstr(): the result type of the C function is size_t, not intVictor Stinner2013-06-251-2/+2
| |
* | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.Victor Stinner2013-06-241-4/+4
| |
* | Define S_IFMT and S_IFLNK in pyport.h so posixmodule.c can use named ↵Christian Heimes2013-06-231-2/+2
| | | | | | | | | | | | constants instead of arbitrary looking numbers.
* | Issue #17931: Resolve confusion on Windows between pids and process handles.Richard Oudkerk2013-06-051-16/+9
| |
* | Issue #13772: Use syntax for literal wchar_t characterVictor Stinner2013-06-051-1/+1
| |
* | Issue #13772: Mark helper functions as private (static)Victor Stinner2013-06-041-34/+41
| | | | | | | | Cleanup also the code to follow the Python coding style (PEP 7).
* | Issue #13772: Fix a compiler warning on WindowsVictor Stinner2013-06-041-1/+1
| |
* | Issue #13772: fix _check_dirA(): call *A() functions, not *W() functionsVictor Stinner2013-06-041-2/+2
| |
* | Issue #13772: Fix compiler warnings on WindowsVictor Stinner2013-06-041-3/+3
| |
* | (Merge 3.3) Close #18109: os.uname() now decodes fields from the localeVictor Stinner2013-06-031-1/+1
|\ \ | |/ | | | | | | encoding, and socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
| * Close #18109: os.uname() now decodes fields from the locale encoding, andVictor Stinner2013-06-031-1/+1
| | | | | | | | | | socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
* | Merge with 3.3Jason R. Coombs2013-05-281-2/+127
|\ \ | |/
| * Issue #13772: Restored directory detection of targets in `os.symlink` on ↵Jason R. Coombs2013-05-281-2/+127
| | | | | | | | Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
* | merge 3.3Benjamin Peterson2013-05-241-3/+3
|\ \ | |/
| * indicate that read/write work with bytes (closes #18009)Benjamin Peterson2013-05-241-3/+3
| |
* | Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()Charles-Francois Natali2013-05-201-125/+119
| | | | | | | | when applicable.
* | Issue #17914: We can now inline _bsd_cpu_count().Charles-Francois Natali2013-05-201-22/+6
| |
* | Issue #17914: Remove OS-X special-case, and use the correct int type.Charles-Francois Natali2013-05-201-9/+6
| |
* | Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on anCharles-Francois Natali2013-05-201-0/+68
| | | | | | | | initial patch by Trent Nelson.
* | Issue #17964: Fix os.sysconf(): the return type of the C sysconf() functionVictor Stinner2013-05-161-1/+1
| | | | | | | | is long, not int.
* | merge 3.3 (#17968)Benjamin Peterson2013-05-141-0/+1
|\ \ | |/
| * prevent double free in cleanup code (#17968)Benjamin Peterson2013-05-141-0/+1
| |
* | Issue #17968: Fix memory leak in os.listxattr().Antoine Pitrou2013-05-131-1/+3
|\ \ | |/