]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/opendir.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / opendir.3
CommitLineData
a1eaacb1 1'\" t
fea681da
MK
2.\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
3.\"
5fbde956 4.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fea681da
MK
5.\"
6.\" References consulted:
7.\" Linux libc source code
8.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
9.\" 386BSD man pages
10.\" Modified Sat Jul 24 18:46:01 1993 by Rik Faith (faith@cs.unc.edu)
11.\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
8f5aadb9 12.\" 2007-07-30 Ulrich Drepper <drepper@redhat.com>: document fdopendir().
4c1c5274 13.TH opendir 3 (date) "Linux man-pages (unreleased)"
fea681da 14.SH NAME
8f5aadb9 15opendir, fdopendir \- open a directory
accf53e5
AC
16.SH LIBRARY
17Standard C library
8fc3b2cf 18.RI ( libc ", " \-lc )
fea681da
MK
19.SH SYNOPSIS
20.nf
21.B #include <sys/types.h>
fea681da 22.B #include <dirent.h>
c6d039a3 23.P
fea681da 24.BI "DIR *opendir(const char *" name );
8f5aadb9 25.BI "DIR *fdopendir(int " fd );
fea681da 26.fi
c6d039a3 27.P
d39ad78f 28.RS -4
682b5054
PB
29Feature Test Macro Requirements for glibc (see
30.BR feature_test_macros (7)):
d39ad78f 31.RE
c6d039a3 32.P
682b5054 33.BR fdopendir ():
9d2adbae
MK
34.nf
35 Since glibc 2.10:
5c10d2c5 36 _POSIX_C_SOURCE >= 200809L
9d2adbae
MK
37 Before glibc 2.10:
38 _GNU_SOURCE
39.fi
fea681da 40.SH DESCRIPTION
60a90ecd
MK
41The
42.BR opendir ()
43function opens a directory stream corresponding to the
c13182ef
MK
44directory \fIname\fP, and returns a pointer to the directory stream.
45The stream is positioned at the first entry in the directory.
c6d039a3 46.P
8f5aadb9 47The
e4114f64 48.BR fdopendir ()