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

Function getmaxfd

freebsd/kern/kern_descrip.c:860–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860static int
861getmaxfd(struct thread *td)
862{
863
864 return (min((int)lim_cur(td, RLIMIT_NOFILE), maxfilesperproc));
865}
866
867/*
868 * Common code for dup, dup2, fcntl(F_DUPFD) and fcntl(F_DUP2FD).

Callers 4

sys_getdtablesizeFunction · 0.85
kern_dupFunction · 0.85
fdallocFunction · 0.85
ff_getmaxfdFunction · 0.85

Calls 2

minFunction · 0.85
lim_curFunction · 0.85

Tested by

no test coverage detected