commit | 2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7 | [log] [tgz] |
---|---|---|
author | Jesus Cea <jcea@jcea.es> | Thu Apr 26 16:39:35 2012 +0200 |
committer | Jesus Cea <jcea@jcea.es> | Thu Apr 26 16:39:35 2012 +0200 |
tree | e7a04c686ef2b72e9d4495b88e8f87c58cfd5e11 | |
parent | 790a9b4c193a9f3323138a8c1c1d074a6b6289f0 [diff] [blame] |
Close #10142: Support for SEEK_HOLE/SEEK_DATA
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 @@ #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. */