1989-12-18 14:00:32 +00:00
|
|
|
/*
|
|
|
|
<dirent.h> -- definitions for SVR3 directory access routines
|
|
|
|
|
|
|
|
last edit: 25-Apr-1987 D A Gwyn
|
|
|
|
|
|
|
|
Prerequisite: <sys/types.h>
|
|
|
|
*/
|
|
|
|
/* $Header$ */
|
|
|
|
|
|
|
|
#if !defined(_DIRENT_H)
|
|
|
|
#define _DIRENT_H
|
|
|
|
#include <sys/dirent.h>
|
|
|
|
|
|
|
|
#define DIRBUF 8192 /* buffer size for fs-indep. dirs */
|
|
|
|
/* must in general be larger than the filesystem buffer size */
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int dd_fd; /* file descriptor */
|
|
|
|
int dd_loc; /* offset in block */
|
|
|
|
int dd_size; /* amount of valid data */
|
|
|
|
char *dd_buf; /* -> directory block */
|
|
|
|
} DIR; /* stream data from opendir() */
|
|
|
|
|
1990-01-29 10:09:00 +00:00
|
|
|
DIR *opendir(const char *_dirname);
|
|
|
|
struct dirent *readdir(DIR *_dirp);
|
|
|
|
void rewinddir(DIR *_dirp);
|
|
|
|
int closedir(DIR *_dirp);
|
|
|
|
off_t telldir(DIR *_dirp);
|
|
|
|
void seekdir(DIR *_dirp, off_t _loc);
|
1989-12-18 14:00:32 +00:00
|
|
|
|
|
|
|
#define NULL ((void *)0) /* DAG -- added for convenience */
|
|
|
|
|
|
|
|
#endif /* _DIRENT_H */
|