Martin Panter
b1321fba53
Issue #28394 : More typo fixes for 3.6+
10 years ago
Serhiy Storchaka
2674bc7229
Issue #27998 : Fixed bytes path support in os.scandir() on Windows.
Patch by Eryk Sun.
10 years ago
Christian Heimes
3cb091e576
Increase buffer for readlink() in case OS will support longer names one day.
10 years ago
Victor Stinner
ec2319c46d
Fix memleak in os.getrandom()
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.
10 years ago
Victor Stinner
26c03bd7d5
Fix memory leak in path_converter()
Issue #28200 : Replace PyUnicode_AsWideCharString() with
PyUnicode_AsUnicodeAndSize().
10 years ago
Berker Peksag
bf3c1c3235
Issue #28075 : Fix test_access_denied in Python 3.5
I forgot there two variations of os.stat() in Python 3.5.
10 years ago
Berker Peksag
0b4dc4846b
Issue #28075 : Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat()
Patch by Eryk Sun.
10 years ago
Berker Peksag
3940499ca8
Issue #28156 : Export os.getpid() conditionally
Patch by Ed Schouten.
10 years ago
Berker Peksag
8181646931
Issue #28114 : Fix a crash in parse_envlist() when env contains byte strings
Patch by Eryk Sun.
10 years ago
Steve Dower
654a7bdf57
Adds missing assert suppression.
10 years ago
Steve Dower
6230aaf561
Issue #27781 : Fixes uninitialized fd when !MS_WINDOWS and !HAVE_OPENAT
10 years ago
Benjamin Peterson
768f3b4492
do not pretend to support passing a fd to access()
10 years ago
Benjamin Peterson
207116b84c
use Py_MAX
10 years ago
Steve Dower
940f33a50f
Issue #23524 : Finish removing _PyVerify_fd from sources
10 years ago
Steve Dower
513d7478a1
Fix mismatched if blocks in posixmodule.c.
10 years ago
Steve Dower
cc16be85c0
Issue #27781 : Change file system encoding on Windows to UTF-8 (PEP 529)
10 years ago
Benjamin Peterson
840ef8f84b
more linux -> __linux__
10 years ago
Victor Stinner
e66987e626
os.urandom() now blocks on Linux
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.
10 years ago
Victor Stinner
9b1f474df6
Add os.getrandom()
Issue #27778 : Expose the Linux getrandom() syscall as a new os.getrandom()
function.
This change is part of the PEP 524.
10 years ago
Victor Stinner
581139cb34
Run Argument Clinic on posixmodule.c
Issue #17884 .
10 years ago
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
10 years ago
Benjamin Peterson
af580dff4a
replace PY_LONG_LONG with long long
10 years ago
Benjamin Peterson
ed4aa83ff7
require a long long data type ( closes #27961 )
10 years ago
Brett Cannon
3f9183b5ac
Issue #26027 , #27524 : Add PEP 519/__fspath__() support to os and
os.path.
Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
10 years ago
Ned Deily
eb3be66b3a
Issue #27736 : Prevent segfault after interpreter re-initialization due
to ref count problem introduced in code for Issue #27038 in 3.6.0a3.
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
as paths in os functions is now deprecated.
10 years ago
Martin Panter
70214ad55d
Issue #17599 : Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflict
The conflict occurs with Min GW, which already defines REPARSE_DATA_BUFFER.
Also, Min GW uses a lowercase <windows.h> filename.
10 years ago
Benjamin Peterson
dbaa559b7f
all SCHED_ constants are optional ( closes #27656 )
10 years ago
Steve Dower
b22a67737e
Issue #27533 : Release GIL in nt._isdir
10 years ago
Brett Cannon
044283a426
Issue #27512 : Don't segfault when os.fspath() calls an object whose
__fspath__() raises an exception.
Thanks to Xiang Zhang for the patch.
10 years ago
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
10 years ago
Brett Cannon
a32c4d0531
Issue #27038 : Expose DirEntry as os.DirEntry.
Thanks to Jelle Zijlstra for the code portion of the patch.
10 years ago
Brett Cannon
c78ca1e044
Issue #27186 : Update os.fspath()/PyOS_FSPath() to check the return
type of __fspath__().
As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
10 years ago
doko@ubuntu.com
fcff437de3
- Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway.
10 years ago
Brett Cannon
96881cd621
Issue #27186 : Add os.PathLike support to DirEntry
Initial patch thanks to Jelle Zijlstra.
10 years ago
Brett Cannon
b4f43e90d9
Clarify documentation for os.fspath().
10 years ago
Ethan Furman
410ef8e230
issue27186: add C version of os.fspath(); patch by Jelle Zijlstra
10 years ago
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
fa76eeec70
Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().
10 years ago
Serhiy Storchaka
deab18dfd0
Issue #26708 : Use the "const" qualifier for immutable strings.
This can help to avoid unintentional modification.
10 years ago
Serhiy Storchaka
c2f7d87897
Issue #26932 : Fixed support of RTLD_* constants defined as enum values,
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
10 years ago
Stefan Krah
fb7c8ae4e7
Issue #26863 : HAVE_FACCESSAT should (currently) not be defined on Android.
10 years ago
Serhiy Storchaka
3291d85a2f
Issue #26671 : Fixed #ifdef indentation.
10 years ago
Serhiy Storchaka
aaf553bac4
Backed out changeset 8dc144e47252
10 years ago
Serhiy Storchaka
026110f0a2
Issue #26671 : Fixed #ifdef indentation.
10 years ago
Serhiy Storchaka
819399b2ab
Issue #26671 : Enhanced path_converter.
Exceptions raised during converting argument of correct type are no longer
overridded with TypeError. Some error messages are now more detailed.
10 years ago
Serhiy Storchaka
fbb1c5ee06
Issue #26494 : Fixed crash on iterating exhausting iterators.
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
10 years ago
Victor Stinner
7bfa409ff8
Implement finalizer for os.scandir() iterator
Issue #26603 :
* Implement finalizer for os.scandir() iterator
* Set the source parameter when emitting the ResourceWarning warning
* Close the iterator before emitting the warning
10 years ago
Victor Stinner
f664dc5834
ResourceWarning: Revert change on socket and scandir
io.FileIO has a safe implementation of destructor, but not socket nor scandir.
10 years ago
Victor Stinner
914cde89d4
On ResourceWarning, log traceback where the object was allocated
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.
10 years ago
Victor Stinner
c36674a2c5
Fix usage of PyMem_Malloc() in os.stat()
Issue #26563 : Replace PyMem_Malloc() with PyMem_RawMalloc() in the Windows
implementation of os.stat(), since the code is called without holding the GIL.
10 years ago