From 54f9fd8835f0e13c9919fcc83c1ba3789ced1d19 Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Wed, 19 Jul 2000 14:54:42 +0000 Subject: - Add support for sigset_t - changes. - Claim maintainership. Approved by: cracauer --- lang/scsh/Makefile | 2 +- lang/scsh/files/patch-af | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 lang/scsh/files/patch-af (limited to 'lang') diff --git a/lang/scsh/Makefile b/lang/scsh/Makefile index dc29959dc04d..c05f3c977d79 100644 --- a/lang/scsh/Makefile +++ b/lang/scsh/Makefile @@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= cracauer -MAINTAINER= cracauer@cons.org +MAINTAINER= alex@FreeBSD.org CONFIGURE_ENV+= LDFLAGS="-Wl,-E" diff --git a/lang/scsh/files/patch-af b/lang/scsh/files/patch-af new file mode 100644 index 000000000000..5db2627b7de6 --- /dev/null +++ b/lang/scsh/files/patch-af @@ -0,0 +1,26 @@ +--- scsh/bsd/sigset.h.old Tue Feb 1 16:04:42 2000 ++++ scsh/bsd/sigset.h Fri Feb 4 14:54:18 2000 +@@ -2,9 +2,18 @@ + ** These macros are OS-dependent, and must be defined per-OS. + */ + +-#define make_sigset(maskp, hi, lo) (*maskp=((hi)<<24)|(lo)) ++#define make_sigset(maskp, hi, lo) sigemptyset(maskp),\ ++ sigaddset(maskp, hi), \ ++ sigaddset(maskp, lo); + +-/* Not a procedure: */ +-#define split_sigset(mask, hip, lop) \ +- ((*(hip)=(mask>>24)&0xff), \ +- (*(lop)=(mask&0xffffff))) ++static void ++split_sigset(sigset_t mask, int * hip, int * lop) { ++ int seen = 0; ++ int n; ++ for (n = 1; n <= _SIG_MAXSIG; n++) { ++ if (sigismember(&mask, n)) ++ (seen ? *hip : *lop) = n, seen++; ++ } ++ if (seen == 1) ++ *hip = 0; ++} -- cgit v1.2.3