Diff for /embedaddon/sudo/compat/fnmatch.h between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 16:23:02 version 1.1.1.2, 2013/07/22 10:46:11
Line 1 Line 1
/*-/*
 * Copyright (c) 1992, 1993 * Copyright (c) 2011 Todd C. Miller <Todd.Miller@courtesan.com>
 *      The Regents of the University of California.  All rights reserved. 
  *   *
 * Redistribution and use in source and binary forms, with or without * Permission to use, copy, modify, and distribute this software for any
 * modification, are permitted provided that the following conditions * purpose with or without fee is hereby granted, provided that the above
 * are met: * copyright notice and this permission notice appear in all copies.
 * 1. Redistributions of source code must retain the above copyright 
 *    notice, this list of conditions and the following disclaimer. 
 * 2. Redistributions in binary form must reproduce the above copyright 
 *    notice, this list of conditions and the following disclaimer in the 
 *    documentation and/or other materials provided with the distribution. 
 * 3. Neither the name of the University nor the names of its contributors 
 *    may be used to endorse or promote products derived from this software 
 *    without specific prior written permission. 
  *   *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
 * SUCH DAMAGE. 
 * 
 *      @(#)fnmatch.h   8.1 (Berkeley) 6/2/93 
 *      $OpenBSD: fnmatch.h,v 1.4 1997/09/22 05:25:32 millert Exp $ 
  */   */
   
#ifndef _FNMATCH_H_#ifndef _FNMATCH_H
#define _FNMATCH_H_#define _FNMATCH_H
   
#define FNM_NOMATCH     1       /* Match failed. */#define FNM_NOMATCH     1               /* String does not match pattern */
   
#define FNM_NOESCAPE    0x01    /* Disable backslash escaping. */#define FNM_PATHNAME    (1 << 0)        /* Globbing chars don't match '/' */
#define FNM_PATHNAME    0x02        /* Slash must be matched by slash. */#define FNM_PERIOD      (1 << 1)        /* Leading '.' in string must exactly */
#define FNM_PERIOD      0x04        /* Period must be matched by period. */#define FNM_NOESCAPE    (1 << 2)        /* Backslash treated as ordinary char */
#define FNM_LEADING_DIR 0x08        /* Ignore /<tail> after Imatch. */#define FNM_LEADING_DIR (1 << 3)        /* Only match the leading directory */
#define FNM_CASEFOLD    0x10        /* Case insensitive search. */#define FNM_CASEFOLD    (1 << 4)        /* Case insensitive matching */
   
int      rpl_fnmatch(const char *, const char *, int);int rpl_fnmatch(const char *pattern, const char *string, int flags);
   
 #define fnmatch(_a, _b, _c)     rpl_fnmatch((_a), (_b), (_c))  #define fnmatch(_a, _b, _c)     rpl_fnmatch((_a), (_b), (_c))
   
#endif /* !_FNMATCH_H_ */#endif /* _FNMATCH_H */

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>