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

NAME

6       ftw.h, ftw - file tree traversal
7

SYNOPSIS

9       #include <ftw.h>
10
11

DESCRIPTION

13       The  <ftw.h> header defines the FTW structure that includes the follow‐
14       ing members:
15
16         int base
17         int level
18
19
20
21       The <ftw.h> header defines macros for use as values of  the third argu‐
22       ment to the application-supplied function that is  passed as the second
23       argument to ftw() and nftw() (see ftw(3C)):
24
25       FTW_F      file
26
27
28       FTW_D      directory
29
30
31       FTW_DNR    directory without read permission
32
33
34       FTW_DP     directory with subdirectories visited
35
36
37       FTW_NS     unknown type; stat() failed
38
39
40       FTW_SL     symbolic link
41
42
43       FTW_SLN    symbolic link that names a nonexistent file
44
45
46
47       The <ftw.h> header defines macros for use as values of the fourth argu‐
48       ment to nftw():
49
50       FTW_PHYS     Physical  walk, does not follow symbolic links. Otherwise,
51                    nftw() follows links but does not walk down any path  that
52                    crosses itself.
53
54
55       FTW_MOUNT    The walk does not cross a mount point.
56
57
58       FTW_DEPTH    All   subdirectories  are  visited  before  the  directory
59                    itself.
60
61
62       FTW_CHDIR    The walk changes to each direct ory before reading it.
63
64
65
66       The <ftw.h> header defines the stat structure and  the  symbolic  names
67       for st_mode and the file type test macros as described in <sys/stat.h>.
68
69
70       Inclusion  of  the  <ftw.h>  header might also make visible all symbols
71       from <sys/stat.h>.
72

ATTRIBUTES

74       See attributes(5) for descriptions of the following attributes:
75
76
77
78
79       ┌─────────────────────────────┬─────────────────────────────┐
80       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
81       ├─────────────────────────────┼─────────────────────────────┤
82       │Interface Stability          │Standard                     │
83       └─────────────────────────────┴─────────────────────────────┘
84

SEE ALSO

86       ftw(3C), stat.h(3HEAD), attributes(5), standards(5)
87
88
89
90SunOS 5.11                        10 Sep 2004                     ftw.h(3HEAD)
Impressum