rename sigmast_t to sigset_t to match signal.h; minor pointer cleanups
SCCS-vsn: bin/csh/Makefile 5.22
SCCS-vsn: bin/csh/csh.c 5.25
SCCS-vsn: bin/csh/csh.h 5.15
SCCS-vsn: bin/csh/dir.c 5.9
SCCS-vsn: bin/csh/dol.c 5.12
SCCS-vsn: bin/csh/err.c 5.9
SCCS-vsn: bin/csh/exec.c 5.15
SCCS-vsn: bin/csh/exp.c 5.10
SCCS-vsn: bin/csh/file.c 5.16
SCCS-vsn: bin/csh/func.c 5.18
SCCS-vsn: bin/csh/glob.c 5.18
SCCS-vsn: bin/csh/hist.c 5.8
SCCS-vsn: bin/csh/lex.c 5.15
SCCS-vsn: bin/csh/misc.c 5.11
SCCS-vsn: bin/csh/parse.c 5.10
SCCS-vsn: bin/csh/pathnames.h 5.6
SCCS-vsn: bin/csh/proc.c 5.19
SCCS-vsn: bin/csh/sem.c 5.15
SCCS-vsn: bin/csh/set.c 5.10
SCCS-vsn: bin/csh/time.c 5.13
20 files changed:
-# @(#)Makefile 5.21 (Berkeley) %G%
+# @(#)Makefile 5.22 (Berkeley) %G%
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
PROG= csh
CFLAGS+=-fcombine-regs -fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS \
-DTERMIOS -I.
PROG= csh
CFLAGS+=-fcombine-regs -fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS \
-DTERMIOS -I.
-SRCS= csh.c char.c dir.c dol.c err.c exec.c exp.c file.c func.c glob.c \
- hist.c init.c lex.c misc.c parse.c print.c proc.c sem.c set.c \
- time.c tc.alloc.c tc.printf.c tc.str.c tc.const.c
+SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
+ func.c glob.c hist.c init.c lex.c misc.c parse.c print.c printf.c \
+ proc.c sem.c set.c str.c time.c
+
.PATH: ${.CURDIR}/../../lib/libc/stdio
MAN1= csh.0
MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
csh.1 stop.1 csh.1 source.1
.PATH: ${.CURDIR}/../../lib/libc/stdio
MAN1= csh.0
MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
csh.1 stop.1 csh.1 source.1
-CLEANFILES+=err.h tc.const.h
+CLEANFILES+=err.h const.h
egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
@echo '#endif /* _h_sh_err */' >> $@
egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
@echo '#endif /* _h_sh_err */' >> $@
@rm -f $@
@echo '/* Do not edit this file, make creates it. */' > $@
${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
sort >> $@
@rm -f $@
@echo '/* Do not edit this file, make creates it. */' > $@
${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
sort >> $@
-.depend: err.h tc.const.h
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)csh.c 5.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)csh.c 5.25 (Berkeley) %G%";
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <pwd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <locale.h>
+#include <unistd.h>
extern bool MapsAreInited;
extern bool NLSMapsAreInited;
extern bool MapsAreInited;
extern bool NLSMapsAreInited;
/* Will have value(STRhome) here because set fast if don't */
{
int osetintr = setintr;
/* Will have value(STRhome) here because set fast if don't */
{
int osetintr = setintr;
- sigmask_t omask = sigblock(sigmask(SIGINT));
+ sigset_t omask = sigblock(sigmask(SIGINT));
setintr = 0;
#ifdef _PATH_DOTCSHRC
setintr = 0;
#ifdef _PATH_DOTCSHRC
bool otell = cantell;
struct Bin saveB;
bool otell = cantell;
struct Bin saveB;
jmp_buf oldexit;
/* The (few) real local variables */
jmp_buf oldexit;
/* The (few) real local variables */
bool wantnl;
{
register Char **v;
bool wantnl;
{
register Char **v;
- omask = sigblock((sigmask_t) 0);
+ omask = sigblock((sigset_t) 0);
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
* Interruptible during interactive reads
*/
if (setintr)
* Interruptible during interactive reads
*/
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
/*
* For the sake of reset()
/*
* For the sake of reset()
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)csh.h 5.14 (Berkeley) %G%
+ * @(#)csh.h 5.15 (Berkeley) %G%
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-
-#ifdef NLS
-#include <locale.h>
-#endif
-#include <time.h>
-#include <limits.h>
-#include <termios.h>
-#include <errno.h>
-#include <setjmp.h>
-#include <dirent.h>
-#include <pwd.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include "pathnames.h"
-
/*
* Fundamental definitions which may vary from system to system.
*
/*
* Fundamental definitions which may vary from system to system.
*
#endif
typedef void *ioctl_t; /* Third arg of ioctl */
#endif
typedef void *ioctl_t; /* Third arg of ioctl */
-typedef long sigmask_t; /* What a signal mask is */
#include "char.h"
#include "err.h"
#include "char.h"
#include "err.h"
#ifdef FILEC
bool filec; /* doing filename expansion */
#ifdef FILEC
bool filec; /* doing filename expansion */
char *seterr; /* Error message from scanner/parser */
Char *shtemp; /* Temp name for << shell files in /tmp */
char *seterr; /* Error message from scanner/parser */
Char *shtemp; /* Temp name for << shell files in /tmp */
+#include <sys/time.h>
+#include <sys/resource.h>
+
struct timeval time0; /* Time at which the shell started */
struct rusage ru0;
struct timeval time0; /* Time at which the shell started */
struct rusage ru0;
* Because of source commands and .cshrc we need nested error catches.
*/
* Because of source commands and .cshrc we need nested error catches.
*/
jmp_buf reslab;
#define setexit() (setjmp(reslab))
jmp_buf reslab;
#define setexit() (setjmp(reslab))
Char *gointr; /* Label for an onintr transfer */
Char *gointr; /* Label for an onintr transfer */
sig_t parintr; /* Parents interrupt catch */
sig_t parterm; /* Parents terminate catch */
sig_t parintr; /* Parents interrupt catch */
sig_t parterm; /* Parents terminate catch */
#ifdef _PATH_BSHELL
Char *STR_BSHELL;
#ifdef _PATH_BSHELL
Char *STR_BSHELL;
#endif
Char *STR_WORD_CHARS;
Char **STR_environ;
#endif
Char *STR_WORD_CHARS;
Char **STR_environ;
-static char sccsid[] = "@(#)dir.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)dir.c 5.9 (Berkeley) %G%";
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#include "csh.h"
#include "dir.h"
#include "extern.h"
#include "csh.h"
#include "dir.h"
#include "extern.h"
-static char sccsid[] = "@(#)dol.c 5.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)dol.c 5.12 (Berkeley) %G%";
+#include <sys/types.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
-static char sccsid[] = "@(#)err.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c 5.9 (Berkeley) %G%";
-#define _h_tc_err /* Don't redefine the errors */
+#include <sys/types.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
#if __STDC__
#include <stdarg.h>
#else
#if __STDC__
#include <stdarg.h>
#else
-static char sccsid[] = "@(#)exec.c 5.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)exec.c 5.15 (Berkeley) %G%";
+#include <sys/types.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
/*
#include "csh.h"
#include "extern.h"
/*
- * System level search and execute of a command.
- * We look in each directory for the specified command name.
- * If the name contains a '/' then we execute only the full path name.
- * If there is no search path then we execute only full path names.
+ * System level search and execute of a command. We look in each directory
+ * for the specified command name. If the name contains a '/' then we
+ * execute only the full path name. If there is no search path then we
+ * execute only full path names.
* We must do this AFTER any possible forking (like `foo` in glob) so that
* this shell can still do subprocesses.
*/
* We must do this AFTER any possible forking (like `foo` in glob) so that
* this shell can still do subprocesses.
*/
- (void) sigsetmask((sigmask_t) 0);
+ (void) sigsetmask((sigset_t) 0);
/*
* If no path, no words in path, or a / in the filename then restrict the
* command search.
/*
* If no path, no words in path, or a / in the filename then restrict the
* command search.
-static char sccsid[] = "@(#)exp.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)exp.c 5.10 (Berkeley) %G%";
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "extern.h"
#define IGNORE 1 /* in ignore, it means to ignore value, just parse */
#include "extern.h"
#define IGNORE 1 /* in ignore, it means to ignore value, just parse */
-static char sccsid[] = "@(#)file.c 5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)file.c 5.16 (Berkeley) %G%";
#endif /* not lint */
#ifdef FILEC
#endif /* not lint */
#ifdef FILEC
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/stat.h>
+#include <termios.h>
+#include <dirent.h>
+#include <pwd.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
-static char sccsid[] = "@(#)func.c 5.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)func.c 5.18 (Berkeley) %G%";
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <signal.h>
+#include <locale.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
{
whyles->w_end = -1;
if (setintr)
{
whyles->w_end = -1;
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
search(T_BREAK, 0, NULL); /* read the expression in */
if (setintr)
search(T_BREAK, 0, NULL); /* read the expression in */
if (setintr)
struct command *kp;
{
register int i;
struct command *kp;
{
register int i;
- register sigmask_t omask = 0;
+ register sigset_t omask = 0;
i = getn(v[1]);
if (setintr)
i = getn(v[1]);
if (setintr)
int nonl = 0;
if (setintr)
int nonl = 0;
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
v++;
if (*v == 0)
return;
v++;
if (*v == 0)
return;
register Char **ep;
if (setintr)
register Char **ep;
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
for (ep = STR_environ; *ep; ep++)
xprintf("%s\n", short2str(*ep));
return;
for (ep = STR_environ; *ep; ep++)
xprintf("%s\n", short2str(*ep));
return;
-static char sccsid[] = "@(#)glob.c 5.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)glob.c 5.18 (Berkeley) %G%";
+#include <sys/param.h>
+#include <glob.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
static int noglob, nonomatch;
static int pargsiz, gargsiz;
static int noglob, nonomatch;
static int pargsiz, gargsiz;
-static char sccsid[] = "@(#)hist.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)hist.c 5.8 (Berkeley) %G%";
+#include <sys/types.h>
+#include <stdlib.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
if (getn(value(STRhistory)) == 0)
return;
if (setintr)
if (getn(value(STRhistory)) == 0)
return;
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
while (*++vp && **vp == '-') {
Char *vp2 = *vp;
while (*++vp && **vp == '-') {
Char *vp2 = *vp;
-static char sccsid[] = "@(#)lex.c 5.14 (Berkeley) %G%";
-
-#endif /* not lint */
-
+static char sccsid[] = "@(#)lex.c 5.15 (Berkeley) %G%";
+#endif /* not lint */
+
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <termios.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
static Char peekread = 0;
/* (Tail of) current word from ! subst */
static Char peekread = 0;
/* (Tail of) current word from ! subst */
-static Char *exclp = (Char *) 0;
+static Char *exclp = NULL;
/* The rest of the ! subst words */
/* The rest of the ! subst words */
-static struct wordent *exclnxt = (struct wordent *) 0;
+static struct wordent *exclnxt = NULL;
/* Count of remaining words in ! subst */
static int exclc = 0;
/* "Globp" for alias resubstitution */
/* Count of remaining words in ! subst */
static int exclc = 0;
/* "Globp" for alias resubstitution */
-static Char *alvecp = (Char *) 0;
+static Char *alvecp = NULL;
/*
* Labuf implements a general buffer for lookahead during lexical operations.
/*
* Labuf implements a general buffer for lookahead during lexical operations.
-static char sccsid[] = "@(#)misc.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)misc.c 5.11 (Berkeley) %G%";
+#include <sys/param.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
-static char sccsid[] = "@(#)parse.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)parse.c 5.10 (Berkeley) %G%";
+#include <sys/types.h>
+#include <stdlib.h>
+#include <string.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)pathnames.h 5.5 (Berkeley) %G%
+ * @(#)pathnames.h 5.6 (Berkeley) %G%
#define _PATH_BIN "/bin"
#define _PATH_DOTCSHRC "/etc/csh.cshrc"
#define _PATH_BIN "/bin"
#define _PATH_DOTCSHRC "/etc/csh.cshrc"
-static char sccsid[] = "@(#)proc.c 5.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)proc.c 5.19 (Berkeley) %G%";
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <errno.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
#include "csh.h"
#include "dir.h"
#include "proc.h"
#include "extern.h"
#include "csh.h"
#include "dir.h"
#include "proc.h"
#include "extern.h"
#define BIGINDEX 9 /* largest desirable job index */
#define BIGINDEX 9 /* largest desirable job index */
}
else {
if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime))
}
else {
if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime))
- (void) gettimeofday(&pp->p_etime, (struct timezone *) 0);
+ (void) gettimeofday(&pp->p_etime, NULL);
pp->p_rusage = ru;
if (WIFSIGNALED(w)) {
pp->p_rusage = ru;
if (WIFSIGNALED(w)) {
{
register struct process *pp;
int flags;
{
register struct process *pp;
int flags;
neednote = 0;
for (pp = proclist.p_next; pp != PNULL; pp = pp->p_next) {
neednote = 0;
for (pp = proclist.p_next; pp != PNULL; pp = pp->p_next) {
pwait()
{
register struct process *fp, *pp;
pwait()
{
register struct process *fp, *pp;
/*
* Here's where dead procs get flushed.
/*
* Here's where dead procs get flushed.
{
register struct process *fp;
int jobflags, reason;
{
register struct process *fp;
int jobflags, reason;
while (pp->p_pid != pp->p_jobid)
pp = pp->p_friends;
while (pp->p_pid != pp->p_jobid)
pp = pp->p_friends;
dowait()
{
register struct process *pp;
dowait()
{
register struct process *pp;
pjobs++;
omask = sigblock(sigmask(SIGCHLD));
pjobs++;
omask = sigblock(sigmask(SIGCHLD));
for (pp = proclist.p_next; pp; pp = pp->p_next)
if (pp->p_pid && /* pp->p_pid == pp->p_jobid && */
pp->p_flags & PRUNNING) {
for (pp = proclist.p_next; pp; pp = pp->p_next)
if (pp->p_pid && /* pp->p_pid == pp->p_jobid && */
pp->p_flags & PRUNNING) {
- (void) sigpause((sigmask_t) 0);
+ (void) sigpause((sigset_t) 0);
goto loop;
}
(void) sigsetmask(omask);
goto loop;
}
(void) sigsetmask(omask);
}
pp->p_next = proclist.p_next;
proclist.p_next = pp;
}
pp->p_next = proclist.p_next;
proclist.p_next = pp;
- (void) gettimeofday(&pp->p_btime, (struct timezone *) 0);
+ (void) gettimeofday(&pp->p_btime, NULL);
register struct process *pp, *np;
register int jobflags = 0;
int pid, err1 = 0;
register struct process *pp, *np;
register int jobflags = 0;
int pid, err1 = 0;
Char *cp;
omask = sigmask(SIGCHLD);
Char *cp;
omask = sigmask(SIGCHLD);
int foregnd;
{
register struct process *np;
int foregnd;
{
register struct process *np;
long jobflags = 0;
omask = sigblock(sigmask(SIGCHLD));
long jobflags = 0;
omask = sigblock(sigmask(SIGCHLD));
register int pid;
bool ignint = 0;
int pgrp;
register int pid;
bool ignint = 0;
int pgrp;
/*
* A child will be uninterruptible only under very special conditions.
/*
* A child will be uninterruptible only under very special conditions.
pgetty(wanttty, pgrp)
int wanttty, pgrp;
{
pgetty(wanttty, pgrp)
int wanttty, pgrp;
{
/*
* christos: I am blocking the tty signals till I've set things
/*
* christos: I am blocking the tty signals till I've set things
-static char sccsid[] = "@(#)sem.c 5.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)sem.c 5.15 (Berkeley) %G%";
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "proc.h"
#include "extern.h"
#include "proc.h"
#include "extern.h"
- static sigmask_t csigmask;
+ static sigset_t csigmask;
- static sigmask_t ocsigmask;
+ static sigset_t ocsigmask;
static int onosigchld = 0;
static int nosigchld = 0;
static int onosigchld = 0;
static int nosigchld = 0;
bifunc = isbfunc(t);
}
else { /* not a command */
bifunc = isbfunc(t);
}
else { /* not a command */
- bifunc = (struct biltins *) 0;
else {
int ochild, osetintr, ohaderr, odidfds;
int oSHIN, oSHOUT, oSHDIAG, oOLDSTD, otpgrp;
else {
int ochild, osetintr, ohaderr, odidfds;
int oSHIN, oSHOUT, oSHDIAG, oOLDSTD, otpgrp;
/*
* Prepare for the vfork by saving everything that the child
/*
* Prepare for the vfork by saving everything that the child
else {
(void) close(0);
(void) dup(OLDSTD);
else {
(void) close(0);
(void) dup(OLDSTD);
- (void) ioctl(0, FIONCLEX, (char *) 0);
+ (void) ioctl(0, FIONCLEX, NULL);
}
}
if (cp = t->t_drit) {
}
}
if (cp = t->t_drit) {
else {
(void) close(1);
(void) dup(SHOUT);
else {
(void) close(1);
(void) dup(SHOUT);
- (void) ioctl(1, FIONCLEX, (char *) 0);
+ (void) ioctl(1, FIONCLEX, NULL);
}
else {
(void) dup(SHDIAG);
}
else {
(void) dup(SHDIAG);
- (void) ioctl(2, FIONCLEX, (char *) 0);
+ (void) ioctl(2, FIONCLEX, NULL);
-static char sccsid[] = "@(#)set.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)set.c 5.10 (Berkeley) %G%";
+#include <sys/types.h>
+#include <stdlib.h>
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
register len;
if (setintr)
register len;
if (setintr)
- (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
for (;;) {
while (p->v_left)
for (;;) {
while (p->v_left)
-static char sccsid[] = "@(#)time.c 5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)time.c 5.13 (Berkeley) %G%";
#include "csh.h"
#include "extern.h"
#include "csh.h"
#include "extern.h"
- (void) gettimeofday(&time0, (struct timezone *) 0);
+ (void) gettimeofday(&time0, NULL);
(void) getrusage(RUSAGE_SELF, &ru0);
(void) getrusage(RUSAGE_CHILDREN, &ruch);
ruadd(&ru0, &ruch);
(void) getrusage(RUSAGE_SELF, &ru0);
(void) getrusage(RUSAGE_CHILDREN, &ruch);
ruadd(&ru0, &ruch);
(void) getrusage(RUSAGE_SELF, &ru1);
(void) getrusage(RUSAGE_CHILDREN, &ruch);
ruadd(&ru1, &ruch);
(void) getrusage(RUSAGE_SELF, &ru1);
(void) getrusage(RUSAGE_CHILDREN, &ruch);
ruadd(&ru1, &ruch);
- (void) gettimeofday(&timedol, (struct timezone *) 0);
+ (void) gettimeofday(&timedol, NULL);
prusage(&ru0, &ru1, &timedol, &time0);
}
prusage(&ru0, &ru1, &timedol, &time0);
}