Changeset e4f8c77 in mainline for uspace/lib/posix/fnmatch.h


Ignore:
Timestamp:
2011-07-13T22:39:18Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6910c8
Parents:
5974661 (diff), 8ecef91 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix.

File:
1 edited

Legend:

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

    r5974661 re4f8c77  
    11/*
    2  * Copyright (c) 2011 Petr Koupy
     2 * Copyright (c) 2011 Jiri Zarevucky
    33 * All rights reserved.
    44 *
     
    3636#define POSIX_FNMATCH_H_
    3737
    38 /* fnmatch flags */
     38/* Error Values. */
     39#undef FNM_NOMATCH
     40#define FNM_NOMATCH 1
     41
     42/* Flags */
    3943#undef FNM_PATHNAME
     44#undef FNM_PERIOD
    4045#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
    4549
    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
    5157
    5258extern int posix_fnmatch(const char *pattern, const char *string, int flags);
     
    6066/** @}
    6167 */
     68
Note: See TracChangeset for help on using the changeset viewer.