source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/pthread_sigmask.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 463 bytes
Line 
1#include <signal.h>
2#include <errno.h>
3#include "syscall.h"
4
5int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old)
6{
7 int ret;
8 if ((unsigned)how - SIG_BLOCK > 2U) return EINVAL;
9 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8);
10 if (!ret && old) {
11 if (sizeof old->__bits[0] == 8) {
12 old->__bits[0] &= ~0x380000000ULL;
13 } else {
14 old->__bits[0] &= ~0x80000000UL;
15 old->__bits[1] &= ~0x3UL;
16 }
17 }
18 return ret;
19}
Note: See TracBrowser for help on using the repository browser.