#include <alloca.h>#include <dirent.h>#include <errno.h>#include <fcntl.h>#include <limits.h>#include <search.h>#include <stdlib.h>#include <string.h>#include <sys/param.h>#include <sys/stat.h>#include <unistd.h>#include <atalk/util.h>#include "ftw.h"#include <assert.h>Data Structures | |
| struct | dir_data |
| struct | known_object |
| struct | ftw_data |
| struct | node_t |
Macros | |
| #define | NAMLEN(dirent) |
| #define | mempcpy(D, S, N) |
| #define | NDEBUG 1 |
| #define | __chdir chdir |
| #define | __closedir closedir |
| #define | __fchdir fchdir |
| #define | __getcwd(P, N) |
| #define | __mempcpy mempcpy |
| #define | __opendir opendir |
| #define | __readdir64 readdir |
| #define | __tdestroy tdestroy |
| #define | __tfind tfind |
| #define | __tsearch tsearch |
| #define | internal_function /* empty */ |
| #define | dirent64 dirent |
| #define | __set_errno(Val) |
| #define | FTW_NAME ftw |
| #define | NFTW_NAME nftw |
| #define | NFTW_OLD_NAME __old_nftw |
| #define | NFTW_NEW_NAME __new_nftw |
| #define | STAT stat |
| #define | LXSTAT(V, f, sb) |
| #define | XSTAT(V, f, sb) |
| #define | FXSTATAT(V, d, f, sb, m) |
| #define | PATH_MAX 1024 |
Typedefs | |
| typedef void(* | __free_fn_t) (void *__nodep) |
| typedef struct node_t * | node |
Functions | |
| static int | ftw_dir (struct ftw_data *data, struct STAT *st, struct dir_data *old_dir) internal_function |
| static void | tdestroy_recurse (node root, __free_fn_t freefct) |
| static void | mytdestroy (void *vroot, __free_fn_t freefct) |
| static char * | mystpcpy (char *dest, const char *src, size_t dest_size) |
| static char * | xgetcwd (void) |
| static int | object_compare (const void *p1, const void *p2) |
| static int | add_object (struct ftw_data *data, struct STAT *st) |
| static int | find_object (struct ftw_data *data, struct STAT *st) |
| static int | open_dir_stream (int *dfdp, struct ftw_data *data, struct dir_data *dirp) |
| static int | process_entry (struct ftw_data *data, struct dir_data *dir, const char *name, size_t namlen) |
| static int | ftw_startup (const char *dir, int is_nftw, nftw_func_t func, dir_notification_func_t up, int descriptors, int flags) |
| int | NFTW_NAME (const char *path, nftw_func_t func, dir_notification_func_t up, int descriptors, int flags) |
Variables | |
| static const int | nftw_arr [] |
| static const int | ftw_arr [] |
| static dir_notification_func_t | upfunc |
| #define __chdir chdir |
| #define __closedir closedir |
| #define __fchdir fchdir |
| #define __mempcpy mempcpy |
| #define __opendir opendir |
| #define __readdir64 readdir |
| #define __set_errno | ( | Val | ) |
| #define __tdestroy tdestroy |
| #define __tfind tfind |
| #define __tsearch tsearch |
| #define dirent64 dirent |
| #define FTW_NAME ftw |
| #define FXSTATAT | ( | V, | |
| d, | |||
| f, | |||
| sb, | |||
| m ) |
| #define internal_function /* empty */ |
| #define LXSTAT | ( | V, | |
| f, | |||
| sb ) |
| #define mempcpy | ( | D, | |
| S, | |||
| N ) |
| #define NAMLEN | ( | dirent | ) |
| #define NDEBUG 1 |
| #define NFTW_NAME nftw |
| #define NFTW_NEW_NAME __new_nftw |
| #define NFTW_OLD_NAME __old_nftw |
| #define PATH_MAX 1024 |
| #define STAT stat |
| #define XSTAT | ( | V, | |
| f, | |||
| sb ) |
| typedef void(* __free_fn_t) (void *__nodep) |
|
static |
|
static |
|
static |
| int NFTW_NAME | ( | const char * | path, |
| nftw_func_t | func, | ||
| dir_notification_func_t | up, | ||
| int | descriptors, | ||
| int | flags ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |