Subversion Repositories tendra.SVN

Rev

Rev 80 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
80 7u83 1
#ifndef __TENDRA_FTW_H
2
#define __TENDRA_FTW_H
3
 
4
#ifndef _SVID_SOURCE
5
#error "This header file is only avail with _SVID_SOURCE"
6
#endif
7
 
8
/*
9
 * Valid flags for the 3rd argument to the function that is passed as the
10
 * second argument to ftw(3) and nftw(3).  Say it three times fast!
11
 */
12
#define	FTW_F		0	/* File.  */
13
#define	FTW_D		1	/* Directory.  */
14
#define	FTW_DNR		2	/* Directory without read permission.  */
15
#define	FTW_DP		3	/* Directory with subdirectories visited.  */
16
#define	FTW_NS		4	/* Unknown type; stat() failed.  */
17
#define	FTW_SL		5	/* Symbolic link.  */
18
#define	FTW_SLN		6	/* Sym link that names a nonexistent file.  */
19
 
20
/*
21
 * Flags for use as the 4th argument to nftw(3).  These may be ORed together.
22
 */
23
#define	FTW_PHYS	0x01	/* Physical walk, don't follow sym links.  */
24
#define	FTW_MOUNT	0x02	/* The walk does not cross a mount point.  */
25
#define	FTW_DEPTH	0x04	/* Subdirs visited before the dir itself. */
26
#define	FTW_CHDIR	0x08	/* Change to a directory before reading it. */
27
 
28
 
29
struct FTW {
30
	int base;
31
	int level;
32
};
33
 
34
#endif