summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* - 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
* | ResourceWarning: Revert change on socket and scandirVictor Stinner2016-03-191-2/+2
| | | | | | | | io.FileIO has a safe implementation of destructor, but not socket nor scandir.
* | On ResourceWarning, log traceback where the object was allocatedVictor Stinner2016-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated.
* | Fix usage of PyMem_Malloc() in os.stat()Victor Stinner2016-03-161-5/+5
| | | | | | | | | | Issue #26563: Replace PyMem_Malloc() with PyMem_RawMalloc() in the Windows implementation of os.stat(), since the code is called without holding the GIL.
* | posix_getcwd(): limit to INT_MAX on WindowsVictor Stinner2016-03-141-0/+10
| | | | | | | | | | It's more to fix a conversion warning during compilation, I don't think that Windows support current working directory larger than 2 GB ...
* | Issue #25994: Added the close() method and the support of the context managerSerhiy Storchaka2016-02-111-7/+66
| | | | | | | | protocol for the os.scandir() iterator.
* | Issue #26117: The os.scandir() iterator now closes file descriptor not onlySerhiy Storchaka2016-02-081-17/+20
|\ \ | |/ | | | | when the iteration is finished, but when it was failed with error.
| * Issue #26117: The os.scandir() iterator now closes file descriptor not onlySerhiy Storchaka2016-02-081-17/+20
| | | | | | | | when the iteration is finished, but when it was failed with error.
* | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-18/+25
| | | | | | | | private functions.
* | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-5/+5
| |
* | Issue #25890: Removed yet one unused variable.Serhiy Storchaka2015-12-181-1/+0
| |
* | Issues #25890, #25891, #25892: Removed unused variables in Windows code.Serhiy Storchaka2015-12-181-2/+0
| | | | | | | | Reported by Alexander Riccio.
* | Merge 3.5Victor Stinner2015-12-131-1/+1
|\ \ | |/
| * Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir() (new try)Victor Stinner2015-12-131-1/+1
| |
* | (Merge 3.5) Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()Victor Stinner2015-12-131-3/+3
|\ \ | |/
| * Issue #25846: Fix usage of Py_ARRAY_LENGTH() in win32_wchdir()Victor Stinner2015-12-131-3/+3
| |
* | Issue #25207, #14626: Fix my commit.Victor Stinner2015-09-211-3/+3
| | | | | | | | | | It doesn't work to use #define XXX defined(YYY)" and then "#ifdef XXX" to check YYY.
* | Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.cVictor Stinner2015-09-211-3/+3
| | | | | | | | Replace "#if XXX" with #ifdef XXX".
* | Merge 3.5 (os.waitpid)Victor Stinner2015-09-151-2/+2
|\ \ | |/
| * Issue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.Victor Stinner2015-09-151-2/+2
| | | | | | | | Add an unit test on os.waitpid()
* | Merge 3.5 into 3.6Martin Panter2015-09-091-3/+3
|\ \ | |/
| * Merge 3.4 into 3.5Martin Panter2015-09-091-3/+3
| |\
| | * os.sendfile(headers=None, trailers=None) arguments are not actually acceptedMartin Panter2015-09-091-3/+3
| | | | | | | | | | | | Needs to be tested on a BSD.
* | | Issue #23738: Merge 3.5 into 3.6Martin Panter2015-09-091-7/+8
|\ \ \ | |/ /
| * | Issue #23738: Merge 3.4 into 3.5Martin Panter2015-09-091-7/+8
| |\ \ | | |/
| | * Issue #23738: Document and test actual keyword parameter namesMartin Panter2015-09-091-8/+9
| | | | | | | | | | | | Also fix signature because os.utime(..., ns=None) is not allowed.
* | | Issue #15989: Fixed some scarcely probable integer overflows.Serhiy Storchaka2015-09-061-2/+5
| | | | | | | | | | | | It is very unlikely that they can occur in real code for now.
* | | Merge 3.5 (ICC)Victor Stinner2015-09-031-8/+4
|\ \ \ | |/ /
| * | Merge 3.4 (ICC)Victor Stinner2015-09-031-8/+4
| |\ \ | | |/
| | * Don't use defined() in C preprocessor macrosVictor Stinner2015-09-031-10/+6
| | | | | | | | | | | | | | | | | | | | | The ICC compiler doesn't seem to support defined() in macro expansion. Example of warning: warning #3199: "defined" is always false in a macro expansion in Microsoft mode
* | | Issue #23530: fix clinic comment.Charles-François Natali2015-08-131-5/+7
| | |
* | | Issue #23530: Improve os.cpu_count() description.Charles-François Natali2015-07-131-2/+4
|/ / | | | | | | Patch by Julian Taylor.
* | Converted os._getfullpathname() and os._isdir() to Argument Clinic.Serhiy Storchaka2015-05-121-59/+39
| |
* | (Merge 3.4) Issue #9246: On POSIX, os.getcwd() now supports paths longer thanVictor Stinner2015-04-241-8/+28
|\ \ | |/ | | | | 1025 bytes. Patch written by William Orr.
| * Issue #9246: On POSIX, os.getcwd() now supports paths longer than 1025 bytesVictor Stinner2015-04-241-7/+27
| | | | | | | | Patch written by William Orr.