Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/fnmatch.h

    r230fcfe rad28599  
    11/*
    2  * Copyright (c) 2011 Jiri Zarevucky
     2 * Copyright (c) 2011 Petr Koupy
    33 * All rights reserved.
    44 *
     
    3636#define POSIX_FNMATCH_H_
    3737
    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 */
    3947#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. */
    5751
    5852extern int posix_fnmatch(const char *pattern, const char *string, int flags);
     
    6660/** @}
    6761 */
    68 
Note: See TracChangeset for help on using the changeset viewer.