comparison src/ndir.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents c5d627a313b1
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
21 <dir.h> -- definitions for 4.2BSD-compatible directory access 21 <dir.h> -- definitions for 4.2BSD-compatible directory access
22 22
23 last edit: 09-Jul-1983 D A Gwyn 23 last edit: 09-Jul-1983 D A Gwyn
24 */ 24 */
25 25
26 #ifndef INCLUDED_ndir_h_
27 #define INCLUDED_ndir_h_
28
26 #define DIRBLKSIZ 512 /* size of directory block */ 29 #define DIRBLKSIZ 512 /* size of directory block */
27 #ifdef WINDOWSNT 30 #ifdef WINDOWSNT
28 #define MAXNAMLEN 255 31 #define MAXNAMLEN 255
29 #else /* not WINDOWSNT */ 32 #else /* not WINDOWSNT */
30 #define MAXNAMLEN 15 /* maximum filename length */ 33 #define MAXNAMLEN 15 /* maximum filename length */
45 int dd_loc; /* offset in block */ 48 int dd_loc; /* offset in block */
46 int dd_size; /* amount of valid data */ 49 int dd_size; /* amount of valid data */
47 char dd_buf[DIRBLKSIZ]; /* directory block */ 50 char dd_buf[DIRBLKSIZ]; /* directory block */
48 } DIR; /* stream data from opendir() */ 51 } DIR; /* stream data from opendir() */
49 52
50 DIR *opendir (CONST char *filename); 53 DIR *opendir (const char *filename);
51 int closedir (DIR *dirp); 54 int closedir (DIR *dirp);
52 struct direct *readdir (DIR *dirp); 55 struct direct *readdir (DIR *dirp);
53 struct direct *readdirver (DIR *dirp); 56 struct direct *readdirver (DIR *dirp);
54 long telldir (DIR *dirp); 57 long telldir (DIR *dirp);
55 void seekdir (DIR *dirp, long loc); 58 void seekdir (DIR *dirp, long loc);
56 59
57 #define rewinddir( dirp ) seekdir( dirp, 0L ) 60 #define rewinddir( dirp ) seekdir( dirp, 0L )
61
62 #endif /* INCLUDED_ndir_h_ */