Change <sys/_sigset.h> to typedef __sigset_t instead of sigset_t, so

that headers that include it can conditionalize sigset_t's visibility.
This commit is contained in:
Mike Barcroft 2002-10-05 05:40:48 +00:00
parent 0d29446006
commit 229aeecbbf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104504
3 changed files with 12 additions and 1 deletions

View File

@ -54,6 +54,6 @@
typedef struct __sigset {
__uint32_t __bits[_SIG_WORDS];
} sigset_t;
} __sigset_t;
#endif /* !_SYS__SIGSET_H_ */

View File

@ -54,6 +54,11 @@ typedef unsigned long __fd_mask;
typedef __fd_mask fd_mask;
#endif
#ifndef _SIGSET_T_DECLARED
#define _SIGSET_T_DECLARED
typedef __sigset_t sigset_t;
#endif
/*
* Select uses bit masks of file descriptors in longs. These macros
* manipulate such bit fields (the filesystem macros use chars).

View File

@ -94,6 +94,12 @@
#define SIGUSR1 30 /* user defined signal 1 */
#define SIGUSR2 31 /* user defined signal 2 */
/* XXX needs namespace conditional. */
#ifndef _SIGSET_T_DECLARED
#define _SIGSET_T_DECLARED
typedef __sigset_t sigset_t;
#endif
/*-
* Type of a signal handling function.
*