home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / POSIXDIR.LZH / DIRENT.H next >
C/C++ Source or Header  |  1993-03-17  |  744b  |  43 lines

  1. /*
  2.  
  3.     POSIX directory stuff for Cset/2
  4.  
  5.     by Joe DeRosa 3/22/93 (1:141/42@fidonet.org)
  6.  
  7.     released in the public domain
  8.  
  9.     if you use this code you accept ALL responsibility for anything that
  10.     happens.
  11. */
  12.  
  13. #define INCL_DOSFILEMGR
  14. #include <os2.h>
  15.  
  16. #ifndef NULL
  17. #define NULL 0
  18. #endif
  19.  
  20. struct dirent
  21. {
  22.     char    *d_name;
  23. };
  24.  
  25. typedef struct
  26. {
  27.     FILEFINDBUF3  *fb;
  28.     HDIR      dh;
  29.     struct dirent d_dirent;
  30.     char      *d_dirname;
  31.     char      d_entnum;
  32.     unsigned char d_valid;
  33. } DIR;
  34.  
  35.  
  36. DIR          *opendir (char  *dname);
  37. struct dirent *readdir (DIR  *dir);
  38. int          closedir (DIR  *dir);
  39. void          rewinddir(DIR  *dir);
  40. long          telldir(DIR *dir);
  41. void          seekdir(DIR *dir,long loc);
  42.  
  43.