14887Schin 24887Schin /* : : generated by proto : : */ 34887Schin /*********************************************************************** 44887Schin * * 54887Schin * This software is part of the ast package * 6*12068SRoger.Faulkner@Oracle.COM * Copyright (c) 1985-2010 AT&T Intellectual Property * 74887Schin * and is licensed under the * 84887Schin * Common Public License, Version 1.0 * 98462SApril.Chin@Sun.COM * by AT&T Intellectual Property * 104887Schin * * 114887Schin * A copy of the License is available at * 124887Schin * http://www.opensource.org/licenses/cpl1.0.txt * 134887Schin * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 144887Schin * * 154887Schin * Information and Software Systems Research * 164887Schin * AT&T Research * 174887Schin * Florham Park NJ * 184887Schin * * 194887Schin * Glenn Fowler <gsf@research.att.com> * 204887Schin * David Korn <dgk@research.att.com> * 214887Schin * Phong Vo <kpv@research.att.com> * 224887Schin * * 234887Schin ***********************************************************************/ 244887Schin 254887Schin /* 264887Schin * posix fnmatch interface definitions 274887Schin */ 284887Schin 294887Schin #ifndef _FNMATCH_H 304887Schin #if !defined(__PROTO__) 314887Schin #include <prototyped.h> 324887Schin #endif 334887Schin #if !defined(__LINKAGE__) 344887Schin #define __LINKAGE__ /* 2004-08-11 transition */ 354887Schin #endif 364887Schin 374887Schin #define _FNMATCH_H 384887Schin 394887Schin #include <ast_common.h> 404887Schin 414887Schin /* fnmatch flags */ 424887Schin 434887Schin #define FNM_NOESCAPE 0x0001 /* \ is literal */ 444887Schin #define FNM_PATHNAME 0x0002 /* explicit match for / */ 454887Schin #define FNM_PERIOD 0x0004 /* explicit match for leading . */ 464887Schin #define FNM_NOSYS 0x0010 /* not implemented */ 474887Schin 484887Schin /* nonstandard fnmatch() flags */ 494887Schin 504887Schin #define FNM_AUGMENTED 0x0008 /* enable ! & ( | ) */ 514887Schin #define FNM_ICASE 0x0020 /* ignore case in match */ 524887Schin #define FNM_LEADING_DIR 0x0040 /* match up to implicit / */ 534887Schin 544887Schin #define FNM_CASEFOLD FNM_ICASE /* gnu compatibility */ 554887Schin #define FNM_FILE_NAME FNM_PATHNAME /* gnu compatibility */ 564887Schin 574887Schin /* fnmatch error codes -- other non-zero values from <regex.h> */ 584887Schin 594887Schin #define FNM_NOMATCH 1 /* == REG_NOMATCH */ 604887Schin 614887Schin #if _BLD_ast && defined(__EXPORT__) 624887Schin #undef __MANGLE__ 634887Schin #define __MANGLE__ __LINKAGE__ __EXPORT__ 644887Schin #endif 654887Schin 664887Schin extern __MANGLE__ int fnmatch __PROTO__((const char*, const char*, int)); 674887Schin 684887Schin #undef __MANGLE__ 694887Schin #define __MANGLE__ __LINKAGE__ 704887Schin 714887Schin #endif 72