1 /* $OpenBSD: config.h,v 1.10 2014/07/12 03:32:00 guenther Exp $ */ 2 3 /* 4 * Copyright (c) 1993 Michael A. Cooper 5 * Copyright (c) 1993 Regents of the University of California. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. Neither the name of the University nor the names of its contributors 17 * may be used to endorse or promote products derived from this software 18 * without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33 /* 34 * $From: config.h,v 1.2 1997/01/05 04:23:35 kim Exp $ 35 * @(#)config.h 36 */ 37 38 #ifndef __config_h__ 39 #define __config_h__ 40 41 /* 42 * Configuration parameters 43 */ 44 45 /* 46 * Check to see if file is on a NFS. If it is, the file is 47 * skipped unless the hostname specified in the Distfile has 48 * a trailing "+". e.g. "foobar+". This feature is enabled by 49 * the -N option. If your system does not support NFS or you don't 50 * want the -N option, undefine this. 51 */ 52 #define NFS_CHECK 53 54 /* 55 * Check to see if file on a Read-Only filesystem. If it is, no 56 * attempt is made to update the file. This feature is enabled by 57 * the -O option. 58 */ 59 #define RO_CHECK 60 61 /* 62 * Default value for the maximum number of clients to update at once. 63 * Can be changed with the -M option. 64 */ 65 #define MAXCHILDREN 4 66 67 /* 68 * Response Time Out interval (in seconds). 69 * Should be long enough to allow transfer of large files. 70 * The -t option can be used to override this value. 71 */ 72 #define RTIMEOUT 900 73 74 /* 75 * Define LOG_OPTS to be the syslog/openlog() logging options you 76 * wish to use. Define to be 0 if you don't want any options. 77 * Define LOG_FACILITY to be the syslog/openlog() facility to log 78 * to. Both LOG_OPTS and LOG_FACILITY values are defined in <syslog.h> 79 * If you don't have syslog, then undefine both values. 80 */ 81 #define LOG_OPTS LOG_PID 82 #if defined(LOG_DAEMON) 83 # define LOG_FACILITY LOG_DAEMON 84 #endif 85 86 /* 87 * Syslog levels. Define these to match the levels you want to log 88 * via syslog(). These are defined in <syslog.h>. If you don't want 89 * a particuliar level logged _ever_, undefine it. What is logged is 90 * usually controlled via command line options, so you normally should 91 * not need to undefine these. 92 */ 93 #define SL_FERROR LOG_INFO /* Fatal errors */ 94 #define SL_NERROR LOG_INFO /* Normal errors */ 95 #define SL_WARNING LOG_INFO /* Warnings */ 96 #define SL_CHANGE LOG_INFO /* Things that change */ 97 #define SL_INFO LOG_INFO /* General info */ 98 #define SL_NOTICE LOG_NOTICE /* General notices */ 99 #define SL_DEBUG LOG_DEBUG /* Debugging */ 100 101 /* 102 * Arg types to select(2) 103 */ 104 #ifndef SELECT_FD_TYPE 105 #define SELECT_FD_TYPE fd_set 106 #endif 107 108 #endif /* __config_h__ */ 109