12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include <features.h>
- #include <errno.h>
- #include <sys/syscall.h>
- #include <signal.h>
- #include <string.h>
- static __inline__ _syscall2(int, osf_sigprocmask, int, how, unsigned long int, setval)
- int
- sigprocmask (int how, const sigset_t *set, sigset_t *oset)
- {
- unsigned long int setval;
- long result;
- if (set)
- setval = set->__val[0];
- else
- {
- setval = 0;
- how = SIG_BLOCK;
- }
- result = osf_sigprocmask(how, setval);
- if (result == -1)
-
- return result;
- if (oset)
- {
- if (_SIGSET_NWORDS == 2)
- oset->__val[1] = 0;
- if (_SIGSET_NWORDS > 2)
- memset(oset, 0, sizeof(*oset));
- oset->__val[0] = result;
- }
- return 0;
- }
- libc_hidden_def(sigprocmask)
|