Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME

Move all excepting NOESCAPE,PATHNAME,PERIOD under !defined(_POSIX_SOURCE)
This commit is contained in:
Andrey A. Chernov 1999-11-21 17:32:45 +00:00
parent 937791192a
commit 3cc1fd63ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53516

View File

@ -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>