Home
last modified time | relevance | path

Searched refs:newmask (Results 1 – 19 of 19) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c107 sigset_t newmask, zeromask, oldmask; in dochild1() local
127 sigemptyset(&newmask); in dochild1()
128 sigaddset(&newmask, SIGUSR1); in dochild1()
129 sigaddset(&newmask, SIGUSR2); in dochild1()
130 sigaddset(&newmask, SIGALRM); in dochild1()
131 if (sigprocmask(SIG_BLOCK, &newmask, &oldmask) < 0) { in dochild1()
208 sigset_t newmask, zeromask, oldmask; in dofork() local
210 sigemptyset(&newmask); in dofork()
211 sigaddset(&newmask, SIGUSR1); in dofork()
212 sigaddset(&newmask, SIGUSR2); in dofork()
[all …]
/external/valgrind/none/tests/
Dpth_blockedsig.c34 sigset_t newmask, oldmask; in main() local
37 memset(&newmask, 0, sizeof newmask); in main()
38 sigemptyset (&newmask); in main()
39 sigaddset (&newmask, SIGUSR1); in main()
41 if (pthread_sigmask (SIG_BLOCK, &newmask, &oldmask) != 0) in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
D2-1.c31 sigset_t newmask, pendingset; in main() local
36 if ((sigemptyset(&newmask) == -1) || (sigemptyset(&pendingset) == -1)) { in main()
42 if (sigaddset(&newmask, SIGRTMIN) == -1) { in main()
60 if (sigprocmask(SIG_SETMASK, &newmask, NULL) == -1) { in main()
92 if (sigwait(&newmask, &sig) != 0) { in main()
110 if (sigwait(&newmask, &sig) != 0) { in main()
D8-1.c25 sigset_t newmask, pendingset; in main() local
29 if (sigemptyset(&newmask) == -1 || sigemptyset(&pendingset) == -1) { in main()
35 if (sigaddset(&newmask, SIGUSR2) == -1) { in main()
41 if (sigprocmask(SIG_SETMASK, &newmask, NULL) == -1) { in main()
54 if (sigwait(&newmask, &sig) != 0) { in main()
D4-1.c26 sigset_t newmask, pendingset; in main() local
33 if (sigemptyset(&newmask) == -1 || sigemptyset(&pendingset) == -1) { in main()
39 if (sigaddset(&newmask, SIGALRM) == -1) { in main()
45 if (sigprocmask(SIG_SETMASK, &newmask, NULL) == -1) { in main()
61 if (sigwait(&newmask, &sig) != 0) { in main()
D1-1.c24 sigset_t newmask, pendingset; in main() local
29 if ((sigemptyset(&newmask) == -1) || (sigemptyset(&pendingset) == -1)) { in main()
35 if (sigaddset(&newmask, SIGUSR2) == -1) { in main()
41 if (sigprocmask(SIG_SETMASK, &newmask, NULL) == -1) { in main()
65 if (sigwait(&newmask, &sig) != 0) { in main()
D3-1.c29 sigset_t newmask, pendingset; in main() local
33 if ((sigemptyset(&newmask) == -1) || (sigemptyset(&pendingset) == -1)) { in main()
39 if (sigaddset(&newmask, SIGUSR2) == -1) { in main()
45 if (sigprocmask(SIG_SETMASK, &newmask, NULL) == -1) { in main()
82 if (sigwait(&newmask, &sig) != 0) { in main()
/external/ltp/tools/pounder21/src/mem_alloc_test/
Dmem_alloc.c45 static sigset_t newmask, oldmask, zeromask; variable
105 sigemptyset(&newmask); in TELL_WAIT()
106 sigaddset(&newmask, SIGUSR1); in TELL_WAIT()
107 sigaddset(&newmask, SIGUSR2); in TELL_WAIT()
109 if (sigprocmask(SIG_BLOCK, &newmask, &oldmask) < 0) in TELL_WAIT()
/external/python/cpython3/Modules/
Dsignalmodule.c830 sigset_t newmask, previous; in signal_pthread_sigmask_impl() local
833 if (iterable_to_sigset(mask, &newmask)) in signal_pthread_sigmask_impl()
836 err = pthread_sigmask(how, &newmask, &previous); in signal_pthread_sigmask_impl()
D_cursesmodule.c2680 int newmask; in PyCurses_MouseMask() local
2684 if (!PyArg_ParseTuple(args,"i;mousemask",&newmask)) in PyCurses_MouseMask()
2686 availmask = mousemask(newmask, &oldmask); in PyCurses_MouseMask()
Dposixmodule.c5632 cpu_set_t *newmask; in os_sched_setaffinity_impl() local
5640 newmask = CPU_ALLOC(newncpus); in os_sched_setaffinity_impl()
5641 if (newmask == NULL) { in os_sched_setaffinity_impl()
5646 CPU_ZERO_S(newsetsize, newmask); in os_sched_setaffinity_impl()
5647 memcpy(newmask, cpu_set, setsize); in os_sched_setaffinity_impl()
5650 cpu_set = newmask; in os_sched_setaffinity_impl()
/external/python/cpython3/Objects/
Dsetobject.c302 size_t newmask; in set_table_resize() local
362 newmask = (size_t)so->mask; in set_table_resize()
366 set_insert_clean(newtable, newmask, entry->key, entry->hash); in set_table_resize()
372 set_insert_clean(newtable, newmask, entry->key, entry->hash); in set_table_resize()
675 size_t newmask = (size_t)so->mask; in set_merge() local
682 set_insert_clean(newtable, newmask, key, other_entry->hash); in set_merge()
/external/toolchain-utils/cros_utils/
Dstats.py3780 newmask = N.greater(z, chisq)
3781 a_big_frozen = N.where(newmask * N.equal(mask, 0) * a_big, s,
3783 mask = N.clip(newmask + mask, 0, 1)
3798 newmask = N.greater(z, chisq)
3799 a_notbig_frozen = N.where(newmask * N.equal(mask, 0) * (1 - a_big),
3801 mask = N.clip(newmask + mask, 0, 1)
3891 newmask = N.where(
3895 frozen = N.where(newmask * N.equal(mask, 0), sum, frozen)
3896 mask = N.clip(mask + newmask, 0, 1)
3960 newmask = N.less(abs(az - aold), EPS * abs(az))
[all …]
/external/selinux/python/semanage/
Dseobject.py1818 newmask = mask
1828 newmask = str(i.netmask())
1829 if newmask == "0.0.0.0" and i.version() == 6:
1830 newmask = "::"
1839 return newaddr, newmask, newprotocol
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h427 #define __sanitizer_syscall_pre_ssetmask(newmask) \ argument
428 __sanitizer_syscall_pre_impl_ssetmask((long)(newmask))
429 #define __sanitizer_syscall_post_ssetmask(res, newmask) \ argument
430 __sanitizer_syscall_post_impl_ssetmask(res, (long)(newmask))
2250 void __sanitizer_syscall_pre_impl_ssetmask(long newmask);
2251 void __sanitizer_syscall_post_impl_ssetmask(long res, long newmask);
/external/python/cpython2/Modules/
D_cursesmodule.c2194 int newmask; in PyCurses_MouseMask() local
2198 if (!PyArg_ParseTuple(args,"i;mousemask",&newmask)) in PyCurses_MouseMask()
2200 availmask = mousemask(newmask, &oldmask); in PyCurses_MouseMask()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc748 PRE_SYSCALL(ssetmask)(long newmask) {}
750 POST_SYSCALL(ssetmask)(long res, long newmask) {}
/external/sqlite/dist/orig/
Dsqlite3.c16889 u32 newmask; /* Mask of new.* columns referenced */ member
91496 pParse->newmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
125860 pPrg->aColmask[1] = pSubParse->newmask;
126211 int newmask; /* Mask of NEW.* columns accessed by BEFORE triggers */
126641 newmask = sqlite3TriggerColmask(
126651 }else if( 0==(tmask&TRIGGER_BEFORE) || i>31 || (newmask & MASKBIT32(i)) ){
/external/sqlite/dist/
Dsqlite3.c16889 u32 newmask; /* Mask of new.* columns referenced */ member
91496 pParse->newmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
125860 pPrg->aColmask[1] = pSubParse->newmask;
126211 int newmask; /* Mask of NEW.* columns accessed by BEFORE triggers */
126641 newmask = sqlite3TriggerColmask(
126651 }else if( 0==(tmask&TRIGGER_BEFORE) || i>31 || (newmask & MASKBIT32(i)) ){