www.delorie.com/gnu/docs/zlibc/zlibc_23.html   search  
Buy GNU books!


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Reaction to a file creation request

The reaction to a create request may be one of the following:

When a user program tries to create a new file whose name matches the pattern, zlibc translates this request into creating a compressed file. A file is considered to be created, if the O_TRUNC flag is set, or if both O_CREAT and O_EXCL are set. This only applies to files opened write-only.


This is only reliable if you can guarantee that the newly created file is not accessed by some other program while the first one has it still open, or that it won't be opened again (even by the same program) shortly after it has been closed.


This should not be used if you expect the program to seek in this file.

Newly created files are created uncompressed. This is the default.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003