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 the latest ifdef for BSD4.1 and eliminate ...



details:   https://anonhg.NetBSD.org/src/rev/c2e43212218b
branches:  trunk
changeset: 824930:c2e43212218b
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Jun 23 00:07:15 2017 +0000

description:
ksh: Drop the latest ifdef for BSD4.1 and eliminate dead code around it

diffstat:

 bin/ksh/sigact.c |  26 ++------------------------
 1 files changed, 2 insertions(+), 24 deletions(-)

diffs (47 lines):

diff -r 0a5d177214d3 -r c2e43212218b bin/ksh/sigact.c
--- a/bin/ksh/sigact.c  Fri Jun 23 00:04:20 2017 +0000
+++ b/bin/ksh/sigact.c  Fri Jun 23 00:07:15 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigact.c,v 1.6 2017/06/22 23:59:28 kamil Exp $ */
+/*     $NetBSD: sigact.c,v 1.7 2017/06/23 00:07:15 kamil Exp $ */
 
 /* NAME:
  *      sigact.c - fake sigaction(2)
@@ -141,7 +141,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: sigact.c,v 1.6 2017/06/22 23:59:28 kamil Exp $");
+__RCSID("$NetBSD: sigact.c,v 1.7 2017/06/23 00:07:15 kamil Exp $");
 #endif
 
 
@@ -169,28 +169,6 @@
 
 #define USE_SIGMASK
 
-/*
- * if we haven't been told,
- * try and guess what we should implement with.
- */
-#if !defined(USE_SIGSET) && !defined(USE_SIGMASK) && !defined(USE_SIGNAL)
-# if defined(sigmask) || defined(BSD) || defined(_BSD) && !defined(BSD41)
-#   define USE_SIGMASK
-# else
-#   ifndef NO_SIGSET
-#     define USE_SIGSET
-#   else
-#     define USE_SIGNAL
-#   endif
-# endif
-#endif
-/*
- * if we still don't know, we're in trouble
- */
-#if !defined(USE_SIGSET) && !defined(USE_SIGMASK) && !defined(USE_SIGNAL)
-error must know what to implement with
-#endif
-
 #include "sigact.h"
 
 /*



Home | Main Index | Thread Index | Old Index