Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh ksh: Drop fallback for BSD4.2 signal routines



details:   https://anonhg.NetBSD.org/src/rev/864b16203bf1
branches:  trunk
changeset: 824927:864b16203bf1
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 22 23:59:28 2017 +0000

description:
ksh: Drop fallback for BSD4.2 signal routines

diffstat:

 bin/ksh/conf-end.h |   6 +++---
 bin/ksh/config.h   |   5 +----
 bin/ksh/sigact.c   |  11 +++--------
 3 files changed, 7 insertions(+), 15 deletions(-)

diffs (75 lines):

diff -r a72a9b242bb8 -r 864b16203bf1 bin/ksh/conf-end.h
--- a/bin/ksh/conf-end.h        Thu Jun 22 23:56:24 2017 +0000
+++ b/bin/ksh/conf-end.h        Thu Jun 22 23:59:28 2017 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: conf-end.h,v 1.3 2017/06/22 23:54:13 kamil Exp $       */
+/*     $NetBSD: conf-end.h,v 1.4 2017/06/22 23:59:28 kamil Exp $       */
 
 /*
  * End of configuration stuff for PD ksh.
  *
- * RCSid: $NetBSD: conf-end.h,v 1.3 2017/06/22 23:54:13 kamil Exp $
+ * RCSid: $NetBSD: conf-end.h,v 1.4 2017/06/22 23:59:28 kamil Exp $
  */
 
 #if defined(EMACS) || defined(VI)
@@ -24,7 +24,7 @@
 
 /* Can we safely catch sigchld and wait for processes? */
 #if (defined(HAVE_WAITPID) || defined(HAVE_WAIT3)) \
-    && (defined(POSIX_SIGNALS) || defined(BSD42_SIGNALS))
+    && (defined(POSIX_SIGNALS))
 # define JOB_SIGS
 #endif
 
diff -r a72a9b242bb8 -r 864b16203bf1 bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:56:24 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:59:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.33 2017/06/22 23:56:24 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.34 2017/06/22 23:59:28 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -66,9 +66,6 @@
 /* Define if you have posix signal routines (sigaction(), et. al.) */
 #define POSIX_SIGNALS 1
 
-/* Define if you have BSD4.2 signal routines (sigsetmask(), et. al.) */
-/* #undef BSD42_SIGNALS */
-
 /* Define if you have v7 signal routines (signal(), signal reset on delivery) */
 /* #undef V7_SIGNALS */
 
diff -r a72a9b242bb8 -r 864b16203bf1 bin/ksh/sigact.c
--- a/bin/ksh/sigact.c  Thu Jun 22 23:56:24 2017 +0000
+++ b/bin/ksh/sigact.c  Thu Jun 22 23:59:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigact.c,v 1.5 2017/06/22 23:56:24 kamil Exp $ */
+/*     $NetBSD: sigact.c,v 1.6 2017/06/22 23:59:28 kamil Exp $ */
 
 /* NAME:
  *      sigact.c - fake sigaction(2)
@@ -141,7 +141,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: sigact.c,v 1.5 2017/06/22 23:56:24 kamil Exp $");
+__RCSID("$NetBSD: sigact.c,v 1.6 2017/06/22 23:59:28 kamil Exp $");
 #endif
 
 
@@ -167,12 +167,7 @@
 #ifdef USE_FAKE_SIGACT /* let autoconf decide.. */
 /* #if !defined(SA_NOCLDSTOP) || defined(_SIGACT_H) || defined(USE_SIGNAL) || defined(USE_SIGSET) || defined(USE_SIGMASK) */
 
-/* Let autoconf decide which to use */
-#ifdef BSD42_SIGNALS
-# define USE_SIGMASK
-#else
-# define USE_SIGNAL
-#endif /* BSD42_SIGNALS */
+#define USE_SIGMASK
 
 /*
  * if we haven't been told,



Home | Main Index | Thread Index | Old Index