Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libast/comp/fnmatch.h
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1985-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* David Korn <[email protected]> *
19
* Phong Vo <[email protected]> *
20
* *
21
***********************************************************************/
22
#pragma prototyped
23
/*
24
* posix fnmatch interface definitions
25
*/
26
27
#ifndef _FNMATCH_H
28
#define _FNMATCH_H
29
30
#include <ast_common.h>
31
32
/* fnmatch flags */
33
34
#define FNM_NOESCAPE 0x0001 /* \ is literal */
35
#define FNM_PATHNAME 0x0002 /* explicit match for / */
36
#define FNM_PERIOD 0x0004 /* explicit match for leading . */
37
#define FNM_NOSYS 0x0010 /* not implemented */
38
39
/* nonstandard fnmatch() flags */
40
41
#define FNM_AUGMENTED 0x0008 /* enable ! & ( | ) */
42
#define FNM_ICASE 0x0020 /* ignore case in match */
43
#define FNM_LEADING_DIR 0x0040 /* match up to implicit / */
44
45
#define FNM_CASEFOLD FNM_ICASE /* gnu/bsd compatibility */
46
#define FNM_IGNORECASE FNM_ICASE /* gnu/bsd compatibility */
47
#define FNM_FILE_NAME FNM_PATHNAME /* gnu compatibility */
48
49
/* fnmatch error codes -- other non-zero values from <regex.h> */
50
51
#define FNM_NOMATCH 1 /* == REG_NOMATCH */
52
53
#if _BLD_ast && defined(__EXPORT__)
54
#define extern __EXPORT__
55
#endif
56
57
extern int fnmatch(const char*, const char*, int);
58
59
#undef extern
60
61
#endif
62
63