summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3344)Christian Heimes2017-09-051-0/+5
| | | | | | | Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray plans to remove the functions from sys/types.h. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 75b9618)
* bpo-30581: Windows: os.cpu_count() returns wrong number of processors ↵Christopher Wilcox2017-09-011-3/+16
| | | | | | | | | (#2934) (#3267) * Fixes #30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count() * Add NEWS.d entry for bpo-30581, os.cpu_count on Windows. * Tweak NEWS entry
* bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666) ↵Victor Stinner2017-08-171-18/+5
| | | | | | | (#3102) Use only the LongLong form for the conversions (cherry picked from commit 50e86033de85294d87b7e942701d456342abde8e)
* [3.6] bpo-30879: os.listdir() and os.scandir() now emit bytes names when ↵Serhiy Storchaka2017-07-111-3/+5
| | | | | | (GH-2634) (#2656) called with bytes-like argument.. (cherry picked from commit 1180e5a51871fa53ca6892e83fd2e69dc2600447)
* bpo-30602: Fix refleak in os.spawnv() (#2212) (#2486)Victor Stinner2017-06-291-1/+1
| | | | | | When os.spawnv() fails while handling arguments, free correctly argvlist: pass lastarg+1 rather than lastarg to free_string_array() to also free the first item. (cherry picked from commit 8acb4cf2b3436652568d7a70228b166316181466)
* [3.6] bpo-13617: Reject embedded null characters in wchar* strings. ↵Serhiy Storchaka2017-06-281-6/+12
| | | | | | | | | | (GH-2302) (#2462) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)
* [3.6] bpo-30769: Fix reference leak introduced in 77703942c59 (GH-2416) (#2425)Emily Morehouse2017-06-271-0/+4
| | | | | | | | New error condition paths were introduced, which did not decrement `key2` and `val2` objects. Therefore, decrement references before jumping to the error label. Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com> (cherry picked from commit a7874c73c0c729bbec2fd4b077bd0eec276cfff4)
* [3.6] bpo-30746: Prohibited the '=' character in environment variable names ↵Serhiy Storchaka2017-06-251-4/+28
| | | | | | | (GH-2382) (#2391) in `os.putenv()` and `os.spawn*()`.. (cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c)
* bpo-30602: Fix lastarg in os.spawnve() (#2287) (#2357)Victor Stinner2017-06-231-1/+1
| | | | | Fix a regression introduced by myself in the commit 526b22657cb18fe79118c2ea68511aca09430c2c. (cherry picked from commit c8d6ab2e25ff212702d387e516e258b1d8c52910)
* [3.6] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) ↵Serhiy Storchaka2017-06-151-1/+1
| | | | | (#2215) (cherry picked from commit 0d32218)
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ↵Serhiy Storchaka2017-04-191-18/+42
| | | | | | | (#1096) (#1180) raised an error. (cherry picked from commit bf623ae8843dc30b28c574bec8d29fc14be59d86)
* bpo-29619: Convert st_ino using unsigned integer (#557) (#584)Victor Stinner2017-03-091-5/+8
| | | | | | | bpo-29619: os.stat() and os.DirEntry.inodeo() now convert inode (st_ino) using unsigned integers. (cherry picked from commit 0f6d73343d342c106cda2219ebb8a6f0c4bd9b3c) (Misc/NEWS conflict handled manually.)
* Issue #29513: Fixed a reference leak in os.scandir() added in issue #29034.Serhiy Storchaka2017-02-091-7/+0
|
* Issue #29092: Sync os.stat's doc and docstring on path type.Xiang Zhang2017-01-221-2/+3
|\
* | Issue #29034: Fix memory leak and use-after-free in path_converter.Xiang Zhang2017-01-081-53/+56
| |
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-201-1/+1
| | | | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* | Issue #28732: Raise ValueError when argv[0] is emptySteve Dower2016-11-201-0/+34
|\ \ | |/
| * Issue #28732: Raise ValueError when argv[0] is empty.Steve Dower2016-11-201-0/+9
| |
* | Issue #28732: Raise ValueError when os.spawn*() is passed an empty tuple of ↵Steve Dower2016-11-201-0/+10
| | | | | | | | arguments
* | Merge from 3.5 and fix a few other functions missing IPH handling.Steve Dower2016-11-201-2/+7
|\ \ | |/
| * Issue #28732: Fix crash in os.spawnv() with no elements in argsSteve Dower2016-11-201-0/+16
| | | | | | | | Prevents crashes in some other posixmodule.c functions
* | Issue #28585: Restored docstring of os._isdir().Serhiy Storchaka2016-11-081-4/+2
|\ \ | |/
| * Issue #28585: Restored docstring of os._isdir().Serhiy Storchaka2016-11-081-4/+2
| |
* | Issue #28394: More typo fixes for 3.6+Martin Panter2016-10-101-1/+1
| |
* | Issue #27998: Fixed bytes path support in os.scandir() on Windows.Serhiy Storchaka2016-10-081-46/+43
| | | | | | | | Patch by Eryk Sun.
* | Increase buffer for readlink() in case OS will support longer names one day.Christian Heimes2016-09-231-3/+4
|\ \ | |/
| * Increase buffer for readlink() in case OS will support longer names one day.Christian Heimes2016-09-231-3/+4
| |
| * Issue #28075: Fix test_access_denied in Python 3.5Berker Peksag2016-09-181-2/+4
| | | | | | | | I forgot there two variations of os.stat() in Python 3.5.
* | 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.