Last change
on this file was 10, checked in by bird, 22 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:
622 bytes
|
Line | |
---|
1 | #ifndef __dirent_h
|
---|
2 | #define __dirent_h
|
---|
3 |
|
---|
4 | #include "sys/dir.h"
|
---|
5 |
|
---|
6 | struct dirent {
|
---|
7 | long d_ino; /* inode number of entry */
|
---|
8 | off_t d_off; /* offset of disk directory entry */
|
---|
9 | unsigned short d_reclen; /* length of this record */
|
---|
10 | char d_name[1]; /* name of file */
|
---|
11 | };
|
---|
12 |
|
---|
13 | /*
|
---|
14 | #define DIRENTBASESIZE \
|
---|
15 | (((struct dirent *) 0)->d_name - (char *) 0)
|
---|
16 | #define DIRENTSIZE(namelen) \
|
---|
17 | ((DIRENTBASESIZE + (namelen) + NBPW) & ~(NBPW - 1))
|
---|
18 | */
|
---|
19 |
|
---|
20 | /* from Mips posix/dirent.h */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | #undef rewinddir
|
---|
24 | */
|
---|
25 |
|
---|
26 | extern DIR *opendir();
|
---|
27 | extern struct dirent *readdir();
|
---|
28 | extern void rewinddir();
|
---|
29 | extern int closedir();
|
---|
30 |
|
---|
31 | #endif /* ! __dirent_h */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.