Changes in uspace/lib/posix/fnmatch.h [ad28599:230fcfe] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fnmatch.h
rad28599 r230fcfe 1 1 /* 2 * Copyright (c) 2011 Petr Koupy2 * Copyright (c) 2011 Jiri Zarevucky 3 3 * All rights reserved. 4 4 * … … 36 36 #define POSIX_FNMATCH_H_ 37 37 38 /* fnmatch flags */ 38 /* Error Values. */ 39 #undef FNM_NOMATCH 40 #define FNM_NOMATCH 1 41 42 /* Flags */ 39 43 #undef FNM_PATHNAME 44 #undef FNM_PERIOD 40 45 #undef FNM_NOESCAPE 41 #undef FNM_PERIOD 42 #define FNM_PATHNAME (1 << 0) /* Slash cannot be matched to the wildcard. */ 43 #define FNM_NOESCAPE (1 << 1) /* Disable backslash escaping. */ 44 #define FNM_PERIOD (1 << 2) /* Leading period must be exactly matched. */ 46 #define FNM_PATHNAME 1 47 #define FNM_PERIOD 2 48 #define FNM_NOESCAPE 4 45 49 46 /* fnmatch return values */ 47 #undef FNM_NOMATCH 48 #undef FNM_NOSYS 49 #define FNM_NOMATCH 1 /* The string does not match the pattern. */ 50 #define FNM_NOSYS (-1) /* In case fnmatch is not supported. */ 50 /* GNU Extensions */ 51 #undef FNM_FILE_NAME 52 #undef FNM_LEADING_DIR 53 #undef FNM_CASEFOLD 54 #define FNM_FILE_NAME FNM_PATHNAME 55 #define FNM_LEADING_DIR 8 56 #define FNM_CASEFOLD 16 51 57 52 58 extern int posix_fnmatch(const char *pattern, const char *string, int flags); … … 60 66 /** @} 61 67 */ 68
Note:
See TracChangeset
for help on using the changeset viewer.