Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_glob_h_
  3. #define __dj_include_glob_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #include <sys/djtypes.h>
  14.  
  15. __DJ_size_t
  16. #undef __DJ_size_t
  17. #define __DJ_size_t
  18.  
  19. typedef struct {
  20.   size_t gl_pathc;
  21.   char **gl_pathv;
  22.   size_t gl_offs;
  23. } glob_t;
  24.  
  25. #define GLOB_APPEND     0x01
  26. #define GLOB_DOOFFS     0x02
  27. #define GLOB_ERR        0x04
  28. #define GLOB_MARK       0x08
  29. #define GLOB_NOCHECK    0x10
  30. #define GLOB_NOESCAPE   0x20
  31. #define GLOB_NOSORT     0x40
  32.  
  33. #define GLOB_ABORTED    1
  34. #define GLOB_NOMATCH    2
  35. #define GLOB_NOSPACE    3
  36.  
  37. int  glob(const char *_pattern, int _flags, int (*_errfunc)(const char *_epath, int _eerrno), glob_t *_pglob);
  38. void globfree(glob_t *_pglob);
  39.  
  40. #ifndef _POSIX_SOURCE
  41.  
  42. #endif /* !_POSIX_SOURCE */
  43. #endif /* !__STRICT_ANSI__ */
  44. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  45.  
  46. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  47. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif /* !__dj_include_glob_h_ */
  54.