[BACK]Return to config.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdist

Annotation of src/usr.bin/rdist/config.h, Revision 1.3

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