Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/include Pullup rev 1.37 (requested by kleink in ticket ...



details:   https://anonhg.NetBSD.org/src/rev/6a57466e5f5f
branches:  netbsd-2-0
changeset: 561095:6a57466e5f5f
user:      jmc <jmc%NetBSD.org@localhost>
date:      Tue May 25 01:13:59 2004 +0000

description:
Pullup rev 1.37 (requested by kleink in ticket #381)

Implement sigemptyset() and sigfillset() not as macros but as inline
functions. PR#25627

diffstat:

 include/signal.h |  20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 46ee9a9eb7ad -r 6a57466e5f5f include/signal.h
--- a/include/signal.h  Tue May 25 01:12:17 2004 +0000
+++ b/include/signal.h  Tue May 25 01:13:59 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.36 2003/09/12 20:27:50 christos Exp $     */
+/*     $NetBSD: signal.h,v 1.36.2.1 2004/05/25 01:13:59 jmc Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -134,11 +134,21 @@
        }
        return (__sigismember(set, signo));
 }
-#endif /* __GNUC__ && __STDC__ */
+
+extern __inline int
+sigemptyset(sigset_t *set)
+{
+       __sigemptyset(set);
+       return (0);
+}
 
-/* List definitions after function declarations, or Reiser cpp gets upset. */
-#define        sigemptyset(set)        (__sigemptyset(set), /*LINTED*/0)
-#define        sigfillset(set)         (__sigfillset(set), /*LINTED*/ 0)
+extern __inline int
+sigfillset(sigset_t *set)
+{
+       __sigfillset(set);
+       return (0);
+}
+#endif /* __GNUC__ && __STDC__ */
 #endif /* !__LIBC12_SOURCE__ */
 
 /*



Home | Main Index | Thread Index | Old Index