|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT Version 4.0 ! 3: * Copyright (c) 1982, 1992 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: /* ! 7: * POSIX (IEEE 1003.1) compatible dirent.h header file. ! 8: */ ! 9: ! 10: #ifndef DIRENT_H ! 11: #define DIRENT_H 1 ! 12: ! 13: #ifdef _I386 ! 14: ! 15: #include <sys/dirent.h> ! 16: ! 17: #define MAXNAMLEN 14 /* maximum filename length */ ! 18: ! 19: #define DIRBUF 2048 /* buffer size for fs-indep. dirs */ ! 20: /* must in general be larger than the filesystem buffer size */ ! 21: ! 22: typedef struct ! 23: { ! 24: int dd_fd; /* file descriptor */ ! 25: int dd_loc; /* offset in block */ ! 26: int dd_size; /* amount of valid data */ ! 27: char *dd_buf; /* -> directory block */ ! 28: } DIR; /* stream data from opendir() */ ! 29: ! 30: ! 31: extern DIR *opendir(); ! 32: extern struct dirent *readdir(); ! 33: extern void rewinddir(); ! 34: extern int closedir(); ! 35: extern daddr_t telldir(); ! 36: extern void seekdir(); ! 37: ! 38: #else ! 39: /* ! 40: *-------------------- 286 version ---------------- ! 41: */ ! 42: /* ! 43: * Rely on COHERENT's sys/dir.h to define type DIR and structure direct with ! 44: * fields d_ino of type ino_t and d_name of type char []. ! 45: */ ! 46: #include <sys/dir.h> ! 47: ! 48: /* ! 49: * Implement dirent as a macro, making struct dirent equivalent to COHERENT's ! 50: * struct direct. ! 51: */ ! 52: #define dirent direct ! 53: ! 54: #endif ! 55: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.