5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: header file dirent.h
12 #include <sys/_types.h>
13 #include <sys/cdefs.h>
15 #ifndef __AROS_INO_T_DECLARED
16 #define __AROS_INO_T_DECLARED
17 typedef __ino_t ino_t
;
20 #ifndef __AROS_OFF_T_DECLARED
21 #define __AROS_OFF_T_DECLARED
22 typedef __off_t off_t
;
42 unsigned short int d_reclen
;
44 #define MAXNAMLEN NAME_MAX
45 char d_name
[MAXNAMLEN
+ 1]; /* name must be no longer than this */
48 /* structure describing an open directory. */
49 typedef struct _dirdesc
59 int closedir(DIR *dir
);
60 DIR *opendir(const char *filename
);
61 struct dirent
*readdir(DIR *dir
);
62 void rewinddir(DIR *dir
);
65 #if __POSIX_VISIBLE >= 200112
66 /* NOTIMPL int readdir_r(DIR * restrict dir , struct dirent * restrict entry,
67 struct dirent * restrict result); */
71 void seekdir(DIR *dir
, off_t loc
);
72 long telldir(DIR *dir
);
77 #ifndef __AROS_SSIZE_T_DECLARED
78 #define __AROS_SSIZE_T_DECLARED
79 typedef __ssize_t ssize_t
;
82 /* NOTIMPL int scandir (const char *dir, struct dirent ***namelist,
83 int (*select)(const struct dirent *),
84 int (*compar)(const struct dirent **, const struct dirent **)); */
86 /* NOTIMPL int alphasort(const struct dirent **a, const struct dirent **b); */
87 /* NOTIMPL ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep); */
92 #endif /* !_DIRENT_H_ */