diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-03-03 10:24:44 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-03-03 10:27:57 -0800 |
commit | 755c41dc4bcde575ae654065921206ab4efec962 (patch) | |
tree | ae3799ffcd9a6ed0d0206d7dae912ad5fb59fd15 /zlib.h | |
parent | 53bfe01cea647ef6f6b86edbc51d0fad4640e4a6 (diff) | |
download | zlib-755c41dc4bcde575ae654065921206ab4efec962.tar.gz zlib-755c41dc4bcde575ae654065921206ab4efec962.tar.bz2 zlib-755c41dc4bcde575ae654065921206ab4efec962.zip |
Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen().
Diffstat (limited to '')
-rw-r--r-- | zlib.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1217,7 +1217,10 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode)); | |||
1217 | 1217 | ||
1218 | "a" can be used instead of "w" to request that the gzip stream that will | 1218 | "a" can be used instead of "w" to request that the gzip stream that will |
1219 | be written be appended to the file. "+" will result in an error, since | 1219 | be written be appended to the file. "+" will result in an error, since |
1220 | reading and writing to the same gzip file is not supported. | 1220 | reading and writing to the same gzip file is not supported. The addition of |
1221 | "x" when writing will create the file exclusively, which fails if the file | ||
1222 | already exists. On systems that support it, the addition of "e" when | ||
1223 | reading or writing will set the flag to close the file on an execve() call. | ||
1221 | 1224 | ||
1222 | These functions, as well as gzip, will read and decode a sequence of gzip | 1225 | These functions, as well as gzip, will read and decode a sequence of gzip |
1223 | streams in a file. The append function of gzopen() can be used to create | 1226 | streams in a file. The append function of gzopen() can be used to create |