source: Sophya/trunk/SophyaLib/UnixMac/include/dirent.h@ 3718

Last change on this file since 3718 was 683, checked in by ansari, 26 years ago

Compilation Mac pour CodeWarrior PRO 5

File size: 699 bytes
Line 
1/* $Id: dirent.h,v 1.1 1999-12-10 17:11:15 ansari Exp $ */
2
3#ifndef _DIRENT_H
4#define _DIRENT_H
5
6#include "unixmac.h"
7#include "sys/types.h"
8#include <stat.h>
9
10typedef struct {
11 short volrefnum;
12 long dirid;
13 int nextfile;
14} DIR;
15
16struct 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
24extern "C" {
25#endif
26
27DIR *opendir(char const *);
28struct dirent *readdir(DIR *);
29int closedir(DIR *);
30void 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.