36 lines
905 B
Groff
36 lines
905 B
Groff
'\"macro stdmacro
|
|
.\" Copyright (c) 1983 Regents of the University of California.
|
|
.\" All rights reserved. The Berkeley software License Agreement
|
|
.\" specifies the terms and conditions for redistribution.
|
|
.\"
|
|
.\" @(#)getdtablesize.2 6.2 (Berkeley) 6/28/85
|
|
.\"
|
|
.TH getdtablesize 2
|
|
.SH NAME
|
|
getdtablesize \- get file descriptor table size
|
|
.SH SYNOPSIS
|
|
.nf
|
|
\f3#include <unistd.h>\f1
|
|
.sp .6v
|
|
\f3int getdtablesize(void);\f1
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.B getdtablesize
|
|
returns the maximum number of file descriptors that the calling
|
|
process can open. The related \f3getdtablehi\fP(3C) function returns the
|
|
value of the largest open file descriptor, plus one.
|
|
The description of
|
|
.I {OPEN_MAX}
|
|
in
|
|
.BR intro (2)
|
|
provides more information about how file descriptors are allocated
|
|
and the various limits imposed on their use.
|
|
.SH "SEE ALSO"
|
|
close(2),
|
|
getdtablehi(3C),
|
|
intro(2),
|
|
open(2),
|
|
select(2),
|
|
setrlimit(2),
|
|
dup(3C)
|