getdtablesize (2)
Leading comments
Copyright (c) 1983, 1991, 1993
The Regents of the University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the fol...
(The comments found at the beginning of the groff file "man2/getdtablesize.2freebsd".)
NAME
getdtablesize
- get file descriptor limit
LIBRARY
Lb libc
SYNOPSIS
In unistd.h
Ft int
Fn getdtablesize void
DESCRIPTION
The
Fn getdtablesize
system call returns the maximum number of file descriptors
that the current process may open.
The maximum file descriptor number that the system may assign
is the return value minus one.
Existing file descriptor numbers may be higher
if the limit was lowered after they were opened.
SEE ALSO
close(2),
closefrom(2),
dup(2),
getrlimit(2),
sysconf(2)
HISTORY
The
Fn getdtablesize
system call appeared in
BSD 4.2