Linux 2.5
manpages-es
Spanish man pages
man-pages-es
Spanish man pages from the Linux Documentation Project
manpages-dev
Manual pages about using GNU/Linux for development
man-pages
Linux kernel and C library user-space interface documentation
NOMBRE
dirfd - obtiene el descriptor de fichero de un flujo de directorio
SINOPSIS
#include <sys/types.h>
#include <dirent.h>
#include <dirent.h>
int dirfd(DIR *dir);
DESCRIPCIÓN
La función dirfd() devuelve el descriptor de fichero asociado con el flujo de directorio dir.
ERRORES
En caso de error devuelve -1.
OBSERVACIONES
El prototipo para dirfd está solamente disponible si _BSD_SOURCE o _SVID_SOURCE están definidos (bien explícitamente, o implícitamente, no definiendo _POSIX_SOURCE o compilando con la opción -ansi).
CONFORME A
Ésta es una extensión de BSD, presente en 4.3BSD-Reno, no en 4.2BSD. Presente también en libc5 (desde 5.1.2) y en glibc2.