[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.204,2.205
Martin v. L?wis
loewis@users.sourceforge.net
Thu, 18 Oct 2001 15:05:38 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test pickletester.py,1.9,1.10 regrtest.py,1.60,1.61 test_binascii.py,1.10,1.11 test_cpickle.py,1.8,1.9 test_email.py,1.11,1.12 test_os.py,1.8,1.9 test_pickle.py,1.7,1.8 test_socket_ssl.py,1.3,1.4 test_zlib.py,1.15,1.16
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test test_fcntl.py,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv30889
Modified Files:
posixmodule.c
Log Message:
Expose O_LARGEFILE, O_DIRECT, O_DIRECTORY, and O_NOFOLLOW.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.204
retrieving revision 2.205
diff -C2 -d -r2.204 -r2.205
*** posixmodule.c 2001/10/18 20:53:15 2.204
--- posixmodule.c 2001/10/18 22:05:36 2.205
***************
*** 5871,5874 ****
--- 5871,5891 ----
if (ins(d, "O_TEXT", (long)O_TEXT)) return -1;
#endif
+ #ifdef O_LARGEFILE
+ if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
+ #endif
+
+ /* GNU extensions. */
+ #ifdef O_DIRECT
+ /* Direct disk access. */
+ if (ins(d, "O_DIRECT", (long)O_DIRECT)) return -1;
+ #endif
+ #ifdef O_DIRECTORY
+ /* Must be a directory. */
+ if (ins(d, "O_DIRECTORY", (long)O_DIRECTORY)) return -1;
+ #endif
+ #ifdef O_NOFOLLOW
+ /* Do not follow links. */
+ if (ins(d, "O_NOFOLLOW", (long)O_NOFOLLOW)) return -1;
+ #endif
#ifdef HAVE_SPAWNV
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test pickletester.py,1.9,1.10 regrtest.py,1.60,1.61 test_binascii.py,1.10,1.11 test_cpickle.py,1.8,1.9 test_email.py,1.11,1.12 test_os.py,1.8,1.9 test_pickle.py,1.7,1.8 test_socket_ssl.py,1.3,1.4 test_zlib.py,1.15,1.16
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test test_fcntl.py,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]