xref: /illumos-gate/usr/src/lib/libnsl/dial/parms.h (revision 61961e0f)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 /*
41  * Solaris is a SVR4 based system and will never be anything else
42  * Removed all the dead and never to be resurrected options
43  */
44 
45 /*
46  * Owner of setud files running on behalf of uucp.  Needed in case
47  * root runs uucp and euid is not honored by kernel.
48  * GID is needed for some chown() calls.
49  * Also used if guinfo() cannot find the current users ID in the
50  * password file.
51  */
52 #define	UUCPUID		5	/* */
53 #define	UUCPGID		5	/* */
54 
55 /* definitions for the types of networks and dialers that are available */
56 /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
57 #define	TCP		/* TCP (bsd systems) */
58 
59 #define	TLI		/* for AT&T Transport Layer Interface networks */
60 #define	TLIS		/* for AT&T Transport Layer Interface networks */
61 			/* with streams module "tirdwr" */
62 
63 #define	MAXCALLTRIES	2 /* maximum call attempts per Systems file line */
64 
65 /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
66 /* Systems file and Devices file allow Any */
67 #define	DEFAULT_BAUDRATE "9600"	/* */
68 
69 /* define permission modes for the device */
70 #define	M_DEVICEMODE (mode_t)0600	/* MASTER device mode */
71 #define	S_DEVICEMODE (mode_t)0600	/* SLAVE device mode */
72 #define	R_DEVICEMODE (mode_t)0600	/* default mode to restore */
73 
74 /* initial wait time after failure before retry */
75 #define	RETRYTIME 300		/* 5 minutes */
76 /*
77  * MAXRETRYTIME is for exponential backoff  limit.
78  * NOTE - this should not be 24 hours so that
79  * retry is not always at the same time each day
80  */
81 #define	MAXRETRYTIME 82800	/* 23 hours */
82 #define	ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
83 
84 /*
85  * define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
86  * be sure other programs such as 'cu' and 'ct' know about this
87  *
88  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
89  * uudemon.cleanup must be changed.
90  */
91 #define	USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
92 
93 #ifdef	__cplusplus
94 }
95 #endif
96 
97 #endif /* _PARMS_H */
98