source: vendor/emx/current/include/sys/dirent.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 KB
Line 
1/* sys/dirent.h (emx+gcc) */
2
3#ifndef _SYS_DIRENT_H
4#define _SYS_DIRENT_H
5
6#if !defined (_SYS_TYPES_H)
7#warning <sys/dirent.h> requires <sys/types.h>
8#include <sys/types.h>
9#endif
10
11#if !defined (MAXNAMLEN)
12#define MAXNAMLEN 260
13#endif
14
15#if !defined (MAXPATHLEN)
16#define MAXPATHLEN 260
17#endif
18
19#if !defined (A_RONLY)
20#define A_RONLY 0x01
21#define A_HIDDEN 0x02
22#define A_SYSTEM 0x04
23#define A_LABEL 0x08
24#define A_DIR 0x10
25#define A_ARCHIVE 0x20
26#endif
27
28#define _DIRENT_D_MODE_RENAMED_D_ATTR
29
30struct dirent
31{
32 ino_t d_ino; /* Almost not used */
33 int d_reclen; /* Almost not used */
34 int d_namlen; /* Length of d_name */
35 char d_name[MAXNAMLEN + 1]; /* File name, 0 terminated */
36 long d_size; /* File size (bytes) */
37 unsigned short d_attr; /* OS file attributes */
38 unsigned short d_time; /* OS file modification time */
39 unsigned short d_date; /* OS file modification date */
40};
41
42#endif /* not SYS_DIRENT_H */
Note: See TracBrowser for help on using the repository browser.