Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / include / dirent.h
bloba82589c1859a56e3b5bf945ba8189b9bc2e9ec2f
1 #ifndef _DIRENT_H_
2 #define _DIRENT_H_
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: header file dirent.h
9 Lang: english
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;
18 #endif
20 #ifndef __AROS_OFF_T_DECLARED
21 #define __AROS_OFF_T_DECLARED
22 typedef __off_t off_t;
23 #endif
25 #ifndef NAME_MAX
26 #define NAME_MAX 255
27 #endif
29 struct dirent
31 ino_t d_ino;
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
39 int fd;
40 struct dirent ent;
41 off_t pos;
42 void *priv;
43 } DIR;
45 __BEGIN_DECLS
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); */
55 #endif
57 #if __XSI_VISIBLE
58 void seekdir(DIR *dir, long loc);
59 long telldir(DIR *dir);
60 #endif
62 #if __BSD_VISIBLE
64 #ifndef __AROS_SSIZE_T_DECLARED
65 #define __AROS_SSIZE_T_DECLARED
66 typedef __ssize_t ssize_t;
67 #endif
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); */
75 #endif
77 __END_DECLS
79 #endif /* !_DIRENT_H_ */