summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-151-1/+1
| | | | compiler warnings in the Modules/ subdirectory.
* Issue #22120: For functions using an unsigned integer return converter,Larry Hastings2014-08-051-6/+6
| | | | | Argument Clinic now generates a cast to that type for the comparison to -1 in the generated code. (This supresses a compilation warning.)
* More fixes for the unhappy AMD FreeBSD 9 buildbot. Fingers crossed.Larry Hastings2014-08-051-2/+2
|
* Fix for AMD FreeBSD 9 buildbot (hopefully), broken by my last checkin.Larry Hastings2014-08-051-1/+0
|
* Issue #20170: Convert posixmodule to use Argument Clinic.Larry Hastings2014-08-051-2929/+8298
|
* Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get andVictor Stinner2014-07-291-0/+54
| | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows.
* Issue #21932: os.read() now uses a :c:func:`Py_ssize_t` type instead ofVictor Stinner2014-07-111-6/+13
| | | | | | :c:type:`int` for the size to support reading more than 2 GB at once. On Windows, the size is truncted to INT_MAX. As any call to os.read(), the OS may read less bytes than the number of requested bytes.
* Issue #21741: Add st_file_attributes to os.stat_result on Windows.Zachary Ware2014-06-191-0/+16
| | | | Patch by Ben Hoyt.
* Issue18314 Allow unlink to remove junctions. Includes support for creating ↵Tim Golden2014-05-051-36/+9
| | | | junctions. Patch by Kim Gräsman
* Backed out changeset: 17df50df62c7Tim Golden2014-04-271-9/+36
|
* Issue #18314 os.unlink will now remove junction points on Windows. Patch by ↵Tim Golden2014-04-271-36/+9
| | | | Kim Gräsman.
* Fixes for KFreeBSD and the Hurd:doko@ubuntu.com2014-04-171-1/+1
| | | | | | | | - Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c. - Issue #21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd. - Issue #21275: Fix a socket test on KFreeBSD.
* Issue #20320: select.select() and select.kqueue.control() now round the timeoutVictor Stinner2014-02-161-2/+2
| | | | | | aways from zero, instead of rounding towards zero. It should make test_asyncio more reliable, especially test_timeout_rounding() test.
* merge 3.3 (#20594)Benjamin Peterson2014-02-111-2/+6
|\
| * avoid name clash with posix_close (closes #20594)Benjamin Peterson2014-02-111-2/+6
| |
* | Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-6/+19
| | | | | | | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one.
* | Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|\ \ | |/
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
| |
* | Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-6/+13
| | | | | | | | | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* | #Issue 20456: Several improvements and bugfixes for Argument Clinic,Larry Hastings2014-02-011-7/+21
| | | | | | | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks.
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-8/+8
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-6/+6
| | | | | | | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* | merge 3.3 (#17811)Benjamin Peterson2014-01-191-6/+10
|\ \ | |/
| * improve description of buffers argument for readv/writev (closes #17811)Benjamin Peterson2014-01-191-6/+10
| | | | | | | | Patch by Nikolaus Rath.
| * fix build when SCHED_SPORADIC is defined (closes #20217)Benjamin Peterson2014-01-101-1/+1
| |
* | Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
* | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSErrorVictor Stinner2014-01-081-9/+15
|\ \ | |/ | | | | exception on error instead of returning -1.
| * Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-081-9/+15
| | | | | | | | error instead of returning -1.
* | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-071-15/+15
| | | | | | | | to improve readability.
* | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-23/+0
| |
* | Fix os.listdir(): _Py_dup() already raises an exception on error, no need toVictor Stinner2013-12-191-4/+2
| | | | | | | | raise a new exception
* | Merge: #19970: Fix some comment typos.R David Murray2013-12-141-2/+2
|\ \ | |/
| * #19970: Fix some comment typos.R David Murray2013-12-141-2/+2
| | | | | | | | Report and patch by Vajrasky Kok.
* | - Issue #19736: Add module-level statvfs constants defined for GNU/glibcdoko@ubuntu.com2013-12-081-0/+29
| | | | | | | | based systems.
* | Issue #19752: Fix "HAVE_DEV_PTMX" implementation of os.openpty()Victor Stinner2013-11-251-1/+5
| | | | | | | | | | | | | | | | Regression introduced by the implementation of the PEP 446 (non-inheritable file descriptors by default). master_fd must be set non-inheritable after the creation of the slave_fd, otherwise grantpt(master_fd) fails with EPERM (errno 13).
* | Issue #19636: Fix usage of MAX_PATH in posixmodule.cVictor Stinner2013-11-241-14/+14
| |
* | Issue #19636: Fix posix__getvolumepathname(), raise an OverflowError ifVictor Stinner2013-11-241-5/+14
| | | | | | | | the length doesn't fit in an DWORD
* | Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-9/+10
| | | | | | | | for some builtins.
* | Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-12/+12
| | | | | | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* | Issue #19727: os.utime(..., None) is now potentially more precise under Windows.Antoine Pitrou2013-11-231-7/+2
| |
* | Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-181-15/+15
| |
* | GetVolumePathNameW: downcast bufsize to DWORDChristian Heimes2013-11-181-1/+2
| |
* | Issue #19437: Fix parse_envlist() of the posix/nt module, don't callVictor Stinner2013-11-141-1/+3
| | | | | | | | PyMapping_Values() with an exception set, exit immediatly on error.
* | Don't use deprecated function PyUnicode_GET_SIZE()Victor Stinner2013-11-131-6/+5
| | | | | | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
* | Issue #19437: Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc()Victor Stinner2013-11-071-1/+3
| | | | | | | | failure
* | Issue #19437: Fix os.statvfs(), handle errorsVictor Stinner2013-10-301-0/+4
| |
* | Issue13234 Allow listdir to handle extended paths on Windows (Patch by ↵Tim Golden2013-10-251-4/+4
| | | | | | | | Santoso Wijaya)
* | Issue4905: use INVALID_FILE_ATTRIBUTES where appropriate. (Patch by Ulrich ↵Tim Golden2013-10-251-5/+5
| | | | | | | | Eckhardt)
* | fix compile issue on windows. path is now a struct ptrChristian Heimes2013-10-191-3/+3
| |
* | Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-96/+301
| | | | | | | | for C files to generate argument parsing code. (See PEP 436.)