Ruben Vorderman
23c0fb8edd
bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and 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.
2020-10-19 16:30:02 -07:00
Serhiy Storchaka
9975cc5008
bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for "fildes". (GH-22620)
2020-10-09 23:00:45 +03:00
Dong-hee Na
e9684fac5a
bpo-1635741: Port fcntl module to multiphase initialization (GH-20540)
2020-06-02 01:12:24 +09:00
Saiyang Gou
7514f4f625
bpo-39184: Add audit events to functions in fcntl, msvcrt, os, resource, shutil, signal, syslog (GH-18407)
2020-02-13 07:47:42 +00:00
Brandt Bucher
54b32c9871
bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236)
2019-11-19 11:16:29 -08:00
Dong-hee Na
3bfc8e0fcc
bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)
2019-10-28 09:31:15 +02:00
Vinay Sharma
13f37f2ba8
closes bpo-37964: add F_GETPATH command to fcntl (GH-15550)
...
https://bugs.python.org/issue37964
Automerge-Triggered-By: @benjaminp
2019-08-28 18:56:17 -07:00
Christian Heimes
8cbb5b6625
bpo-26835: Add file sealing constants to fcntl (GH-13694)
...
Co-authored-by: nanjekyejoannah <nanjekyejoannah@gmail.com >
2019-05-31 18:32:33 +02:00
nierob
b409ffa848
bpo-35189: Retry fnctl calls on EINTR (GH-10413)
...
Modify the following fnctl function to retry if interrupted by a signal
(EINTR): flock, lockf, fnctl.
2018-11-23 16:46:12 +01:00
oldk
aa0735f597
bpo-32747: Remove trailing spaces in docstrings. (GH-5491)
2018-02-02 10:52:55 +02:00
Serhiy Storchaka
55fe1ae970
bpo-30022: Get rid of using EnvironmentError and IOError (except test… ( #1051 )
2017-04-16 10:46:38 +03:00
Martin Panter
6d57fe1c23
Issue #28139 : Fix messed up indentation
...
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 03:26:16 +00:00
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Serhiy Storchaka
d6117a4296
Issue #26716 : Regenerate Argument Clinic code.
2016-04-14 12:28:01 +03:00
Victor Stinner
d0d5154251
Update fcntl doc: replace IOError with OSError
...
Issue #26716 . IOError is a deprecated alias to OSError since Python 3.3.
2016-04-09 11:32:58 +02:00
Larry Hastings
89964c48d1
Issue #23944 : Argument Clinic now wraps long impl prototypes at column 78.
2015-04-14 18:07:59 -04:00
Serhiy Storchaka
1009bf18b3
Issue #23501 : Argumen Clinic now generates code into separate files by default.
2015-04-03 23:53:51 +03:00
Serhiy Storchaka
17d3a58e39
Issue #22832 : Tweaked parameter names for fcntl module to better match
...
official POSIX documentation. Updated the documenttion for Python 3.
Patch by Alex Shkop.
2015-03-20 20:04:21 +02:00
Serhiy Storchaka
483405bcca
Issue #22883 : Got rid of outdated references to PyInt and PyString in comments.
2015-02-17 10:14:30 +02:00
Serhiy Storchaka
5a8dacf9c6
Issue #22821 : Fixed fcntl() with integer argument on 64-bit big-endian
...
platforms.
2014-11-10 11:25:50 +02:00
Serhiy Storchaka
d915b0847d
Issue #22821 : Fixed fcntl() with integer argument on 64-bit big-endian
...
platforms.
2014-11-10 10:42:26 +02:00
Brett Cannon
b7299ddbc7
Issue 20152, 22821: Port the fcntl module to Argument Clinic.
...
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.
2014-11-09 20:22:01 -05:00
Victor Stinner
049e509a9f
Issue #22207 : Fix "comparison between signed and unsigned integers" warning in
...
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
2014-08-17 22:20:00 +02:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
Charles-François Natali
5abca14b00
Issue #18994 : Add a missing check for a return value in fcntmodule. Patch by
...
Vajrasky Kok.
2013-12-01 14:30:47 +01:00