summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* | Get rid of unused-but-set-variable warning. len and len2 should be equal and ↵Christian Heimes2015-04-211-1/+1
| | | | | | | | len2 is technically more correct, too.
* | Issue #23908: os functions now reject paths with embedded null characterSerhiy Storchaka2015-04-201-0/+5
|\ \ | |/ | | | | | | | | on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars().
| * Issue #23908: os functions now reject paths with embedded null characterSerhiy Storchaka2015-04-201-0/+5
| | | | | | | | on Windows instead of silently truncate them.
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-46/+69
| |
* | make DirEntryType and ScandirIteratorType static (closes #23918)Benjamin Peterson2015-04-121-2/+2
| |
* | Issue #23668: Suppresses invalid parameter handler around chsize calls.Steve Dower2015-04-121-0/+4
| |
* | Issue #23524: Replace _PyVerify_fd function with calls to ↵Steve Dower2015-04-121-10/+46
| | | | | | | | _set_thread_local_invalid_parameter_handler.
* | Issue #23668: Adds support for os.truncate and os.ftruncate on WindowsSteve Dower2015-03-211-9/+36
| |
* | Issue #23501: #include "clinic/posixmodule.c.h" was in the section skipped ↵Serhiy Storchaka2015-04-041-2/+2
| | | | | | | | on Windows.
* | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-5595/+160
| |
* | Issue #23500: Argument Clinic is now smarter about generating the "#ifndef"Larry Hastings2015-04-031-13/+1
| | | | | | | | | | | | (empty) definition of the methoddef macro: it's only generated once, even if Argument Clinic processes the same symbol multiple times, and it's emitted at the end of all processing rather than immediately after the first use.
* | Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-1/+1
| | | | | | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* | Issue #22117: Fix os.utime(), it now rounds the timestamp towards minusVictor Stinner2015-03-291-2/+2
| | | | | | | | | | | | infinity (-inf) instead of rounding towards zero. Replace _PyTime_ROUND_DOWN with _PyTime_ROUND_FLOOR.
* | Closes #9445: Removes detection of GetFinalPathNameByHandleSteve Dower2015-03-211-50/+6
| |
* | Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handleVictor Stinner2015-03-191-41/+5
| | | | | | | | | | | | | | | | EINTR error and special cases for Windows. These functions now truncate the length to PY_SSIZE_T_MAX to have a portable and reliable behaviour. For example, read() result is undefined if counter is greater than PY_SSIZE_T_MAX on Linux.
* | Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-171-5/+3
| | | | | | | | | | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held