fnmatch.h (19059) | fnmatch.h (19133) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 36#ifndef _FNMATCH_H_ 37#define _FNMATCH_H_ 38 39#define FNM_NOMATCH 1 /* Match failed. */ 40 41#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ 42#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ 43#define FNM_PERIOD 0x04 /* Period must be matched by period. */ | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 36#ifndef _FNMATCH_H_ 37#define _FNMATCH_H_ 38 39#define FNM_NOMATCH 1 /* Match failed. */ 40 41#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ 42#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ 43#define FNM_PERIOD 0x04 /* Period must be matched by period. */ |
44#define FNM_ICASE 0x08 /* case insensitive search */ | 44#ifndef _POSIX_SOURCE 45#define FNM_LEADING_DIR 0x08 /* Ignore "/*" after match */ 46#define FNM_CASEFOLD 0x10 /* Case insensitive search */ 47#endif |
45 46#include <sys/cdefs.h> 47 48__BEGIN_DECLS | 48 49#include <sys/cdefs.h> 50 51__BEGIN_DECLS |
49#ifndef _POSIX_SOURCE | |
50int fnmatch __P((const char *, const char *, int)); | 52int fnmatch __P((const char *, const char *, int)); |
51#endif | |
52__END_DECLS 53 54#endif /* !_FNMATCH_H_ */ | 53__END_DECLS 54 55#endif /* !_FNMATCH_H_ */ |