xref: /titanic_50/usr/src/lib/libnsl/dial/parms.h (revision 61961e0f20c7637a3846bb39786bb9dffa91dfb9)
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  */
22*61961e0fSrobinson 
23*61961e0fSrobinson /*
24*61961e0fSrobinson  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25*61961e0fSrobinson  * Use is subject to license terms.
26*61961e0fSrobinson  */
27*61961e0fSrobinson 
287c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
297c478bd9Sstevel@tonic-gate /*	  All Rights Reserved	*/
307c478bd9Sstevel@tonic-gate 
31*61961e0fSrobinson #ifndef _PARMS_H
32*61961e0fSrobinson #define	_PARMS_H
337c478bd9Sstevel@tonic-gate 
34*61961e0fSrobinson #pragma ident	"%Z%%M%	%I%	%E% SMI"
357c478bd9Sstevel@tonic-gate 
36*61961e0fSrobinson #ifdef	__cplusplus
37*61961e0fSrobinson extern "C" {
38*61961e0fSrobinson #endif
397c478bd9Sstevel@tonic-gate 
40*61961e0fSrobinson /*
41*61961e0fSrobinson  * Solaris is a SVR4 based system and will never be anything else
42*61961e0fSrobinson  * Removed all the dead and never to be resurrected options
437c478bd9Sstevel@tonic-gate  */
447c478bd9Sstevel@tonic-gate 
45*61961e0fSrobinson /*
46*61961e0fSrobinson  * Owner of setud files running on behalf of uucp.  Needed in case
477c478bd9Sstevel@tonic-gate  * root runs uucp and euid is not honored by kernel.
487c478bd9Sstevel@tonic-gate  * GID is needed for some chown() calls.
497c478bd9Sstevel@tonic-gate  * Also used if guinfo() cannot find the current users ID in the
507c478bd9Sstevel@tonic-gate  * password file.
517c478bd9Sstevel@tonic-gate  */
527c478bd9Sstevel@tonic-gate #define	UUCPUID		5	/* */
537c478bd9Sstevel@tonic-gate #define	UUCPGID		5	/* */
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate /* definitions for the types of networks and dialers that are available */
567c478bd9Sstevel@tonic-gate /* used to depend on STANDALONE, but now done at runtime via Sysfiles	*/
577c478bd9Sstevel@tonic-gate #define	TCP		/* TCP (bsd systems) */
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate #define	TLI		/* for AT&T Transport Layer Interface networks */
607c478bd9Sstevel@tonic-gate #define	TLIS		/* for AT&T Transport Layer Interface networks */
617c478bd9Sstevel@tonic-gate 			/* with streams module "tirdwr" */
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate #define	MAXCALLTRIES	2 /* maximum call attempts per Systems file line */
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate /* define DEFAULT_BAUDRATE to be the baud rate you want to use when both */
667c478bd9Sstevel@tonic-gate /* Systems file and Devices file allow Any */
677c478bd9Sstevel@tonic-gate #define	DEFAULT_BAUDRATE "9600"	/* */
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate /* define permission modes for the device */
707c478bd9Sstevel@tonic-gate #define	M_DEVICEMODE (mode_t)0600	/* MASTER device mode */
717c478bd9Sstevel@tonic-gate #define	S_DEVICEMODE (mode_t)0600	/* SLAVE device mode */
727c478bd9Sstevel@tonic-gate #define	R_DEVICEMODE (mode_t)0600	/* default mode to restore */
737c478bd9Sstevel@tonic-gate 
747c478bd9Sstevel@tonic-gate /* initial wait time after failure before retry */
757c478bd9Sstevel@tonic-gate #define	RETRYTIME 300		/* 5 minutes */
76*61961e0fSrobinson /*
77*61961e0fSrobinson  * MAXRETRYTIME is for exponential backoff  limit.
787c478bd9Sstevel@tonic-gate  * NOTE - this should not be 24 hours so that
797c478bd9Sstevel@tonic-gate  * retry is not always at the same time each day
807c478bd9Sstevel@tonic-gate  */
817c478bd9Sstevel@tonic-gate #define	MAXRETRYTIME 82800	/* 23 hours */
827c478bd9Sstevel@tonic-gate #define	ASSERT_RETRYTIME 86400	/* retry time for ASSERT errors */
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate /*
85*61961e0fSrobinson  * define USRSPOOLLOCKS if you like your lock files in /var/spool/locks
867c478bd9Sstevel@tonic-gate  * be sure other programs such as 'cu' and 'ct' know about this
877c478bd9Sstevel@tonic-gate  *
887c478bd9Sstevel@tonic-gate  * WARNING: if you do not define USRSPOOLLOCKS, then $LOCK in
897c478bd9Sstevel@tonic-gate  * uudemon.cleanup must be changed.
907c478bd9Sstevel@tonic-gate  */
917c478bd9Sstevel@tonic-gate #define	USRSPOOLLOCKS  /* define to use /var/spool/locks for LCK files */
927c478bd9Sstevel@tonic-gate 
93*61961e0fSrobinson #ifdef	__cplusplus
94*61961e0fSrobinson }
95*61961e0fSrobinson #endif
96*61961e0fSrobinson 
97*61961e0fSrobinson #endif /* _PARMS_H */
98