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

Function linux_rt_sigsuspend

freebsd/amd64/linux/linux_machdep.c:176–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176int
177linux_rt_sigsuspend(struct thread *td, struct linux_rt_sigsuspend_args *uap)
178{
179 l_sigset_t lmask;
180 sigset_t sigmask;
181 int error;
182
183 LINUX_CTR2(rt_sigsuspend, "%p, %ld",
184 uap->newset, uap->sigsetsize);
185
186 if (uap->sigsetsize != sizeof(l_sigset_t))
187 return (EINVAL);
188
189 error = copyin(uap->newset, &lmask, sizeof(l_sigset_t));
190 if (error)
191 return (error);
192
193 linux_to_bsd_sigset(&lmask, &sigmask);
194 return (kern_sigsuspend(td, sigmask));
195}
196
197int
198linux_pause(struct thread *td, struct linux_pause_args *args)

Callers

nothing calls this directly

Calls 2

kern_sigsuspendFunction · 0.85
copyinFunction · 0.50

Tested by

no test coverage detected