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


Zlibc

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

5.2.3 Class section

A command class(3) definition describes those aspects of zlibc's behavior that depend on the name of the datafile which is being accessed. Command classes are identified by a name which is matched against the class parameter from the commands. The class name should be enclosed between quotes both in the commands line and in the class definition.

The class section contains descriptions of different command classes (i.e descriptions how datafiles should be uncompressed). Each class definition begins with a line of the following format:

 
class "id"

The class id is the same string as the one used in the commands line. The remaining lines of a class definition are as follows:
 
[ [ criterion ] [ "name" ]] mode

The following example shows the definition of the class used for X-servers.

 
# X uses tmp files in its own directories.
class "X"
subdir "/usr/X11R6" usetmpfile
subdir "/usr/X386" usetmpfile
subdir "/usr/lib/X11" usetmpfile
showpipe

This says that all compressed files who are in a subdirectory below `/usr/X11R6', `/usr/X386' or `/usr/lib/X11' are decompressed using temporary files (usetmpfile), and that files from other directories are decompressed using pipes (showpipe)

The following examples illustrates a command class, named nopipe, which always uses temporary files for decompression
 
# generic class which uses temp files for all files.
class "nopipe"
usetmpfile

5.2.3.1 File selection Criteria  To which data files does this line apply
5.2.3.2 Mode  How zlibc behaves for the files matching the criterion


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