summaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
Diffstat (limited to 'signal')
-rw-r--r--signal/sigaddset.c8
-rw-r--r--signal/sigdelset.c8
-rw-r--r--signal/sigempty.c7
-rw-r--r--signal/sigfillset.c7
-rw-r--r--signal/sigismem.c8
5 files changed, 23 insertions, 15 deletions
diff --git a/signal/sigaddset.c b/signal/sigaddset.c
index b9ac34dd5b..69185edca6 100644
--- a/signal/sigaddset.c
+++ b/signal/sigaddset.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,13 @@ Cambridge, MA 02139, USA. */
/* Add SIGNO to SET. */
int
-DEFUN(sigaddset, (set, signo), sigset_t *set AND int signo)
+sigaddset (set, signo)
+ sigset_t *set;
+ int signo;
{
if (set == NULL || signo <= 0 || signo >= NSIG)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
diff --git a/signal/sigdelset.c b/signal/sigdelset.c
index 07e880f9c4..0b88a0977b 100644
--- a/signal/sigdelset.c
+++ b/signal/sigdelset.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,13 @@ Cambridge, MA 02139, USA. */
/* Add SIGNO to SET. */
int
-DEFUN(sigdelset, (set, signo), sigset_t *set AND int signo)
+sigdelset (set, signo)
+ sigset_t *set;
+ int signo;
{
if (set == NULL || signo <= 0 || signo >= NSIG)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
diff --git a/signal/sigempty.c b/signal/sigempty.c
index 0ec129ded4..5e4bebb27c 100644
--- a/signal/sigempty.c
+++ b/signal/sigempty.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,12 @@ Cambridge, MA 02139, USA. */
/* Clear all signals from SET. */
int
-DEFUN(sigemptyset, (set), sigset_t *set)
+sigemptyset (set)
+ sigset_t *set;
{
if (set == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
diff --git a/signal/sigfillset.c b/signal/sigfillset.c
index 88c1833b55..6ea4707e63 100644
--- a/signal/sigfillset.c
+++ b/signal/sigfillset.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,12 @@ Cambridge, MA 02139, USA. */
/* Set all signals in SET. */
int
-DEFUN(sigfillset, (set), sigset_t *set)
+sigfillset (set)
+ sigset_t *set;
{
if (set == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}
diff --git a/signal/sigismem.c b/signal/sigismem.c
index 36c04db5e2..d171517509 100644
--- a/signal/sigismem.c
+++ b/signal/sigismem.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,13 @@ Cambridge, MA 02139, USA. */
/* Return 1 if SIGNO is in SET, 0 if not. */
int
-DEFUN(sigismember, (set, signo), CONST sigset_t *set AND int signo)
+sigismember (set, signo)
+ const sigset_t *set;
+ int signo;
{
if (set == NULL || signo <= 0 || signo >= NSIG)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}