fnmatch.h 432 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2021, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <sys/types.h>
  8. #define FNM_NOMATCH 1
  9. #define FNM_PATHNAME 1
  10. #define FNM_NOESCAPE 2
  11. #define FNM_PERIOD 4
  12. #define FNM_FILE_NAME FNM_PATHNAME
  13. #define FNM_LEADING_DIR 8
  14. #define FNM_CASEFOLD 16
  15. #define FNM_EXTMATCH 32
  16. __BEGIN_DECLS
  17. int fnmatch(char const* pattern, char const* string, int flags);
  18. __END_DECLS