summaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-11-16 19:43:48 +0000
committerRoland McGrath <roland@gnu.org>1992-11-16 19:43:48 +0000
commitc5f4042cc06495b7220d4f79e92c98daf57220b9 (patch)
tree77ce8ba47a9121e9daa8970f2c00e9b6cb31bcf4 /signal
parent116d91ca9e4043266fcc5c9ab9877bdadb9046e4 (diff)
Formerly ../signal/signal.h.~18~
Diffstat (limited to 'signal')
-rw-r--r--signal/signal.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/signal/signal.h b/signal/signal.h
index d0f4880c8d..321f7c267a 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -58,7 +58,7 @@ extern __sighandler_t signal __P ((int __sig, __sighandler_t __handler));
If PID is < -1, send SIG to all processes in process group - PID. */
extern int __kill __P ((__pid_t __pid, int __sig));
#ifdef __USE_POSIX
-extern int kill __P ((int __pid, int __sig));
+extern int kill __P ((__pid_t __pid, int __sig));
#endif /* Use POSIX. */
#ifdef __USE_BSD
@@ -143,34 +143,20 @@ extern int sigismember __P ((__const sigset_t *__set, int signo));
#define sigismember(set, signo) __sigismember(set, signo)
#endif
+/* Get the system-specific definitions of `struct sigaction'
+ and the `SA_*' and `SIG_*'. constants. */
+#include <sigaction.h>
+
/* Get and/or change the set of blocked signals. */
extern int __sigprocmask __P ((int __how,
__const sigset_t *__set, sigset_t *__oset));
extern int sigprocmask __P ((int __how,
__const sigset_t *__set, sigset_t *__oset));
-/* Values for the HOW argument to `sigprocmask'. */
-#define SIG_BLOCK 1 /* Block signals. */
-#define SIG_UNBLOCK 2 /* Unblock signals. */
-#define SIG_SETMASK 3 /* Set the set of blocked signals. */
-
-
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
extern int sigsuspend __P ((__const sigset_t *__set));
-/* Get the system-specific definitions of
- `struct sigaction' and the `__SA_*' constants. */
-#include <sigaction.h>
-
-/* Bits in the `sa_flags' field of a `struct sigaction'. */
-#ifdef __USE_BSD
-#define SA_ONSTACK __SA_ONSTACK /* Take signal on signal stack. */
-#define SA_RESTART __SA_RESTART /* No syscall restart on sig ret. */
-#define SA_DISABLE __SA_DISABLE /* Disable alternate signal stack. */
-#endif
-#define SA_NOCLDSTOP __SA_NOCLDSTOP /* No SIGCHLD when children stop. */
-
/* Get and/or set the action for signal SIG. */
extern int __sigaction __P ((int __sig, __const struct __sigaction *__act,
struct __sigaction *__oact));