1
0

glob.h 793 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _GLOB_H
  2. #define _GLOB_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define __NEED_size_t
  7. #include <bits/alltypes.h>
  8. typedef struct {
  9. size_t gl_pathc;
  10. char **gl_pathv;
  11. size_t gl_offs;
  12. int __dummy1;
  13. void *__dummy2[5];
  14. } glob_t;
  15. int glob(const char *, int, int (*)(const char *, int), glob_t *);
  16. void globfree(glob_t *);
  17. #define GLOB_ERR 0x01
  18. #define GLOB_MARK 0x02
  19. #define GLOB_NOSORT 0x04
  20. #define GLOB_DOOFFS 0x08
  21. #define GLOB_NOCHECK 0x10
  22. #define GLOB_APPEND 0x20
  23. #define GLOB_NOESCAPE 0x40
  24. #define GLOB_PERIOD 0x80
  25. #define GLOB_NOSPACE 1
  26. #define GLOB_ABORTED 2
  27. #define GLOB_NOMATCH 3
  28. #define GLOB_NOSYS 4
  29. #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
  30. #define glob64 glob
  31. #define globfree64 globfree
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif