summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-08-25 11:58:32 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-08-25 11:58:32 +0000
commit69189bf9794c800b106a391ec8409cc13efb8ebe (patch)
tree9e3446d678b7b6d8422db73322eee97a060426b2 /bin
parent2e01e21913f63d2717785702c724c6228475f0ae (diff)
More dead wood.
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/sigact.h131
-rw-r--r--bin/pdksh/sigact.h131
2 files changed, 0 insertions, 262 deletions
diff --git a/bin/ksh/sigact.h b/bin/ksh/sigact.h
deleted file mode 100644
index 17d32f17e94..00000000000
--- a/bin/ksh/sigact.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/* $OpenBSD: sigact.h,v 1.1 1996/08/14 06:19:11 downsj Exp $ */
-
-/* NAME:
- * sigact.h - sigaction et al
- *
- * SYNOPSIS:
- * #include "sigact.h"
- *
- * DESCRIPTION:
- * This header is the interface to a fake sigaction(2)
- * implementation. It provides a POSIX compliant interface
- * to whatever signal handling mechanisms are available.
- * It also provides a Signal() function that is implemented
- * in terms of sigaction().
- * If not using signal(2) as part of the underlying
- * implementation (USE_SIGNAL or USE_SIGMASK), and
- * NO_SIGNAL is not defined, it also provides a signal()
- * function that calls Signal().
- *
- * SEE ALSO:
- * sigact.c
- */
-/*
- * RCSid:
- * $From: sigact.h,v 1.2 1994/05/31 13:34:34 michael Exp $
- */
-/* Changes to sigact.h for pdksh, Michael Rendell <michael@cs.mun.ca>:
- * - changed SIG_HDLR to RETSIGTYPE for use with GNU autoconf
- * - added RETSIGVAL
- * - ifdef'd out ARGS(), volatile and const initializations
- * - ifdef'd out sigset_t definition - let autoconf handle it
- * - ifdef out routines not used in ksh if IS_KSH is defined
- * (same in sigact.c).
- */
-#ifndef _SIGACT_H
-#define _SIGACT_H
-
-/*
- * most modern systems use void for signal handlers but
- * not all.
- */
-#ifndef RETSIGTYPE
-# define RETSIGTYPE void
-# define RETSIGVAL
-#endif
-
-#if 0 /* ARGS(), volatile and const are already set up in config*.h -mhr */
-#undef ARGS
-#if defined(__STDC__) || defined(__cplusplus)
-# define ARGS(p) p
-#else
-# define ARGS(p) ()
-# define volatile /* don't optimize please */
-# define const /* read only */
-#endif
-#endif
-
-#ifndef IS_KSH
-handler_t Signal ARGS((int sig, handler_t disp));
-#endif /* IS_KSH */
-
-/*
- * if you want to install this header as signal.h,
- * modify this to pick up the original signal.h
- */
-#ifndef SIGKILL
-# include <signal.h>
-#endif
-
-#ifndef SIG_ERR
-# define SIG_ERR ((handler_t) -1)
-#endif
-#ifndef BADSIG
-# define BADSIG SIG_ERR
-#endif
-
-#ifndef SA_NOCLDSTOP
-/* we assume we need the fake sigaction */
-/* sa_flags */
-#define SA_NOCLDSTOP 1 /* don't send SIGCHLD on child stop */
-#define SA_RESTART 2 /* re-start I/O */
-
-/* sigprocmask flags */
-#define SIG_BLOCK 1
-#define SIG_UNBLOCK 2
-#define SIG_SETMASK 4
-
-#if 0 /* autoconf will define sigset_t if it isn't available */
-/*
- * this is a bit untidy
- */
-#if !defined(__sys_stdtypes_h)
-typedef unsigned int sigset_t;
-#endif
-#endif /* 0 */
-
-/*
- * POSIX sa_handler should return void, but since we are
- * implementing in terms of something else, it may
- * be appropriate to use the normal RETSIGTYPE return type
- */
-struct sigaction
-{
- handler_t sa_handler;
- sigset_t sa_mask;
- int sa_flags;
-};
-
-
-int sigaction ARGS(( int sig, struct sigaction *act, struct sigaction *oact ));
-int sigaddset ARGS(( sigset_t *mask, int sig ));
-#ifndef IS_KSH
-int sigdelset ARGS(( sigset_t *mask, int sig ));
-#endif /* IS_KSH */
-int sigemptyset ARGS(( sigset_t *mask ));
-#ifndef IS_KSH
-int sigfillset ARGS(( sigset_t *mask ));
-int sigismember ARGS(( sigset_t *mask, int sig ));
-int sigpending ARGS(( sigset_t *set ));
-#endif /* IS_KSH */
-int sigprocmask ARGS(( int how, sigset_t *set, sigset_t *oset ));
-int sigsuspend ARGS(( sigset_t *mask ));
-
-#ifndef sigmask
-# define sigmask(s) (1<<((s)-1)) /* convert SIGnum to mask */
-#endif
-#if !defined(NSIG) && defined(_NSIG)
-# define NSIG _NSIG
-#endif
-#endif /* ! SA_NOCLDSTOP */
-#endif /* _SIGACT_H */
diff --git a/bin/pdksh/sigact.h b/bin/pdksh/sigact.h
deleted file mode 100644
index 17d32f17e94..00000000000
--- a/bin/pdksh/sigact.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/* $OpenBSD: sigact.h,v 1.1 1996/08/14 06:19:11 downsj Exp $ */
-
-/* NAME:
- * sigact.h - sigaction et al
- *
- * SYNOPSIS:
- * #include "sigact.h"
- *
- * DESCRIPTION:
- * This header is the interface to a fake sigaction(2)
- * implementation. It provides a POSIX compliant interface
- * to whatever signal handling mechanisms are available.
- * It also provides a Signal() function that is implemented
- * in terms of sigaction().
- * If not using signal(2) as part of the underlying
- * implementation (USE_SIGNAL or USE_SIGMASK), and
- * NO_SIGNAL is not defined, it also provides a signal()
- * function that calls Signal().
- *
- * SEE ALSO:
- * sigact.c
- */
-/*
- * RCSid:
- * $From: sigact.h,v 1.2 1994/05/31 13:34:34 michael Exp $
- */
-/* Changes to sigact.h for pdksh, Michael Rendell <michael@cs.mun.ca>:
- * - changed SIG_HDLR to RETSIGTYPE for use with GNU autoconf
- * - added RETSIGVAL
- * - ifdef'd out ARGS(), volatile and const initializations
- * - ifdef'd out sigset_t definition - let autoconf handle it
- * - ifdef out routines not used in ksh if IS_KSH is defined
- * (same in sigact.c).
- */
-#ifndef _SIGACT_H
-#define _SIGACT_H
-
-/*
- * most modern systems use void for signal handlers but
- * not all.
- */
-#ifndef RETSIGTYPE
-# define RETSIGTYPE void
-# define RETSIGVAL
-#endif
-
-#if 0 /* ARGS(), volatile and const are already set up in config*.h -mhr */
-#undef ARGS
-#if defined(__STDC__) || defined(__cplusplus)
-# define ARGS(p) p
-#else
-# define ARGS(p) ()
-# define volatile /* don't optimize please */
-# define const /* read only */
-#endif
-#endif
-
-#ifndef IS_KSH
-handler_t Signal ARGS((int sig, handler_t disp));
-#endif /* IS_KSH */
-
-/*
- * if you want to install this header as signal.h,
- * modify this to pick up the original signal.h
- */
-#ifndef SIGKILL
-# include <signal.h>
-#endif
-
-#ifndef SIG_ERR
-# define SIG_ERR ((handler_t) -1)
-#endif
-#ifndef BADSIG
-# define BADSIG SIG_ERR
-#endif
-
-#ifndef SA_NOCLDSTOP
-/* we assume we need the fake sigaction */
-/* sa_flags */
-#define SA_NOCLDSTOP 1 /* don't send SIGCHLD on child stop */
-#define SA_RESTART 2 /* re-start I/O */
-
-/* sigprocmask flags */
-#define SIG_BLOCK 1
-#define SIG_UNBLOCK 2
-#define SIG_SETMASK 4
-
-#if 0 /* autoconf will define sigset_t if it isn't available */
-/*
- * this is a bit untidy
- */
-#if !defined(__sys_stdtypes_h)
-typedef unsigned int sigset_t;
-#endif
-#endif /* 0 */
-
-/*
- * POSIX sa_handler should return void, but since we are
- * implementing in terms of something else, it may
- * be appropriate to use the normal RETSIGTYPE return type
- */
-struct sigaction
-{
- handler_t sa_handler;
- sigset_t sa_mask;
- int sa_flags;
-};
-
-
-int sigaction ARGS(( int sig, struct sigaction *act, struct sigaction *oact ));
-int sigaddset ARGS(( sigset_t *mask, int sig ));
-#ifndef IS_KSH
-int sigdelset ARGS(( sigset_t *mask, int sig ));
-#endif /* IS_KSH */
-int sigemptyset ARGS(( sigset_t *mask ));
-#ifndef IS_KSH
-int sigfillset ARGS(( sigset_t *mask ));
-int sigismember ARGS(( sigset_t *mask, int sig ));
-int sigpending ARGS(( sigset_t *set ));
-#endif /* IS_KSH */
-int sigprocmask ARGS(( int how, sigset_t *set, sigset_t *oset ));
-int sigsuspend ARGS(( sigset_t *mask ));
-
-#ifndef sigmask
-# define sigmask(s) (1<<((s)-1)) /* convert SIGnum to mask */
-#endif
-#if !defined(NSIG) && defined(_NSIG)
-# define NSIG _NSIG
-#endif
-#endif /* ! SA_NOCLDSTOP */
-#endif /* _SIGACT_H */