Go to the first, previous, next, last section, table of contents.


Mode

The mode describes the behavior of zlibc in certain situations. These are:

  1. What to do when a file is accessed in readonly mode.
  2. What to do when a user program tries to append data to an existing file.
  3. What to do when a user program tries to create a new file.
  4. What to do when a user program tries to access an existing file and none of the preceding situations apply (see section Other write requests).
  5. Whether to show the size of the uncompressed file or the size of the compressed file as a response to stat (see section Size shown for compressed files).

The mode for each off these 5 situations has to be described separately. For each of these 5 situations, the scan through the class description is done until the reaction of zlibc for this situation is defined.


Go to the first, previous, next, last section, table of contents.