Print this page
Bump Apache dependency to Apache 2

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/logadm/glob.c
          +++ new/usr/src/cmd/logadm/glob.c
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   * Use is subject to license terms.
  24   24   *
  25   25   * logadm/glob.c -- globbing routines
  26   26   *
  27   27   * these routines support two kinds of globs.  first, the
  28   28   * usual kind of filename globbing, like:
  29   29   *
  30   30   *      *.c
  31   31   *      /var/log/syslog.?
  32   32   *      log[0-9]*file
  33      - *      /var/apache/logs/x*{access,error}_log
       33 + *      /var/apache2/2.2/logs/x*{access,error}_log
  34   34   *
  35   35   * this is basically the same syntax that csh supports for globs and
  36   36   * is provided by the routine glob_glob() which takes a filename and
  37   37   * returns a list of filenames that match the glob.
  38   38   *
  39   39   * the second type is something called a "reglob" which is a pathname
  40   40   * where the components are regular expressions as described in regex(3c).
  41   41   * some examples:
  42   42   *
  43   43   *      .*\.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  55   55   * to reglobs, and then passing the work to glob_reglob().
  56   56   *
  57   57   * finally, since expanding globs and reglobs requires doing a stat(2)
  58   58   * on the files, we store the resulting stat information in the filename
  59   59   * struct (see fn_setstat() in fn.c).
  60   60   *
  61   61   * the glob(3c) routines are not used here since they don't support
  62   62   * braces, and don't support the more powerful reglobs required by logadm.
  63   63   */
  64   64  
  65      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  66      -
  67   65  #include <stdio.h>
  68   66  #include <libintl.h>
  69   67  #include <stdlib.h>
  70   68  #include <libgen.h>
  71   69  #include <strings.h>
  72   70  #include <sys/types.h>
  73   71  #include <sys/param.h>
  74   72  #include <sys/stat.h>
  75   73  #include <dirent.h>
  76   74  #include "err.h"
↓ open down ↓ 358 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX