Browse Source

From FreeBSD:

1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE
2) POSIX.2 fixes
OPENBSD_2_2
millert 27 years ago
parent
commit
46ab4cbee8
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/include/fnmatch.h

+ 6
- 1
src/include/fnmatch.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: fnmatch.h,v 1.2 1997/09/21 10:45:33 niklas Exp $ */
/* $OpenBSD: fnmatch.h,v 1.3 1997/09/22 05:03:30 millert Exp $ */
/* $NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $ */
/*-
@ -44,6 +44,11 @@
#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */
#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */
#define FNM_PERIOD 0x04 /* Period must be matched by period. */
#ifndef _POSIX_SOURCE
#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
#define FNM_CASEFOLD 0x10 /* Case insensitive search. */
#define FNM_IGNORECASE FNM_CASEFOLD
#endif
#include <sys/cdefs.h>


Loading…
Cancel
Save