Blame src/fnmatch.h

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