fnmatch.h 455 B

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