summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix memleak in os.getrandom()Victor Stinner2016-09-201-10/+18
| | | | | | | | | | | | | | | | Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a signal and a signal handler raises a Python exception. Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a Python bytes object.
* | Fix memory leak in path_converter()Victor Stinner2016-09-191-1/+1
| | | | | | | | | | Issue #28200: Replace PyUnicode_AsWideCharString() with PyUnicode_AsUnicodeAndSize().
* | Issue #28075: Merge from 3.5Berker Peksag2016-09-171-2/+4
|\ \ | |/
| * Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of ↵Berker Peksag2016-09-171-2/+4
| | | | | | | | | | | | os.stat() Patch by Eryk Sun.
* | Issue #28156: Export os.getpid() conditionallyBerker Peksag2016-09-151-0/+2
| | | | | | | | Patch by Ed Schouten.
* | Issue #28114: Fix a crash in parse_envlist() when env contains byte stringsBerker Peksag2016-09-151-17/+39
| | | | | | | | Patch by Eryk Sun.
* | Adds missing assert suppression.Steve Dower2016-09-121-0/+4
| |
* | Issue #27781: Fixes uninitialized fd when !MS_WINDOWS and !HAVE_OPENATSteve Dower2016-09-091-2/+3
| |
* | use Py_MAXBenjamin Peterson2016-09-081-1/+1
| |
* | Issue #23524: Finish removing _PyVerify_fd from sourcesSteve Dower2016-09-081-72/+3
| |
* | Fix mismatched if blocks in posixmodule.c.Steve Dower2016-09-081-2/+1
| |
* | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-081-640/+285
| |
* | more linux -> __linux__Benjamin Peterson2016-09-071-1/+1
| |
* | os.urandom() now blocks on LinuxVictor Stinner2016-09-061-2/+1
| | | | | | | | | | | | | | Issue #27776: The os.urandom() function does now block on Linux 3.17 and newer until the system urandom entropy pool is initialized to increase the security. This change is part of the PEP 524.
* | Add os.getrandom()Victor Stinner2016-09-061-0/+66
| | | | | | | | | | | | | | Issue #27778: Expose the Linux getrandom() syscall as a new os.getrandom() function. This change is part of the PEP 524.
* | Run Argument Clinic on posixmodule.cVictor Stinner2016-09-061-4/+4
| | | | | | | | Issue #17884.
* | replace Py_(u)intptr_t with the c99 standard typesBenjamin Peterson2016-09-061-13/+13
| |
* | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-11/+11
| |
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-9/+1
| |
* | merge 3.5Benjamin Peterson2016-09-051-3/+3
|\ \ | |/
| * do not pretend to support passing a fd to access()Benjamin Peterson2016-09-051-3/+3
| |
* | Issue #26027, #27524: Add PEP 519/__fspath__() support to os andBrett Cannon2016-08-261-29/+75
| | | | | | | | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
* | Issue #27736: Prevent segfault after interpreter re-initialization dueNed Deily2016-08-151-0/+2
| | | | | | | | | | to ref count problem introduced in code for Issue #27038 in 3.6.0a3. Patch by Xiang Zhang.
* | Issue #26800: Undocumented support of general bytes-like objectsSerhiy Storchaka2016-08-061-2/+29
| | | | | | | | as paths in os functions is now deprecated.
* | Issue #17599: Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflictMartin Panter2016-08-041-4/+4
| | | | | | | | | | The conflict occurs with Min GW, which already defines REPARSE_DATA_BUFFER. Also, Min GW uses a lowercase <windows.h> filename.
* | merge 3.5 (#27656)Benjamin Peterson2016-07-311-0/+6
|\ \ | |/
| * all SCHED_ constants are optional (closes #27656)Benjamin Peterson2016-07-311-0/+6
| |
* | Issue #27533: Release GIL in nt._isdirSteve Dower2016-07-181-0/+2
|\ \ | |/
| * Issue #27533: Release GIL in nt._isdirSteve Dower2016-07-181-0/+2
| |
* | Issue #27512: Don't segfault when os.fspath() calls an object whoseBrett Cannon2016-07-151-0/+4
| | | | | | | | | | | | __fspath__() raises an exception. Thanks to Xiang Zhang for the patch.
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-321/+317
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-319/+315
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #27038: Expose DirEntry as os.DirEntry.Brett Cannon2016-06-241-0/+1
| | | | | | | | Thanks to Jelle Zijlstra for the code portion of the patch.
* | Issue #27186: Update os.fspath()/PyOS_FSPath() to check the returnBrett Cannon2016-06-241-2/+11
| | | | | | | | | | | | | | type of __fspath__(). As part of this change, also make sure that the pure Python implementation of os.fspath() is tested.
* | - Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constantsdoko@ubuntu.com2016-06-131-0/+2
| | | | | | | | | | exposed on the API which are not implemented on GNU/Hurd. They would not work at runtime anyway.
* | Issue #27186: Add os.PathLike support to DirEntryBrett Cannon2016-06-101-0/+10
| | | | | | | | Initial patch thanks to Jelle Zijlstra.
* | Clarify documentation for os.fspath().Brett Cannon2016-06-091-4/+4
| |
* | issue27186: add C version of os.fspath(); patch by Jelle ZijlstraEthan Furman2016-06-041-0/+51
| |
* | Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-05-281-0/+2
|\ \ | |/
| * Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-05-281-0/+2
| |
* | Issue #26708: Use the "const" qualifier for immutable strings.Serhiy Storchaka2016-05-071-37/+39
| | | | | | | | This can help to avoid unintentional modification.
* | Issue #26932: Fixed support of RTLD_* constants defined as enum values,Serhiy Storchaka2016-05-041-7/+7
| | | | | | | | not via macros (in particular on Android). Patch by Chi Hsuan Yen.
* | Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.Stefan Krah2016-04-261-1/+7
| |
* | Issue #26671: Fixed #ifdef indentation.Serhiy Storchaka2016-04-061-2/+2
| |
* | Backed out changeset 8dc144e47252Serhiy Storchaka2016-04-061-26/+2
| |
* | Issue #26671: Fixed #ifdef indentation.Serhiy Storchaka2016-04-061-2/+26
| |
* | Issue #26671: Enhanced path_converter.Serhiy Storchaka2016-04-061-56/+50
| | | | | | | | | | Exceptions raised during converting argument of correct type are no longer overridded with TypeError. Some error messages are now more detailed.
* | Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-6/+10
|\ \ | |/ | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
| * Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-6/+10
| | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
* | Implement finalizer for os.scandir() iteratorVictor Stinner2016-03-221-17/+47
| | | | | | | | | | | | | | | | Issue #26603: * Implement finalizer for os.scandir() iterator * Set the source parameter when emitting the ResourceWarning warning * Close the iterator before emitting the warning