xref: /titanic_51/usr/src/lib/libast/sparcv9/include/ast/fnmatch.h (revision 98157a7002f4f2cf7978f3084ca5577f0a1d72b2)
1 
2 /* : : generated by proto : : */
3 /***********************************************************************
4 *                                                                      *
5 *               This software is part of the ast package               *
6 *           Copyright (c) 1985-2007 AT&T Knowledge Ventures            *
7 *                      and is licensed under the                       *
8 *                  Common Public License, Version 1.0                  *
9 *                      by AT&T Knowledge Ventures                      *
10 *                                                                      *
11 *                A copy of the License is available at                 *
12 *            http://www.opensource.org/licenses/cpl1.0.txt             *
13 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
14 *                                                                      *
15 *              Information and Software Systems Research               *
16 *                            AT&T Research                             *
17 *                           Florham Park NJ                            *
18 *                                                                      *
19 *                 Glenn Fowler <gsf@research.att.com>                  *
20 *                  David Korn <dgk@research.att.com>                   *
21 *                   Phong Vo <kpv@research.att.com>                    *
22 *                                                                      *
23 ***********************************************************************/
24 
25 /*
26  * posix fnmatch interface definitions
27  */
28 
29 #ifndef _FNMATCH_H
30 #if !defined(__PROTO__)
31 #include <prototyped.h>
32 #endif
33 #if !defined(__LINKAGE__)
34 #define __LINKAGE__		/* 2004-08-11 transition */
35 #endif
36 
37 #define _FNMATCH_H
38 
39 #include <ast_common.h>
40 
41 /* fnmatch flags */
42 
43 #define FNM_NOESCAPE	0x0001		/* \ is literal			*/
44 #define FNM_PATHNAME	0x0002		/* explicit match for /		*/
45 #define FNM_PERIOD	0x0004		/* explicit match for leading .	*/
46 #define FNM_NOSYS	0x0010		/* not implemented		*/
47 
48 /* nonstandard fnmatch() flags */
49 
50 #define FNM_AUGMENTED	0x0008		/* enable ! & ( | )		*/
51 #define FNM_ICASE	0x0020		/* ignore case in match		*/
52 #define FNM_LEADING_DIR	0x0040		/* match up to implicit /	*/
53 
54 #define FNM_CASEFOLD	FNM_ICASE	/* gnu compatibility		*/
55 #define FNM_FILE_NAME	FNM_PATHNAME	/* gnu compatibility		*/
56 
57 /* fnmatch error codes -- other non-zero values from <regex.h> */
58 
59 #define FNM_NOMATCH	1		/* == REG_NOMATCH		*/
60 
61 #if _BLD_ast && defined(__EXPORT__)
62 #undef __MANGLE__
63 #define __MANGLE__ __LINKAGE__	__EXPORT__
64 #endif
65 
66 extern __MANGLE__ int	fnmatch __PROTO__((const char*, const char*, int));
67 
68 #undef __MANGLE__
69 #define __MANGLE__ __LINKAGE__
70 
71 #endif
72