home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / dirent.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  869b  |  39 lines

  1. /*
  2.  * @(#)dirent.h    1.4 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. /*
  16.  * Posix-compatible directory access routines
  17.  */
  18.  
  19. #ifndef _WIN32_DIRENT_H_
  20. #define _WIN32_DIRENT_H_
  21.  
  22. struct dirent {
  23.     char d_name[MAX_PATH];
  24. };
  25.  
  26. typedef struct {
  27.     struct dirent dirent;
  28.     char *path;
  29.     HANDLE handle;
  30.     WIN32_FIND_DATA find_data;
  31. } DIR;
  32.  
  33. DIR *opendir(const char *dirname);
  34. struct dirent *readdir(DIR *dirp);
  35. int closedir(DIR *dirp);
  36. void rewinddir(DIR *dirp);
  37.  
  38. #endif
  39.