Close #10142: Support for SEEK_HOLE/SEEK_DATA

This commit is contained in:
Jesus Cea 2012-04-26 16:39:35 +02:00
parent 790a9b4c19
commit 2b47f0a23f
8 changed files with 60 additions and 12 deletions

View file

@ -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. */