fnmatch.h 948 Bytes
Newer Older
1
/*
Edward Thomson committed
2
 * Copyright (C) the libgit2 contributors. All rights reserved.
3
 *
Vicent Marti committed
4 5
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
6
 */
7 8
#ifndef INCLUDE_fnmatch__compat_h__
#define INCLUDE_fnmatch__compat_h__
9 10 11

#include "common.h"

Vicent Marti committed
12 13
#define FNM_NOMATCH		1		/* Match failed. */
#define FNM_NOSYS		2		/* Function not supported (unused). */
14
#define	FNM_NORES		3		/* Out of resources */
15

16 17
#define FNM_NOESCAPE	0x01		/* Disable backslash escaping. */
#define FNM_PATHNAME	0x02		/* Slash must be matched by slash. */
Vicent Marti committed
18 19
#define FNM_PERIOD		0x04		/* Period must be matched by period. */
#define FNM_LEADING_DIR 0x08		/* Ignore /<tail> after Imatch. */
20
#define FNM_CASEFOLD	0x10		/* Case insensitive search. */
21

Vicent Marti committed
22 23
#define FNM_IGNORECASE	FNM_CASEFOLD
#define FNM_FILE_NAME	FNM_PATHNAME
24 25 26 27 28

extern int p_fnmatch(const char *pattern, const char *string, int flags);

#endif /* _FNMATCH_H */