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

Function sys_select

freebsd/kern/sys_generic.c:1001–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999};
1000#endif
1001int
1002sys_select(struct thread *td, struct select_args *uap)
1003{
1004 struct timeval tv, *tvp;
1005 int error;
1006
1007 if (uap->tv != NULL) {
1008 error = copyin(uap->tv, &tv, sizeof(tv));
1009 if (error)
1010 return (error);
1011 tvp = &tv;
1012 } else
1013 tvp = NULL;
1014
1015 return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp,
1016 NFDBITS));
1017}
1018
1019/*
1020 * In the unlikely case when user specified n greater then the last

Callers

nothing calls this directly

Calls 2

kern_selectFunction · 0.85
copyinFunction · 0.50

Tested by

no test coverage detected