Coda Distributed File System
|
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <coda_fts.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Macros | |
#define | USHRT_MAX 65535 /* max of "unsigned short int" */ |
#define | _D_EXACT_NAMLEN(dp) strlen(dp->d_name)+1 |
#define | ALIGNBYTES (__alignof__ (long double) - 1) |
#define | ALIGN(p) (((unsigned long int) (p) + ALIGNBYTES) & ~ALIGNBYTES) |
#define | __P(x) x |
#define | MAX(a, b) |
#define | ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) |
#define | CLR(opt) (sp->fts_options &= ~(opt)) |
#define | ISSET(opt) (sp->fts_options & (opt)) |
#define | SET(opt) (sp->fts_options |= (opt)) |
#define | FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd)) |
#define | BCHILD 1 /* fts_children */ |
#define | BNAMES 2 /* fts_children, names only */ |
#define | BREAD 3 /* fts_read */ |
#define | MAXPATHLEN 1024 |
#define | NAPPEND(p) |
#define | __opendir2(path, flag) opendir(path) |
#define | ADJUST(p) |
Functions | |
FTS * | fts_open (char *const *argv, int options, int *compar) |
int | fts_close (FTS *sp) |
FTSENT * | fts_read (FTS *sp) |
int | fts_set (FTS *sp, FTSENT *p, int instr) |
FTSENT * | fts_children (FTS *sp, int instr) |
#define __P | ( | x | ) | x |
#define ADJUST | ( | p | ) |
#define ALIGN | ( | p | ) | (((unsigned long int) (p) + ALIGNBYTES) & ~ALIGNBYTES) |
#define ALIGNBYTES (__alignof__ (long double) - 1) |
#define BCHILD 1 /* fts_children */ |
#define BNAMES 2 /* fts_children, names only */ |
#define CLR | ( | opt | ) | (sp->fts_options &= ~(opt)) |
#define FCHDIR | ( | sp, | |
fd | |||
) | (!ISSET(FTS_NOCHDIR) && fchdir(fd)) |
#define ISDOT | ( | a | ) | (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) |
#define ISSET | ( | opt | ) | (sp->fts_options & (opt)) |
#define MAX | ( | a, | |
b | |||
) |
#define MAXPATHLEN 1024 |
#define NAPPEND | ( | p | ) |
#define SET | ( | opt | ) | (sp->fts_options |= (opt)) |
#define USHRT_MAX 65535 /* max of "unsigned short int" */ |
int fts_close | ( | FTS * | sp | ) |
FTS * fts_open | ( | char * const * | argv, |
int | options, | ||
int * | compar | ||
) |