1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
9 * This file is required to support the common code in eal_common_log.c
10 * as Microsoft libc does not contain fnmatch.h. This may be removed in
17 #include <rte_common.h>
21 #define FNM_NOESCAPE 0x01
22 #define FNM_PATHNAME 0x02
23 #define FNM_PERIOD 0x04
24 #define FNM_LEADING_DIR 0x08
25 #define FNM_CASEFOLD 0x10
26 #define FNM_PREFIX_DIRS 0x20
29 * This function is used for searhing a given string source
30 * with the given regular expression pattern.
33 * regular expression notation decribing the pattern to match
36 * source string to searcg for the pattern
39 * containing information about the pattern
42 * if the pattern is found then return 0 or else FNM_NOMATCH
44 int fnmatch(const char *pattern, const char *string, int flags);
50 #endif /* _FNMATCH_H_ */