diff options
author | Jesus Cea <jcea@jcea.es> | 2012-06-22 16:32:07 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-06-22 16:32:07 (GMT) |
commit | 9436361e4cdd7d3dc5f42674b54995c4915afb59 (patch) | |
tree | 18ecfd666aa3101811f6e79a5ca883293917a88b /Modules/posixmodule.c | |
parent | ff493c9c465ba9502629bf5001f690068be97f33 (diff) | |
download | cpython-9436361e4cdd7d3dc5f42674b54995c4915afb59.zip cpython-9436361e4cdd7d3dc5f42674b54995c4915afb59.tar.gz cpython-9436361e4cdd7d3dc5f42674b54995c4915afb59.tar.bz2 |
Closes #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 094108a..5418cb9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -11292,6 +11292,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. */ |