2 * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3 * Copyright (c) 1991-1998 University of Maryland at College Park
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of U.M. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. U.M. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M.
18 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Authors: the Amanda Development Team. Its members are listed in a
24 * file named AUTHORS, in the root directory of this distribution.
27 * $Id: amregex.h,v 1.10 1999/04/10 06:18:44 kashmir Exp $
29 * compatibility header file for Henry Spencer's regex library.
38 #ifdef HAVE_SYS_TYPES_H
39 #include <sys/types.h>
48 #ifndef HAVE__POSIX2_RE_DUP_MAX
49 #define _POSIX2_RE_DUP_MAX 255
53 #define CHAR_MIN (-128)
65 # define P(parms) parms
71 * So that we can use GNUC attributes (such as to get -Wall warnings
72 * for printf-like functions). Only do this in gcc 2.7 or later ...
73 * it may work on earlier stuff, but why chance it.
75 #if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7
76 #define __attribute__(__x)
79 #ifndef HAVE_BCOPY_DECL
80 extern void bcopy P((const void *from, void *to, size_t n));
83 #ifndef HAVE_MEMMOVE_DECL
84 extern char *memmove P((char *to, char *from, size_t n));
87 #ifndef HAVE_MEMSET_DECL
88 extern void *memset P((void *s, int c, size_t n));
91 #if !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY)
95 #ifndef HAVE_SNPRINTF_DECL
97 int snprintf P((char *buf, size_t len, const char *format,...))
98 __attribute__((format(printf,3,4)));
100 #ifndef HAVE_VSNPRINTF_DECL
102 int vsnprintf P((char *buf, size_t len, const char *format, va_list ap));
105 #define POSIX_MISTAKE
107 #ifdef HAVE_UNSIGNED_LONG_CONSTANTS
113 #endif /* AMREGEX_H */