Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
666 B

  1. /*++
  2. Copyright (c) 1989-1996 Microsoft Corporation
  3. Module Name:
  4. dirent.h
  5. Abstract:
  6. This module contains the directory entry procedure
  7. prototypes
  8. --*/
  9. #ifndef _DIRENT_
  10. #define _DIRENT_
  11. #include <types.h>
  12. #include <limits.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct dirent {
  17. char d_name[NAME_MAX+1];
  18. };
  19. typedef struct _DIR {
  20. int Directory;
  21. unsigned long Index;
  22. char RestartScan; /* really BOOLEAN */
  23. struct dirent Dirent;
  24. } DIR;
  25. DIR * __cdecl opendir(const char *);
  26. struct dirent * __cdecl readdir(DIR *);
  27. void __cdecl rewinddir(DIR *);
  28. int __cdecl closedir(DIR *);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* _DIRENT_H */