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

Function sys_pselect

freebsd/kern/sys_generic.c:941–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941int
942sys_pselect(struct thread *td, struct pselect_args *uap)
943{
944 struct timespec ts;
945 struct timeval tv, *tvp;
946 sigset_t set, *uset;
947 int error;
948
949 if (uap->ts != NULL) {
950 error = copyin(uap->ts, &ts, sizeof(ts));
951 if (error != 0)
952 return (error);
953 TIMESPEC_TO_TIMEVAL(&tv, &ts);
954 tvp = &tv;
955 } else
956 tvp = NULL;
957 if (uap->sm != NULL) {
958 error = copyin(uap->sm, &set, sizeof(set));
959 if (error != 0)
960 return (error);
961 uset = &set;
962 } else
963 uset = NULL;
964 return (kern_pselect(td, uap->nd, uap->in, uap->ou, uap->ex, tvp,
965 uset, NFDBITS));
966}
967
968int
969kern_pselect(struct thread *td, int nd, fd_set *in, fd_set *ou, fd_set *ex,

Callers

nothing calls this directly

Calls 2

kern_pselectFunction · 0.85
copyinFunction · 0.50

Tested by

no test coverage detected