Coda Distributed File System
Classes | Macros | Typedefs | Functions
coda_fts.h File Reference
#include <sys/types.h>
Include dependency graph for coda_fts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FTS
 
struct  _ftsent
 

Macros

#define FTS_COMFOLLOW   0x0001 /* follow command line symlinks */
 
#define FTS_LOGICAL   0x0002 /* logical walk */
 
#define FTS_NOCHDIR   0x0004 /* don't change directories */
 
#define FTS_NOSTAT   0x0008 /* don't get stat info */
 
#define FTS_PHYSICAL   0x0010 /* physical walk */
 
#define FTS_SEEDOT   0x0020 /* return dot and dot-dot */
 
#define FTS_XDEV   0x0040 /* don't cross devices */
 
#define FTS_WHITEOUT   0x0080 /* return whiteout information */
 
#define FTS_OPTIONMASK   0x00ff /* valid user option mask */
 
#define FTS_NAMEONLY   0x0100 /* (private) child names only */
 
#define FTS_STOP   0x0200 /* (private) unrecoverable error */
 
#define FTS_ROOTPARENTLEVEL   -1
 
#define FTS_ROOTLEVEL   0
 
#define FTS_D   1 /* preorder directory */
 
#define FTS_DC   2 /* directory that causes cycles */
 
#define FTS_DEFAULT   3 /* none of the above */
 
#define FTS_DNR   4 /* unreadable directory */
 
#define FTS_DOT   5 /* dot or dot-dot */
 
#define FTS_DP   6 /* postorder directory */
 
#define FTS_ERR   7 /* error; errno is set */
 
#define FTS_F   8 /* regular file */
 
#define FTS_INIT   9 /* initialized only */
 
#define FTS_NS   10 /* stat(2) failed */
 
#define FTS_NSOK   11 /* no stat(2) requested */
 
#define FTS_SL   12 /* symbolic link */
 
#define FTS_SLNONE   13 /* symbolic link without target */
 
#define FTS_W   14 /* whiteout object */
 
#define FTS_DONTCHDIR   0x01 /* don't chdir .. to the parent */
 
#define FTS_SYMFOLLOW   0x02 /* followed a symlink to get here */
 
#define FTS_AGAIN   1 /* read node again */
 
#define FTS_FOLLOW   2 /* follow symbolic link */
 
#define FTS_NOINSTR   3 /* no instructions */
 
#define FTS_SKIP   4 /* discard node */
 

Typedefs

typedef struct _ftsent FTSENT
 

Functions

FTSENTfts_children (FTS *, int)
 
int fts_close (FTS *)
 
FTSfts_open (char *const *, int, int(*)(const FTSENT **, const FTSENT **))
 
FTSENTfts_read (FTS *)
 
int fts_set (FTS *, FTSENT *, int)
 

Macro Definition Documentation

◆ FTS_AGAIN

#define FTS_AGAIN   1 /* read node again */

◆ FTS_COMFOLLOW

#define FTS_COMFOLLOW   0x0001 /* follow command line symlinks */

◆ FTS_D

#define FTS_D   1 /* preorder directory */

◆ FTS_DC

#define FTS_DC   2 /* directory that causes cycles */

◆ FTS_DEFAULT

#define FTS_DEFAULT   3 /* none of the above */

◆ FTS_DNR

#define FTS_DNR   4 /* unreadable directory */

◆ FTS_DONTCHDIR

#define FTS_DONTCHDIR   0x01 /* don't chdir .. to the parent */

◆ FTS_DOT

#define FTS_DOT   5 /* dot or dot-dot */

◆ FTS_DP

#define FTS_DP   6 /* postorder directory */

◆ FTS_ERR

#define FTS_ERR   7 /* error; errno is set */

◆ FTS_F

#define FTS_F   8 /* regular file */

◆ FTS_FOLLOW

#define FTS_FOLLOW   2 /* follow symbolic link */

◆ FTS_INIT

#define FTS_INIT   9 /* initialized only */

◆ FTS_LOGICAL

#define FTS_LOGICAL   0x0002 /* logical walk */

◆ FTS_NAMEONLY

#define FTS_NAMEONLY   0x0100 /* (private) child names only */

◆ FTS_NOCHDIR

#define FTS_NOCHDIR   0x0004 /* don't change directories */

◆ FTS_NOINSTR

#define FTS_NOINSTR   3 /* no instructions */

◆ FTS_NOSTAT

#define FTS_NOSTAT   0x0008 /* don't get stat info */

◆ FTS_NS

#define FTS_NS   10 /* stat(2) failed */

◆ FTS_NSOK

#define FTS_NSOK   11 /* no stat(2) requested */

◆ FTS_OPTIONMASK

#define FTS_OPTIONMASK   0x00ff /* valid user option mask */

◆ FTS_PHYSICAL

#define FTS_PHYSICAL   0x0010 /* physical walk */

◆ FTS_ROOTLEVEL

#define FTS_ROOTLEVEL   0

◆ FTS_ROOTPARENTLEVEL

#define FTS_ROOTPARENTLEVEL   -1

◆ FTS_SEEDOT

#define FTS_SEEDOT   0x0020 /* return dot and dot-dot */

◆ FTS_SKIP

#define FTS_SKIP   4 /* discard node */

◆ FTS_SL

#define FTS_SL   12 /* symbolic link */

◆ FTS_SLNONE

#define FTS_SLNONE   13 /* symbolic link without target */

◆ FTS_STOP

#define FTS_STOP   0x0200 /* (private) unrecoverable error */

◆ FTS_SYMFOLLOW

#define FTS_SYMFOLLOW   0x02 /* followed a symlink to get here */

◆ FTS_W

#define FTS_W   14 /* whiteout object */

◆ FTS_WHITEOUT

#define FTS_WHITEOUT   0x0080 /* return whiteout information */

◆ FTS_XDEV

#define FTS_XDEV   0x0040 /* don't cross devices */

Typedef Documentation

◆ FTSENT

typedef struct _ftsent FTSENT

Function Documentation

◆ fts_children()

FTSENT * fts_children ( FTS sp,
int  instr 
)

◆ fts_close()

int fts_close ( FTS sp)

◆ fts_open()

FTS * fts_open ( char *const *  ,
int  ,
int(*)(const FTSENT **, const FTSENT **)   
)

◆ fts_read()

FTSENT * fts_read ( FTS sp)

◆ fts_set()

int fts_set ( FTS sp,
FTSENT p,
int  instr 
)