diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-14 00:24:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-14 00:24:32 +0000 |
commit | 293e2ed3692571512edc7bff8a33c5e39245390a (patch) | |
tree | 3f8cf6e621e7cfbcc8fee5d99dad7fb95dd5538d /usr.bin/mail/def.h | |
parent | 3045f0573e3ce834b83de1532157108acab288bf (diff) |
NOSTR -> NULL
Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
Diffstat (limited to 'usr.bin/mail/def.h')
-rw-r--r-- | usr.bin/mail/def.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/mail/def.h b/usr.bin/mail/def.h index 5b1b0672d22..234dfc7b4de 100644 --- a/usr.bin/mail/def.h +++ b/usr.bin/mail/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.5 1997/07/13 21:21:10 millert Exp $ */ +/* $OpenBSD: def.h,v 1.6 1997/07/14 00:24:26 millert Exp $ */ /* $NetBSD: def.h,v 1.9 1996/12/28 07:11:00 tls Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,7 +33,7 @@ * SUCH DAMAGE. * * @(#)def.h 8.4 (Berkeley) 4/20/95 - * $OpenBSD: def.h,v 1.5 1997/07/13 21:21:10 millert Exp $ + * $OpenBSD: def.h,v 1.6 1997/07/14 00:24:26 millert Exp $ */ /* @@ -65,7 +65,6 @@ #define LINESIZE BUFSIZ /* max readable line width */ #define STRINGSIZE ((unsigned) 128)/* Dynamic allocation units */ #define MAXARGC 1024 /* Maximum list of raw strings */ -#define NOSTR ((char *) 0) /* Null string pointer */ #define MAXEXP 25 /* Maximum expansion of aliases */ #define equal(a, b) (strcmp(a,b)==0)/* A nice function to string compare */ @@ -263,11 +262,11 @@ struct ignoretab { #define CSEND 2 /* Execute in send mode only */ /* - * Kludges to handle the change from setexit / reset to setjmp / longjmp + * Kludges to handle the change from setexit / reset to sigsetjmp / siglongjmp */ -#define setexit() setjmp(srbuf) -#define reset(x) longjmp(srbuf, x) +#define setexit() sigsetjmp(srbuf, 1) +#define reset(x) siglongjmp(srbuf, x) /* * Truncate a file to the last character written. This is |