diff options
author | Jesus Cea <jcea@jcea.es> | 2012-04-26 14:39:35 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-04-26 14:39:35 (GMT) |
commit | 2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7 (patch) | |
tree | e7a04c686ef2b72e9d4495b88e8f87c58cfd5e11 /Modules/posixmodule.c | |
parent | 790a9b4c193a9f3323138a8c1c1d074a6b6289f0 (diff) | |
download | cpython-2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7.zip cpython-2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7.tar.gz cpython-2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7.tar.bz2 |
Close #10142: Support for SEEK_HOLE/SEEK_DATA
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 92a6277..8254f81 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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. */ |