Penguin
Blame: getdtablesize(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of getdtablesize(2) version 3, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 PerryLorier 2 getdtablesize - get descriptor table size
1 perry 3
4 !!SYNOPSIS
2 PerryLorier 5 __#include <unistd.h>__
6 __int getdtablesize(void);__
1 perry 7 !!DESCRIPTION
2 PerryLorier 8 getdtablesize(2) returns the maximum number of files a process can have open.
1 perry 9
10 !!NOTES
2 PerryLorier 11 getdtablesize(2) is implemented as a library function in DLL 4.4.1. This function returns __OPEN_MAX__ (set to 256 in Linux 2.0.23) if __OPEN_MAX__ was defined when the library was compiled. Otherwise, -1 is returned, and ''errno'' is set to [ENOSYS].
1 perry 12
3 PerryLorier 13 A process under linux may open far more file descriptors than 256 however. To get even more file descriptors you have to tweak the system wide maximums with
14 /proc/sys/net/file-max
15
1 perry 16
17 !!CONFORMING TO
2 PerryLorier 18 SVr4, 4.4BSD (the getdtablesize(2) function first appeared in BSD 4.2).
1 perry 19
20 !!SEE ALSO
21 close(2), dup(2), open(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)