Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
authorCharles-François Natali <neologix@free.fr>
Wed, 2 Nov 2011 17:58:25 +0000 (18:58 +0100)
committerCharles-François Natali <neologix@free.fr>
Wed, 2 Nov 2011 17:58:25 +0000 (18:58 +0100)
Misc/ACKS
Modules/fcntlmodule.c

index 821a8125912313d91f71f82b8a4315772e1dfb40..65c402c375f1078024840f44fd0c514ec0f34799 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -919,6 +919,7 @@ Joel Stanley
 Oliver Steele
 Greg Stein
 Chris Stern
+Alex Stewart
 Victor Stinner
 Richard Stoakley
 Peter Stoehr
index bfc59855dd9834c201377463b708c5ff8fe18143..6b7e3fc6e1da3dbd996cd43f0374730a2b82abd8 100644 (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