home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / slackwar / a / util / util-lin.2 / util-lin / util-linux-2.2 / bsd / pathnames.h < prev   
Encoding:
C/C++ Source or Header  |  1995-02-22  |  2.9 KB  |  91 lines

  1. /*
  2.  * Copyright (c) 1989 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Berkeley.  The name of the
  11.  * University may not be used to endorse or promote products derived
  12.  * from this software without specific prior written permission.
  13.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16.  *
  17.  *    @(#)pathnames.h    5.3 (Berkeley) 5/9/89
  18.  *
  19.  * Changed: Sun Nov 21 12:30:54 1993 by faith@cs.unc.edu
  20.  * Changed: Wed Jun 22 20:47:27 1994 by faith@cs.unc.edu, based on changes
  21.  *                                   from poe@daimi.aau.dk
  22.  * Changed: Wed Jun 22 22:50:13 1994 by faith@cs.unc.edu
  23.  * Changed: Sat Feb  4 16:02:10 1995 by faith@cs.unc.edu
  24.  */
  25.  
  26. #ifndef __STDC__
  27. # error "we need an ANSI compiler"
  28. #endif
  29.  
  30. /* The paths for some of these are wrong in /usr/include/paths.h, but we
  31.    re-define them here. */
  32.  
  33. #undef _PATH_UTMP
  34. #undef _PATH_WTMP
  35. #undef _PATH_DEFPATH
  36. #undef _PATH_DEFPATH_ROOT
  37. #undef _PATH_LASTLOG
  38. #undef _PATH_MAILDIR
  39.  
  40. #ifndef SBINDIR
  41. #define SBINDIR            "/etc"
  42. #endif
  43.  
  44. #ifndef USRSBINDIR
  45. #define USRSBINDIR              "/etc"
  46. #endif
  47.  
  48. #ifndef LOGDIR
  49. #define LOGDIR                  "/etc"
  50. #endif
  51.  
  52. #ifndef VARPATH
  53. #define VARPATH            "/usr"
  54. #endif
  55.  
  56. #define _PATH_BSHELL        "/bin/sh"
  57. #define _PATH_CSHELL        "/bin/csh"
  58. #define UT_NAMESIZE         8
  59. #define _PATH_TTY           "/dev/tty"
  60. #define TTYTYPES            "/etc/ttytype"
  61. #define SECURETTY           "/etc/securetty"
  62. #define _PATH_UTMP          LOGDIR "/utmp"
  63. #define _PATH_WTMP          LOGDIR "/wtmp"
  64.  
  65. #define    _PATH_DEFPATH            "/usr/local/bin:/bin:/usr/bin:."
  66. #define    _PATH_DEFPATH_ROOT    SBINDIR ":/bin:" USRSBINDIR ":/usr/bin"
  67. #define    _PATH_HUSHLOGIN        ".hushlogin"
  68. #define    _PATH_LASTLOG        LOGDIR "/lastlog"
  69. #define    _PATH_MAILDIR        VARPATH "/spool/mail"
  70. #define    _PATH_MOTDFILE        "/etc/motd"
  71. #define    _PATH_NOLOGIN        "/etc/nologin"
  72.  
  73. #define _PATH_LOGIN        "/bin/login"
  74. #define _PATH_INITTAB        "/etc/inittab"
  75. #define _PATH_RC        "/etc/rc"
  76. #define _PATH_REBOOT        SBINDIR "/reboot"
  77. #define _PATH_SINGLE        "/etc/singleboot"
  78. #define _PATH_SECURE        "/etc/securesingle"
  79. #define _PATH_USERTTY           "/etc/usertty"
  80.  
  81. #define _PATH_MTAB        "/etc/mtab"
  82. #define _PATH_UMOUNT        "/bin/umount"
  83. #define UMOUNT_ARGS        "umount", "-a"
  84.  
  85. #define _PATH_PASSWD            "/etc/passwd"
  86. #define _PATH_PTMP              "/etc/ptmp"
  87. #define _PATH_PTMPTMP           "/etc/ptmptmp"
  88.  
  89. #define _PATH_WORDS             "/usr/dict/words"
  90. #define _PATH_WORDS_ALT         "/usr/dict/web2"
  91.