diff -urN tcsh-6.12.00/Makefile.beos tcsh-6.12.00.beos/Makefile.beos --- tcsh-6.12.00/Makefile.beos Thu Jan 1 09:00:00 1970 +++ tcsh-6.12.00.beos/Makefile.beos Sun Mar 23 15:55:18 2003 @@ -0,0 +1,628 @@ +# $Id: Makefile.std,v 1.95 2002/07/23 16:13:21 christos Exp $ +# Makefile.std 4.3 6/11/83 +# +# C Shell with process control; VM/UNIX VAX Makefile +# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria +# +# With an input editor, command completion, etc. and ported to all sorts of +# things; Paul Placeway, CIS Dept., Ohio State University +# +SHELL=/bin/sh +VERSION=6.12 +BUILD=tcsh +srcdir=. + +################################################################ +## CFLAGS. For various -D things, see config.h +################################################################ +# +# These are the default suffixes from .c to .o and -c to get there +# but to use the global optimizer on the mips boxes, see below +# +SUF=o +CF=-c + +INCLUDES=-I. -I$(srcdir) + +LFLAGS=$(INCLUDES) +#LFLAGS=$(INCLUDES) -Zn10000 # hpux lint + + +#CFLAGS= $(INCLUDES) -g # debug +#CFLAGS= $(INCLUDES) -O # production +#CFLAGS= $(INCLUDES) # Broken optimizers.... + +#CFLAGS= -g -pg $(INCLUDES) -DPROF +#CFLAGS= -O -pg $(INCLUDES) -DPROF + +# gcc 1.00-1.37 +#CFLAGS=-O $(INCLUDES) -finline-functions -fstrength-reduce + +# gcc 1.37-1.40 +#CFLAGS=-O $(INCLUDES) -fcombine-regs -finline-functions -fstrength-reduce +# add -msoft-float for 68881 machines. + +# gcc 2.0 +# On the sparc, don't use -O2; it breaks setjmp() and vfork() +#CFLAGS=-O $(INCLUDES) + +# gcc-2.1+ +CFLAGS=-O2 $(INCLUDES) + +# lucid c on suns +#CFLAGS=-O5 $(INCLUDES) + +# gcc 2.1 on linux +#CFLAGS=-O6 -fomit-frame-pointer $(INCLUDES) + +# HP/UX 8.0, 9.0 +#CFLAGS= $(INCLUDES) +O3 -Aa + +# Ultrix 4.2a +#CFLAGS= $(INCLUDES) -O -Olimit 2000 + +# Intel Paragon OSF/1 with PGI compilers +#CFLAGS=-O -Mnodebug -Mnoperfmon $(INCLUDES) + +# DEC Alpha OSF/1 +#CFLAGS= -O2 $(INCLUDES) -Olimit 2000 ## Normal Optimization +#CFLAGS= -O3 $(INCLUDES) -Olimit 2000 ## Full Optimization - may not work +#CF=-j +#SUF=u +#.SUFFIXES: .u + +# for silicon graphics (and other mips compilers) -- use the +# global optimizer! (-O3). +# On SGI 4.0+ you need to add -D__STDC__ too. +#CFLAGS= -O3 $(INCLUDES) +#CFLAGS= -O3 $(INCLUDES) -Olimit 2000 ## Ultrix 4.2a +#CF=-j +#SUF=u +#.SUFFIXES: .u ## Ultrix and gnu-make need that + +# mips systems +# CFLAGS= $(INCLUDES) -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000 + +# for at&t machines +#CFLAGS= -O -Ksd $(INCLUDES) + +# Stardent Titan +#CFLAGS = $(INCLUDES) -O -43 + +# Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc +#CFLAGS = $(INCLUDES) -O4 + +# Intergraph clipper CLIX 3.1 +#CFLAGS= -w -O2 $(INCLUDES) + +# Dnix 5.3 +#CFLAGS = -O -X7 + +# Pyramid OS/x +#CFLAGS = -OG + +# Multiflow (5M binary... if you choose -O5!) +#CFLAGS = -O5 -sb_trace 0 + +# DDE Supermax Unix SYSV Rel III. +# CFLAGS= -O3 + +# SINIX RMx00 +#CFLAGS= -O # -D_POSIX_SOURCE # -kansi + +# Minix-VMD +# CFLAGS= -O -D_ANSI_H -I /usr/include/bsdcompat $(INCLUDES) + +# Apollo's with cc [apollo builtins don't work with gcc] +# and apollo should not define __STDC__ if it does not have +# the standard header files. RT's (aos4.3) need that too; +# you might want to skip the -O on the rt's... Not very wise. +# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA) +#DFLAGS=-U__STDC__ +#DFLAGS=-D_IBMESA +# On aix2.2.1 we need more compiler space. +#DFLAGS=-Nd4000 -Nn3000 +# AU/X 2.0 needs a flag for POSIX (read the config file) +#DFLAGS=-Zp +# Tektronix 4300 running UTek 4.0 (BSD 4.2) needs: +#DFLAGS = -DUTek -DBSD +# VMS_POSIX needs: +#DFLAGS=-D_VMS_POSIX +# Multiflow and PCC compilers don't like void typedefs. +# You may also need -U__STDC__ if you use pcc (i.e. ibmrt aos4.3). +#DFLAGS=-DMULTIFLOW +#DFLAGS=-DPCC +# DELL SVR4 +#DFLAGS=-DDELL +# SCO_SV +#DFLAGS=-D_SPEED_T -DSCO +DFLAGS= +#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"' +CFLAGS= -O2 -I/boot/home/config/include ##BeOS + +################################################################ +## LDFLAGS. Define something here if you need to +################################################################ +LDFLAGS= ## The simplest, suitable for all. +#LDFLAGS= -s ## Stripped. Takes less space on disk. +#LDFLAGS= -s -n ## Pure executable. Spares paging over +# ## the network for machines with local +# ## swap but external /usr/local/bin . +#LDFLAGS= -s -n -Bstatic ## Without dynamic linking. (SunOS/cc) +#LDFLAGS= -s -n -static ## Without dynamic linking. (SunOS/gcc) +#LDFLAGS= -Wl,-s,-n ## Stripped, shared text (Unicos) +#LDFLAGS= -s -static ## Link statically. (linux) +#LDFLAGS= -s -N ## Impure executable (linux) +#LDFLAGS= -Bdynamic -dy ## SCO_SV +LDFLAGS= -L/boot/home/config/lib +################################################################ +## LIBES. Pick one, or roll your own. +################################################################ +LIBES= -ltermcap ## BSD style things +#LIBES= -ltermcap ## SunOS, HP-UX, pyramid +#LIBES= -ltermcap ## Linux +#LIBES= -ltermcap -lshadow ## Linux with PW_SHADOW +#LIBES= -ltermcap -lsec ## Tek XD88/10 (UTekV) with PW_SHADOW +#LIBES= -ltermcap -lsec ## Motorola MPC (sysV88) with PW_SHADOW +#LIBES= -ltermcap -lcs ## Mach +#LIBES= -ltermcap -lbsd ## DEC osf1 on the alpha +#LIBES= -ltermcap -lbsd ## Intel paragon +#LIBES= -ltermcap -lbsd ## Clipper intergraph +#LIBES= -ltermcap -lseq ## Sequent's Dynix +#LIBES= -ltermcap -lauth ## Ultrix with Enhanced Security +#LIBES= -ltermcap -ldir -lx ## Xenix 386 style things +#LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0 +#LIBES= -lcurses ## AIX on the rt +#LIBES= -lcurses ## TitanOS on the stellar +#LIBES= -ltermlib -lsocket -lnsl ## SysV4 w/o BSDTIMES or Solaris 2 +#LIBES= -lcurses ## SysV3 w/o networking +#LIBES= -lcurses -lnet ## SysV3 with networking +#LIBES= -lcurses -ldir ## SysV2 w/o networking & dirlib +#LIBES= -lcurses -ldir -lnet ## SysV2 with networking & dirlib +#LIBES= -lcurses -lbsd ## AIX on the IBM 370 or rs6000 or ps2 +#LIBES= -lcurses -lbsd ## ETA10 +#LIBES= -lcurses -lbsd ## Irix3.1 on the SGI-IRIS4D +#LIBES= -lcurses -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D w/o yp +#LIBES= -lcurses -lsun -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D with yp +#LIBES= -lcurses -lsocket -lbsd ## Amdahl UTS 2.1 +#LIBES= -lcurses -lsocket ## Intel's hypercube. +#LIBES= -lcurses -lsocket ## ns32000 based Opus. +#LIBES= -lcurses -lcposix ## ISC 2.2 without networking +#LIBES= -lcposix -lc_s -lcurses -linet ## ISC 2.2 with networking +#LIBES= -lcurses -lsec -lc_s ## ISC 2.0.2 without networking +#LIBES= -lcurses -linet -lsec -lc_s ## ISC 2.0.2 with networking +#LIBES= -lcurses -lintl -lcrypt ## SCO SysVR3.2v2.0 +#LIBES= -lcurses -lintl -lsocket -lcrypt ## SCO+ODT1.1 +#LIBES= -lcurses -lsocket -lcrypt ## SCO_SV +#LIBES= -lposix -ltermcap ## A/UX 2.0 +#LIBES= -lposix -ltermcap -lc_s ## A/UX 3.0 +#LIBES= -ldirent -lcurses ## att3b1 cc w/o shared lib & dirlib +#LIBES= -shlib -ldirent -lcurses ## att3b1 gcc with shared lib & dirlib +#LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a ## SysV4 with BSDTIMES +#LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra +#LIBES= -ltermc ## emx under OS/2 +#LIBES= ## Minix, VMS_POSIX +#LIBES= -ltermcap -lcrypt ## Multiflow +#LIBES= -ltermcap -lcrypt ## NetBSD +#LIBES= -lcurses ## DDE Supermax +LIBES= -ltermcap -lnls ##BeOS +################################################################ +## EXTRAFLAGS and EXTRALIBS +################################################################ +# Compiling for HESIOD +#HESDEF = -DHESIOD -I/usr/athena/include +#HESLIB = -L/usr/athena/lib -lhesiod +# +# Compiling for AFS with kerberos authentication +#AFSLIBDIR = /usr/afsws/lib +#AFSDEF = -DAFS -I/usr/afsws/include +#AFS33LIB = -laudit +# +#Solaris and HPUX require the BSD libraries with AFS. +#We use -lc to use only what we require. +#AFSAUXLIB = -lsocket -lnsl -lc -lucb # Solaris +#AFSAUXLIB = -lc -lBSD # HPUX +# +#AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\ +# -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\ +# $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB) +# + +EXTRAFLAGS = $(HESDEF) $(AFSDEF) +EXTRALIBS = $(HESLIB) $(AFSLIB) + + +# The difficult choice of a c-compiler... +# First, you should try your own c-compiler. +# Gcc -traditional is also a safe choice. +# If you think that you have good include files try gcc -Wall... +# If you want to take out -traditional, make sure that your sys/ioctl.h +# is fixed correctly, otherwise you'll be stopped for tty input, or you +# will lose the editor and job control. + +# This is for setting your C preprocessor value. +CPP = ${CC} -E +# The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which +# on the suns does not know how to make dynamically linked binaries. +#CC= gcc -Wall -pipe -B/bin/ # -ansi -pedantic +#CC= gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux) +#CC= shlicc # BSDI2.1 w/ shared libraries +CC= gcc -Wall #BeOS +#CC= occ +#CC= acc +#CC= pcc +#CC= hc -w +#CC= c89 # For VMS/POSIX +#CC= /bin/cc # For suns, w/o gcc and SVR4 +#CC= /usr/lib/sun.compile/cc # FPS 500 (+FPX) with Sun C compiler +#CC= /opt/SUNWspro/bin/cc # Solaris 2.1 +#CC= scc # Alliant fx2800 +#CC= lcc -wa +#CC= cc -b elf -Kpic # SCO_SV +ED= ed +AS= as +RM= rm +CXREF= /usr/ucb/cxref +#CXREF= /bin/cxref # SCO_SV +VGRIND= csh /usr/ucb/vgrind +CTAGS= /usr/ucb/ctags +#CTAGS= /usr/bin/ctags # SCO_SV +#XSTR= /usr/ucb/xstr +#XSTR= /usr/bin/xstr # SCO_SV +SCCS= /usr/local/sccs +PARALLEL=12 # Make the multi-max run fast. +#P=& # Use Sequent's parallel make +P= +DESTDIR=/usr/local +#DESTDIR=/usr/contrib +MANSECT=1 +DESTBIN=${DESTDIR}/bin +DESTMAN=${DESTDIR}/man/man${MANSECT} +# DESTMAN=${DESTDIR}/catman/man${MANSECT} # A/UX +# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4) +# DESTMAN=/usr/catman/1l # Amiga unix (SysVR4) +FTPAREA=/usr/spool/ftp + +ASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ + sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ + sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ + sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h +PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \ + vms.termcap.c +SHSRCS= ${ASSRCS} ${PSSRCS} +SHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \ + sh.char.${SUF} sh.exp.${SUF} sh.file.${SUF} sh.func.${SUF} \ + sh.glob.${SUF} sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} \ + sh.misc.${SUF} sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} \ + sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} \ + mi.termios.${SUF} ma.setp.${SUF} vms.termcap.${SUF} + +TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ + tw.comp.c tw.color.c +TWOBJS= tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \ + tw.comp.${SUF} tw.color.${SUF} + +EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ + ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h +EDOBJS= ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \ + ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF} + +TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ + tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ + tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ + tc.who.c tc.h +TCOBJS= tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \ + tc.disc.${SUF} tc.func.${SUF} tc.os.${SUF} tc.printf.${SUF} \ + tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \ + tc.vers.${SUF} tc.who.${SUF} + +PVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32 +AVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \ + WishList config_f.h eight-bit.me glob.3 patchlevel.h \ + pathnames.h tcsh.man Ported src.desc Imakefile imake.config \ + README.imake complete.tcsh vmsreadme.txt termcap.vms snames.h \ + host.defs gethost.c tcsh.man2html configure.in configure config.h.in + +VHSRCS=${PVSRCS} ${AVSRCS} + +CONFSRCS=config/* + +ALLSRCS= ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS} +DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} + + +OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS} + + +all: ${BUILD} + +tcsh:$(P) ${OBJS} + rm -f tcsh core + ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} + +# Purify +pure:$(P) ${OBJS} + rm -f tcsh core + purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} +# OS/2 +tcsh.exe: tcsh + emxbind tcsh + +gethost: gethost.c sh.err.h tc.const.h sh.h + rm -f gethost + ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${DFLAGS} $(srcdir)/gethost.c ${LIBES} ${EXTRALIBS} + +tc.defs.c: gethost host.defs + @rm -f $@ + @echo "/* Do not edit this file, make creates it */" > $@ + ./gethost $(srcdir)/host.defs >> $@ + +tcsh.ps: tcsh.man + rm -f tcsh.ps + -ptroff -t -man $(srcdir)/tcsh.man > tcsh.ps + + +.c.${SUF}: + ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< + +# _VMS_POSIX #module addition +#.c.${SUF}: +# @(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c +# @echo ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c +# @${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c +# @mv $*..o $*.o +# @rm -f $*..c + + +# Don't do any special massaging of C files for sharing of strings!! +# it causes weird segmentation faults on some systems. +#.c.o: +# ${CPP} ${CFLAGS} $*.c | ${XSTR} -c - +# ${CC} ${CF} ${CFLAGS} x.c +# mv -f x.o $*.o +# rm -f x.c + +#ed.init.o: ed.init.c +# ${CPP} ${CFLAGS} $*.c | ${XSTR} -c - +# ${CC} -R ${CF} ${CF} x.c +# mv -f x.o $*.o +# rm -f x.c + +#strings.o: strings +# ${XSTR} +# ${CC} -c -R xs.c +# mv -f xs.o strings.o +# rm -f xs.c + +##.DEFAULT: +## ${SCCS} get $< + +##.DEFAULT: +## co $< + +ed.defns.h: ed.defns.c + @rm -f $@ + @echo '/* Do not edit this file, make creates it. */' > $@ + @echo '#ifndef _h_ed_defns' >> $@ + @echo '#define _h_ed_defns' >> $@ + grep '[FV]_' $(srcdir)/ed.defns.c | grep '^#define' >> $@ + @echo '#endif /* _h_ed_defns */' >> $@ + +sh.err.h: sh.err.c + @rm -f $@ + @echo '/* Do not edit this file, make creates it. */' > $@ + @echo '#ifndef _h_sh_err' >> $@ + @echo '#define _h_sh_err' >> $@ + grep 'ERR_' $(srcdir)/sh.err.c | grep '^#define' >> $@ + @echo '#endif /* _h_sh_err */' >> $@ + +tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h + @rm -f $@ + @echo '/* Do not edit this file, make creates it. */' > $@ + @echo '#ifndef _h_tc_const' >> $@ + @echo '#define _h_tc_const' >> $@ + ${CPP} $(INCLUDES) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\ + $(srcdir)/tc.const.c | grep 'Char STR' | \ + sed -e 's/Char \([a-zA-Z0-9_]*\) *\[ *\].*/extern Char \1[];/' | \ + sort >> $@ + @echo '#endif /* _h_tc_const */' >> $@ + +csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF} + rm -f csh.prof + ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc + +sh.prof.${SUF}: + cp sh.c sh.prof.c + ${CC} ${CF} ${CFLAGS} -DPROF sh.prof.c + +lint: tc.const.h ed.defns.h + lint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} + +alint: tc.const.h ed.defns.h + alint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} + +print: + @pr READ_ME + @pr makefile makefile.* + @(size -l a.out; size *.${SUF}) | pr -h SIZES + @${CXREF} sh*.c | pr -h XREF + @ls -l | pr + @pr sh*.h [a-rt-z]*.h sh*.c alloc.c + +vprint: + @pr -l84 READ_ME TODO + @pr -l84 makefile makefile.* + @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES + @${CXREF} sh*.c | pr -l84 -h XREF + @ls -l | pr -l84 + @${CXREF} sh*.c | pr -l84 -h XREF + @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c + +vgrind: + @cp /dev/null index + @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done + @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done + @vgrind -t -x -h Index index >/crp/bill/csh/index.t + +install: tcsh + -mv -f ${DESTBIN}/tcsh ${DESTBIN}/tcsh.old + cp tcsh ${DESTBIN}/tcsh + -strip ${DESTBIN}/tcsh + chmod 555 ${DESTBIN}/tcsh + +install.man: tcsh.man + -rm -f ${DESTMAN}/tcsh.${MANSECT} + cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} + chmod 444 ${DESTMAN}/tcsh.${MANSECT} + +# Amiga Unix +#install.man: tcsh.man +# compress tcsh.man +# cp tcsh.man.Z ${DESTMAN}/tcsh.Z +# chmod 444 ${DESTMAN}/tcsh.Z + +# Apple A/UX +#install.man: tcsh.man +# -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z +# nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z +# chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z + +clean: + ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core gethost + ${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c + ${RM} -f tcsh.*.m tcsh.*.cat + +veryclean: clean + ${RM} -f config.h config.status config.cache config.log Makefile tcsh.ps + ${RM} -f *~ #* + +distclean: veryclean + +tags: /tmp + ${CTAGS} sh*.c + +tar.Z: + rm -f tcsh-${VERSION}.tar.Z + rm -rf tcsh-${VERSION} + mkdir tcsh-${VERSION} tcsh-${VERSION}/config + cp ${ALLSRCS} tcsh-${VERSION} + cp ${CONFSRCS} tcsh-${VERSION}/config + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z + rm -rf tcsh-${VERSION} + +tar.gz: + rm -f tcsh-${VERSION}.tar.gz + rm -rf tcsh-${VERSION} + mkdir tcsh-${VERSION} tcsh-${VERSION}/config + cp ${ALLSRCS} tcsh-${VERSION} + cp ${CONFSRCS} tcsh-${VERSION}/config + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz + rm -rf tcsh-${VERSION} + +shar: + rm -f tcsh-*.shar + rm -rf tcsh-${VERSION} + mkdir tcsh-${VERSION} tcsh-${VERSION}/config + cp ${ALLSRCS} tcsh-${VERSION} + cp ${CONFSRCS} tcsh-${VERSION}/config + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \ + tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \ + tcsh-${VERSION}/?*/set?* + rm -rf tcsh-${VERSION} + +catalogs: + @(cd nls; make catalogs) + +tcsh-${VERSION}.tar.Z: + rm -rf tcsh-${VERSION} + rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123] + mkdir tcsh-${VERSION} + ./MAKEDIFFS bsd + mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION} + cp ${DISTSRCS} tcsh-${VERSION} + mkdir tcsh-${VERSION}/config + cp ${CONFSRCS} tcsh-${VERSION}/config + cp Makefile tcsh-${VERSION}/Makefile.new + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z + rm -rf tcsh-${VERSION} + +tcsh.tahoe-${VERSION}.tar.Z: + rm -rf tcsh.tahoe-${VERSION} + rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123] + mkdir tcsh.tahoe-${VERSION} + ./MAKEDIFFS tahoe + mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION} + cp ${DISTSRCS} tcsh.tahoe-${VERSION} + mkdir tcsh.tahoe-${VERSION}/config + cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config + cp Makefile tcsh.tahoe-${VERSION}/Makefile.new + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z + rm -rf tcsh.tahoe-${VERSION} + +tcsh.reno-${VERSION}.tar.Z: + rm -rf tcsh.reno-${VERSION} + rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123] + mkdir tcsh.reno-${VERSION} + ./MAKEDIFFS reno + mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION} + cp ${DISTSRCS} tcsh.reno-${VERSION} + mkdir tcsh.reno-${VERSION}/config + cp ${CONFSRCS} tcsh.reno-${VERSION}/config + cp Makefile tcsh.reno-${VERSION}/Makefile.new + tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) + tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z + rm -rf tcsh.reno-${VERSION} + +ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z + cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA} + cp tcsh.man ${FTPAREA} + +autoconfigure: $(srcdir)/configure $(srcdir)/config.h.in + +$(srcdir)/configure: $(srcdir)/configure.in + cd $(srcdir) && autoconf + +$(srcdir)/config.h.in: $(srcdir)/stamp-h.in +$(srcdir)/stamp-h.in: $(srcdir)/configure.in + cd $(srcdir) && autoheader + @echo timestamp > $(srcdir)/stamp-h.in + +# +# Dependencies +# +config.h: config_f.h + +TCH=tc.h tc.const.h tc.decls.h tc.os.h tc.sig.h +SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \ + sh.decls.h ${TCH} +TWH=tw.h tw.decls.h +EDH=ed.h ed.decls.h + +# EDH +EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \ + sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \ + tc.sched.${SUF} tw.parse.${SUF} tw.color.${SUF} +${EDOBJS} ${EDINC} : ${EDH} + +# SHH +${OBJS}: config.h ${SHH} + +# TWH +TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \ + sh.set.${SUF} tc.func.${SUF} tw.color.${SUF} +${TWOBJS} ${TWINC}: ${TWH} + +# glob.h +glob.${SUF} sh.glob.${SUF}: glob.h + +# ed.defns.h +EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF} +${EDOBJS} ${EDDINC}: ed.defns.h + +# tc.defs.o +tc.defs.${SUF}: tc.defs.c sh.h diff -urN tcsh-6.12.00/config.h tcsh-6.12.00.beos/config.h --- tcsh-6.12.00/config.h Thu Jan 1 09:00:00 1970 +++ tcsh-6.12.00.beos/config.h Fri Jul 26 07:30:56 2002 @@ -0,0 +1,130 @@ +/* + * config.h -- configure various defines for tcsh + * + * All source files should #include this FIRST. + * + * Edit this to match your system type. + */ + +#ifndef _h_config +#define _h_config +/****************** System dependant compilation flags ****************/ +/* + * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). + */ +#define POSIX + +/* + * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) + * job control facilities. + */ +#undef POSIXJOBS + +/* + * POSIXSIGS Use the POSIX signal facilities to emulate BSD signals. + */ +#undef POSIXSIGS + +/* + * VFORK This machine has a vfork(). + * It used to be that for job control to work, this define + * was mandatory. This is not the case any more. + * If you think you still need it, but you don't have vfork, + * define this anyway and then do #define vfork fork. + * I do this anyway on a Sun because of yellow pages brain damage, + * [should not be needed under 4.1] + * and on the iris4d cause SGI's fork is sufficiently "virtual" + * that vfork isn't necessary. (Besides, SGI's vfork is weird). + * Note that some machines eg. rs6000 have a vfork, but not + * with the berkeley semantics, so we cannot use it there either. + */ +#undef VFORK + +/* + * BSDJOBS You have BSD-style job control (both process groups and + * a tty that deals correctly + */ +#undef BSDJOBS + +/* + * BSDSIGS You have 4.2-style signals, rather than USG style. + * Note: POSIX systems should not define this unless they + * have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX). + */ +#undef BSDSIGS + +/* + * BSDTIMES You have BSD-style process time stuff (like rusage) + * This may or may not be true. For example, Apple Unix + * (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES. + */ +#undef BSDTIMES + +/* + * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) + */ +#undef BSDLIMIT + +/* + * BSDNICE Your system uses setpriority() instead of nice, to + * change a processes scheduling priority + */ +#undef BSDNICE + +/* + * TERMIO You have struct termio instead of struct sgttyb. + * This is usually the case for SYSV systems, where + * BSD uses sgttyb. POSIX systems should define this + * anyway, even though they use struct termios. + */ +#undef TERMIO + +/* + * SYSVREL Your machine is SYSV based (HPUX, A/UX) + * NOTE: don't do this if you are on a Pyramid -- tcsh is + * built in a BSD universe. + * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V + * you are running. Or set it to 0 if you are not SYSV based + */ +#define SYSVREL 0 + +/* + * YPBUGS Work around Sun YP bugs that cause expansion of ~username + * to send command output to /dev/null + */ +#undef YPBUGS + +/* + * SIGVOID Define this if your signal handlers return void. On older + * systems, signal returns int, but on newer ones, it returns void. + */ +#define SIGVOID + +/* + * HAVEDUP2 Define this if your system supports dup2(). + */ +#define HAVEDUP2 + +/* + * UTHOST Does the utmp file have a host field? + */ +#undef UTHOST + +/* + * DIRENT Your system has instead of + */ +#undef DIRENT +/****************** local defines *********************/ +#define BEOS +#define HAVENOLIMIT +#define HAVENOUTMP +/****************** configurable hacks ****************/ +/* have been moved to config_f.h */ +#include "config_f.h" + +#define SYSMALLOC +#undef REMOTEHOST + +#define NLS +#define NLS_CATALOGS +#endif /* _h_config */ diff -urN tcsh-6.12.00/config_f.h tcsh-6.12.00.beos/config_f.h --- tcsh-6.12.00/config_f.h Sat Mar 9 02:36:45 2002 +++ tcsh-6.12.00.beos/config_f.h Sun Mar 23 15:46:59 2003 @@ -61,8 +61,8 @@ * if you don't have , you don't want * to define this. */ -#undef NLS_CATALOGS - +/*#undef NLS_CATALOGS*/ +#define NLS_CATALOGS /* * LOGINFIRST Source ~/.login before ~/.cshrc */ @@ -93,7 +93,7 @@ /* * NODOT Don't put "." in the default path, for security reasons */ -#undef NODOT +#define NODOT /* * AUTOLOGOUT tries to determine if it should set autologout depending @@ -113,21 +113,21 @@ * be used with SHORT_STRINGS * */ -#undef KANJI +#define KANJI /* * DSPMBYTE add variable "dspmbyte" and display multi-byte string at * only output, when "dspmbyte" is set. Should be used with * KANJI */ -#undef DSPMBYTE +#define DSPMBYTE /* * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to * variable "mbytemap". * (use for multi-byte table check) */ -#undef MBYTEDEBUG +#define MBYTEDEBUG /* * NEWGRP Provide a newgrp builtin. diff -urN tcsh-6.12.00/host.defs tcsh-6.12.00.beos/host.defs --- tcsh-6.12.00/host.defs Wed Jul 24 01:13:21 2002 +++ tcsh-6.12.00.beos/host.defs Sun Mar 23 15:41:29 2003 @@ -1094,6 +1094,7 @@ newdef : SYSVREL == 0 +ostype : defined(BEOS) : "beos" ostype : defined(BSD4_4) : "bsd44" ostype : defined(BSD) : "bsd" ostype : defined(POSIX) : "posix" diff -urN tcsh-6.12.00/sh.proc.c tcsh-6.12.00.beos/sh.proc.c --- tcsh-6.12.00/sh.proc.c Sat Mar 9 02:36:46 2002 +++ tcsh-6.12.00.beos/sh.proc.c Sun Mar 23 15:41:29 2003 @@ -269,7 +269,11 @@ # ifdef _MINIX pid = wait(&w); # else /* !_MINIX */ +# ifdef BEOS + pid = ourwait(&w); +# else pid = ourwait(&w.w_status); +# endif # endif /* _MINIX */ # else /* !UNRELSIGS */ /* @@ -316,7 +320,7 @@ for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) if (pid == pp->p_procid) goto found; -#if !defined(BSDJOBS) && !defined(WINNT_NATIVE) +#if !defined(BSDJOBS) && !defined(WINNT_NATIVE) && !defined(BEOS) /* this should never have happened */ stderror(ERR_SYNC, pid); xexit(0); @@ -2010,6 +2014,7 @@ */ if (t->t_dflg & F_NOHUP) (void) signal(SIGHUP, SIG_IGN); +#ifndef BEOS if (t->t_dflg & F_NICE) { int nval = SIGN_EXTEND_CHAR(t->t_nice); #ifdef BSDNICE @@ -2019,6 +2024,7 @@ (void) nice(nval); #endif /* !BSDNICE */ } +#endif /* !BEOS */ #ifdef F_VER if (t->t_dflg & F_VER) { tsetenv(STRSYSTYPE, t->t_systype ? STRbsd43 : STRsys53); diff -urN tcsh-6.12.00/sh.time.c tcsh-6.12.00.beos/sh.time.c --- tcsh-6.12.00/sh.time.c Wed Jun 26 04:02:11 2002 +++ tcsh-6.12.00.beos/sh.time.c Sun Mar 23 15:41:29 2003 @@ -172,12 +172,14 @@ nval = 4; else if (*v == 0 && any("+-", cp[0])) nval = getn(cp); +#ifndef BEOS #ifdef BSDNICE if (setpriority(PRIO_PROCESS, 0, nval) == -1 && errno) stderror(ERR_SYSTEM, "setpriority", strerror(errno)); #else /* BSDNICE */ (void) nice(nval); #endif /* BSDNICE */ +#endif /* !BEOS */ } #ifdef BSDTIMES diff -urN tcsh-6.12.00/tc.decls.h tcsh-6.12.00.beos/tc.decls.h --- tcsh-6.12.00/tc.decls.h Sat Mar 9 02:36:47 2002 +++ tcsh-6.12.00.beos/tc.decls.h Sun Mar 23 15:41:29 2003 @@ -257,6 +257,9 @@ extern void xsigignore __P((int)); # define sigignore(x) xsigignore(x) extern void xsigpause __P((int)); +# ifdef BEOS +# undef sigpause +# endif /* BEOS */ # define sigpause(x) xsigpause(x) extern pid_t ourwait __P((int *)); # endif /* UNRELSIGS */ diff -urN tcsh-6.12.00/tc.os.h tcsh-6.12.00.beos/tc.os.h --- tcsh-6.12.00/tc.os.h Thu May 16 22:51:26 2002 +++ tcsh-6.12.00.beos/tc.os.h Sun Mar 23 15:41:29 2003 @@ -37,6 +37,10 @@ #define NEEDstrerror /* Too hard to find which systems have it */ #endif /* WINNT_NATIVE */ +#ifdef BEOS +# include +# undef NEEDstrerror +#endif /* BEOS */ #ifdef notdef /* @@ -531,7 +535,7 @@ #endif /* NeXT */ #if !defined(BSD4_4) && !defined(__linux__) && !defined(__hpux) && \ - !defined(sgi) && !defined(_AIX) && !defined(__CYGWIN__) + !defined(sgi) && !defined(_AIX) && !defined(__CYGWIN__) && !defined(BEOS) #ifndef NEEDgethostname extern int gethostname __P((char *, int)); #endif /* NEEDgethostname */ diff -urN tcsh-6.12.00/tc.sig.h tcsh-6.12.00.beos/tc.sig.h --- tcsh-6.12.00/tc.sig.h Fri Jul 12 22:16:19 2002 +++ tcsh-6.12.00.beos/tc.sig.h Sun Mar 23 15:41:29 2003 @@ -34,7 +34,7 @@ #ifndef _h_tc_sig #define _h_tc_sig -#if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) +#if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) || defined(BEOS) # include # ifndef SIGCHLD # define SIGCHLD SIGCLD @@ -47,7 +47,7 @@ # define SAVESIGVEC #endif /* SUNOS4 || DGUX || hp800 || SVR4 & POSIXSIGS & VFORK */ -#if (SYSVREL > 0 && SYSVREL < 3 && !defined(BSDSIGS)) || defined(_MINIX) || defined(COHERENT) +#if (SYSVREL > 0 && SYSVREL < 3 && !defined(BSDSIGS)) || defined(_MINIX) || defined(COHERENT) || defined(BEOS) /* * If we have unreliable signals... */ @@ -123,6 +123,10 @@ #ifdef _VMS_POSIX # define killpg(a, b) kill(-(a), (b)) #endif /* atp _VMS_POSIX */ + +#ifdef BEOS +# define killpg(a, b) kill((a), (b)) +#endif /* BEOS */ #if !defined(NSIG) && defined(SIGMAX) # define NSIG (SIGMAX+1) diff -urN tcsh-6.12.00/tcsh.diff tcsh-6.12.00.beos/tcsh.diff --- tcsh-6.12.00/tcsh.diff Thu Jan 1 09:00:00 1970 +++ tcsh-6.12.00.beos/tcsh.diff Wed Jul 3 22:29:17 2002 @@ -0,0 +1,320 @@ +diff -c -r tcsh-6.11.02-org/Makefile.std tcsh-6.11.02/Makefile.std +*** tcsh-6.11.02-org/Makefile.std Mon Jan 7 12:19:03 2002 +--- tcsh-6.11.02/Makefile.std Sat May 18 11:42:44 2002 +*************** +*** 21,27 **** + # + SUF=o + CF=-c +! + INCLUDES=-I. -I$(srcdir) + + LFLAGS=$(INCLUDES) +--- 21,28 ---- + # + SUF=o + CF=-c +! LDFLAGS=-L/boot/home/config/lib +! CPPFLAGS=-I/boot/home/config/include + INCLUDES=-I. -I$(srcdir) + + LFLAGS=$(INCLUDES) +*************** +*** 244,250 **** + CPP = ${CC} -E + # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which + # on the suns does not know how to make dynamically linked binaries. +! CC= gcc -Wall -pipe -B/bin/ # -ansi -pedantic + #CC= gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux) + #CC= shlicc # BSDI2.1 w/ shared libraries + #CC= cc +--- 245,252 ---- + CPP = ${CC} -E + # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which + # on the suns does not know how to make dynamically linked binaries. +! CC= gcc -Wall +! #CC= gcc -Wall -pipe -B/bin/ # -ansi -pedantic + #CC= gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux) + #CC= shlicc # BSDI2.1 w/ shared libraries + #CC= cc +*************** +*** 273,279 **** + PARALLEL=12 # Make the multi-max run fast. + #P=& # Use Sequent's parallel make + P= +! DESTDIR=/usr/local + #DESTDIR=/usr/contrib + MANSECT=1 + DESTBIN=${DESTDIR}/bin +--- 275,281 ---- + PARALLEL=12 # Make the multi-max run fast. + #P=& # Use Sequent's parallel make + P= +! DESTDIR=/boot/home/config + #DESTDIR=/usr/contrib + MANSECT=1 + DESTBIN=${DESTDIR}/bin +Only in tcsh-6.11.02: confdefs.h +Only in tcsh-6.11.02: config.cache +Only in tcsh-6.11.02: config.h +Only in tcsh-6.11.02: config.log +diff -c -r tcsh-6.11.02-org/config_f.h tcsh-6.11.02/config_f.h +*** tcsh-6.11.02-org/config_f.h Sat Mar 9 02:36:45 2002 +--- tcsh-6.11.02/config_f.h Sat May 18 11:34:28 2002 +*************** +*** 61,68 **** + * if you don't have , you don't want + * to define this. + */ +! #undef NLS_CATALOGS +! + /* + * LOGINFIRST Source ~/.login before ~/.cshrc + */ +--- 61,68 ---- + * if you don't have , you don't want + * to define this. + */ +! /*#undef NLS_CATALOGS*/ +! #define NLS_CATALOGS + /* + * LOGINFIRST Source ~/.login before ~/.cshrc + */ +*************** +*** 113,134 **** + * be used with SHORT_STRINGS + * + */ +! #undef KANJI +! + /* + * DSPMBYTE add variable "dspmbyte" and display multi-byte string at + * only output, when "dspmbyte" is set. Should be used with + * KANJI + */ +! #undef DSPMBYTE +! + /* + * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to + * variable "mbytemap". + * (use for multi-byte table check) + */ +! #undef MBYTEDEBUG +! + /* + * NEWGRP Provide a newgrp builtin. + */ +--- 113,134 ---- + * be used with SHORT_STRINGS + * + */ +! /*#undef KANJI*/ +! #define KANJI + /* + * DSPMBYTE add variable "dspmbyte" and display multi-byte string at + * only output, when "dspmbyte" is set. Should be used with + * KANJI + */ +! /*#undef DSPMBYTE*/ +! #define DSPMBYTE + /* + * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to + * variable "mbytemap". + * (use for multi-byte table check) + */ +! /*#undef MBYTEDEBUG*/ +! #define MBYTEDEBUG + /* + * NEWGRP Provide a newgrp builtin. + */ +Only in tcsh-6.11.02: ed.defns.h +Only in tcsh-6.11.02: gethost +diff -c -r tcsh-6.11.02-org/host.defs tcsh-6.11.02/host.defs +*** tcsh-6.11.02-org/host.defs Sat Mar 9 02:36:46 2002 +--- tcsh-6.11.02/host.defs Sat May 18 10:45:59 2002 +*************** +*** 1092,1097 **** +--- 1092,1098 ---- + + + newdef : SYSVREL == 0 ++ ostype : defined(BEOS) : "beos" + ostype : defined(BSD4_4) : "bsd44" + ostype : defined(BSD) : "bsd" + ostype : defined(POSIX) : "posix" +Only in tcsh-6.11.02: sh.err.h +diff -c -r tcsh-6.11.02-org/sh.proc.c tcsh-6.11.02/sh.proc.c +*** tcsh-6.11.02-org/sh.proc.c Sat Mar 9 02:36:46 2002 +--- tcsh-6.11.02/sh.proc.c Sat May 18 11:00:10 2002 +*************** +*** 269,275 **** +--- 269,279 ---- + # ifdef _MINIX + pid = wait(&w); + # else /* !_MINIX */ ++ # ifdef BEOS ++ pid = ourwait(&w); ++ # else + pid = ourwait(&w.w_status); ++ # endif + # endif /* _MINIX */ + # else /* !UNRELSIGS */ + /* +*************** +*** 316,322 **** + for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) + if (pid == pp->p_procid) + goto found; +! #if !defined(BSDJOBS) && !defined(WINNT_NATIVE) + /* this should never have happened */ + stderror(ERR_SYNC, pid); + xexit(0); +--- 320,326 ---- + for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) + if (pid == pp->p_procid) + goto found; +! #if !defined(BSDJOBS) && !defined(WINNT_NATIVE) && !defined(BEOS) + /* this should never have happened */ + stderror(ERR_SYNC, pid); + xexit(0); +*************** +*** 2010,2015 **** +--- 2014,2020 ---- + */ + if (t->t_dflg & F_NOHUP) + (void) signal(SIGHUP, SIG_IGN); ++ #ifndef BEOS + if (t->t_dflg & F_NICE) { + int nval = SIGN_EXTEND_CHAR(t->t_nice); + #ifdef BSDNICE +*************** +*** 2019,2024 **** +--- 2024,2030 ---- + (void) nice(nval); + #endif /* !BSDNICE */ + } ++ #endif /* !BEOS */ + #ifdef F_VER + if (t->t_dflg & F_VER) { + tsetenv(STRSYSTYPE, t->t_systype ? STRbsd43 : STRsys53); +diff -c -r tcsh-6.11.02-org/sh.time.c tcsh-6.11.02/sh.time.c +*** tcsh-6.11.02-org/sh.time.c Sat Mar 9 02:36:46 2002 +--- tcsh-6.11.02/sh.time.c Sat May 18 10:58:29 2002 +*************** +*** 172,183 **** +--- 172,185 ---- + nval = 4; + else if (*v == 0 && any("+-", cp[0])) + nval = getn(cp); ++ #ifndef BEOS + #ifdef BSDNICE + if (setpriority(PRIO_PROCESS, 0, nval) == -1 && errno) + stderror(ERR_SYSTEM, "setpriority", strerror(errno)); + #else /* BSDNICE */ + (void) nice(nval); + #endif /* BSDNICE */ ++ #endif /* !BEOS */ + } + + #ifdef BSDTIMES +Only in tcsh-6.11.02: tc.const.h +diff -c -r tcsh-6.11.02-org/tc.decls.h tcsh-6.11.02/tc.decls.h +*** tcsh-6.11.02-org/tc.decls.h Sat Mar 9 02:36:47 2002 +--- tcsh-6.11.02/tc.decls.h Sat May 18 10:45:59 2002 +*************** +*** 257,262 **** +--- 257,265 ---- + extern void xsigignore __P((int)); + # define sigignore(x) xsigignore(x) + extern void xsigpause __P((int)); ++ # ifdef BEOS ++ # undef sigpause ++ # endif /* BEOS */ + # define sigpause(x) xsigpause(x) + extern pid_t ourwait __P((int *)); + # endif /* UNRELSIGS */ +Only in tcsh-6.11.02: tc.defs.c +diff -c -r tcsh-6.11.02-org/tc.os.h tcsh-6.11.02/tc.os.h +*** tcsh-6.11.02-org/tc.os.h Thu May 16 22:51:26 2002 +--- tcsh-6.11.02/tc.os.h Sat May 18 10:50:21 2002 +*************** +*** 37,42 **** +--- 37,46 ---- + #define NEEDstrerror /* Too hard to find which systems have it */ + #endif /* WINNT_NATIVE */ + ++ #ifdef BEOS ++ # include ++ # undef NEEDstrerror ++ #endif /* BEOS */ + + #ifdef notdef + /* +*************** +*** 531,537 **** + #endif /* NeXT */ + + #if !defined(BSD4_4) && !defined(__linux__) && !defined(__hpux) && \ +! !defined(sgi) && !defined(_AIX) && !defined(__CYGWIN__) + #ifndef NEEDgethostname + extern int gethostname __P((char *, int)); + #endif /* NEEDgethostname */ +--- 535,541 ---- + #endif /* NeXT */ + + #if !defined(BSD4_4) && !defined(__linux__) && !defined(__hpux) && \ +! !defined(sgi) && !defined(_AIX) && !defined(__CYGWIN__) && !defined(BEOS) + #ifndef NEEDgethostname + extern int gethostname __P((char *, int)); + #endif /* NEEDgethostname */ +diff -c -r tcsh-6.11.02-org/tc.sig.h tcsh-6.11.02/tc.sig.h +*** tcsh-6.11.02-org/tc.sig.h Sat Mar 9 02:36:47 2002 +--- tcsh-6.11.02/tc.sig.h Sat May 18 10:48:50 2002 +*************** +*** 34,40 **** + #ifndef _h_tc_sig + #define _h_tc_sig + +! #if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) + # include + # ifndef SIGCHLD + # define SIGCHLD SIGCLD +--- 34,40 ---- + #ifndef _h_tc_sig + #define _h_tc_sig + +! #if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) || defined(BEOS) + # include + # ifndef SIGCHLD + # define SIGCHLD SIGCLD +*************** +*** 47,53 **** + # define SAVESIGVEC + #endif /* SUNOS4 || DGUX || hp800 || SVR4 & POSIXSIGS & VFORK */ + +! #if (SYSVREL > 0 && SYSVREL < 3 && !defined(BSDSIGS)) || defined(_MINIX) || defined(COHERENT) + /* + * If we have unreliable signals... + */ +--- 47,53 ---- + # define SAVESIGVEC + #endif /* SUNOS4 || DGUX || hp800 || SVR4 & POSIXSIGS & VFORK */ + +! #if (SYSVREL > 0 && SYSVREL < 3 && !defined(BSDSIGS)) || defined(_MINIX) || defined(COHERENT) || defined(BEOS) + /* + * If we have unreliable signals... + */ +*************** +*** 124,129 **** +--- 124,133 ---- + # define killpg(a, b) kill(-(a), (b)) + #endif /* atp _VMS_POSIX */ + ++ #ifdef BEOS ++ # define killpg(a, b) kill((a), (b)) ++ #endif /* BEOS */ ++ + #if !defined(NSIG) && defined(SIGMAX) + # define NSIG (SIGMAX+1) + #endif /* !NSIG && SIGMAX */ +Only in tcsh-6.11.02: tcsh