mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Close #10142: Support for SEEK_HOLE/SEEK_DATA
This commit is contained in:
parent
790a9b4c19
commit
2b47f0a23f
8 changed files with 60 additions and 12 deletions
|
@ -11227,6 +11227,13 @@ all_ins(PyObject *d)
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef SEEK_HOLE
|
||||
if (ins(d, "SEEK_HOLE", (long)SEEK_HOLE)) return -1;
|
||||
#endif
|
||||
#ifdef SEEK_DATA
|
||||
if (ins(d, "SEEK_DATA", (long)SEEK_DATA)) return -1;
|
||||
#endif
|
||||
|
||||
/* MS Windows */
|
||||
#ifdef O_NOINHERIT
|
||||
/* Don't inherit in child processes. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue