glob.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _GLOB_H
  2. #include <posix/glob.h>
  3. #ifndef _ISOMAC
  4. # include <sys/types.h>
  5. libc_hidden_proto (glob)
  6. libc_hidden_proto (glob64)
  7. libc_hidden_proto (globfree)
  8. libc_hidden_proto (globfree64)
  9. # if __TIMESIZE == 64
  10. # define glob64_time64_t glob64_t
  11. # else
  12. # include <sys/stat.h>
  13. typedef struct
  14. {
  15. size_t gl_pathc;
  16. char **gl_pathv;
  17. size_t gl_offs;
  18. int gl_flags;
  19. void (*gl_closedir) (void *);
  20. struct dirent64 *(*gl_readdir) (void *);
  21. void *(*gl_opendir) (const char *);
  22. int (*gl_lstat) (const char *__restrict, struct __stat64_t64 *__restrict);
  23. int (*gl_stat) (const char *__restrict, struct __stat64_t64 *__restrict);
  24. } glob64_time64_t;
  25. extern int __glob64_time64 (const char *pattern, int flags,
  26. int (*errfunc) (const char *, int),
  27. glob64_time64_t *pglob);
  28. libc_hidden_proto (__glob64_time64)
  29. void __globfree64_time64 (glob64_time64_t *pglob);
  30. libc_hidden_proto (__globfree64_time64)
  31. # endif
  32. /* Now define the internal interfaces. */
  33. extern int __glob_pattern_p (const char *__pattern, int __quote);
  34. extern int __glob64 (const char *__pattern, int __flags,
  35. int (*__errfunc) (const char *, int),
  36. glob64_t *__pglob);
  37. libc_hidden_proto (__glob64)
  38. #endif
  39. #endif