diff options
author | Guido van Rossum <guido@python.org> | 1997-08-08 21:48:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-08 21:48:51 (GMT) |
commit | 98d9d09090f335a64ccf76ad4c640dfac471d11a (patch) | |
tree | a0898eacafc035db80384277dc1bed2c577cc78b /Modules/posixmodule.c | |
parent | 9c43c590bcd6107c91c0f9afc2ee4d73307dda30 (diff) | |
download | cpython-98d9d09090f335a64ccf76ad4c640dfac471d11a.zip cpython-98d9d09090f335a64ccf76ad4c640dfac471d11a.tar.gz cpython-98d9d09090f335a64ccf76ad4c640dfac471d11a.tar.bz2 |
Added O_BINARY and O_TEXT (for Windows).
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 89f34eb..c19f394 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -2212,6 +2212,12 @@ all_ins(d) #ifdef O_TRUNC if (ins(d, "O_TRUNC", (long)O_TRUNC)) return -1; #endif +#ifdef O_BINARY + if (ins(d, "O_BINARY", (long)O_BINARY)) return -1; +#endif +#ifdef O_TEXT + if (ins(d, "O_TEXT", (long)O_TEXT)) return -1; +#endif return 0; } |