home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / slackwar / a / util / util-lin.10 / util-lin / util-linux-1.10 / pathnames.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-22  |  2.7 KB  |  95 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.  * Revised: Wed Jun 22 22:50:13 1994 by faith@cs.unc.edu
  23.  */
  24.  
  25. #ifndef __STDC__
  26. # error "we need an ANSI compiler"
  27. #endif
  28.  
  29. /* The paths for some of these are wrong in /usr/include/paths.h, but we
  30.    re-define them here. */
  31.  
  32. #ifdef _PATH_UTMP
  33. #undef _PATH_UTMP
  34. #endif
  35. #ifdef _PATH_WTMP
  36. #undef _PATH_WTMP
  37. #endif
  38. #ifdef _PATH_DEFPATH
  39. #undef _PATH_DEFPATH
  40. #endif
  41. #ifdef _PATH_DEFPATH_ROOT
  42. #undef _PATH_DEFPATH_ROOT
  43. #endif
  44. #ifdef _PATH_LASTLOG
  45. #undef _PATH_LASTLOG
  46. #endif
  47. #ifdef _PATH_MAILDIR
  48. #undef _PATH_MAILDIR
  49. #endif
  50.  
  51. #ifndef SBINDIR
  52. #define SBINDIR            "/etc"
  53. #endif
  54.  
  55. #ifndef USRSBINDIR
  56. #define USRSBINDIR              "/etc"
  57. #endif
  58.  
  59. #ifndef LOGDIR
  60. #define LOGDIR                  "/etc"
  61. #endif
  62.  
  63. #ifndef VARPATH
  64. #define VARPATH            "/usr"
  65. #endif
  66.  
  67. #define _PATH_BSHELL        "/bin/sh"
  68. #define _PATH_CSHELL        "/bin/csh"
  69. #define UT_NAMESIZE         8
  70. #define _PATH_TTY           "/dev/tty"
  71. #define TTYTYPES            "/etc/ttytype"
  72. #define SECURETTY           "/etc/securetty"
  73. #define _PATH_UTMP          LOGDIR "/utmp"
  74. #define _PATH_WTMP          LOGDIR "/wtmp"
  75.  
  76. #define    _PATH_DEFPATH            "/usr/local/bin:/bin:/usr/bin:."
  77. #define    _PATH_DEFPATH_ROOT    SBINDIR ":/bin:" USRSBINDIR ":/usr/bin"
  78. #define    _PATH_HUSHLOGIN        ".hushlogin"
  79. #define    _PATH_LASTLOG        LOGDIR "/lastlog"
  80. #define    _PATH_MAILDIR        VARPATH "/spool/mail"
  81. #define    _PATH_MOTDFILE        "/etc/motd"
  82. #define    _PATH_NOLOGIN        "/etc/nologin"
  83.  
  84. #define _PATH_LOGIN        "/bin/login"
  85. #define _PATH_INITTAB        "/etc/inittab"
  86. #define _PATH_RC        "/etc/rc"
  87. #define _PATH_REBOOT        SBINDIR "/reboot"
  88. #define _PATH_SINGLE        "/etc/singleboot"
  89. #define _PATH_SECURE        "/etc/securesingle"
  90. #define _PATH_USERTTY   "/etc/usertty"
  91.  
  92. #define _PATH_MTAB        "/etc/mtab"
  93. #define _PATH_UMOUNT        "/bin/umount"
  94. #define UMOUNT_ARGS        "umount", "-a"
  95.