Print this page
1209 fnmatch(3C) should mention FNM_IGNORECASE
Reviewed by: Marcel Telka <marcel@telka.sk>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/fnmatch.3c.man.txt
          +++ new/usr/src/man/man3c/fnmatch.3c.man.txt
↓ open down ↓ 24 lines elided ↑ open up ↑
  25   25                           If set, a slash (/) character in string will be
  26   26                           explicitly matched by a slash in pattern; it will not
  27   27                           be matched by either the asterisk (*) or question-mark
  28   28                           (?) special characters, nor by a bracket ([])
  29   29                           expression.
  30   30  
  31   31                           If not set, the slash character is treated as an
  32   32                           ordinary character.
  33   33  
  34   34  
       35 +       FNM_IGNORECASE
       36 +                         If set, the string will be transliterated to lower
       37 +                         case before doing the actual match. This
       38 +                         transliteration is done using towlower_l(3C), using
       39 +                         the locale of the current thread. If no locale is
       40 +                         set, then the global locale is used instead.
       41 +
       42 +                         If not set, the match will use string with no
       43 +                         changes, making the match case-sensitive.
       44 +
       45 +
  35   46         FNM_NOESCAPE
  36   47                           If not set, a backslash character (\) in pattern
  37   48                           followed by any other character will match that
  38   49                           second character in string. In particular, "\\" will
  39   50                           match a backslash in string.
  40   51  
  41   52                           If set, a backslash character will be treated as an
  42   53                           ordinary character.
  43   54  
  44   55  
↓ open down ↓ 5 lines elided ↑ open up ↑
  50   61                               o      If FNM_PATHNAME is set, a period is
  51   62                                      "leading" if it is the first character in
  52   63                                      string or if it immediately follows a
  53   64                                      slash.
  54   65  
  55   66                               o      If FNM_PATHNAME is not set, a period is
  56   67                                      "leading" only if it is the first
  57   68                                      character of string.
  58   69  
  59   70  
       71 +                         If not set, no special restrictions are placed on
       72 +                         matching a period.
  60   73  
  61      -       If not set, no special restrictions are placed on matching a period.
  62      -
  63   74  RETURN VALUES
  64   75         If string matches the pattern specified by pattern, then fnmatch()
  65   76         returns 0. If there is no match, fnmatch() returns FNM_NOMATCH, which
  66   77         is defined in the header <fnmatch.h>. If an error occurs, fnmatch()
  67   78         returns another non-zero value.
  68   79  
  69   80  USAGE
  70   81         The fnmatch() function has two major uses. It could be used by an
  71   82         application or utility that needs to read a directory and apply a
  72   83         pattern against each entry. The find(1) utility is an example of this.
↓ open down ↓ 30 lines elided ↑ open up ↑
 103  114         +--------------------+-------------------------+
 104  115         |MT-Level            | MT-Safe with exceptions |
 105  116         +--------------------+-------------------------+
 106  117  
 107  118  SEE ALSO
 108  119         find(1), pax(1), glob(3C), setlocale(3C), wordexp(3C), attributes(5),
 109  120         fnmatch(5), standards(5)
 110  121  
 111  122  
 112  123  
 113      -                                 July 24, 2002                     FNMATCH(3C)
      124 +                                 June 6, 2015                      FNMATCH(3C)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX