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.

36 lines
641 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __GLOB_H
  2. #define __GLOB_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stddef.h>
  7. #include <sys/types.h>
  8. typedef struct {
  9. size_t gl_pathc;
  10. char **gl_pathv;
  11. size_t gl_offs;
  12. } glob_t;
  13. #define GLOB_APPEND 0x01
  14. #define GLOB_DOOFFS 0x02
  15. #define GLOB_ERR 0x04
  16. #define GLOB_MARK 0x08
  17. #define GLOB_NOCHECK 0x10
  18. #define GLOB_NOESCAPE 0x20
  19. #define GLOB_NOSORT 0x40
  20. #define GLOB_ABORTED 1
  21. #define GLOB_NOMATCH 2
  22. #define GLOB_NOSPACE 3
  23. int glob(const char *_pattern, int _flags, int (*_errfunc)(const char *_epath, int _eerrno), glob_t *_pglob);
  24. void globfree(glob_t *_pglob);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* __GLOB_H */