Formerly unix/sysv/sysv4/sigset.h.~2~
This commit is contained in:
parent
7e66b0a979
commit
068c7fc064
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
/* __sig_atomic_t, __sigset_t, and related definitions. SVR4 version.
|
||||
Copyright (C) 1994 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
|
||||
@ -38,7 +39,7 @@ typedef struct
|
||||
extern __inline int
|
||||
__sigemptyset (__sigset_t *__set)
|
||||
{
|
||||
__set->__sigbits[0] = __set->__sigbits[1] = 0L;
|
||||
__set->__sigbits[0] = __set->__sigbits[1] =
|
||||
__set->__sigbits[2] = __set->__sigbits[3] = 0L;
|
||||
return 0;
|
||||
}
|
||||
@ -46,8 +47,11 @@ __sigemptyset (__sigset_t *__set)
|
||||
extern __inline int
|
||||
__sigfillset (__sigset_t *__set)
|
||||
{
|
||||
__set->__sigbits[0] = 0x7fffffffL;
|
||||
__set->__sigbits[1] = __set->__sigbits[2] = __set->__sigbits[3] = 0L;
|
||||
/* SVR4 has a system call for `sigfillset' (!), and it only sets the bits
|
||||
for signals [1,31]. Setting bits for unimplemented signals seems
|
||||
harmless (and we will find out if it really is). */
|
||||
__set->__sigbits[0] = __set->__sigbits[1] =
|
||||
__set->__sigbits[2] = __set->__sigbits[3] = -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user