2013-01-06 02:19:51 +04:00
|
|
|
/*
|
2022-06-09 23:24:11 +03:00
|
|
|
* Copyright 2022, Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
2013-01-06 02:19:51 +04:00
|
|
|
*/
|
2022-06-09 23:24:11 +03:00
|
|
|
#ifndef _FTW_H_
|
|
|
|
#define _FTW_H_
|
2013-01-06 02:19:51 +04:00
|
|
|
|
|
|
|
|
2022-06-09 23:24:11 +03:00
|
|
|
#include <features.h>
|
2013-01-06 02:19:51 +04:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
|
2022-06-09 23:24:11 +03:00
|
|
|
#define FTW_F 0
|
|
|
|
#define FTW_D 1
|
|
|
|
#define FTW_DNR 2
|
|
|
|
#define FTW_DP 3
|
|
|
|
#define FTW_NS 4
|
|
|
|
#define FTW_SL 5
|
|
|
|
#define FTW_SLN 6
|
|
|
|
|
|
|
|
#define FTW_PHYS 0x01
|
|
|
|
#define FTW_MOUNT 0x02
|
|
|
|
#define FTW_DEPTH 0x04
|
|
|
|
#define FTW_CHDIR 0x08
|
2013-01-06 02:19:51 +04:00
|
|
|
|
|
|
|
struct FTW {
|
|
|
|
int base;
|
|
|
|
int level;
|
|
|
|
};
|
|
|
|
|
2022-06-09 23:24:11 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-01-06 02:19:51 +04:00
|
|
|
int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
|
|
|
|
int nftw(const char *, int (*)(const char *, const struct stat *, int,
|
2022-06-09 23:24:11 +03:00
|
|
|
struct FTW *), int, int);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2013-01-06 02:19:51 +04:00
|
|
|
|
2022-06-09 23:24:11 +03:00
|
|
|
#endif /* _FTW_H_ */
|