Fork me on GitHub
signum            645 fs/procfs/data.c 	int signum, mask;
signum            679 fs/procfs/data.c 		for(signum = 0, mask = 1; signum < NSIG; signum++, mask <<= 1) {
signum            680 fs/procfs/data.c 			if(p->sigaction[signum].sa_handler == SIG_IGN) {
signum            683 fs/procfs/data.c 			if(p->sigaction[signum].sa_handler == SIG_DFL) {
signum            774 fs/procfs/data.c 	int signum, mask;
signum            819 fs/procfs/data.c 		for(signum = 0, mask = 1; signum < NSIG; signum++, mask <<= 1) {
signum            820 fs/procfs/data.c 			if(p->sigaction[signum].sa_handler == SIG_IGN) {
signum            823 fs/procfs/data.c 			if(p->sigaction[signum].sa_handler == SIG_DFL) {
signum             32 kernel/process.c int kill_pid(__pid_t pid, __sigset_t signum)
signum             38 kernel/process.c 			return send_sig(p, signum);
signum             45 kernel/process.c int kill_pgrp(__pid_t pgid, __sigset_t signum)
signum             53 kernel/process.c 			send_sig(p, signum);
signum             21 kernel/signal.c int send_sig(struct proc *p, __sigset_t signum)
signum             23 kernel/signal.c 	if(signum > NSIG || !p) {
signum             36 kernel/signal.c 	switch(signum) {
signum             66 kernel/signal.c 	switch(signum) {
signum             69 kernel/signal.c 			if(p->sigaction[signum - 1].sa_handler == SIG_IGN) {
signum             70 kernel/signal.c 				p->sigaction[signum - 1].sa_handler = SIG_DFL;
signum             75 kernel/signal.c 	if(p->sigaction[signum - 1].sa_handler == SIG_DFL) {
signum             86 kernel/signal.c 		if(signum == SIGCHLD) {
signum             91 kernel/signal.c 	if(p->sigaction[signum - 1].sa_handler == SIG_IGN) {
signum             93 kernel/signal.c 		if(signum == SIGCHLD) {
signum            101 kernel/signal.c 	p->sigpending |= 1 << (signum - 1);
signum            105 kernel/signal.c 	if(!(p->sigblocked & (1 << (signum - 1)))) {
signum            114 kernel/signal.c 	__sigset_t signum;
signum            122 kernel/signal.c 	for(signum = 1, mask = 1; signum < NSIG; signum++, mask <<= 1) {
signum            124 kernel/signal.c 			if(signum == SIGCHLD) {
signum            125 kernel/signal.c 				if(current->sigaction[signum - 1].sa_handler == SIG_IGN) {
signum            131 kernel/signal.c 					if(current->sigaction[signum - 1].sa_handler != SIG_DFL) {
signum            132 kernel/signal.c 						return signum;
signum            136 kernel/signal.c 				if(current->sigaction[signum - 1].sa_handler != SIG_IGN) {
signum            137 kernel/signal.c 					return signum;
signum            149 kernel/signal.c 	__sigset_t signum;
signum            155 kernel/signal.c 	for(signum = 1, mask = 1; signum < NSIG; signum++, mask <<= 1) {
signum            159 kernel/signal.c 			if((unsigned int)current->sigaction[signum - 1].sa_handler) {
signum            161 kernel/signal.c 				if(!(current->sigaction[signum - 1].sa_flags & SA_NODEFER)) {
signum            166 kernel/signal.c 				memcpy_b(&current->sc[signum - 1], sc, sizeof(struct sigcontext));
signum            173 kernel/signal.c 				sc->ecx = (unsigned int)current->sigaction[signum - 1].sa_handler;
signum            174 kernel/signal.c 				sc->eax= signum;
signum            177 kernel/signal.c 				if(current->sigaction[signum - 1].sa_flags & SA_RESETHAND) {
signum            178 kernel/signal.c 					current->sigaction[signum - 1].sa_handler = SIG_DFL;
signum            182 kernel/signal.c 			if(current->sigaction[signum - 1].sa_handler == SIG_DFL) {
signum            183 kernel/signal.c 				switch(signum) {
signum            192 kernel/signal.c 						current->exit_code = signum;
signum            194 kernel/signal.c 						if(!(current->sigaction[signum - 1].sa_flags & SA_NOCLDSTOP)) {
signum            206 kernel/signal.c 						do_exit(signum);
signum             59 kernel/sleep.c 	int signum, i;
signum             63 kernel/sleep.c 		if((signum = issig())) {
signum             64 kernel/sleep.c 			return signum;
signum             92 kernel/sleep.c 	signum = 0;
signum             94 kernel/sleep.c 		signum = issig();
signum             98 kernel/sleep.c 	return signum;
signum             16 kernel/syscalls/kill.c int sys_kill(__pid_t pid, __sigset_t signum)
signum             22 kernel/syscalls/kill.c 	printk("(pid %d) sys_kill(%d, %d)\n", current->pid, pid, signum);
signum             25 kernel/syscalls/kill.c 	if(signum < 1 || signum > NSIG) {
signum             33 kernel/syscalls/kill.c 				send_sig(p, signum);
signum             40 kernel/syscalls/kill.c 		return kill_pgrp(current->pgid, signum);
signum             43 kernel/syscalls/kill.c 		return kill_pgrp(-pid, signum);
signum             46 kernel/syscalls/kill.c 	return kill_pid(pid, signum);
signum             17 kernel/syscalls/sigaction.c int sys_sigaction(__sigset_t signum, const struct sigaction *newaction, struct sigaction *oldaction)
signum             22 kernel/syscalls/sigaction.c 	printk("(pid %d) sys_sigaction(%d, 0x%08x, 0x%08x)\n", current->pid, signum, (unsigned int)newaction, (unsigned int)oldaction);
signum             25 kernel/syscalls/sigaction.c 	if(signum < 1 || signum > NSIG) {
signum             28 kernel/syscalls/sigaction.c 	if(signum == SIGKILL || signum == SIGSTOP) {
signum             35 kernel/syscalls/sigaction.c 		*oldaction = current->sigaction[signum - 1];
signum             41 kernel/syscalls/sigaction.c 		current->sigaction[signum - 1] = *newaction;
signum             42 kernel/syscalls/sigaction.c 		if(current->sigaction[signum - 1].sa_handler == SIG_IGN) {
signum             43 kernel/syscalls/sigaction.c 			if(signum != SIGCHLD) {
signum             44 kernel/syscalls/sigaction.c 				current->sigpending &= SIG_MASK(signum);
signum             47 kernel/syscalls/sigaction.c 		if(current->sigaction[signum - 1].sa_handler == SIG_DFL) {
signum             48 kernel/syscalls/sigaction.c 			if(signum != SIGCHLD) {
signum             49 kernel/syscalls/sigaction.c 				current->sigpending &= SIG_MASK(signum);
signum             18 kernel/syscalls/signal.c unsigned int sys_signal(__sigset_t signum, void(* sighandler)(int))
signum             27 kernel/syscalls/signal.c 	if(signum < 1 || signum > NSIG) {
signum             30 kernel/syscalls/signal.c 	if(signum == SIGKILL || signum == SIGSTOP) {
signum             43 kernel/syscalls/signal.c 	sighandler = current->sigaction[signum - 1].sa_handler;
signum             44 kernel/syscalls/signal.c 	current->sigaction[signum - 1] = s;
signum             45 kernel/syscalls/signal.c 	if(current->sigaction[signum - 1].sa_handler == SIG_IGN) {
signum             46 kernel/syscalls/signal.c 		if(signum != SIGCHLD) {
signum             47 kernel/syscalls/signal.c 			current->sigpending &= SIG_MASK(signum);
signum             50 kernel/syscalls/signal.c 	if(current->sigaction[signum - 1].sa_handler == SIG_DFL) {
signum             51 kernel/syscalls/signal.c 		if(signum != SIGCHLD) {
signum             52 kernel/syscalls/signal.c 			current->sigpending &= SIG_MASK(signum);
signum             16 kernel/syscalls/sigreturn.c int sys_sigreturn(unsigned int signum, int arg2, int arg3, int arg4, int arg5, struct sigcontext *sc)
signum             19 kernel/syscalls/sigreturn.c 	printk("(pid %d) sys_sigreturn(0x%08x)\n", current->pid, signum);
signum             24 kernel/syscalls/sigreturn.c 	memcpy_b(sc, &current->sc[signum - 1], sizeof(struct sigcontext));
signum             30 kernel/syscalls/sigreturn.c 	return current->sc[signum - 1].eax;
signum             24 kernel/syscalls/wait4.c 	int flag, signum, errno;
signum             93 kernel/syscalls/wait4.c 		if((signum = sleep(&sys_wait4, PROC_INTERRUPTIBLE))) {
signum             94 kernel/syscalls/wait4.c 			return signum;