xref: /illumos-gate/usr/src/lib/libnsl/dial/parms.h (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 
23 /*
24  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
29 /*	  All Rights Reserved	*/
30 
31 #ifndef _PARMS_H
32 #define	_PARMS_H
33 
34 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  * Solaris is a SVR4 based system and will never be anything else
40  * Removed all the dead and never to be resurrected options
41  */
42 
43 /*
44  * Owner of setud files running on behalf of uucp.  Needed in case
45  * root runs uucp and euid is not honored by kernel.
46  * GID is needed for some chown() calls.
47  * Also used if guinfo() cannot find the current users ID in the
48  * password file.
49  */
50 #define	UUCPUID		5	/* */
51 #define	UUCPGID		5	/* */
52 
53 /* definitions for the types of networks and dialers that are available */
54 /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
55 #define	TCP		/* TCP (bsd systems) */
56 
57 #define	TLI		/* for AT&T Transport Layer Interface networks */
58 #define	TLIS		/* for AT&T Transport Layer Interface networks */
59 			/* with streams module "tirdwr" */
60 
61 #define	MAXCALLTRIES	2 /* maximum call attempts per Systems file line */
62 
63 /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
64 /* Systems file and Devices file allow Any */
65 #define	DEFAULT_BAUDRATE "9600"	/* */
66 
67 /* define permission modes for the device */
68 #define	M_DEVICEMODE (mode_t)0600	/* MASTER device mode */
69 #define	S_DEVICEMODE (mode_t)0600	/* SLAVE device mode */
70 #define	R_DEVICEMODE (mode_t)0600	/* default mode to restore */
71 
72 /* initial wait time after failure before retry */
73 #define	RETRYTIME 300		/* 5 minutes */
74 /*
75  * MAXRETRYTIME is for exponential backoff  limit.
76  * NOTE - this should not be 24 hours so that
77  * retry is not always at the same time each day
78  */
79 #define	MAXRETRYTIME 82800	/* 23 hours */
80 #define	ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
81 
82 /*
83  * define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
84  * be sure other programs such as 'cu' and 'ct' know about this
85  *
86  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
87  * uudemon.cleanup must be changed.
88  */
89 #define	USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
90 
91 #ifdef	__cplusplus
92 }
93 #endif
94 
95 #endif /* _PARMS_H */
96