aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-11-21 11:37:07 +0000
committerJakub Jelinek <jakub@redhat.com>2004-11-21 11:37:07 +0000
commitf2fad0ae26d274bd203ba350a66b6f2bec3f6740 (patch)
tree7e0ffe5e737e956aa3b100af71360d62949535af /signal
parent8a2f63b734c8081b54dcf75b6d5438833d503f64 (diff)
downloadglibc-f2fad0ae26d274bd203ba350a66b6f2bec3f6740.tar
glibc-f2fad0ae26d274bd203ba350a66b6f2bec3f6740.tar.gz
glibc-f2fad0ae26d274bd203ba350a66b6f2bec3f6740.tar.bz2
glibc-f2fad0ae26d274bd203ba350a66b6f2bec3f6740.zip
Updated to fedora-glibc-20041121T1116
Diffstat (limited to 'signal')
-rw-r--r--signal/signal.h38
1 files changed, 22 insertions, 16 deletions
diff --git a/signal/signal.h b/signal/signal.h
index 76c0f67a8f..ed39328efb 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -89,7 +89,8 @@ extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler)
By default `signal' has the BSD semantic. */
__BEGIN_NAMESPACE_STD
#ifdef __USE_BSD
-extern __sighandler_t signal (int __sig, __sighandler_t __handler) __THROW;
+extern __sighandler_t signal (int __sig, __sighandler_t __handler)
+ __THROW;
#else
/* Make sure the used `signal' implementation is the SVID version. */
# ifdef __REDIRECT_NTH
@@ -105,7 +106,8 @@ __END_NAMESPACE_STD
#ifdef __USE_XOPEN
/* The X/Open definition of `signal' conflicts with the BSD version.
So they defined another function `bsd_signal'. */
-extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) __THROW;
+extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
+ __THROW;
#endif
/* Send signal SIG to process number PID. If PID is zero,
@@ -129,7 +131,8 @@ __END_NAMESPACE_STD
#ifdef __USE_SVID
/* SVID names for the same things. */
-extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) __THROW;
+extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
+ __THROW;
extern int gsignal (int __sig) __THROW;
#endif /* Use SVID. */
@@ -210,31 +213,32 @@ typedef __sighandler_t sig_t;
# endif
/* Clear all signals from SET. */
-extern int sigemptyset (sigset_t *__set) __THROW;
+extern int sigemptyset (sigset_t *__set) __THROW __nonnull ((1));
/* Set all signals in SET. */
-extern int sigfillset (sigset_t *__set) __THROW;
+extern int sigfillset (sigset_t *__set) __THROW __nonnull ((1));
/* Add SIGNO to SET. */
-extern int sigaddset (sigset_t *__set, int __signo) __THROW;
+extern int sigaddset (sigset_t *__set, int __signo) __THROW __nonnull ((1));
/* Remove SIGNO from SET. */
-extern int sigdelset (sigset_t *__set, int __signo) __THROW;
+extern int sigdelset (sigset_t *__set, int __signo) __THROW __nonnull ((1));
/* Return 1 if SIGNO is in SET, 0 if not. */
-extern int sigismember (__const sigset_t *__set, int __signo) __THROW;
+extern int sigismember (__const sigset_t *__set, int __signo)
+ __THROW __nonnull ((1));
# ifdef __USE_GNU
/* Return non-empty value is SET is not empty. */
-extern int sigisemptyset (__const sigset_t *__set) __THROW;
+extern int sigisemptyset (__const sigset_t *__set) __THROW __nonnull ((1));
/* Build new signal set by combining the two inputs set using logical AND. */
extern int sigandset (sigset_t *__set, __const sigset_t *__left,
- __const sigset_t *__right) __THROW;
+ __const sigset_t *__right) __THROW __nonnull ((1, 2, 3));
/* Build new signal set by combining the two inputs set using logical OR. */
extern int sigorset (sigset_t *__set, __const sigset_t *__left,
- __const sigset_t *__right) __THROW;
+ __const sigset_t *__right) __THROW __nonnull ((1, 2, 3));
# endif /* GNU */
/* Get the system-specific definitions of `struct sigaction'
@@ -250,21 +254,22 @@ extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
This function is a cancellation point and therefore not marked with
__THROW. */
-extern int sigsuspend (__const sigset_t *__set);
+extern int sigsuspend (__const sigset_t *__set) __nonnull ((1));
/* Get and/or set the action for signal SIG. */
extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
struct sigaction *__restrict __oact) __THROW;
/* Put in SET all signals that are blocked and waiting to be delivered. */
-extern int sigpending (sigset_t *__set) __THROW;
+extern int sigpending (sigset_t *__set) __THROW __nonnull ((1));
/* Select any of pending signals from SET or wait for any to arrive.
This function is a cancellation point and therefore not marked with
__THROW. */
-extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig);
+extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
+ __nonnull ((1, 2));
# ifdef __USE_POSIX199309
/* Select any of pending signals from SET and place information in INFO.
@@ -272,7 +277,7 @@ extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig);
This function is a cancellation point and therefore not marked with
__THROW. */
extern int sigwaitinfo (__const sigset_t *__restrict __set,
- siginfo_t *__restrict __info);
+ siginfo_t *__restrict __info) __nonnull ((1));
/* Select any of pending signals from SET and place information in INFO.
Wait the time specified by TIMEOUT if no signal is pending.
@@ -281,7 +286,8 @@ extern int sigwaitinfo (__const sigset_t *__restrict __set,
__THROW. */
extern int sigtimedwait (__const sigset_t *__restrict __set,
siginfo_t *__restrict __info,
- __const struct timespec *__restrict __timeout);
+ __const struct timespec *__restrict __timeout)
+ __nonnull ((1));
/* Send signal SIG to the process PID. Associate data in VAL with the
signal. */