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

parent ca897e96
...@@ -919,6 +919,7 @@ Joel Stanley ...@@ -919,6 +919,7 @@ Joel Stanley
Oliver Steele Oliver Steele
Greg Stein Greg Stein
Chris Stern Chris Stern
Alex Stewart
Victor Stinner Victor Stinner
Richard Stoakley Richard Stoakley
Peter Stoehr Peter Stoehr
......
...@@ -540,10 +540,13 @@ all_ins(PyObject* d) ...@@ -540,10 +540,13 @@ all_ins(PyObject* d)
if (ins(d, "F_SHLCK", (long)F_SHLCK)) return -1; if (ins(d, "F_SHLCK", (long)F_SHLCK)) return -1;
#endif #endif
/* OS X (and maybe others) let you tell the storage device to flush to physical media */ /* OS X specifics */
#ifdef F_FULLFSYNC #ifdef F_FULLFSYNC
if (ins(d, "F_FULLFSYNC", (long)F_FULLFSYNC)) return -1; if (ins(d, "F_FULLFSYNC", (long)F_FULLFSYNC)) return -1;
#endif #endif
#ifdef F_NOCACHE
if (ins(d, "F_NOCACHE", (long)F_NOCACHE)) return -1;
#endif
/* For F_{GET|SET}FL */ /* For F_{GET|SET}FL */
#ifdef FD_CLOEXEC #ifdef FD_CLOEXEC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment