/contrib/tcsh/pathnames.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 169 lines · 107 code · 29 blank · 33 comment · 15 complexity · 19ec489cf48cd800822df26642a6b42f MD5 · raw file

  1. /* $Header: /p/tcsh/cvsroot/tcsh/pathnames.h,v 3.22 2011/02/05 20:34:55 christos Exp $ */
  2. /*
  3. * pathnames.h: Location of things to find
  4. */
  5. /*-
  6. * Copyright (c) 1980, 1991 The Regents of the University of California.
  7. * All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. Neither the name of the University nor the names of its contributors
  18. * may be used to endorse or promote products derived from this software
  19. * without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31. * SUCH DAMAGE.
  32. */
  33. #ifndef _h_pathnames
  34. #define _h_pathnames
  35. #ifdef HAVE_PATHS_H
  36. # include <paths.h>
  37. #endif
  38. #if defined(CMUCS) && !defined(_PATH_LOCAL)
  39. # define _PATH_LOCAL "/usr/cs/bin"
  40. #endif /* CMUCS && !_PATH_LOCAL */
  41. #if defined(convex) || defined(stellar) || defined(INTEL)
  42. # ifndef _PATH_DOTLOGIN
  43. # define _PATH_DOTLOGIN "/etc/login"
  44. # endif /* !_PATH_DOTLOGIN */
  45. # ifndef _PATH_DOTLOGOUT
  46. # define _PATH_DOTLOGOUT "/etc/logout"
  47. # endif /* !_PATH_DOTLOGOUT */
  48. # ifndef _PATH_DOTCSHRC
  49. # define _PATH_DOTCSHRC "/etc/cshrc"
  50. # endif /* !_PATH_DOTCSHRC */
  51. #endif /* convex || stellar || INTEL */
  52. #ifdef NeXT
  53. # ifndef _PATH_DOTLOGIN
  54. # define _PATH_DOTLOGIN "/etc/login.std"
  55. # endif /* !_PATH_DOTLOGIN */
  56. # ifndef _PATH_DOTLOGOUT
  57. # define _PATH_DOTLOGOUT "/etc/logout.std"
  58. # endif /* !_PATH_DOTLOGOUT */
  59. # ifndef _PATH_DOTCSHRC
  60. # define _PATH_DOTCSHRC "/etc/cshrc.std"
  61. # endif /* !_PATH_DOTCSHRC */
  62. #endif /* NeXT */
  63. /* for sunos5. */
  64. #if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4))
  65. # ifndef _PATH_DOTLOGIN
  66. # define _PATH_DOTLOGIN "/etc/.login"
  67. # endif /* !_PATH_DOTLOGIN */
  68. # ifndef _PATH_DOTLOGOUT
  69. # define _PATH_DOTLOGOUT "/etc/.logout"
  70. # endif /* !_PATH_DOTLOGOUT */
  71. # ifndef _PATH_DOTCSHRC
  72. # define _PATH_DOTCSHRC "/etc/.cshrc"
  73. # endif /* !_PATH_DOTCSHRC */
  74. #endif /* sun & SVR4 */
  75. #if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC)
  76. # ifndef _PATH_DOTLOGIN
  77. # define _PATH_DOTLOGIN "/etc/cshrc"
  78. # endif /* !_PATH_DOTLOGIN */
  79. #endif /* sgi || OREO || cray || AMIX || CDC */
  80. #if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL)
  81. # define _PATH_TCSHELL "/bin/tcsh" /* 1st class shell */
  82. #endif /* _CRAYCOM && !_PATH_TCSHELL */
  83. #if defined(_MINIX) && !defined(_PATH_TCSHELL)
  84. # define _PATH_TCSHELL "/local/bin/tcsh" /* use ram disk */
  85. #endif /* _MINIX && !_PATH_TCSHELL */
  86. #if defined(__linux__) && !defined(_PATH_TCSHELL)
  87. # define _PATH_TCSHELL "/bin/tcsh"
  88. #endif /* __linux__ && !_PATH_TCSHELL */
  89. #if defined(__EMX__) && !defined(_PATH_DEVNULL)
  90. # define _PATH_DEVNULL "nul"
  91. #endif /* __EMX__ && !_PATH_DEVNULL */
  92. #ifndef _PATH_LOCAL
  93. # define _PATH_LOCAL "/usr/local/bin"
  94. #endif /* !_PATH_LOCAL */
  95. #ifndef _PATH_USRBIN
  96. # define _PATH_USRBIN "/usr/bin"
  97. #endif /* !_PATH_USRBIN */
  98. #ifndef _PATH_USRUCB
  99. # define _PATH_USRUCB "/usr/ucb"
  100. #endif /* !_PATH_USRUCB */
  101. #ifndef _PATH_USRBSD
  102. # define _PATH_USRBSD "/usr/bsd"
  103. #endif /* !_PATH_USRBSD */
  104. #ifndef _PATH_BIN
  105. # define _PATH_BIN "/bin"
  106. #endif /* !_PATH_BIN */
  107. #ifndef _PATH_DOTCSHRC
  108. # define _PATH_DOTCSHRC "/etc/csh.cshrc"
  109. #endif /* !_PATH_DOTCSHRC */
  110. #ifndef _PATH_DOTLOGIN
  111. # define _PATH_DOTLOGIN "/etc/csh.login"
  112. #endif /* !_PATH_DOTLOGIN */
  113. #ifndef _PATH_DOTLOGOUT
  114. # define _PATH_DOTLOGOUT "/etc/csh.logout"
  115. #endif /* !_PATH_DOTLOGOUT */
  116. #ifndef _PATH_DEVNULL
  117. # define _PATH_DEVNULL "/dev/null"
  118. #endif /* !_PATH_DEVNULL */
  119. #ifndef _PATH_BSHELL
  120. # define _PATH_BSHELL "/bin/sh"
  121. #endif /* !_PATH_BSHELL */
  122. #ifndef _PATH_CSHELL
  123. # define _PATH_CSHELL "/bin/csh"
  124. #endif /* !_PATH_CSHELL */
  125. #ifndef _PATH_TCSHELL
  126. # define _PATH_TCSHELL "/usr/local/bin/tcsh"
  127. #endif /* !_PATH_TCSHELL */
  128. #ifndef _PATH_BIN_LOGIN
  129. # define _PATH_BIN_LOGIN "/bin/login"
  130. #endif /* !_PATH_BIN_LOGIN */
  131. #ifndef _PATH_USRBIN_LOGIN
  132. # define _PATH_USRBIN_LOGIN "/usr/bin/login"
  133. #endif /* !_PATH_USRBIN_LOGIN */
  134. #ifndef _PATH_BIN_NEWGRP
  135. # define _PATH_BIN_NEWGRP "/bin/newgrp"
  136. #endif /* _PATH_BIN_NEWGRP */
  137. #ifndef _PATH_USRBIN_NEWGRP
  138. # define _PATH_USRBIN_NEWGRP "/usr/bin/newgrp"
  139. #endif /* _PATH_USRBIN_NEWGRP */
  140. #endif /* _h_pathnames */