commit | 9436361e4cdd7d3dc5f42674b54995c4915afb59 | [log] [tgz] |
---|---|---|
author | Jesus Cea <jcea@jcea.es> | Fri Jun 22 18:32:07 2012 +0200 |
committer | Jesus Cea <jcea@jcea.es> | Fri Jun 22 18:32:07 2012 +0200 |
tree | 18ecfd666aa3101811f6e79a5ca883293917a88b | |
parent | ff493c9c465ba9502629bf5001f690068be97f33 [diff] [blame] |
Closes #10142: Support for SEEK_HOLE/SEEK_DATA
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 094108a..5418cb9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -11292,6 +11292,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. */