| Last change
 on this file since 2330 was             310, checked in by ansari, 26 years ago | 
        
          | 
Conversion Archeops raw file -> TOI
 | 
        
          | File size:
            695 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* $Id: dirent.h,v 1.1.1.1 1999-05-25 08:25:53 ansari Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | #ifndef _DIRENT_H | 
|---|
| 4 | #define _DIRENT_H | 
|---|
| 5 |  | 
|---|
| 6 | #include <stat.h> | 
|---|
| 7 |  | 
|---|
| 8 | typedef unsigned short                  ushort_t; | 
|---|
| 9 |  | 
|---|
| 10 | typedef struct { | 
|---|
| 11 | short volrefnum; | 
|---|
| 12 | long dirid; | 
|---|
| 13 | int nextfile; | 
|---|
| 14 | } DIR; | 
|---|
| 15 |  | 
|---|
| 16 | struct dirent { | 
|---|
| 17 | ino_t    d_ino;               /* file number of entry */ | 
|---|
| 18 | ushort_t d_reclen;            /* length of this record */ | 
|---|
| 19 | ushort_t d_namlen;            /* length of string in d_name */ | 
|---|
| 20 | char d_name[FILENAME_MAX]; | 
|---|
| 21 | }; | 
|---|
| 22 |  | 
|---|
| 23 | #ifdef __cplusplus | 
|---|
| 24 | extern "C" { | 
|---|
| 25 | #endif | 
|---|
| 26 |  | 
|---|
| 27 | DIR *opendir(char const *); | 
|---|
| 28 | struct dirent *readdir(DIR *); | 
|---|
| 29 | int closedir(DIR *); | 
|---|
| 30 | void rewinddir(DIR*); | 
|---|
| 31 | //long telldir(DIR *); | 
|---|
| 32 | //void seekdir(DIR *, long); | 
|---|
| 33 |  | 
|---|
| 34 | #ifdef __cplusplus | 
|---|
| 35 | } | 
|---|
| 36 | #endif | 
|---|
| 37 |  | 
|---|
| 38 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.