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#define FNM_NOMATCH 1
26#define FNM_NOESCAPE 0x01
28#define FNM_PATHNAME 0x02
30#define FNM_PERIOD 0x04
31#if defined(_GNU_SOURCE)
33#define FNM_LEADING_DIR 0x08
35#define FNM_CASEFOLD 0x10
37#define FNM_EXTMATCH 0x20
38#endif
40#define FNM_IGNORECASE FNM_CASEFOLD
41
52int fnmatch(const char *pattern, const char *string, int flags);
53
54#ifdef __cplusplus
55}
56#endif
57
58#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.