MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nosys

Function nosys

freebsd/kern/kern_sig.c:3878–3898  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

3876#endif
3877/* ARGSUSED */
3878int
3879nosys(struct thread *td, struct nosys_args *args)
3880{
3881 struct proc *p;
3882
3883 p = td->td_proc;
3884
3885 PROC_LOCK(p);
3886 tdsignal(td, SIGSYS);
3887 PROC_UNLOCK(p);
3888 if (kern_lognosys == 1 || kern_lognosys == 3) {
3889 uprintf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm,
3890 td->td_sa.code);
3891 }
3892 if (kern_lognosys == 2 || kern_lognosys == 3 ||
3893 (p->p_pid == 1 && (kern_lognosys & 3) == 0)) {
3894 printf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm,
3895 td->td_sa.code);
3896 }
3897 return (ENOSYS);
3898}
3899
3900/*
3901 * Send a SIGIO or SIGURG signal to a process or process group using stored

Callers 7

ofreebsd32_sigreturnFunction · 0.85
freebsd32_shmsysFunction · 0.85
freebsd32_semsysFunction · 0.85
osigreturnFunction · 0.85
freebsd32_msgsysFunction · 0.85
lkmnosysFunction · 0.85
lkmressysFunction · 0.85

Calls 3

uprintfFunction · 0.85
tdsignalFunction · 0.70
printfFunction · 0.70

Tested by

no test coverage detected