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
;
32 #define MAXNAMLEN NAME_MAX
33 char d_name
[MAXNAMLEN
+ 1]; /* name must be no longer than this */
36 /* structure describing an open directory. */
37 typedef struct _dirdesc
47 int closedir(DIR *dir
);
48 DIR *opendir(const char *filename
);
49 struct dirent
*readdir(DIR *dir
);
50 void rewinddir(DIR *dir
);
52 #if __POSIX_VISIBLE >= 200112
53 /* NOTIMPL int readdir_r(DIR * restrict dir , struct dirent * restrict entry,
54 struct dirent * restrict result); */
58 void seekdir(DIR *dir
, long loc
);
59 long telldir(DIR *dir
);
64 #ifndef __AROS_SSIZE_T_DECLARED
65 #define __AROS_SSIZE_T_DECLARED
66 typedef __ssize_t ssize_t
;
69 /* NOTIMPL int scandir (const char *dir, struct dirent ***namelist,
70 int (*select)(const struct dirent *),
71 int (*compar)(const struct dirent **, const struct dirent **)); */
73 /* NOTIMPL int alphasort(const struct dirent **a, const struct dirent **b); */
74 /* NOTIMPL ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep); */
79 #endif /* !_DIRENT_H_ */