1 /* $Header: dir.h,v 4.0 91/03/20 01:34:20 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 4.0 91/03/20 01:34:20 lwall
12 * Revision 3.0.1.1 90/03/27 16:07:08 lwall
13 * patch16: MSDOS support
15 * Revision 1.1 90/03/18 20:32:29 dds
22 * defines the type returned by the directory(3) functions
25 #ifndef __DIR_INCLUDED
26 #define __DIR_INCLUDED
28 /*Directory entry size */
32 #define DIRSIZ(rp) (sizeof(struct direct))
35 * Structure of a directory entry
38 ino_t d_ino; /* inode number (not used by MS-DOS) */
39 int d_namlen; /* Name length */
40 char d_name[13]; /* file name */
43 struct _dir_struc { /* Structure used by dir operations */
44 char *start; /* Starting position */
45 char *curr; /* Current position */
46 struct direct dirstr; /* Directory structure to return */
49 typedef struct _dir_struc DIR; /* Type returned by dir operations */
51 DIR *cdecl opendir(char *filename);
52 struct direct *readdir(DIR *dirp);
53 long telldir(DIR *dirp);
54 void seekdir(DIR *dirp,long loc);
55 void rewinddir(DIR *dirp);
56 void closedir(DIR *dirp);
58 #endif /* __DIR_INCLUDED */