Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.

This commit is contained in:
Charles-François Natali 2011-11-02 18:58:25 +01:00
parent ca897e960a
commit 23e1ecbd66
2 changed files with 5 additions and 1 deletions

View file

@ -919,6 +919,7 @@ Joel Stanley
Oliver Steele
Greg Stein
Chris Stern
Alex Stewart
Victor Stinner
Richard Stoakley
Peter Stoehr

View file

@ -540,10 +540,13 @@ all_ins(PyObject* d)
if (ins(d, "F_SHLCK", (long)F_SHLCK)) return -1;
#endif
/* OS X (and maybe others) let you tell the storage device to flush to physical media */
/* OS X specifics */
#ifdef F_FULLFSYNC
if (ins(d, "F_FULLFSYNC", (long)F_FULLFSYNC)) return -1;
#endif
#ifdef F_NOCACHE
if (ins(d, "F_NOCACHE", (long)F_NOCACHE)) return -1;
#endif
/* For F_{GET|SET}FL */
#ifdef FD_CLOEXEC