Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/gen/ftw-compat11.c
Show All 27 Lines | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <fts.h> | #include <fts.h> | ||||
#include <ftw.h> | #include <ftw.h> | ||||
#include "fts-compat11.h" | #include "fts-compat11.h" | ||||
int freebsd11_ftw(const char *path, int (*fn)(const char *, | |||||
const struct freebsd11_stat *, int), int nfds); | |||||
int | int | ||||
freebsd11_ftw(const char *path, | freebsd11_ftw(const char *path, | ||||
int (*fn)(const char *, const struct freebsd11_stat *, int), int nfds) | int (*fn)(const char *, const struct freebsd11_stat *, int), int nfds) | ||||
{ | { | ||||
char * const paths[2] = { (char *)path, NULL }; | char * const paths[2] = { (char *)path, NULL }; | ||||
FTSENT11 *cur; | FTSENT11 *cur; | ||||
FTS11 *ftsp; | FTS11 *ftsp; | ||||
int error = 0, fnflag, sverrno; | int error = 0, fnflag, sverrno; | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |