1/* ------------------------------------------------------------------------ */
2/* LHa for UNIX    Directory access routine									*/
3/*																			*/
4/*		Modified          		Nobutaka Watazaki							*/
5/* Emulate opendir(), readdir(), closedir() function for LHa				*/
6/*																			*/
7/*	Ver. 1.14 	Soruce All chagned				1995.01.14	N.Watazaki		*/
8/* ------------------------------------------------------------------------ */
9
10#ifndef DIRBLKSIZ
11#define DIRBLKSIZ	512
12#endif
13
14/* ------------------------------------------------------------------------ */
15/*	Type Definition															*/
16/* ------------------------------------------------------------------------ */
17struct direct {
18	int             d_ino;
19	int             d_namlen;
20	char            d_name[256];
21};
22
23typedef struct {
24	int             dd_fd;
25	int             dd_loc;
26	int             dd_size;
27	char            dd_buf[DIRBLKSIZ];
28}               DIR;
29
30/* ------------------------------------------------------------------------ */
31/*	Functions																*/
32/* ------------------------------------------------------------------------ */
33extern DIR     		 *opendir();
34extern struct direct *readdir();
35extern int			 closedir();
36