The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
fnmatch.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file fnmatch.h
5 * @brief shell patterns ("*.c", "[a-z]?"): fnmatch is musl's (see
6 * src/libc/src/regex/README.md).
7 */
8
9#define FNM_PATHNAME 0x01 // "*" and "?" do not match "/"
10#define FNM_NOESCAPE 0x02 // "\" is an ordinary character
11#define FNM_PERIOD 0x04 // a "." at the start must be matched by a "."
12#define FNM_LEADING_DIR 0x08 // the pattern may match only the folders at the start
13#define FNM_CASEFOLD 0x10 // upper and lower case match each other
14#define FNM_FILE_NAME FNM_PATHNAME
15
16#define FNM_NOMATCH 1
17#define FNM_NOSYS (-1)
18
19/** 0 when name matches pattern, FNM_NOMATCH when it does not */
20int fnmatch(const char *pattern, const char *name, int flags);
int fnmatch(const char *pattern, const char *name, int flags)
0 when name matches pattern, FNM_NOMATCH when it does not
uint8_t flags
Definition idt.c:3