home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUMAN.ZIP / config.h < prev    next >
C/C++ Source or Header  |  1992-10-12  |  3KB  |  120 lines

  1. /*
  2.  * config.h
  3.  *
  4.  * Edit this file to match your site.
  5.  *
  6.  * Copyright (c) 1991, John W. Eaton.
  7.  *
  8.  * You may distribute under the terms of the GNU General Public
  9.  * License as specified in the README file that comes with the man 1.0
  10.  * distribution.
  11.  *
  12.  * John W. Eaton
  13.  * jwe@che.utexas.edu
  14.  * Department of Chemical Engineering
  15.  * The University of Texas at Austin
  16.  * Austin, Texas  78712
  17.  */
  18.  
  19. #ifndef BUFSIZ
  20. #define BUFSIZ 5120
  21. #endif
  22.  
  23. #ifndef MAXPATHLEN
  24. #define MAXPATHLEN 254
  25. #endif
  26.  
  27. #ifndef MAXDIRS
  28. #define MAXDIRS 64
  29. #endif
  30.  
  31. /*
  32.  * These are the programs man(1) execs with the -k and -f options.
  33.  */
  34.  
  35. #define APROPOS "apropos"
  36. #define WHATIS  "whatis"
  37.  
  38. /*
  39.  * This might also be "/usr/ucb/more -s", though I prefer less(1)
  40.  * because it allows one to backup even when reading from pipes.
  41.  */
  42.  
  43. #define PAGER   "less"
  44.  
  45. static char config_file[] = "manpath.cfg";
  46.  
  47. /*
  48.  * These might also be something like
  49.  *
  50.  *  nroff_command[] = "groff -man"
  51.  *  troff_command[] = "groff -Tps -man"
  52.  */
  53.  
  54. static char nroff_command[] = "groff -man";
  55.  
  56. #ifdef HAS_TROFF
  57. static char troff_command[] = "groff -Tps -man";
  58. #endif
  59.  
  60. /*
  61.  * Define the valid manual sections.  For example, if your man
  62.  * directory tree has subdirectories man1, man2, man3, mann,
  63.  * and man3foo, valid_sections[] would have "1", "2", "3", "n", and
  64.  * "3foo".  Directories are searched in the order they appear.  Having
  65.  * extras isn't fatal, it just slows things down a bit.
  66.  *
  67.  * Note that this is just for directories to search.  If you have
  68.  * files like .../man3/foobar.3Xtc, you don't need to have "3Xtc" in
  69.  * the list below -- this is handled separately, so that `man 3Xtc foobar',
  70.  * `man 3 foobar', and `man foobar' should find the file .../man3/foo.3Xtc,
  71.  * (assuming, of course, that there isn't a .../man1/foo.1 or somesuch
  72.  * that we would find first).
  73.  *
  74.  * Note that this list should be in the order that you want the
  75.  * directories to be searched.  Is there a standard for this?  What is
  76.  * the normal order?  If anyone knows, please tell me!
  77.  */
  78.  
  79. static char *valid_sections[] =
  80. {
  81.   "1",  "2",  "3",  "4",  "5",  "6",  "7",  "8",  NULL
  82. };
  83.  
  84. /*
  85.  * Not all systems define these in stat.h.
  86.  */
  87.  
  88. #ifndef S_IRUSR
  89. #define    S_IRUSR    00400        /*  read permission: owner */
  90. #endif
  91. #ifndef S_IWUSR
  92. #define    S_IWUSR    00200        /*  write permission: owner */
  93. #endif
  94. #ifndef S_IRGRP
  95. #define    S_IRGRP    00040        /*  read permission: group */
  96. #endif
  97. #ifndef S_IWGRP
  98. #define    S_IWGRP    00020        /*  write permission: group */
  99. #endif
  100. #ifndef S_IROTH
  101. #define    S_IROTH    00004        /*  read permission: other */
  102. #endif
  103. #ifndef S_IWOTH
  104. #define    S_IWOTH    00002        /*  write permission: other */
  105. #endif
  106.  
  107. /*
  108.  * This is the mode used for formatted pages that we create.
  109.  */
  110.  
  111. #ifndef CATMODE
  112. #define CATMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
  113. #endif
  114.  
  115. #ifdef SUPPORT_CAT_DIRS
  116. static int cat_support = 1;
  117. #else
  118. static int cat_support = 0;
  119. #endif
  120.