aboutsummaryrefslogtreecommitdiffstats
path: root/include/fts.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fts.h')
-rw-r--r--include/fts.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/fts.h b/include/fts.h
index a679ea6876ab..f453e2b86526 100644
--- a/include/fts.h
+++ b/include/fts.h
@@ -33,15 +33,17 @@
#ifndef _FTS_H_
#define _FTS_H_
+#include <sys/_types.h>
+
typedef struct {
struct _ftsent *fts_cur; /* current node */
struct _ftsent *fts_child; /* linked list of children */
struct _ftsent **fts_array; /* sort array */
- dev_t fts_dev; /* starting device # */
+ __dev_t fts_dev; /* starting device # */
char *fts_path; /* path for this descent */
int fts_rfd; /* fd for root */
- size_t fts_pathlen; /* sizeof(path) */
- size_t fts_nitems; /* elements in the sort array */
+ __size_t fts_pathlen; /* sizeof(path) */
+ __size_t fts_nitems; /* elements in the sort array */
int (*fts_compar) /* compare function */
(const struct _ftsent * const *, const struct _ftsent * const *);
@@ -72,12 +74,12 @@ typedef struct _ftsent {
char *fts_path; /* root path */
int fts_errno; /* errno for this node */
int fts_symfd; /* fd for symlink */
- size_t fts_pathlen; /* strlen(fts_path) */
- size_t fts_namelen; /* strlen(fts_name) */
+ __size_t fts_pathlen; /* strlen(fts_path) */
+ __size_t fts_namelen; /* strlen(fts_name) */
- ino_t fts_ino; /* inode */
- dev_t fts_dev; /* device */
- nlink_t fts_nlink; /* link count */
+ __ino_t fts_ino; /* inode */
+ __dev_t fts_dev; /* device */
+ __nlink_t fts_nlink; /* link count */
#define FTS_ROOTPARENTLEVEL -1
#define FTS_ROOTLEVEL 0