Mercurial > hg > xemacs-beta
comparison src/ndir.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
25 | 25 |
26 #ifndef INCLUDED_ndir_h_ | 26 #ifndef INCLUDED_ndir_h_ |
27 #define INCLUDED_ndir_h_ | 27 #define INCLUDED_ndir_h_ |
28 | 28 |
29 #define DIRBLKSIZ 512 /* size of directory block */ | 29 #define DIRBLKSIZ 512 /* size of directory block */ |
30 #ifdef WINDOWSNT | 30 #ifdef WIN32_NATIVE |
31 #define MAXNAMLEN 255 | 31 #define MAXNAMLEN 255 |
32 #else /* not WINDOWSNT */ | 32 #else /* not WIN32_NATIVE */ |
33 #define MAXNAMLEN 15 /* maximum filename length */ | 33 #define MAXNAMLEN 15 /* maximum filename length */ |
34 #endif /* not WINDOWSNT */ | 34 #endif /* not WIN32_NATIVE */ |
35 /* NOTE: MAXNAMLEN must be one less than a multiple of 4 */ | 35 /* NOTE: MAXNAMLEN must be one less than a multiple of 4 */ |
36 | 36 |
37 struct direct /* data from readdir() */ | 37 struct direct /* data from readdir() */ |
38 { | 38 { |
39 long d_ino; /* inode number of entry */ | 39 long d_ino; /* inode number of entry */ |
48 int dd_loc; /* offset in block */ | 48 int dd_loc; /* offset in block */ |
49 int dd_size; /* amount of valid data */ | 49 int dd_size; /* amount of valid data */ |
50 char dd_buf[DIRBLKSIZ]; /* directory block */ | 50 char dd_buf[DIRBLKSIZ]; /* directory block */ |
51 } DIR; /* stream data from opendir() */ | 51 } DIR; /* stream data from opendir() */ |
52 | 52 |
53 DIR *opendir (CONST char *filename); | 53 DIR *opendir (const char *filename); |
54 int closedir (DIR *dirp); | 54 int closedir (DIR *dirp); |
55 struct direct *readdir (DIR *dirp); | 55 struct direct *readdir (DIR *dirp); |
56 struct direct *readdirver (DIR *dirp); | 56 struct direct *readdirver (DIR *dirp); |
57 long telldir (DIR *dirp); | 57 long telldir (DIR *dirp); |
58 void seekdir (DIR *dirp, long loc); | 58 void seekdir (DIR *dirp, long loc); |