xref: /illumos-gate/usr/src/lib/libnsl/dial/parms.h (revision 1da57d55)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate  * with the License.
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate  * and limitations under the License.
137c478bd9Sstevel@tonic-gate  *
147c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate  *
207c478bd9Sstevel@tonic-gate  * CDDL HEADER END
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate 
23*61961e0fSrobinson /*
24*61961e0fSrobinson  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25*61961e0fSrobinson  * Use is subject to license terms.
26*61961e0fSrobinson  */
277c478bd9Sstevel@tonic-gate 
28*61961e0fSrobinson /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
29*61961e0fSrobinson /*	  All Rights Reserved	*/
307c478bd9Sstevel@tonic-gate 
31*61961e0fSrobinson #ifndef _PARMS_H
32*61961e0fSrobinson #define	_PARMS_H
337c478bd9Sstevel@tonic-gate 
34*61961e0fSrobinson #ifdef	__cplusplus
35*61961e0fSrobinson extern "C" {
36*61961e0fSrobinson #endif
377c478bd9Sstevel@tonic-gate 
38*61961e0fSrobinson /*
39*61961e0fSrobinson  * Solaris is a SVR4 based system and will never be anything else
40*61961e0fSrobinson  * Removed all the dead and never to be resurrected options
417c478bd9Sstevel@tonic-gate  */
427c478bd9Sstevel@tonic-gate 
43*61961e0fSrobinson /*
44*61961e0fSrobinson  * Owner of setud files running on behalf of uucp.  Needed in case
457c478bd9Sstevel@tonic-gate  * root runs uucp and euid is not honored by kernel.
467c478bd9Sstevel@tonic-gate  * GID is needed for some chown() calls.
477c478bd9Sstevel@tonic-gate  * Also used if guinfo() cannot find the current users ID in the
487c478bd9Sstevel@tonic-gate  * password file.
497c478bd9Sstevel@tonic-gate  */
50*61961e0fSrobinson #define	UUCPUID		5	/* */
51*61961e0fSrobinson #define	UUCPGID		5	/* */
527c478bd9Sstevel@tonic-gate 
537c478bd9Sstevel@tonic-gate /* definitions for the types of networks and dialers that are available */
547c478bd9Sstevel@tonic-gate /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
55*61961e0fSrobinson #define	TCP		/* TCP (bsd systems) */
567c478bd9Sstevel@tonic-gate 
57*61961e0fSrobinson #define	TLI		/* for AT&T Transport Layer Interface networks */
58*61961e0fSrobinson #define	TLIS		/* for AT&T Transport Layer Interface networks */
597c478bd9Sstevel@tonic-gate 			/* with streams module "tirdwr" */
607c478bd9Sstevel@tonic-gate 
61*61961e0fSrobinson #define	MAXCALLTRIES	2 /* maximum call attempts per Systems file line */
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
647c478bd9Sstevel@tonic-gate /* Systems file and Devices file allow Any */
65*61961e0fSrobinson #define	DEFAULT_BAUDRATE "9600"	/* */
667c478bd9Sstevel@tonic-gate 
67*61961e0fSrobinson /* define permission modes for the device */
68*61961e0fSrobinson #define	M_DEVICEMODE (mode_t)0600	/* MASTER device mode */
69*61961e0fSrobinson #define	S_DEVICEMODE (mode_t)0600	/* SLAVE device mode */
70*61961e0fSrobinson #define	R_DEVICEMODE (mode_t)0600	/* default mode to restore */
717c478bd9Sstevel@tonic-gate 
727c478bd9Sstevel@tonic-gate /* initial wait time after failure before retry */
73*61961e0fSrobinson #define	RETRYTIME 300		/* 5 minutes */
74*61961e0fSrobinson /*
75*61961e0fSrobinson  * MAXRETRYTIME is for exponential backoff  limit.
767c478bd9Sstevel@tonic-gate  * NOTE - this should not be 24 hours so that
777c478bd9Sstevel@tonic-gate  * retry is not always at the same time each day
787c478bd9Sstevel@tonic-gate  */
79*61961e0fSrobinson #define	MAXRETRYTIME 82800	/* 23 hours */
80*61961e0fSrobinson #define	ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
817c478bd9Sstevel@tonic-gate 
827c478bd9Sstevel@tonic-gate /*
83*61961e0fSrobinson  * define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
847c478bd9Sstevel@tonic-gate  * be sure other programs such as 'cu' and 'ct' know about this
857c478bd9Sstevel@tonic-gate  *
86*61961e0fSrobinson  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
877c478bd9Sstevel@tonic-gate  * uudemon.cleanup must be changed.
887c478bd9Sstevel@tonic-gate  */
89*61961e0fSrobinson #define	USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
907c478bd9Sstevel@tonic-gate 
91*61961e0fSrobinson #ifdef	__cplusplus
92*61961e0fSrobinson }
93*61961e0fSrobinson #endif
94*61961e0fSrobinson 
95*61961e0fSrobinson #endif /* _PARMS_H */
96