[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.204,2.205

Martin v. L?wis loewis@users.sourceforge.net
2001年10月18日 15:05:38 -0700


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

AltStyle によって変換されたページ (->オリジナル) /