/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/bits/ |
A D | sigset.h | 57 # define __sigmask(sig) \ argument 61 # define __sigword(sig) ((unsigned)((sig) - 1) / (8 * sizeof (unsigned long))) argument 197 unsigned word = __sigword(sig); in const_sigismember() 200 # define __sigismember(set, sig) \ argument 201 (__builtin_constant_p(sig) ? (const_sigismember(set, sig) != 0) : __sigismember(set, sig)) 206 unsigned word = __sigword(sig); in const_sigaddset() 209 # define __sigaddset(set, sig) \ argument 210 (__builtin_constant_p(sig) ? (const_sigaddset(set, sig), 0) : __sigaddset(set, sig)) 215 unsigned word = __sigword(sig); in const_sigdelset() 218 # define __sigdelset(set, sig) \ argument [all …]
|
A D | waitstatus.h | 64 #define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) argument 65 #define __W_STOPCODE(sig) ((sig) << 8 | 0x7f) argument
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/ |
A D | signals.c | 85 if (sig == __pthread_sig_restart || in __pthread_sigaction() 86 sig == __pthread_sig_cancel || in __pthread_sigaction() 92 if (sig > 0 && sig < NSIG) in __pthread_sigaction() 93 old = (__sighandler_t) __sighandler[sig].old; in __pthread_sigaction() 98 && sig > 0 && sig < NSIG) in __pthread_sigaction() 111 if (__libc_sigaction(sig, newactp, oact) == -1) in __pthread_sigaction() 113 if (act && (sig > 0 && sig < NSIG)) in __pthread_sigaction() 114 __sighandler[sig].old = (arch_sighandler_t) old; in __pthread_sigaction() 117 if (sig > 0 && sig < NSIG) in __pthread_sigaction() 187 *sig = THREAD_GETMEM(self, p_signal); in strong_alias() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/signal/ |
A D | tst-sigset.c | 13 int sig = -1; in do_test() local 18 printf ("%s (sig = %d): %s\n", #call, sig, strerror(errno)); \ in do_test() 33 for (sig = 1; sig <= max_sig; ++sig) in do_test() 35 TRY (sigismember (&set, sig) != 0); in do_test() 36 TRY (sigaddset (&set, sig) != 0); in do_test() 37 TRY (sigismember (&set, sig) == 0); in do_test() 38 TRY (sigdelset (&set, sig) != 0); in do_test() 39 TRY (sigismember (&set, sig) != 0); in do_test()
|
A D | tst-signal.c | 9 handler (int sig) in handler() argument 11 printf ("Received signal %d (%s).\n", sig, strsignal(sig)); in handler()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads.old/ |
A D | signals.c | 131 int sigaction(int sig, const struct sigaction * act, in libpthread_hidden_proto() 140 if (sig == __pthread_sig_restart || in libpthread_hidden_proto() 141 sig == __pthread_sig_cancel || in libpthread_hidden_proto() 148 && sig > 0 && sig < NSIG) in libpthread_hidden_proto() 159 if (__libc_sigaction(sig, newactp, oact) == -1) in libpthread_hidden_proto() 164 if (sig > 0 && sig < NSIG) in libpthread_hidden_proto() 167 oact->sa_handler = (__sighandler_t) sighandler[sig].old; in libpthread_hidden_proto() 181 int sigwait(const sigset_t * set, int * sig) in sigwait() argument 229 *sig = THREAD_GETMEM(self, p_signal); in sigwait() 236 int raise (int sig) in libpthread_hidden_proto() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/signal/ |
A D | sigwait.c | 33 static int __NC(sigwait)(const sigset_t *set, int *sig) in __NC() 42 *sig = ret; in __NC() 57 static void ignore_signal(int sig) in ignore_signal() argument 59 was_sig = sig; in ignore_signal() 62 static int __NC(sigwait)(const sigset_t *set, int *sig) in __NC() 109 *sig = was_sig; in __NC() 114 CANCELLABLE_SYSCALL(int, sigwait, (const sigset_t *set, int *sig), (set, sig))
|
A D | signal.c | 29 signal (int sig, __sighandler_t handler) in signal() argument 34 if (handler == SIG_ERR || sig < 1 || sig >= NSIG) in signal() 42 __sigaddset (&act.sa_mask, sig); in signal() 43 act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : SA_RESTART; in signal() 45 if (sigaction (sig, &act, &oact) < 0) in signal()
|
A D | sigset.c | 25 __sighandler_t sigset (int sig, __sighandler_t disp) in sigset() argument 31 if (disp == SIG_ERR || sig < 1 || sig >= NSIG) in sigset() 42 __sigaddset (&set, sig); in sigset() 54 if (sigaction (sig, &act, &oact) < 0) in sigset() 59 __sigaddset (&set, sig); in sigset()
|
A D | sigintr.c | 30 int siginterrupt (int sig, int interrupt) in siginterrupt() argument 36 if (sigaction (sig, NULL, &action) < 0) in siginterrupt() 41 __sigaddset (&_sigintr, sig); in siginterrupt() 46 __sigdelset (&_sigintr, sig); in siginterrupt() 50 return sigaction (sig, &action, NULL); in siginterrupt()
|
A D | sigpause.c | 59 static int __NC(sigpause)(int sig) in __NC() 61 return __sigpause(sig, 1); in __NC() 63 CANCELLABLE_SYSCALL(int, sigpause, (int sig), (sig))
|
A D | sysv_signal.c | 34 __sighandler_t __sysv_signal (int sig, __sighandler_t handler) in __sysv_signal() argument 39 if (handler == SIG_ERR || sig < 1 || sig >= NSIG) in __sysv_signal() 49 if (sigaction (sig, &act, &oact) < 0) in __sysv_signal()
|
A D | sigaction.c | 26 __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact) in __libc_sigaction() argument 35 return __syscall_rt_sigaction(sig, act, oact, sizeof(act->sa_mask)); in __libc_sigaction() 46 __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact) in __libc_sigaction() argument 59 result = __syscall_sigaction(sig, in __libc_sigaction()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/ |
A D | sigwait.c | 33 do_sigwait (const sigset_t *set, int *sig) in do_sigwait() argument 45 *sig = ret; in do_sigwait() 55 *sig = ret; in do_sigwait() 70 sigwait (const sigset_t *set, int *sig) in weak_extern() 73 return __libc_maybe_call2 (pthread_sigwait, (set, sig), in weak_extern() 74 do_sigwait (set, sig)); in weak_extern() 76 return do_sigwait (set, sig); in weak_extern()
|
A D | raise.c | 31 raise (sig) 32 int sig; 35 return __kill (__getpid (), sig); 37 return __libc_maybe_call2 (pthread_raise, (sig), 38 __kill (__getpid (), sig));
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/ |
A D | eintr.c | 28 eintr_handler (int sig) in eintr_handler() argument 30 if (sig != the_sig) in eintr_handler() 68 setup_eintr (int sig, pthread_t *thp) in setup_eintr() argument 74 if (sigaction (sig, &sa, NULL) != 0) in setup_eintr() 79 the_sig = sig; in setup_eintr()
|
A D | tst-getpid1.c | 14 static int sig; variable 23 if (sigqueue (getppid (), sig, sival) != 0) in f() 34 sig = SIGRTMIN; in do_test() 37 sigaddset (&ss, sig); in do_test() 75 while (si.si_signo != sig || si.si_code != SI_QUEUE); in do_test()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/pthread/ |
A D | pt-sigaction.c | 27 __sigaction (int sig, const struct sigaction *act, struct sigaction *oact) in __sigaction() argument 29 if (unlikely (sig == SIGCANCEL || sig == SIGSETXID)) in __sigaction() 35 return __libc_sigaction (sig, act, oact); in __sigaction()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/pthread/ |
A D | sigaction.c | 38 __sigaction (sig, act, oact) 39 int sig; 43 return __libc_maybe_call2 (pthread_sigaction, (sig, act, oact), 44 __libc_sigaction (sig, act, oact));
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/ |
A D | sigqueue.c | 26 static __always_inline _syscall3(int, __syscall_rt_sigqueueinfo, pid_t, pid, int, sig, void*, value) in _syscall3() argument 29 int sigqueue (pid_t pid, int sig, const union sigval val) in _syscall3() 37 info.si_signo = sig; in _syscall3() 43 return __syscall_rt_sigqueueinfo(pid, sig, &info); in _syscall3()
|
A D | kill.c | 15 static __inline__ _syscall2(int, __syscall_kill, __kernel_pid_t, pid, int, sig) in _syscall2() argument 17 int kill(pid_t pid, int sig) in _syscall2() 19 return (__syscall_kill(pid, sig)); in _syscall2()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/ |
A D | pt-raise.c | 28 int sig) in raise() argument 41 sig); in raise() 45 sig); in raise() 49 return INLINE_SYSCALL (tkill, 2, THREAD_GETMEM (THREAD_SELF, tid), sig); in raise()
|
A D | raise.c | 29 int sig) in raise() argument 63 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); in raise() 66 int res = INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); in raise() 70 return INLINE_SYSCALL (tkill, 2, selftid, sig); in raise()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/ |
A D | test-skeleton.c | 135 signal_handler (int sig __attribute__ ((unused))) in signal_handler() argument 170 if (sig == SIGINT) in signal_handler() 172 signal (sig, SIG_DFL); in signal_handler() 173 raise (sig); in signal_handler() 201 handler_killpid(int sig) in handler_killpid() argument 204 signal(sig, SIG_DFL); in handler_killpid() 205 raise(sig); /* kill ourself */ in handler_killpid() 206 _exit(128 + sig); /* paranoia */ in handler_killpid()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/librt/ |
A D | spawn.c | 152 int sig; in __spawni() local 157 for (sig = 1; sig <= _NSIG; ++sig) { in __spawni() 158 if (sigismember(&attrp->__sd, sig)) { in __spawni() 159 if (sigaction(sig, &sa, NULL) != 0) in __spawni()
|