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


Zlibc

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

5.2.3.1 File selection Criteria

The criterion describes what parts of the filename should match:

filename
The entire filename of the target data file must match name.

basename
The basename (filename without directory) of the target data file must match name.

directory
The data file must live in the directory name. If the user program opens the file with an absolute pathname, that filename is used as is. If on the other hand the user program uses a relative pathname, zlibc uses the most direct path to the file (i.e. without symlinks).

subdirectory
The data file must live in the directory name or in one of its subdirectories. If the user program opens the file with an absolute pathname, that filename is used as is. If on the other hand the user program uses a relative pathname, zlibc uses the most direct path to the file (i.e. without symlinks).

suffix
The data file's name must end in name. This is useful for selecting files according to their extension.

filesystem
The data file must live on the same filesystem as name. This criterion can for example be used for example to disable zlibc on a doublespaced filesystem (where zlibc would be redundant), or to switch off uncompressed size reporting on an ftpfs filesystems (4).

default
All data files match. All class definitions must have a default line, and this default line must be the last line of the definition. The default criterion needs no 'name' parameter.

all
All data files match. Unlike default, this line needs not to be the last line of the class definitions. Thus it is possible to specify several all lines for different aspects of zlibc behaviour.

The lines of each class definition are scanned in sequence, and, for each aspect(5), the first matching line is adopted. The class may be defined in another initialisation file, if this file is scanned later. The criterion parameter may be omitted if it can be deduced from the name. In that case, the following heuristics are used:

filesystem criteria, because these tend to be more predictable.


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

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