home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
DJCRX201.ZIP
/
include
/
dirent.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-16
|
1KB
|
49 lines
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_dirent_h_
#define __dj_include_dirent_h_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#ifndef __STRICT_ANSI__
/* Definition of DIR requires many other headers; not included here to
avoid namespace pollution. */
typedef struct __dj_DIR DIR;
struct dirent {
char d_namlen;
char d_name[256];
};
int closedir(DIR *dirp);
DIR * opendir(const char *_dirname);
struct dirent * readdir(DIR *_dirp);
void rewinddir(DIR *_dirp);
#ifndef _POSIX_SOURCE
extern int __opendir_flags; /* default is zero, used only by opendir */
#define __OPENDIR_PRESERVE_CASE 0001
#define __OPENDIR_FIND_HIDDEN 0002
#define __OPENDIR_FIND_LABEL 0004
void seekdir(DIR *_dir, long _loc);
long telldir(DIR *_dir);
#endif /* !_POSIX_SOURCE */
#endif /* !__STRICT_ANSI__ */
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
#ifndef __dj_ENFORCE_FUNCTION_CALLS
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
#ifdef __cplusplus
}
#endif
#endif /* !__dj_include_dirent_h_ */