Blame src/fnmatch.h

Packit Service 20376f
/*
Packit Service 20376f
 * Copyright (C) 2008 The Android Open Source Project
Packit Service 20376f
 * All rights reserved.
Packit Service 20376f
 *
Packit Service 20376f
 * Redistribution and use in source and binary forms, with or without
Packit Service 20376f
 * modification, are permitted provided that the following conditions
Packit Service 20376f
 * are met:
Packit Service 20376f
 *  * Redistributions of source code must retain the above copyright
Packit Service 20376f
 *    notice, this list of conditions and the following disclaimer.
Packit Service 20376f
 *  * Redistributions in binary form must reproduce the above copyright
Packit Service 20376f
 *    notice, this list of conditions and the following disclaimer in
Packit Service 20376f
 *    the documentation and/or other materials provided with the
Packit Service 20376f
 *    distribution.
Packit Service 20376f
 *
Packit Service 20376f
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit Service 20376f
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit Service 20376f
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
Packit Service 20376f
 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
Packit Service 20376f
 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
Packit Service 20376f
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
Packit Service 20376f
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
Packit Service 20376f
 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
Packit Service 20376f
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Packit Service 20376f
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
Packit Service 20376f
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit Service 20376f
 * SUCH DAMAGE.
Packit Service 20376f
 */
Packit Service 20376f
#ifndef INCLUDE_fnmatch__compat_h__
Packit Service 20376f
#define INCLUDE_fnmatch__compat_h__
Packit Service 20376f
Packit Service 20376f
#include "common.h"
Packit Service 20376f
Packit Service 20376f
#define FNM_NOMATCH		1		/* Match failed. */
Packit Service 20376f
#define FNM_NOSYS		2		/* Function not supported (unused). */
Packit Service 20376f
#define	FNM_NORES		3		/* Out of resources */
Packit Service 20376f
Packit Service 20376f
#define FNM_NOESCAPE	0x01		/* Disable backslash escaping. */
Packit Service 20376f
#define FNM_PATHNAME	0x02		/* Slash must be matched by slash. */
Packit Service 20376f
#define FNM_PERIOD		0x04		/* Period must be matched by period. */
Packit Service 20376f
#define FNM_LEADING_DIR 0x08		/* Ignore /<tail> after Imatch. */
Packit Service 20376f
#define FNM_CASEFOLD	0x10		/* Case insensitive search. */
Packit Service 20376f
Packit Service 20376f
#define FNM_IGNORECASE	FNM_CASEFOLD
Packit Service 20376f
#define FNM_FILE_NAME	FNM_PATHNAME
Packit Service 20376f
Packit Service 20376f
extern int p_fnmatch(const char *pattern, const char *string, int flags);
Packit Service 20376f
Packit Service 20376f
#endif /* _FNMATCH_H */
Packit Service 20376f