fnmatch.h 436 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _FNMATCH_H
  2. #define _FNMATCH_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define FNM_PATHNAME 0x1
  8. #define FNM_NOESCAPE 0x2
  9. #define FNM_PERIOD 0x4
  10. #ifdef _GNU_SOURCE
  11. #define FNM_LEADING_DIR 0x8
  12. #define FNM_CASEFOLD 0x10
  13. #define FNM_FILE_NAME FNM_PATHNAME
  14. #endif
  15. #define FNM_NOMATCH 1
  16. #define FNM_NOSYS (-1)
  17. int fnmatch(const char *, const char *, int);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif