home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / TCSH / RTR / TCSH. next >
Encoding:
Text File  |  1998-07-24  |  5.7 KB  |  218 lines

  1. *** tc.func.c.orig    Fri May 15 20:00:49 1992
  2. --- tc.func.c    Sat Nov 28 12:52:50 1992
  3. ***************
  4. *** 38,43 ****
  5. --- 38,44 ----
  6.   
  7.   RCSID("$Id: tc.func.c,v 3.29 1992/04/10 16:38:09 christos Exp $")
  8.   
  9. + #define NO_CRYPT
  10.   #include "ed.h"
  11.   #include "ed.defns.h"        /* for the function names */
  12.   #include "tw.h"
  13. *** pathnames.h.orig    Sun Nov 29 14:43:17 1992
  14. --- pathnames.h    Sun Nov 29 14:45:59 1992
  15. ***************
  16. *** 88,94 ****
  17.   #endif /* __EMX__ && !_PATH_DEVNULL */
  18.   
  19.   #ifndef _PATH_LOCAL
  20. ! # define _PATH_LOCAL        "/usr/local/bin"
  21.   #endif /* !_PATH_LOCAL */
  22.   
  23.   #ifndef _PATH_USRBIN
  24. --- 88,94 ----
  25.   #endif /* __EMX__ && !_PATH_DEVNULL */
  26.   
  27.   #ifndef _PATH_LOCAL
  28. ! # define _PATH_LOCAL        "<installdir>/bin"
  29.   #endif /* !_PATH_LOCAL */
  30.   
  31.   #ifndef _PATH_USRBIN
  32. ***************
  33. *** 132,138 ****
  34.   #endif /* !_PATH_CSHELL */
  35.   
  36.   #ifndef _PATH_TCSHELL
  37. ! #  define _PATH_TCSHELL        "/usr/local/bin/tcsh"
  38.   #endif /* !_PATH_TCSHELL */
  39.   
  40.   #ifndef _PATH_LOGIN
  41. --- 132,138 ----
  42.   #endif /* !_PATH_CSHELL */
  43.   
  44.   #ifndef _PATH_TCSHELL
  45. ! #  define _PATH_TCSHELL        "<installdir>/bin/tcsh"
  46.   #endif /* !_PATH_TCSHELL */
  47.   
  48.   #ifndef _PATH_LOGIN
  49. --- config/config.alpha.orig    Mon Feb  3 12:36:54 1997
  50. +++ config/config.alpha    Mon Feb  3 12:50:47 1997
  51. @@ -0,0 +1,137 @@
  52. +/*
  53. + * config.h -- configure various defines for tcsh
  54. + *
  55. + * All source files should #include this FIRST.
  56. + *
  57. + * This is the config file for Linux systems
  58. + */
  59. +
  60. +/****************** System dependant compilation flags ****************/
  61. +/*
  62. + * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  63. + */
  64. +#define POSIX
  65. +
  66. +/*
  67. + * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  68. + *        job control facilities.
  69. + */
  70. +#define POSIXJOBS
  71. +
  72. +/*
  73. + * POSIXSIGS    Use the POSIX signal facilities to emulate BSD signals.
  74. + */
  75. +#undef POSIXSIGS
  76. +
  77. +/*
  78. + * VFORK    This machine has a vfork().  
  79. + *        It used to be that for job control to work, this define
  80. + *        was mandatory. This is not the case any more.
  81. + *        If you think you still need it, but you don't have vfork, 
  82. + *        define this anyway and then do #define vfork fork.  
  83. + *        I do this anyway on a Sun because of yellow pages brain damage,
  84. + *        [should not be needed under 4.1]
  85. + *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  86. + *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  87. + *        Note that some machines eg. rs6000 have a vfork, but not
  88. + *        with the berkeley semantics, so we cannot use it there either.
  89. + */
  90. +#define VFORK
  91. +
  92. +/*
  93. + * BSDJOBS    You have BSD-style job control (both process groups and
  94. + *        a tty that deals correctly
  95. + */
  96. +#define BSDJOBS
  97. +
  98. +/*
  99. + * BSDSIGS    You have 4.2-style signals, rather than USG style.
  100. + *        Note: POSIX systems should not define this unless they
  101. + *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  102. + */
  103. +#define BSDSIGS
  104. +
  105. +/*
  106. + * BSDTIMES    You have BSD-style process time stuff (like rusage)
  107. + *        This may or may not be true.  For example, Apple Unix
  108. + *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  109. + */
  110. +#undef BSDTIMES
  111. +
  112. +/*
  113. + * BSDLIMIT    You have BSD-style resource limit stuff (getrlimit/setrlimit)
  114. + */
  115. +#define BSDLIMIT
  116. +
  117. +/*
  118. + * BSDNICE    Your system uses setpriority() instead of nice, to
  119. + *        change a processes scheduling priority
  120. + */
  121. +#define BSDNICE
  122. +
  123. +/*
  124. + * TERMIO    You have struct termio instead of struct sgttyb.
  125. + *         This is usually the case for SVID systems, where
  126. + *        BSD uses sgttyb. POSIX systems should define this
  127. + *        anyway, even though they use struct termios.
  128. + */
  129. +#define TERMIO
  130. +
  131. +/*
  132. + * SYSVREL    Your machine is SYSV based (HPUX, A/UX)
  133. + *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  134. + *        built in a BSD universe.
  135. + *        Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
  136. + *        you are running. Or set it to 0 if you are not SYSV based
  137. + *
  138. + *        Note: Linux should work with any SYSVREL < 3.
  139. + */
  140. +#define SYSVREL    0
  141. +
  142. +/*
  143. + * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  144. + *        to send command output to /dev/null
  145. + */
  146. +#undef YPBUGS
  147. +
  148. +/*
  149. + * SIGVOID    Define this if your signal handlers return void.  On older
  150. + *        systems, signal returns int, but on newer ones, it returns void.
  151. + */
  152. +#define SIGVOID 
  153. +
  154. +/*
  155. + * HAVEDUP2    Define this if your system supports dup2().
  156. + */
  157. +#define HAVEDUP2
  158. +
  159. +/*
  160. + * UTHOST    Does the utmp file have a host field?
  161. + */
  162. +#undef UTHOST
  163. +
  164. +/*
  165. + * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  166. + */
  167. +#define DIRENT
  168. +/****************** local defines *********************/
  169. +
  170. +/* Since people like shared libs so much, we'll make this a default. :-) */
  171. +#define _PATH_TCSHELL "/bin/tcsh"
  172. +#define ECHO_STYLE      BOTH_ECHO
  173. +#ifdef BSDSIGS
  174. +# define __USE_BSD_SIGNAL
  175. +#endif
  176. +
  177. +/****************** configurable hacks ****************/
  178. +/* have been moved to config_f.h */
  179. +#include "config_f.h"
  180. +
  181. +/* GNU libc 1.03 has a dummy implementation of setlocale() that
  182. +   does more harm than good. Hopefully we can remove this #undef
  183. +   in the future. Meanwhile, the builtin ISO8859-1 support should
  184. +   satisfy most people.
  185. + */
  186. +#undef NLS
  187. +
  188. +#define ALPHAOSF
  189. --- Makefile.orig    Fri Nov 20 04:04:36 1992
  190. +++ Makefile    Tue Mar 25 14:53:45 1997
  191. @@ -49,7 +49,7 @@
  192.  #CFLAGS=-O $(INCLUDES)
  193.  
  194.  # gcc-2.1
  195. -CFLAGS=-O2 $(INCLUDES)
  196. +#CFLAGS=-O2 $(INCLUDES)
  197.  
  198.  # gcc 2.1 on linux
  199.  #CFLAGS=-O6 -fomit-frame-pointer $(INCLUDES)
  200. @@ -164,7 +164,7 @@
  201.  
  202.  # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
  203.  # on the suns does not know how to make dynamically linked binaries.
  204. -CC=    gcc -Wall -B/bin/    
  205. +CC=    gcc -Wall 
  206.  #CC=    gcc -m486 -Wall # Generate code for Intel 486 (linux)
  207.  #CC=    cc
  208.  #CC=    occ
  209. @@ -184,7 +184,7 @@
  210.  PARALLEL=12                # Make the multi-max run fast.
  211.  #P=&                    # Use Sequent's parallel make
  212.  P=
  213. -DESTDIR=/usr/local
  214. +DESTDIR=<installdir>
  215.  MANSECT=1
  216.  DESTBIN=${DESTDIR}/bin
  217.  DESTMAN=${DESTDIR}/man/man${MANSECT}
  218.