Query: dirfd
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DIRFD(3) Linux Programmer's Manual DIRFD(3)NAMEdirfd - get directory stream file descriptorSYNOPSIS#include <sys/types.h> #include <dirent.h> int dirfd(DIR *dir);DESCRIPTIONThe function dirfd() returns the file descriptor associated with the directory stream dir.ERRORSOn error -1 is returned.NOTESThe prototype for dirfd is only available if _BSD_SOURCE or _SVID_SOURCE is defined (either explicitly, or implicitly, by not defining _POSIX_SOURCE or compiling with the -ansi flag).CONFORMING TOThis is a BSD extension, present in 4.3BSD-Reno, not in 4.2BSD. Present in libc5 (since 5.1.2) and in glibc2.SEE ALSOopen(2), closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3), seekdir(3), telldir(3) Linux 2.5 2002-01-05 DIRFD(3)
Related Man Pages |
---|
dirfd(3c) - opensolaris |
dirfd(3) - redhat |
dirfd(3) - centos |
dirfd(3) - suse |
dirfd(3) - v7 |