Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
860
static int
861
getmaxfd(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_getdtablesize
Function · 0.85
kern_dup
Function · 0.85
fdalloc
Function · 0.85
ff_getmaxfd
Function · 0.85
Calls
2
min
Function · 0.85
lim_cur
Function · 0.85
Tested by
no test coverage detected