1 /* $Header: dir.h,v 3.0.1.1 90/03/27 16:07:08 lwall Locked $
3 * (C) Copyright 1987, 1990 Diomidis Spinellis.
5 * You may distribute under the terms of the GNU General Public License
6 * as specified in the README file that comes with the perl 3.0 kit.
9 * Revision 3.0.1.1 90/03/27 16:07:08 lwall
10 * patch16: MSDOS support
12 * Revision 1.1 90/03/18 20:32:29 dds
19 * defines the type returned by the directory(3) functions
22 #ifndef __DIR_INCLUDED
23 #define __DIR_INCLUDED
25 /*Directory entry size */
29 #define DIRSIZ(rp) (sizeof(struct direct))
32 * Structure of a directory entry
35 ino_t d_ino; /* inode number (not used by MS-DOS) */
36 int d_namlen; /* Name length */
37 char d_name[13]; /* file name */
40 struct _dir_struc { /* Structure used by dir operations */
41 char *start; /* Starting position */
42 char *curr; /* Current position */
43 struct direct dirstr; /* Directory structure to return */
46 typedef struct _dir_struc DIR; /* Type returned by dir operations */
48 DIR *cdecl opendir(char *filename);
49 struct direct *readdir(DIR *dirp);
50 long telldir(DIR *dirp);
51 void seekdir(DIR *dirp,long loc);
52 void rewinddir(DIR *dirp);
53 void closedir(DIR *dirp);
55 #endif /* __DIR_INCLUDED */