aboutsummaryrefslogtreecommitdiffstats
path: root/include/signal.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-01-01 17:16:47 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-01-01 17:16:47 +0000
commitf1b298ad46305d58fa4bd8a02db4ec12d3e3726e (patch)
treefcb4c03eb4e320e2d67e143f717eee4d3f76f09e /include/signal.h
parentd2aa1af62902b45be2cab4165f694ead9f90c84a (diff)
downloadsrc-f1b298ad46305d58fa4bd8a02db4ec12d3e3726e.tar.gz
src-f1b298ad46305d58fa4bd8a02db4ec12d3e3726e.zip
Remove some uses of the GCC __nonnull() attribute.
While the checks are considered useful, the attribute does dangerous optimizations, removing NULL checks where they can be needed. Remove the uses of this attribute introduced in r281130: the changes were inspired on Google's bionic where this attribute is not used anymore. The __nonnull() attribute will be deprecrated from our headers and replaced with the Clang _Nonnull qualifier in the future. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=311012
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/signal.h b/include/signal.h
index 9f33fb66d8c5..9d874de3632a 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -82,10 +82,10 @@ int sigdelset(sigset_t *, int);
int sigemptyset(sigset_t *);
int sigfillset(sigset_t *);
int sigismember(const sigset_t *, int);
-int sigpending(sigset_t *) __nonnull(1);
+int sigpending(sigset_t *);
int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
-int sigsuspend(const sigset_t *) __nonnull(1);
-int sigwait(const sigset_t * __restrict, int * __restrict) __nonnull_all;
+int sigsuspend(const sigset_t *);
+int sigwait(const sigset_t * __restrict, int * __restrict);
#endif
#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 600