glob.h 901 B

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