home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
streamva.zip
/
dirent.h
< prev
Wrap
Text File
|
2002-07-15
|
2KB
|
78 lines
#if (defined(__IBMC__) || defined(__IBMCPP__))
#pragma info( none )
#ifndef __CHKHDR__
#pragma info( none )
#endif
#pragma info( restore )
#endif
#ifndef __dirent_h
#define __dirent_h
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _LNK_CONV
#ifdef _M_I386
#define _LNK_CONV _Optlink
#else
#define _LNK_CONV
#endif
#endif
#ifndef _IMPORT
#ifdef __IMPORTLIB__
#define _IMPORT _Import
#else
#define _IMPORT
#endif
#endif
/********************************************************************/
/* <dirent.h> header file */
/* */
/* */
/********************************************************************/
/* dirent structure returned by readdir().
*/
struct dirent
{
char d_name[256];
};
/* DIR type returned by opendir(). The members of this structure
* must not be accessed by application programs.
*/
typedef struct
{
unsigned long _d_hdir; /* directory handle */
char *_d_dirname; /* directory name */
unsigned _d_magic; /* magic cookie for verifying handle */
unsigned _d_nfiles; /* no. of files remaining in buf */
char *_d_bufp; /* next entry in buffer */
char _d_buf[512]; /* buffer for found filenames */
} DIR;
/* Prototypes.
*/
DIR * _IMPORT _LNK_CONV opendir (const char *);
struct dirent * _IMPORT _LNK_CONV readdir (DIR *);
int _IMPORT _LNK_CONV closedir (DIR *);
void _IMPORT _LNK_CONV rewinddir(DIR *);
#ifdef __cplusplus
}
#endif
#endif
#if (defined(__IBMC__) || defined(__IBMCPP__))
#pragma info( none )
#ifndef __CHKHDR__
#pragma info( restore )
#endif
#pragma info( restore )
#endif