diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 22:05:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 22:05:36 (GMT) |
commit | 4fe3c273233ced82cb7443f0ec4caea5a8836df1 (patch) | |
tree | ac4310de1416f50ad8701092938e1441f459e1f0 | |
parent | e0c446bb4ad67294f42d4cb53b4ff28413bd8dde (diff) | |
download | cpython-4fe3c273233ced82cb7443f0ec4caea5a8836df1.zip cpython-4fe3c273233ced82cb7443f0ec4caea5a8836df1.tar.gz cpython-4fe3c273233ced82cb7443f0ec4caea5a8836df1.tar.bz2 |
Expose O_LARGEFILE, O_DIRECT, O_DIRECTORY, and O_NOFOLLOW.
-rw-r--r-- | Modules/posixmodule.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index d7d7c3f..22f70b1 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5870,6 +5870,23 @@ all_ins(PyObject *d) #ifdef O_TEXT 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 if (ins(d, "P_WAIT", (long)_P_WAIT)) return -1; |