| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
gh-116622: Don't expose `FICLONE` ioctl on Android (GH-122522)
Don't expose `FICLONE` ioctl on Android
(cherry picked from commit 06656e259bc9b2c3cf8a23bdc6e4acb052c56e1f)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
|
| |
|
|
|
|
|
|
|
|
| |
(… (#119906)
Revert "[3.13] gh-69214: Fix fcntl.ioctl() request type (GH-119498) (#119504)"
This reverts commit 0bab0b3a53da735838720f96f3d3bf86ca6ba125.
The change modified how negative values, like termios.TIOCSWINSZ, was
treated and is actually backward incompatible.
|
| |
|
|
|
|
|
|
|
| |
gh-69214: Fix fcntl.ioctl() request type (GH-119498)
Use an 'unsigned long' instead of an 'unsigned int' for the request
parameter of fcntl.ioctl() to support requests larger than UINT_MAX.
(cherry picked from commit 92fab3356f4c61d4c73606e4fae705c6d8f6213b)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR adds the ability to enable the GIL if it was disabled at
interpreter startup, and modifies the multi-phase module initialization
path to enable the GIL when loading a module, unless that module's spec
includes a slot indicating it can run safely without the GIL.
PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went
with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148.
A warning will be issued up to once per interpreter for the first
GIL-using module that is loaded. If `-v` is given, a shorter message
will be printed to stderr every time a GIL-using module is loaded
(including the first one that issues a warning).
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Functions like PyErr_SetFromErrno() and SetFromWindowsErr() should be
called immediately after using the C API which sets errno or the Windows
error code.
|
| |
|
|
|
|
|
|
|
| |
Move the private _PyLong converter functions to the internal C API
* _PyLong_FileDescriptor_Converter(): moved to pycore_fileutils.h
* _PyLong_Size_t_Converter(): moved to pycore_long.h
Argument Clinic now emits includes for pycore_fileutils.h and
pycore_long.h when these functions are used.
|
| | |
|
| |
|
| |
Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
F_SETPIPE_SZ to fcntl. (GH-21921)
* Add F_SETPIPE_SZ and F_GETPIPE_SZ to fcntl module
* Add pipesize parameter for subprocess.Popen class
This will allow the user to control the size of the pipes.
On linux the default is 64K. When a pipe is full it blocks for writing.
When a pipe is empty it blocks for reading. On processes that are
very fast this can lead to a lot of wasted CPU cycles. On a typical
Linux system the max pipe size is 1024K which is much better.
For high performance-oriented libraries such as xopen it is nice to
be able to set the pipe size.
The workaround without this feature is to use my_popen_process.stdout.fileno() in
conjuction with fcntl and 1031 (value of F_SETPIPE_SZ) to acquire this behavior.
|
| |
|
|
| |
"fildes". (GH-22620)
|
| | |
|
| |
|
|
| |
`resource`, `shutil`, `signal`, `syslog` (GH-18407)
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
https://bugs.python.org/issue37964
Automerge-Triggered-By: @benjaminp
|
| |
|
| |
Co-authored-by: nanjekyejoannah <nanjekyejoannah@gmail.com>
|
| |
|
|
| |
Modify the following fnctl function to retry if interrupted by a signal
(EINTR): flock, lockf, fnctl.
|
| | |
|
| | |
|
| |
|
|
|
| |
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
|
| |
|
|
| |
generated by Argument Clinic. Patch by Petr Viktorin.
|
| | |
|
| |
|
|
| |
Issue #26716. IOError is a deprecated alias to OSError since Python 3.3.
|
| | |
|
| | |
|
| |
|
|
|
| |
official POSIX documentation. Updated the documenttion for Python 3.
Patch by Alex Shkop.
|
| | |
|
| |\
| |
| |
| | |
platforms.
|
| | |
| |
| |
| | |
platforms.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Along the way, fix an argumrnt to fcntl.fcntl to be an int instead of
a long.
Thanks to Serhiy Storchaka for reviewing my Clinic patch and for
writing the patch to fix the long/int issue.
|
| |/
|
|
|
| |
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
|
| | |
|
| |
|
|
| |
Vajrasky Kok.
|
| |\ |
|
| | |
| |
| |
| | |
Original patch by Vajrasky Kok, further improved (I hope) by me.
|
| |\ \
| |/ |
|
| | | |
|
| | |
| |
| |
| | |
when applicable.
|
| | | |
|
| |/ |
|
| | |
|
| |
|
|
|
| |
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
|
| |
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72887 | antoine.pitrou | 2009-05-24 17:40:09 +0200 (dim., 24 mai 2009) | 6 lines
Issue #1309352: fcntl now converts its third arguments to a C `long` rather
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
........
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines
Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.
More module might need to get converted to use s*.
........
|