Scroll to navigation

getdtablesize(3) Library Functions Manual getdtablesize(3)

NOMBRE

getdtablesize - get file descriptor table size

BIBLIOTECA

Biblioteca Estándar C (libc, -lc)

SINOPSIS

#include <unistd.h>
int getdtablesize(void);

Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

getdtablesize():


Since glibc 2.20:
_DEFAULT_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
glibc 2.12 to glibc 2.19:
_BSD_SOURCE || ! (_POSIX_C_SOURCE >= 200112L)
Before glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE >= 500

DESCRIPCIÓN

getdtablesize() devuelve el número máximo de ficheros que un proceso puede tener abiertos, uno más que el valor más grande posible para un descriptor de fichero.

VALOR DEVUELTO

El límite actual de número de ficheros abiertos por proceso.

ERRORES

On Linux, getdtablesize() can return any of the errors described for getrlimit(2); see NOTES below.

ATRIBUTOS

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
getdtablesize() Seguridad del hilo Multi-hilo seguro

VERSIONES

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

Portable applications should employ sysconf(_SC_OPEN_MAX) instead of this call.

ESTÁNDARES

None.

HISTORIAL

SVr4, 4.4BSD (first appeared in 4.2BSD).

VÉASE TAMBIÉN

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

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Miguel Angel Sepulveda <angel@vivaldi.princeton.edu>, Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> y Miguel Pérez Ibars <mpi79470@alu.um.es>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

20 ​​Julio 2023 Páginas de manual de Linux 6.05.01