mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
657f041aee
The BSD implementation was under the Advertising Clause, so we might as well take the opportunity to replace the implementation entirely with musl's. Header also rewritten to be a Haiku one; the constants are left unchanged of course.
32 lines
527 B
C
32 lines
527 B
C
/*
|
|
* Copyright 2020, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _FNMATCH_H
|
|
#define _FNMATCH_H
|
|
|
|
|
|
#define FNM_NOESCAPE 0x01
|
|
#define FNM_PATHNAME 0x02
|
|
#define FNM_PERIOD 0x04
|
|
|
|
#define FNM_LEADING_DIR 0x08
|
|
#define FNM_CASEFOLD 0x10
|
|
#define FNM_IGNORECASE FNM_CASEFOLD
|
|
#define FNM_FILE_NAME FNM_PATHNAME
|
|
|
|
#define FNM_NOMATCH 1
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int fnmatch(const char *, const char *, int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _FNMATCH_H */
|