haiku/headers/posix/fnmatch.h
Augustin Cavalier 657f041aee fnmatch: Replace BSD implementation with musl one.
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.
2020-07-03 15:09:33 -04:00

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 */