posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
fnmatch.h
Go to the documentation of this file.
1/*
2 * Copyright The Zephyr Project Contributors
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
16#ifndef ZEPHYR_INCLUDE_POSIX_FNMATCH_H_
17#define ZEPHYR_INCLUDE_POSIX_FNMATCH_H_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#undef FNM_NOMATCH
25#define FNM_NOMATCH 1
27#undef FNM_NOESCAPE
28#define FNM_NOESCAPE 0x01
30#undef FNM_PATHNAME
31#define FNM_PATHNAME 0x02
33#undef FNM_PERIOD
34#define FNM_PERIOD 0x04
35#if defined(_GNU_SOURCE)
37#undef FNM_LEADING_DIR
38#define FNM_LEADING_DIR 0x08
40#undef FNM_CASEFOLD
41#define FNM_CASEFOLD 0x10
43#undef FNM_EXTMATCH
44#define FNM_EXTMATCH 0x20
45#endif
47#undef FNM_IGNORECASE
48#define FNM_IGNORECASE FNM_CASEFOLD
49
60int fnmatch(const char *pattern, const char *string, int flags);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* ZEPHYR_INCLUDE_POSIX_FNMATCH_H_ */
int fnmatch(const char *pattern, const char *string, int flags)
Match a filename or path against a shell-style pattern.