Annotation of src/usr.bin/rdist/config.h, Revision 1.7
1.7 ! millert 1: /* $OpenBSD: config.h,v 1.6 1998/06/26 21:21:05 millert Exp $ */
1.6 millert 2:
1.1 dm 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. All advertising materials mentioning features or use of this software
17: * must display the following acknowledgement:
18: * This product includes software developed by the University of
19: * California, Berkeley and its contributors.
20: * 4. Neither the name of the University nor the names of its contributors
21: * may be used to endorse or promote products derived from this software
22: * without specific prior written permission.
23: *
24: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34: * SUCH DAMAGE.
35: */
36:
37: /*
1.7 ! millert 38: * $From: config.h,v 1.2 1997/01/05 04:23:35 kim Exp $
1.1 dm 39: * @(#)config.h
40: */
41:
42: #ifndef __config_h__
43: #define __config_h__
44:
45: /*
46: * Configuration parameters
47: */
48:
49: #include OS_H
50:
51: /*
52: * Include system pathname header file. Usually this is <paths.h>.
1.7 ! millert 53: * If your system doesn't have such a file, use "mypaths.h"
1.1 dm 54: */
55: #if defined(PATHS_H)
56: # include PATHS_H
57: #else
1.7 ! millert 58: # include "mypaths.h"
1.1 dm 59: #endif
60:
61: /*
62: * Define _PATH_OLDRDIST to be the name of the original rdist that
63: * was distributed with 4.3BSD.
64: *
65: * If you want to be backwards compability with the old rdist, uncomment
66: # the "#define" line. If you don't want to be backwards compability or
67: * don't have the old rdist, then uncomment the "#undef" line.
68: */
69: #ifndef _PATH_OLDRDIST
1.7 ! millert 70: #define _PATH_OLDRDIST "/usr/ucb/oldrdist" /* Enable compat */
1.1 dm 71: #endif
72: /*#undef _PATH_OLDRDIST*/ /* Disable compat */
73:
74: /*
75: * Check to see if file is on a NFS. If it is, the file is
76: * skipped unless the hostname specified in the Distfile has
77: * a trailing "+". e.g. "foobar+". This feature is enabled by
78: * the -N option. If your system does not support NFS or you don't
79: * want the -N option, undefine this.
80: */
81: #define NFS_CHECK
82:
83: /*
84: * Check to see if file on a Read-Only filesystem. If it is, no
85: * attempt is made to update the file. This feature is enabled by
86: * the -O option.
87: */
88: #define RO_CHECK
89:
90: /*
91: * Default value for the maximum number of clients to update at once.
92: * Can be changed with the -M option.
93: */
94: #define MAXCHILDREN 4
95:
96: /*
97: * Response Time Out interval (in seconds).
98: * Should be long enough to allow transfer of large files.
99: * The -t option can be used to override this value.
100: */
101: #define RTIMEOUT 900
102:
103: /*
104: * Define LOG_OPTS to be the syslog/openlog() logging options you
105: * wish to use. Define to be 0 if you don't want any options.
106: * Define LOG_FACILITY to be the syslog/openlog() facility to log
107: * to. Both LOG_OPTS and LOG_FACILITY values are defined in <syslog.h>
108: * If you don't have syslog, then undefine both values.
109: */
110: #define LOG_OPTS LOG_PID
111: #if defined(LOG_DAEMON)
112: # define LOG_FACILITY LOG_DAEMON
113: #endif
114:
115: /*
116: * Syslog levels. Define these to match the levels you want to log
117: * via syslog(). These are defined in <syslog.h>. If you don't want
118: * a particuliar level logged _ever_, undefine it. What is logged is
119: * usually controlled via command line options, so you normally should
120: * not need to undefine these.
121: */
122: #define SL_FERROR LOG_INFO /* Fatal errors */
123: #define SL_NERROR LOG_INFO /* Normal errors */
124: #define SL_WARNING LOG_INFO /* Warnings */
125: #define SL_CHANGE LOG_INFO /* Things that change */
126: #define SL_INFO LOG_INFO /* General info */
127: #define SL_NOTICE LOG_NOTICE /* General notices */
128: #define SL_DEBUG LOG_DEBUG /* Debugging */
1.5 millert 129:
130: /*
131: * Arg types to select(2)
132: */
133: #ifndef SELECT_FD_TYPE
134: #define SELECT_FD_TYPE fd_set
135: #endif
1.1 dm 136:
137: #endif /* __config_h__ */