]> Dogcows Code - chaz/tar/blob - src/msd_dir.h
(check_time): Use volume_start_time when checking
[chaz/tar] / src / msd_dir.h
1 /*
2 * @(#)msd_dir.h 1.4 87/11/06 Public Domain.
3 *
4 * A public domain implementation of BSD directory routines for
5 * MS-DOS. Written by Michael Rendell ({uunet,utai}michael@garfield),
6 * August 1897
7 */
8
9 #define rewinddir(dirp) seekdir(dirp, 0L)
10
11 #define MAXNAMLEN 12
12
13 #ifdef __TURBOC__
14 typedef int ino_t;
15 typedef int dev_t;
16 #endif
17
18 struct direct {
19 ino_t d_ino; /* a bit of a farce */
20 int d_reclen; /* more farce */
21 int d_namlen; /* length of d_name */
22 char d_name[MAXNAMLEN + 1]; /* garentee null termination */
23 };
24
25 struct _dircontents {
26 char *_d_entry;
27 struct _dircontents *_d_next;
28 };
29
30 typedef struct _dirdesc {
31 int dd_id; /* uniquely identify each open directory */
32 long dd_loc; /* where we are in directory entry is this */
33 struct _dircontents *dd_contents; /* pointer to contents of dir */
34 struct _dircontents *dd_cp; /* pointer to current position */
35 } DIR;
36
37 extern DIR *opendir();
38 extern struct direct *readdir();
39 extern void seekdir();
40 extern long telldir();
41 extern void closedir();
This page took 0.03444 seconds and 4 git commands to generate.