Last change
on this file since 6099cac was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
Imported original source code.
|
-
Property mode
set to
100755
|
File size:
640 bytes
|
Line | |
---|
1 | #ifndef DIRSIZ
|
---|
2 | #define DIRSIZ 13
|
---|
3 | #endif
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Structure returned by search calls
|
---|
7 | */
|
---|
8 | struct direct
|
---|
9 | {
|
---|
10 | char rsvd[21]; /* reserved for dos */
|
---|
11 | char d_attr; /* file attribute */
|
---|
12 | long d_time; /* modified time */
|
---|
13 | long d_size; /* file size */
|
---|
14 | char d_name[DIRSIZ]; /* directory entry name */
|
---|
15 | };
|
---|
16 |
|
---|
17 | typedef struct _dirdesc
|
---|
18 | {
|
---|
19 | int d_magic; /* magic number 1234 */
|
---|
20 | int d_length; /* number of directory entries */
|
---|
21 | int d_pos; /* current position */
|
---|
22 | struct direct **namelist; /* list of directory entries */
|
---|
23 | } DIR;
|
---|
24 |
|
---|
25 | #define DMAGIC 0x1234
|
---|
26 |
|
---|
27 | DIR *opendir();
|
---|
28 | struct direct *readdir();
|
---|
29 | long telldir();
|
---|
30 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.