summaryrefslogtreecommitdiffstats
path: root/include/fnmatch.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-21 17:32:45 +0000
committerache <ache@FreeBSD.org>1999-11-21 17:32:45 +0000
commitba8f82e935f9f8dedd683e1686829f526abed6a7 (patch)
tree629ee3fd62551cdef964daf7dc1ac93435e104c5 /include/fnmatch.h
parent17c7f61500a8e5621699b65fdd58b835ac989513 (diff)
downloadFreeBSD-src-ba8f82e935f9f8dedd683e1686829f526abed6a7.zip
FreeBSD-src-ba8f82e935f9f8dedd683e1686829f526abed6a7.tar.gz
Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME
Move all excepting NOESCAPE,PATHNAME,PERIOD under !defined(_POSIX_SOURCE)
Diffstat (limited to 'include/fnmatch.h')
-rw-r--r--include/fnmatch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fnmatch.h b/include/fnmatch.h
index 758b660..49102b3 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -30,6 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $FreeBSD$
* @(#)fnmatch.h 8.1 (Berkeley) 6/2/93
*/
@@ -41,9 +42,13 @@
#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. */
+
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
#define FNM_CASEFOLD 0x10 /* Case insensitive search. */
#define FNM_IGNORECASE FNM_CASEFOLD
+#define FNM_FILE_NAME FNM_PATHNAME
+#endif
#include <sys/cdefs.h>
OpenPOWER on IntegriCloud