1dirent.h(3HEAD)                     Headers                    dirent.h(3HEAD)
2
3
4

NAME

6       dirent.h, dirent - format of directory entries
7

SYNOPSIS

9       #include <dirent.h>
10
11

DESCRIPTION

13       The  internal  format  of  directories  is  unspecified. The <dirent.h>
14       header defines the following type:
15
16       DIR    A type representing a directory stream.
17
18
19
20       The header also defines the structure dirent, which includes  the  fol‐
21       lowing members:
22
23         ino_t d_ino        /* file serial number */
24         char  d_name[]     /* name of entry */
25
26
27
28       The   type   ino_t  is  defined  as  described  in  <sys/types.h>.  See
29       types(3HEAD).
30
31
32       The character array d_name is of unspecified size, but  the  number  of
33       bytes preceding the terminating null byte must not exceed {NAME_MAX}.
34

ATTRIBUTES

36       See attributes(5) for descriptions of the following attributes:
37
38
39
40
41       ┌─────────────────────────────┬─────────────────────────────┐
42       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
43       ├─────────────────────────────┼─────────────────────────────┤
44       │Interface Stability          │Standard                     │
45       └─────────────────────────────┴─────────────────────────────┘
46

SEE ALSO

48       closedir(3C),  opendir(3C),  readdir(3C),  rewinddir(3C),  seekdir(3C),
49       telldir(3C), types.h(3HEAD), attributes(5), standards(5)
50
51
52
53SunOS 5.11                        10 Sep 2004                  dirent.h(3HEAD)
Impressum