summaryrefslogtreecommitdiffstats
path: root/bin/csh
diff options
context:
space:
mode:
authorjraynard <jraynard@FreeBSD.org>1998-02-28 10:50:02 +0000
committerjraynard <jraynard@FreeBSD.org>1998-02-28 10:50:02 +0000
commitb2f54112710762780367f567ce6ebc676abc9bc6 (patch)
tree1f0c8f66a2c7783db9cac189d624acb1a45a8c09 /bin/csh
parent2d52e6140b2c97df2adc2965b72cb33cc5c1da4b (diff)
downloadFreeBSD-src-b2f54112710762780367f567ce6ebc676abc9bc6.zip
FreeBSD-src-b2f54112710762780367f567ce6ebc676abc9bc6.tar.gz
Don't assume sigset_t and int are equivalent.
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/csh.c12
-rw-r--r--bin/csh/exec.c4
-rw-r--r--bin/csh/func.c10
-rw-r--r--bin/csh/hist.c4
-rw-r--r--bin/csh/proc.c20
-rw-r--r--bin/csh/sem.c8
-rw-r--r--bin/csh/set.c4
7 files changed, 31 insertions, 31 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index 3504806..46b792c 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)csh.c 8.2 (Berkeley) 10/12/93";
#else
static const char rcsid[] =
- "$Id: csh.c,v 1.11 1997/10/07 16:27:48 eivind Exp $";
+ "$Id: csh.c,v 1.12 1997/12/10 22:18:21 eivind Exp $";
#endif
#endif /* not lint */
@@ -527,7 +527,7 @@ notty:
{
int osetintr = setintr;
sig_t oparintr = parintr;
- sigset_t omask = sigblock(sigmask(SIGINT));
+ int omask = sigblock(sigmask(SIGINT));
setintr = 0;
parintr = SIG_IGN; /* Disable onintr */
@@ -698,7 +698,7 @@ srcunit(unit, onlyown, hflg)
bool otell = cantell;
struct Bin saveB;
- volatile sigset_t omask;
+ volatile int omask;
jmp_buf oldexit;
/* The (few) real local variables */
@@ -934,9 +934,9 @@ pintr1(wantnl)
bool wantnl;
{
Char **v;
- sigset_t omask;
+ int omask;
- omask = sigblock((sigset_t) 0);
+ omask = sigblock(0);
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
@@ -1006,7 +1006,7 @@ process(catch)
* Interruptible during interactive reads
*/
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
/*
* For the sake of reset()
diff --git a/bin/csh/exec.c b/bin/csh/exec.c
index cee1cbc..8a29037 100644
--- a/bin/csh/exec.c
+++ b/bin/csh/exec.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: exec.c,v 1.7 1997/08/07 21:42:07 steve Exp $";
+ "$Id: exec.c,v 1.8 1997/12/10 22:18:22 eivind Exp $";
#endif
#endif /* not lint */
@@ -195,7 +195,7 @@ doexec(v, t)
* We must do this AFTER any possible forking (like `foo` in glob) so that
* this shell can still do subprocesses.
*/
- (void) sigsetmask((sigset_t) 0);
+ (void) sigsetmask(0);
/*
* If no path, no words in path, or a / in the filename then restrict the
* command search.
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 25668cb..42dad63 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: func.c,v 1.8 1997/08/07 21:42:09 steve Exp $";
+ "$Id: func.c,v 1.9 1997/08/08 00:54:03 steve Exp $";
#endif
#endif /* not lint */
@@ -510,7 +510,7 @@ preread()
{
whyles->w_end.type = I_SEEK;
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
search(T_BREAK, 0, NULL); /* read the expression in */
if (setintr)
@@ -568,7 +568,7 @@ dorepeat(v, kp)
struct command *kp;
{
int i;
- sigset_t omask = 0;
+ int omask = 0;
i = getn(v[1]);
if (setintr)
@@ -910,7 +910,7 @@ xecho(sep, v)
int nonl = 0;
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
v++;
if (*v == 0)
return;
@@ -958,7 +958,7 @@ dosetenv(v, t)
Char **ep;
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
for (ep = STR_environ; *ep; ep++)
(void) fprintf(cshout, "%s\n", vis_str(*ep));
return;
diff --git a/bin/csh/hist.c b/bin/csh/hist.c
index fcc565d..977b1d4 100644
--- a/bin/csh/hist.c
+++ b/bin/csh/hist.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)hist.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: hist.c,v 1.4 1997/02/22 14:01:59 peter Exp $";
+ "$Id: hist.c,v 1.5 1997/08/07 21:42:10 steve Exp $";
#endif
#endif /* not lint */
@@ -130,7 +130,7 @@ dohist(v, t)
if (getn(value(STRhistory)) == 0)
return;
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
while (*++v && **v == '-') {
Char *vp = *v;
diff --git a/bin/csh/proc.c b/bin/csh/proc.c
index eb10e79..9062dda 100644
--- a/bin/csh/proc.c
+++ b/bin/csh/proc.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)proc.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: proc.c,v 1.6 1997/08/08 00:54:05 steve Exp $";
+ "$Id: proc.c,v 1.7 1997/10/07 16:43:16 eivind Exp $";
#endif
#endif /* not lint */
@@ -208,7 +208,7 @@ pnote()
{
struct process *pp;
int flags;
- sigset_t omask;
+ int omask;
neednote = 0;
for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) {
@@ -231,7 +231,7 @@ void
pwait()
{
struct process *fp, *pp;
- sigset_t omask;
+ int omask;
/*
* Here's where dead procs get flushed.
@@ -262,7 +262,7 @@ pjwait(pp)
{
struct process *fp;
int jobflags, reason;
- sigset_t omask;
+ int omask;
while (pp->p_pid != pp->p_jobid)
pp = pp->p_friends;
@@ -351,7 +351,7 @@ dowait(v, t)
struct command *t;
{
struct process *pp;
- sigset_t omask;
+ int omask;
pjobs++;
omask = sigblock(sigmask(SIGCHLD));
@@ -359,7 +359,7 @@ loop:
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((sigset_t) 0);
+ (void) sigpause(0);
goto loop;
}
(void) sigsetmask(omask);
@@ -1006,7 +1006,7 @@ pkill(v, signum)
struct process *pp, *np;
int jobflags = 0;
int pid, err1 = 0;
- sigset_t omask;
+ int omask;
Char *cp;
omask = sigmask(SIGCHLD);
@@ -1090,7 +1090,7 @@ pstart(pp, foregnd)
int foregnd;
{
struct process *np;
- sigset_t omask;
+ int omask;
long jobflags = 0;
omask = sigblock(sigmask(SIGCHLD));
@@ -1236,7 +1236,7 @@ pfork(t, wanttty)
int pid;
bool ignint = 0;
int pgrp;
- sigset_t omask;
+ int omask;
/*
* A child will be uninterruptible only under very special conditions.
@@ -1333,7 +1333,7 @@ void
pgetty(wanttty, pgrp)
int wanttty, pgrp;
{
- sigset_t omask = 0;
+ int omask = 0;
/*
* christos: I am blocking the tty signals till I've set things
diff --git a/bin/csh/sem.c b/bin/csh/sem.c
index e0ef759..810e852 100644
--- a/bin/csh/sem.c
+++ b/bin/csh/sem.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)sem.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: sem.c,v 1.5 1997/02/22 14:02:07 peter Exp $";
+ "$Id: sem.c,v 1.6 1997/08/07 21:42:15 steve Exp $";
#endif
#endif /* not lint */
@@ -73,9 +73,9 @@ execute(t, wanttty, pipein, pipeout)
int pid = 0;
int pv[2];
- static sigset_t csigmask;
+ static int csigmask;
- static sigset_t ocsigmask;
+ static int ocsigmask;
static int onosigchld = 0;
static int nosigchld = 0;
@@ -229,7 +229,7 @@ execute(t, wanttty, pipein, pipeout)
else {
int ochild, osetintr, ohaderr, odidfds;
int oSHIN, oSHOUT, oSHERR, oOLDSTD, otpgrp;
- sigset_t omask;
+ int omask;
/*
* Prepare for the vfork by saving everything that the child
diff --git a/bin/csh/set.c b/bin/csh/set.c
index 1f532b0..c907cd3 100644
--- a/bin/csh/set.c
+++ b/bin/csh/set.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)set.c 8.1 (Berkeley) 5/31/93";
#else
static const char rcsid[] =
- "$Id: set.c,v 1.6 1997/02/22 14:02:08 peter Exp $";
+ "$Id: set.c,v 1.7 1997/08/07 21:42:16 steve Exp $";
#endif
#endif /* not lint */
@@ -822,7 +822,7 @@ plist(p)
int len;
if (setintr)
- (void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
+ (void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
for (;;) {
while (p->v_left)
OpenPOWER on IntegriCloud