head 1.3; access; symbols SOURCE_RESTRUCTURING_BEFORE:1.2 LMTP2NNTP_1_2a1:1.2 LMTP2NNTP_1_1_1:1.2 LMTP2NNTP_1_1_0:1.2 LMTP2NNTP_1_1b4:1.2 LMTP2NNTP_1_1b3:1.2 LMTP2NNTP_1_1b2:1.2 LMTP2NNTP_1_1b1:1.2 LMTP2NNTP_1_0_0:1.2 LMTP2NNTP_0_9_7:1.2 LMTP2NNTP_0_9_6:1.2 LMTP2NNTP_0_9_5:1.2 LMTP2NNTP_0_9_4:1.1 LMTP2NNTP_0_9_3:1.1 LMTP2NNTP_0_9_2:1.1 LMTP2NNTP_0_9_1:1.1 LMTP2NNTP_0_9_0:1.1; locks; strict; comment @ * @; 1.3 date 2001.12.31.11.09.53; author thl; state dead; branches; next 1.2; 1.2 date 2001.09.04.09.46.06; author rse; state Exp; branches; next 1.1; 1.1 date 2001.08.06.10.51.12; author thl; state Exp; branches; next ; desc @@ 1.3 log @Mega-Commit: Finally restructure the lmtp2nntp source tree in order to clean it up. We especially use a consistent prefix for all inlined sources. @ text @/* ** Copyright (c) 2001 The OSSP Project ** Copyright (c) 2001 Cable & Wireless Deutschland ** ** This file is part of OSSP lmtp2nntp, an LMTP speaking local ** mailer which forwards mails as Usenet news articles via NNTP. ** It can be found at http://www.ossp.org/pkg/lmtp2nntp/. ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either version ** 2.0 of the License, or (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this file; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ** USA, or contact the OSSP project . ** ** shpat_match.c: Shell Pattern Matching library (API) */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 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. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. 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 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * 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. */ #ifndef __SHPAT_MATCH_H__ #define __SHPAT_MATCH_H__ #define SHPAT_M_NOMATCH 1 /* Match failed. */ #define SHPAT_M_NOESCAPE 0x01 /* Disable backslash escaping. */ #define SHPAT_M_PATHNAME 0x02 /* Slash must be matched by slash. */ #define SHPAT_M_PERIOD 0x04 /* Period must be matched by period. */ #define SHPAT_M_LEADING_DIR 0x08 /* Ignore / after Imatch. */ #define SHPAT_M_CASEFOLD 0x10 /* Case insensitive search. */ #define SHPAT_M_IGNORECASE FNM_CASEFOLD #if defined(__cplusplus) extern "C" { #endif int shpat_match(const char *, const char *, int); int shpat_match_hasglobchar(const char *); #if defined(__cplusplus) } #endif #endif /* __SHPAT_MATCH_H__ */ @ 1.2 log @Finally apply GNU General Public License (GPL) to OSSP lmtp2nntp. @ text @@ 1.1 log @add shpat_match from OSSP shpat library @ text @d2 2 d5 3 a7 1 ** shpat_match.h -- MAX POSIX-compliant fnmatch library d9 16 d60 2 a61 2 #ifndef _SHPAT_MATCH_H_ #define _SHPAT_MATCH_H_ d83 2 a84 1 #endif /* !_SHPAT_MATCH_H_ */ @