17c478bdstevel@tonic-gate/*
27c478bdstevel@tonic-gate * CDDL HEADER START
37c478bdstevel@tonic-gate *
47c478bdstevel@tonic-gate * The contents of this file are subject to the terms of the
57c478bdstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
67c478bdstevel@tonic-gate * (the "License").  You may not use this file except in compliance
77c478bdstevel@tonic-gate * with the License.
87c478bdstevel@tonic-gate *
97c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
117c478bdstevel@tonic-gate * See the License for the specific language governing permissions
127c478bdstevel@tonic-gate * and limitations under the License.
137c478bdstevel@tonic-gate *
147c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
157c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
177c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
187c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bdstevel@tonic-gate *
207c478bdstevel@tonic-gate * CDDL HEADER END
217c478bdstevel@tonic-gate */
227c478bdstevel@tonic-gate/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
237c478bdstevel@tonic-gate/*	  All Rights Reserved  	*/
247c478bdstevel@tonic-gate
257c478bdstevel@tonic-gate
267c478bdstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"	/* from SVR4 bnu:dial.h 1.1 */
277c478bdstevel@tonic-gate
287c478bdstevel@tonic-gate#ifndef _DIAL_H
297c478bdstevel@tonic-gate#define _DIAL_H
307c478bdstevel@tonic-gate
317c478bdstevel@tonic-gate#ifndef IUCLC
327c478bdstevel@tonic-gate#ifndef  _SYS_TERMIO_H
337c478bdstevel@tonic-gate#include <sys/termio.h>
347c478bdstevel@tonic-gate#endif
357c478bdstevel@tonic-gate#endif
367c478bdstevel@tonic-gate
377c478bdstevel@tonic-gate/* uucico routines need these */
387c478bdstevel@tonic-gate#define DIAL
397c478bdstevel@tonic-gate
407c478bdstevel@tonic-gate/* The following are no longer used by dial() and may be out of date.	*/
417c478bdstevel@tonic-gate/* They are included here only to maintain source compatibility.	*/
427c478bdstevel@tonic-gate#define STANDALONE
437c478bdstevel@tonic-gate#define DEVDIR	"/dev/"				/* device path		*/
447c478bdstevel@tonic-gate#define LOCK	"/usr/spool/uucp/LCK.."		/* lock file semaphore	*/
457c478bdstevel@tonic-gate#define DVC_LEN	80	/* max NO of chars in TTY-device path name	*/
467c478bdstevel@tonic-gate/* End of unused definitions						*/
477c478bdstevel@tonic-gate
487c478bdstevel@tonic-gate		/* error mnemonics */
497c478bdstevel@tonic-gate
507c478bdstevel@tonic-gate#define	TRUE	1
517c478bdstevel@tonic-gate#define FALSE	0
527c478bdstevel@tonic-gate#define INTRPT	(-1)	/* interrupt occured */
537c478bdstevel@tonic-gate#define D_HUNG	(-2)	/* dialer hung (no return from write) */
547c478bdstevel@tonic-gate#define NO_ANS	(-3)	/* no answer (caller script failed) */
557c478bdstevel@tonic-gate#define ILL_BD	(-4)	/* illegal baud-rate */
567c478bdstevel@tonic-gate#define A_PROB	(-5)	/* acu problem (open() failure) */
577c478bdstevel@tonic-gate#define L_PROB	(-6)	/* line problem (open() failure) */
587c478bdstevel@tonic-gate#define NO_Ldv	(-7)	/* can't open Devices file */
597c478bdstevel@tonic-gate#define DV_NT_A	(-8)	/* requested device not available */
607c478bdstevel@tonic-gate#define DV_NT_K	(-9)	/* requested device not known */
617c478bdstevel@tonic-gate#define NO_BD_A	(-10)	/* no device available at requested baud */
627c478bdstevel@tonic-gate#define NO_BD_K	(-11)	/* no device known at requested baud */
637c478bdstevel@tonic-gate#define DV_NT_E (-12)	/* requested speed does not match */
647c478bdstevel@tonic-gate#define BAD_SYS (-13)	/* system not in Systems file */
657c478bdstevel@tonic-gate
667c478bdstevel@tonic-gatetypedef struct {
677c478bdstevel@tonic-gate	struct termio *attr;	/* ptr to termio attribute struct */
687c478bdstevel@tonic-gate	int	baud;		/* unused */
697c478bdstevel@tonic-gate	int	speed;		/* 212A modem: low=300, high=1200 */
707c478bdstevel@tonic-gate	char	*line;		/* device name for out-going line */
717c478bdstevel@tonic-gate	char	*telno;		/* ptr to tel-no/system name string */
727c478bdstevel@tonic-gate	int	modem;		/* unused */
737c478bdstevel@tonic-gate	char	*device;	/* unused */
747c478bdstevel@tonic-gate	int	dev_len;	/* unused */
757c478bdstevel@tonic-gate} CALL;
767c478bdstevel@tonic-gate
777c478bdstevel@tonic-gate#if defined(__STDC__)
787c478bdstevel@tonic-gate
797c478bdstevel@tonic-gateextern int dial(CALL);
807c478bdstevel@tonic-gateextern void undial(int);
817c478bdstevel@tonic-gate
827c478bdstevel@tonic-gate#else
837c478bdstevel@tonic-gate
847c478bdstevel@tonic-gateextern int dial();
857c478bdstevel@tonic-gateextern void undial();
867c478bdstevel@tonic-gate
877c478bdstevel@tonic-gate#endif
887c478bdstevel@tonic-gate
897c478bdstevel@tonic-gate#endif 	/* _DIAL_H */
90