home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
SRC
/
lharc.lzh
/
LHARC
/
lhdir.h
< prev
next >
Wrap
Text File
|
1991-05-12
|
805b
|
36 lines
/*----------------------------------------------------------------------*/
/* Directory access routine for LHarc UNIX */
/* */
/* Copyright(C) MCMLXXXIX Yooichi.Tagawa */
/* Emulate opendir(),readdir(),closedir() function for LHarc */
/* */
/* V0.00 Original 1988.05.31 Y.Tagawa */
/* V0.03 Release #3 for LHarc UNIX 1988.07.02 Y.Tagawa */
/*----------------------------------------------------------------------*/
/* DIRBLKSIZ must be sizeof (SYSTEM struct direct) * N !!! */
#ifndef DIRBLKSIZ
#define DIRBLKSIZ 512
#endif
struct direct {
int d_ino;
int d_namlen;
char d_name[256];
};
typedef struct {
int dd_fd;
int dd_loc;
int dd_size;
char dd_buf[DIRBLKSIZ];
} DIR;
extern DIR *opendir ();
extern struct direct *readdir ();
extern closedir ();