Changes in uspace/lib/posix/fnmatch.h [230fcfe:ad28599] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fnmatch.h
r230fcfe rad28599 1 1 /* 2 * Copyright (c) 2011 Jiri Zarevucky2 * Copyright (c) 2011 Petr Koupy 3 3 * All rights reserved. 4 4 * … … 36 36 #define POSIX_FNMATCH_H_ 37 37 38 /* Error Values. */ 38 /* fnmatch flags */ 39 #undef FNM_PATHNAME 40 #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. */ 45 46 /* fnmatch return values */ 39 47 #undef FNM_NOMATCH 40 #define FNM_NOMATCH 1 41 42 /* Flags */ 43 #undef FNM_PATHNAME 44 #undef FNM_PERIOD 45 #undef FNM_NOESCAPE 46 #define FNM_PATHNAME 1 47 #define FNM_PERIOD 2 48 #define FNM_NOESCAPE 4 49 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 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. */ 57 51 58 52 extern int posix_fnmatch(const char *pattern, const char *string, int flags); … … 66 60 /** @} 67 61 */ 68
Note:
See TracChangeset
for help on using the changeset viewer.