eal: move OS-specific sub-directories
[dpdk.git] / lib / librte_eal / windows / include / fnmatch.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #ifndef _FNMATCH_H_
6 #define _FNMATCH_H_
7
8 /**
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
11  * future releases.
12  */
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #define FNM_NOMATCH 1
18
19 /**
20  * This function is used for searhing a given string source
21  * with the given regular expression pattern.
22  *
23  * @param pattern
24  *      regular expression notation decribing the pattern to match
25  *
26  * @param string
27  *      source string to searcg for the pattern
28  *
29  * @param flag
30  *      containing information about the pattern
31  *
32  * @return
33  *      if the pattern is found then return 0 or else FNM_NOMATCH
34  */
35 static inline int fnmatch(__rte_unused const char *pattern,
36                 __rte_unused const char *string,
37                 __rte_unused int flags)
38 {
39         /* TODO */
40         /* This is a stub, not the expected result */
41         return FNM_NOMATCH;
42 }
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif /* _FNMATCH_H_ */