sourCEntral - mobile manpages

pdf

getdtablesize

NOM

getdtablesize - get file descriptor table size

BIBLIOTHÈQUE

Bibliothèque C standard (libc, -lc)

SYNOPSIS

#include <unistd.h>

int getdtablesize(void);

Exigences de macros de test de fonctionnalités pour la glibc (consulter feature_test_macros(7)) :

getdtablesize() :
Depuis la glibc 2.20 :
_DEFAULT_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
De la glibc 2.12 à la glibc 2.19 :
_BSD_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
Avant la glibc 2.12 :
_BSD_SOURCE || _XOPEN_SOURCE >= 500

DESCRIPTION

getdtablesize() retourne le nombre maximal de fichiers qu’un processus puisse ouvrir simultanément, soit un de plus que la plus grande valeur possible pour un descripteur de fichier.

VALEUR RENVOYÉE

La limite actuelle du nombre de fichiers ouverts par processus.

ERREURS

Sous Linux, getdtablesize() peut renvoyer toutes les erreurs décrites pour getrlimit(2) ; consultez les NOTES ci-dessous.

ATTRIBUTS

Pour une explication des termes utilisés dans cette section, consulter attributes(7).

img

STANDARDS

SVr4, 4.4BSD (the getdtablesize() function first appeared in 4.2BSD). It is not specified in POSIX.1; portable applications should employ sysconf(_SC_OPEN_MAX) instead of this call.

NOTES

The glibc version of getdtablesize() calls getrlimit(2) and returns the current RLIMIT_NOFILE limit, or OPEN_MAX when that fails.

VOIR AUSSI

close(2), dup(2), getrlimit(2), open(2)

TRADUCTION

La traduction française de cette page de manuel a été créée par Christophe Blaess <https://www.blaess.fr/christophe/>, Stéphan Rafin <stephan DOT rafin AT laposte DOT net>, Thierry Vignaud <tvignaud AT mandriva DOT com>, François Micaux, Alain Portal <aportal AT univ-montp2 DOT fr>, Jean-Philippe Guérard <fevrier AT tigreraye DOT org>, Jean-Luc Coulon (f5ibh) <jean-luc DOT coulon AT wanadoo DOT fr>, Julien Cristau <jcristau AT debian DOT org>, Thomas Huriaux <thomas DOT huriaux AT gmail DOT com>, Nicolas François <nicolas DOT francois AT centraliens DOT net>, Florentin Duneau <fduneau AT gmail DOT com>, Simon Paillard <simon DOT paillard AT resel DOT enst-bretagne DOT fr>, Denis Barbier <barbier AT debian DOT org> et David Prévot <david AT tilapin DOT org>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n’y a aucune RESPONSABILITÉ LÉGALE.

Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à debian-l10n-french.

pdf