This is config.c in view mode; [Download] [Up]
/* @(#)src/config.c 1.3 18 Feb 1991 15:59:48 */ /* * Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll * * See the file COPYING, distributed with smail, for restriction * and warranty information. */ /* * config.c: * global variables which depend upon configuration * * most of these values can be changed by the config file. * * no external functions. */ #include <stdio.h> #include "defs.h" #include "smail.h" #include "config.h" #ifndef DEPEND # include "extern.h" #endif char *visible_name = VISIBLE_NAME; /* hostname used in outgoing addrs */ char *visible_domains = VISIBLE_DOMAINS; /* domain used in outgoing headers */ char *uucp_name = UUCP_NAME; /* hostname used in !-routes */ char *hostnames = HOSTNAMES; /* list of other local host names */ char *more_hostnames = MORE_HOSTNAMES; /* additional list of hostnames */ long max_message_size = MAX_MESSAGE_SIZE; /* max size of message body */ char *grades = GRADES; /* mapping of precedence to grade */ int nobody_uid = NOBODY_UID; /* user id for access permission */ int nobody_gid = NOBODY_GID; /* group id for access permission */ char *nobody = NOBODY; /* name of nobody user */ char *log_fn = LOGFILE; /* name of information log file */ char *panic_fn = PANIC_LOG; /* name of panic log file */ char *cons_fn = CONSOLE; /* name of console device file */ char *spool_dirs = SPOOL_DIRS; /* names of spooling directories */ int spool_mode = SPOOL_MODE; /* mode for spool files */ int lock_mode = LOCK_MODE; /* mode for lock files */ int log_mode = LOG_MODE; /* mode for system log files */ int message_log_mode = MESSAGE_LOG_MODE; /* mode for per-message log files */ int spool_grade = SPOOL_GRADE; /* default spool grade character */ int open_retries = OPEN_RETRIES; /* max open retries on config files */ int open_interval = OPEN_INTERVAL; /* sleep between open retries */ char *config_file = CONFIG_FILE; /* config file name */ char *director_file = DIRECTOR_FILE; /* directors file name */ char *router_file = ROUTER_FILE; /* routers file name */ char *method_dir = METHOD_DIR; /* directory for non-/ method files */ char *transport_file = TRANSPORT_FILE; /* transports file name */ char *qualify_file = QUALIFY_FILE; /* domain qualification file name */ char *smail_lib_dir = SMAIL_LIB_DIR; /* default config file directory */ char *received_field = RECEIVED_FIELD; /* Received: field string */ char *message_id_field = MESSAGE_ID_FIELD; /* Message-Id: field string */ char *date_field = DATE_FIELD; /* Date: field string */ char *return_path_field = RETURN_PATH_FIELD; /* Return-Path: field string */ char *smail = SMAIL; /* location of the smail program */ double max_load_ave = MAX_LOAD_AVE; /* spool mail > this load agerage */ char *trusted = TRUSTED; /* : list of trusted users */ char *trusted_groups = TRUSTED_GROUPS; /* : list of trusted groups */ unsigned message_bufsiz = MESSAGE_BUF_SIZE; /* size of message buffers */ int hit_table_len = HIT_TABLE_LEN; /* #entries in address hit table */ int flock_mailbox = FLOCK_MAILBOX; /* TRUE to use lock_fd_wait() macro */ int fnlock_retries = FNLOCK_RETRIES; /* retries for lock_file() creat */ int fnlock_interval = FNLOCK_INTERVAL; /* retry intervals for lock_file() */ int fnlock_mode = FNLOCK_MODE; /* mode for lock_file() lockfiles */ int lock_by_name = LOCK_BY_NAME; /* TRUE to use spool lockfiles */ int queue_only = FALSE; /* TRUE to default to -Q flag */ int max_hop_count = MAX_HOP_COUNT; /* fail if hop_count exceeds this */ char *delivery_mode_string = DELIVERY_MODE; /* string naming delivery mode */ char *smart_user = CONFIG_SMART_USER; /* default user for smartuser */ char *smart_path = CONFIG_SMART_PATH; /* default path for smarthost */ char *smart_transport = CONFIG_SMART_TRANSPORT; /* transport for smarthost */ char *second_config_file = SECOND_CONFIG_FILE; /* secondary config file */ char *copying_file = COPYING_FILE; /* pathname to COPYING file */ int auto_mkdir = AUTO_MKDIR; /* TRUE to auto create directories */ int auto_mkdir_mode = AUTO_MKDIR_MODE; /* the mode for auto directories */ int require_configs = REQUIRE_CONFIGS; /* TRUE to require config files */ char *postmaster_address = POSTMASTER_ADDRESS; /* default addr of postmaster */ char *smtp_banner = SMTP_BANNER; /* smtp startup banner message */ int smtp_debug = SMTP_DEBUG; /* allow DEBUG command in SMTP */ char *sender_env_variable = SENDER_ENV_VARIABLE; /* env variable naming user */ #ifdef GLOTZNET int tzoffset = 0; /* glotznet host timezone offset */ int tznodst = 0; /* glotznet does not have DST */ #endif /* GLOTZNET */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.