Home
last modified time | relevance | path

Searched refs:sigset_t (Results 1 – 25 of 192) sorted by relevance

12345678

/kernel/liteos_a/kernel/base/include/
Dlos_signal.h93 #define SIGNO2SET(s) ((sigset_t)1ULL << (s))
94 #define NULL_SIGNAL_SET ((sigset_t)0ULL)
95 #define FULL_SIGNAL_SET ((sigset_t)~0ULL)
141 sigset_t sigFlag;
142 sigset_t sigPendFlag;
143 sigset_t sigprocmask; /* Signals that are blocked */
146 sigset_t sigwaitmask; /* Waiting for pending signals */
159 int sys_sigpending(sigset_t *);
160 int sys_rt_sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *ts, size_t sigs…
161 int sys_sigsuspend(const sigset_t *);
[all …]
/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
Duser_copy_test_001.cpp39 sigset_t oldset; in Testcase()
43 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(1), &oldset); in Testcase()
47 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), &oldset); in Testcase()
52 …ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), reinterpret_cast<si… in Testcase()
56 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), in Testcase()
57 reinterpret_cast<sigset_t *>(INVALID_USER_VADDR)); in Testcase()
61 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), in Testcase()
62 reinterpret_cast<sigset_t *>(const_cast<char *>(str))); in Testcase()
/kernel/linux/linux-5.10/include/linux/
Dsignal.h62 static inline void sigaddset(sigset_t *set, int _sig) in sigaddset()
71 static inline void sigdelset(sigset_t *set, int _sig) in sigdelset()
80 static inline int sigismember(sigset_t *set, int _sig) in sigismember()
91 static inline int sigisemptyset(sigset_t *set) in sigisemptyset()
107 static inline int sigequalsets(const sigset_t *set1, const sigset_t *set2) in sigequalsets()
130 static inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \
169 static inline void name(sigset_t *set) \ in _SIG_SET_BINOP()
190 static inline void sigemptyset(sigset_t *set)
194 memset(set, 0, sizeof(sigset_t));
203 static inline void sigfillset(sigset_t *set) in sigfillset()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsignal.h25 } sigset_t; typedef
32 typedef sigset_t compat_sigset_t;
53 static inline void __gen_sigaddset(sigset_t *set, int _sig) in __gen_sigaddset()
58 static inline void __const_sigaddset(sigset_t *set, int _sig) in __const_sigaddset()
70 static inline void __gen_sigdelset(sigset_t *set, int _sig) in __gen_sigdelset()
75 static inline void __const_sigdelset(sigset_t *set, int _sig) in __const_sigdelset()
81 static inline int __const_sigismember(sigset_t *set, int _sig) in __const_sigismember()
87 static inline int __gen_sigismember(sigset_t *set, int _sig) in __gen_sigismember()
/kernel/liteos_m/components/signal/
Dlos_signal.h116 sigset_t sigSetFlag; /**< installing signals */
117 sigset_t sigPendFlag; /**< pending signals */
118 sigset_t sigWaitFlag; /**< waiting signals */
179 UINT32 LOS_SignalMask(INT32 how, const sigset_t *set, sigset_t *oldSet);
205 UINT32 LOS_SignalWait(const sigset_t *set, siginfo_t *info, UINT32 timeout);
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dsignal.h18 } sigset_t; typedef
27 static inline void sigaddset(sigset_t *set, int _sig) in sigaddset()
35 static inline void sigdelset(sigset_t *set, int _sig) in sigdelset()
43 static inline int __const_sigismember(sigset_t *set, int _sig) in __const_sigismember()
49 static inline int __gen_sigismember(sigset_t *set, int _sig) in __gen_sigismember()
/kernel/liteos_a/testsuites/unittest/fuzz/
Dposix_spawnattr_getsigmask_fuzzer.cpp38 sigset_t signalset; in TestPosixSpawnattrGetsigmask()
45 …char *datainput1 = DT_SetGetFixBlob(&g_Element[1], sizeof(sigset_t), sizeof(sigset_t), (char *)&si… in TestPosixSpawnattrGetsigmask()
46 posix_spawnattr_getsigmask((posix_spawnattr_t *)datainput, (sigset_t *)datainput1); in TestPosixSpawnattrGetsigmask()
Dposix_spawnattr_setsigdefault_fuzzer.cpp38 sigset_t sigdefault; in TestPosixSpawnattrSetsigdefault()
45 …char *datainput1 = DT_SetGetFixBlob(&g_Element[1], sizeof(sigset_t), sizeof(sigset_t), (char *)&si… in TestPosixSpawnattrSetsigdefault()
46 posix_spawnattr_setsigdefault((posix_spawnattr_t *)datainput, (sigset_t *)datainput1); in TestPosixSpawnattrSetsigdefault()
Dposix_spawnattr_setsigmask_fuzzer.cpp38 sigset_t signalset; in TestPosixSpawnattrSetsigmask()
45 …char *datainput1 = DT_SetGetFixBlob(&g_Element[1], sizeof(sigset_t), sizeof(sigset_t), (char *)&si… in TestPosixSpawnattrSetsigmask()
46 posix_spawnattr_setsigmask((posix_spawnattr_t *)datainput, (sigset_t *)datainput1); in TestPosixSpawnattrSetsigmask()
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
Ducontext.h25 sigset_t uc_sigmask;
27 unsigned char __unused[128 - sizeof(sigset_t)];
36 sigset_t uc_sigmask;
38 unsigned char __unused[128 - sizeof(sigset_t)];
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal.h16 extern int handle_signal32(struct ksignal *ksig, sigset_t *oldset,
19 extern int handle_rt_signal32(struct ksignal *ksig, sigset_t *oldset,
45 extern int handle_rt_signal64(struct ksignal *ksig, sigset_t *set,
53 static inline int handle_rt_signal64(struct ksignal *ksig, sigset_t *set, in handle_rt_signal64()
/kernel/linux/linux-5.10/fs/
Dsignalfd.c42 sigset_t sigmask;
235 sigset_t sigmask; in signalfd_show_fdinfo()
254 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4()
303 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE4()
306 sigset_t mask; in SYSCALL_DEFINE4()
308 if (sizemask != sizeof(sigset_t)) in SYSCALL_DEFINE4()
315 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE3()
318 sigset_t mask; in SYSCALL_DEFINE3()
320 if (sizemask != sizeof(sigset_t)) in SYSCALL_DEFINE3()
332 sigset_t mask; in do_compat_signalfd4()
/kernel/liteos_m/kal/posix/src/
Dsignal.c80 int sigprocmask(int how, const sigset_t *set, sigset_t *oset) in sigprocmask()
113 int sigwait(const sigset_t *set, int *sig) in sigwait()
127 int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout) in sigtimedwait()
151 int sigwaitinfo(const sigset_t *set, siginfo_t *info) in sigwaitinfo()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dsignal32.h57 int compat_setup_frame(int usig, struct ksignal *ksig, sigset_t *set,
59 int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
66 sigset_t *set, struct pt_regs *regs) in compat_setup_frame()
71 static inline int compat_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set, in compat_setup_rt_frame()
/kernel/liteos_a/kernel/base/ipc/
Dlos_signal.c53 #define GETUNMASKSET(procmask, pendFlag) ((~(procmask)) & (sigset_t)(pendFlag))
56 int OsSigIsMember(const sigset_t *set, int signo) in OsSigIsMember()
204 void OsSigMaskSwitch(LosTaskCB * const rtcb, sigset_t set) in OsSigMaskSwitch()
206 sigset_t unmaskset; in OsSigMaskSwitch()
222 sigset_t set; in OsSigprocMask()
228 *(sigset_t *)oldsetl = spcb->sig.sigprocmask; in OsSigprocMask()
232 set = *(sigset_t *)setl; in OsSigprocMask()
375 int OsSigEmptySet(sigset_t *set) in OsSigEmptySet()
541 int OsSigAddSet(sigset_t *set, int signo) in OsSigAddSet()
555 int OsSigPending(sigset_t *set) in OsSigPending()
[all …]
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
Dsignal_test_028.cpp35 static void PrintSigset(sigset_t *set) in PrintSigset()
50 sigset_t sigset; in TestSigset()
120 sigset_t sigsetTmp; in TestSigset()
122 sigset_t sigsetTarget; in TestSigset()
Dsignal_test_029.cpp45 sigset_t newset; in TestCase()
76 ret = sigsuspend(reinterpret_cast<sigset_t *>(2)); // 2, suspend signal num. in TestCase()
92 ret = sigpending(reinterpret_cast<sigset_t *>(2)); // 2, pending signal num. in TestCase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
Dprocess_test_059.cpp38 sigset_t signalset; in TestSpawnAttrDef()
39 sigset_t signalset1; in TestSpawnAttrDef()
52 ret = memcmp(&signalset, &signalset1, sizeof(sigset_t)); in TestSpawnAttrDef()
64 sigset_t signalset; in TestSpawnAttrMask()
65 sigset_t signalset1; in TestSpawnAttrMask()
78 ret = memcmp(&signalset, &signalset1, sizeof(sigset_t)); in TestSpawnAttrMask()
Dprocess_test_058.cpp38 sigset_t signalset; in TestSpawnAttrDef()
39 sigset_t signalset1; in TestSpawnAttrDef()
52 ret = memcmp(&signalset, &signalset1, sizeof(sigset_t)); in TestSpawnAttrDef()
64 sigset_t signalset; in TestSpawnAttrMask()
65 sigset_t signalset1; in TestSpawnAttrMask()
78 ret = memcmp(&signalset, &signalset1, sizeof(sigset_t)); in TestSpawnAttrMask()
/kernel/liteos_a/syscall/
Dipc_syscall.c263 sigset_t set; in SysSigTimedWait()
269 retVal = LOS_ArchCopyFromUser(&set, &(setl->sig[0]), sizeof(sigset_t)); in SysSigTimedWait()
306 sigset_t set; in SysSigPending()
309 ret = LOS_ArchCopyFromUser(&set, &(setl->sig[0]), sizeof(sigset_t)); in SysSigPending()
317 ret = LOS_ArchCopyToUser(&(setl->sig[0]), &set, sizeof(sigset_t)); in SysSigPending()
326 sigset_t set; in SysSigSuspend()
329 retVal = LOS_ArchCopyFromUser(&set, &(setl->sig[0]), sizeof(sigset_t)); in SysSigSuspend()
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
Dsignal_test_009.cpp49 sigset_t set = { 0 }; in TestSigSet()
50 sigset_t set1 = { 0 }; in TestSigSet()
51 sigset_t left = { 0 }; in TestSigSet()
52 sigset_t right = { 0 }; in TestSigSet()
/kernel/linux/linux-5.10/kernel/
Dsignal.c126 static inline bool has_pending_signals(sigset_t *signal, sigset_t *blocked) in has_pending_signals()
208 int next_signal(struct sigpending *pending, sigset_t *mask) in next_signal()
491 sigset_t signal, retain; in __flush_itimer_signals()
613 static int __dequeue_signal(struct sigpending *pending, sigset_t *mask, in __dequeue_signal()
629 int dequeue_signal(struct task_struct *tsk, sigset_t *mask, kernel_siginfo_t *info) in dequeue_signal()
780 static void flush_sigqueue_mask(sigset_t *mask, struct sigpending *s) in flush_sigqueue_mask()
783 sigset_t m; in flush_sigqueue_mask()
904 sigset_t flush; in prepare_signal()
1171 sigset_t *signal = &delayed->signal; in __send_signal()
2772 sigset_t blocked; in signal_delivered()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-x86/asm/
Dsignal.h27 typedef unsigned long sigset_t; typedef
85 sigset_t sa_mask;
96 sigset_t sa_mask;
/kernel/linux/linux-5.10/arch/x86/include/uapi/asm/
Dsignal.h17 typedef unsigned long sigset_t; typedef
108 sigset_t sa_mask;
122 sigset_t sa_mask; /* mask last for extensibility */
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
DIt_posix_pthread_064.cpp38 sigset_t newSigsetT2; in pthread_f01()
39 sigset_t newSigsetT; in pthread_f01()
62 sigset_t set; in Testcase()

12345678