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/*
23ace1a5fdp * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bdstevel@tonic-gate * Use is subject to license terms.
257c478bdstevel@tonic-gate */
267c478bdstevel@tonic-gate
277c478bdstevel@tonic-gate/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
287c478bdstevel@tonic-gate/*	  All Rights Reserved  	*/
297c478bdstevel@tonic-gate
307c478bdstevel@tonic-gate
317c478bdstevel@tonic-gate#ifndef _UUCP_H
327c478bdstevel@tonic-gate#define _UUCP_H
337c478bdstevel@tonic-gate
34ace1a5fdp#pragma ident	"%Z%%M%	%I%	%E% SMI"
35ace1a5fdp
36ace1a5fdp#ifdef __cplusplus
37ace1a5fdpextern "C" {
38ace1a5fdp#endif
39ace1a5fdp
407c478bdstevel@tonic-gate#include <unistd.h>
417c478bdstevel@tonic-gate#include <stdlib.h>
427c478bdstevel@tonic-gate#include <string.h>
437c478bdstevel@tonic-gate#include <locale.h>
447c478bdstevel@tonic-gate#include <wchar.h>
457c478bdstevel@tonic-gate#include <widec.h>
467c478bdstevel@tonic-gate#include <wctype.h>
477c478bdstevel@tonic-gate#include <ulimit.h>
487c478bdstevel@tonic-gate#include <values.h>
49ace1a5fdp#include <sys/types.h>
50ace1a5fdp#include <sys/wait.h>
517c478bdstevel@tonic-gate
527c478bdstevel@tonic-gate#include "parms.h"
537c478bdstevel@tonic-gate
547c478bdstevel@tonic-gate#ifdef ATTSV
557c478bdstevel@tonic-gate#define ATTSVKILL
567c478bdstevel@tonic-gate#define ATTSVTTY
577c478bdstevel@tonic-gate#define UNAME
587c478bdstevel@tonic-gate#ifdef ATTSVR4
597c478bdstevel@tonic-gate#define	ATTSVR3
607c478bdstevel@tonic-gate#endif /*ATTSVR4*/
617c478bdstevel@tonic-gate#endif /*ATTSV*/
627c478bdstevel@tonic-gate
637c478bdstevel@tonic-gate#ifdef BSD4_3
647c478bdstevel@tonic-gate#define BSD4_2
657c478bdstevel@tonic-gate#define	BSDINETD
667c478bdstevel@tonic-gate#endif /*BSD4_3 */
677c478bdstevel@tonic-gate
687c478bdstevel@tonic-gate#ifdef DIAL
697c478bdstevel@tonic-gate#define EXTERN static
707c478bdstevel@tonic-gate#define GLOBAL static
717c478bdstevel@tonic-gate#else
727c478bdstevel@tonic-gate#define EXTERN extern
737c478bdstevel@tonic-gate#define GLOBAL
747c478bdstevel@tonic-gate#endif
757c478bdstevel@tonic-gate
767c478bdstevel@tonic-gate#ifdef BSD4_2
777c478bdstevel@tonic-gate#define V7
787c478bdstevel@tonic-gate#define ATTSVKILL
797c478bdstevel@tonic-gate#undef NONAP	/* conn.c has a nap() for 4.2 -- it's called select() */
807c478bdstevel@tonic-gate#undef FASTTIMER
817c478bdstevel@tonic-gate#endif /* BSD4_2 */
827c478bdstevel@tonic-gate
837c478bdstevel@tonic-gate#ifdef V8
847c478bdstevel@tonic-gate#define V7
857c478bdstevel@tonic-gate#define ATTSVKILL
867c478bdstevel@tonic-gate#define UNAME
877c478bdstevel@tonic-gate#endif /* V8 */
887c478bdstevel@tonic-gate
897c478bdstevel@tonic-gate#ifdef FASTTIMER
907c478bdstevel@tonic-gate#undef NONAP
917c478bdstevel@tonic-gate#endif
927c478bdstevel@tonic-gate
937c478bdstevel@tonic-gate#include <stdio.h>
947c478bdstevel@tonic-gate#include <ctype.h>
957c478bdstevel@tonic-gate#include <setjmp.h>
967c478bdstevel@tonic-gate#include <sys/param.h>
977c478bdstevel@tonic-gate
987c478bdstevel@tonic-gate/*
997c478bdstevel@tonic-gate * param.h includes types.h and signal.h in 4bsd
1007c478bdstevel@tonic-gate */
1017c478bdstevel@tonic-gate#ifdef V7
1027c478bdstevel@tonic-gate#ifdef ATTSVTTY
1037c478bdstevel@tonic-gate#include <termio.h>
1047c478bdstevel@tonic-gate#else /* ATTSVTTY */
1057c478bdstevel@tonic-gate#include <sgtty.h>
1067c478bdstevel@tonic-gate#endif /* ATTSVTTY */
1077c478bdstevel@tonic-gate#include <sys/timeb.h>
1087c478bdstevel@tonic-gate#ifdef BSD4_2
1097c478bdstevel@tonic-gate#include <fcntl.h>
1107c478bdstevel@tonic-gate#endif /* BSD4_2 */
1117c478bdstevel@tonic-gate#else /* !V7 */
1127c478bdstevel@tonic-gate#include <termio.h>
1137c478bdstevel@tonic-gate#include <sys/types.h>
1147c478bdstevel@tonic-gate#include <signal.h>
1157c478bdstevel@tonic-gate#include <fcntl.h>
1167c478bdstevel@tonic-gate#endif /* V7 */
1177c478bdstevel@tonic-gate
1187c478bdstevel@tonic-gate#include <sys/stat.h>
1197c478bdstevel@tonic-gate#include <utime.h>
1207c478bdstevel@tonic-gate#include <dirent.h>
1217c478bdstevel@tonic-gate
1227c478bdstevel@tonic-gate#ifdef BSD4_2
1237c478bdstevel@tonic-gate#include <sys/time.h>
1247c478bdstevel@tonic-gate#else /* !BSD4_2 */
1257c478bdstevel@tonic-gate#include <time.h>
1267c478bdstevel@tonic-gate#endif /* BSD4_2 */
1277c478bdstevel@tonic-gate
1287c478bdstevel@tonic-gate#include <sys/times.h>
1297c478bdstevel@tonic-gate#include <errno.h>
1307c478bdstevel@tonic-gate
1317c478bdstevel@tonic-gate#ifdef ATTSV
1327c478bdstevel@tonic-gate#ifdef ATTSVR4
1337c478bdstevel@tonic-gate#include <sys/mkdev.h>
1347c478bdstevel@tonic-gate#else /* !ATTSVR4 */
1357c478bdstevel@tonic-gate#include <sys/sysmacros.h>
1367c478bdstevel@tonic-gate#endif /* ATTSVR4 */
1377c478bdstevel@tonic-gate#endif /* ATTSV */
1387c478bdstevel@tonic-gate
1397c478bdstevel@tonic-gate#ifdef	RT
1407c478bdstevel@tonic-gate#include "rt/types.h"
1417c478bdstevel@tonic-gate#include "rt/unix/param.h"
1427c478bdstevel@tonic-gate#include "rt/stat.h"
1437c478bdstevel@tonic-gate#include <sys/ustat.h>
1447c478bdstevel@tonic-gate#endif /* RT */
1457c478bdstevel@tonic-gate
1467c478bdstevel@tonic-gate#include <sysexits.h>
1477c478bdstevel@tonic-gate
1487c478bdstevel@tonic-gate#ifndef ATTSVR4
1497c478bdstevel@tonic-gate#define	const
1507c478bdstevel@tonic-gate#endif /* ATTSVR4 */
1517c478bdstevel@tonic-gate
1527c478bdstevel@tonic-gate/* what mode should user files be allowed to have upon creation? */
1537c478bdstevel@tonic-gate/* NOTE: This does not allow setuid or execute bits on transfer. */
1547c478bdstevel@tonic-gate#define LEGALMODE (mode_t) 0666
1557c478bdstevel@tonic-gate
1567c478bdstevel@tonic-gate/* what mode should public files have upon creation? */
1577c478bdstevel@tonic-gate#define PUB_FILEMODE (mode_t) 0666
1587c478bdstevel@tonic-gate
1597c478bdstevel@tonic-gate/* what mode should log files have upon creation? */
1607c478bdstevel@tonic-gate#define LOGFILEMODE (mode_t) 0644
1617c478bdstevel@tonic-gate
1627c478bdstevel@tonic-gate/* what mode should C. files have upon creation? */
1637c478bdstevel@tonic-gate#define CFILEMODE (mode_t) 0644
1647c478bdstevel@tonic-gate
1657c478bdstevel@tonic-gate/* what mode should D. files have upon creation? */
1667c478bdstevel@tonic-gate#define DFILEMODE (mode_t) 0600
1677c478bdstevel@tonic-gate
1687c478bdstevel@tonic-gate/* define the value of PUBMASK, used for creating "public" directories */
1697c478bdstevel@tonic-gate#define PUBMASK (mode_t) 0000
1707c478bdstevel@tonic-gate
1717c478bdstevel@tonic-gate/* what mode should public directories have upon creation? */
1727c478bdstevel@tonic-gate#define PUB_DIRMODE (mode_t) 0777
1737c478bdstevel@tonic-gate
1747c478bdstevel@tonic-gate/* define the value of DIRMASK, used for creating "system" subdirectories */
1757c478bdstevel@tonic-gate#define DIRMASK (mode_t) 0022
1767c478bdstevel@tonic-gate
1777c478bdstevel@tonic-gate#define MAXSTART	300	/* how long to wait on startup */
1787c478bdstevel@tonic-gate
1797c478bdstevel@tonic-gate/* define the last characters for ACU  (used for 801/212 dialers) */
1807c478bdstevel@tonic-gate#define ACULAST "<"
1817c478bdstevel@tonic-gate
1827c478bdstevel@tonic-gate/*  caution - the fillowing names are also in Makefile
1837c478bdstevel@tonic-gate *    any changes here have to also be made there
1847c478bdstevel@tonic-gate *
1857c478bdstevel@tonic-gate * it's a good idea to make directories .foo, since this ensures
1867c478bdstevel@tonic-gate * that they'll be ignored by processes that search subdirectories in SPOOL
1877c478bdstevel@tonic-gate *
1887c478bdstevel@tonic-gate *  XQTDIR=/var/uucp/.Xqtdir
1897c478bdstevel@tonic-gate *  CORRUPT=/var/uucp/.Corrupt
1907c478bdstevel@tonic-gate *  LOGDIR=/var/uucp/.Log
1917c478bdstevel@tonic-gate *  SEQDIR=/var/uucp/.Sequence
1927c478bdstevel@tonic-gate *  STATDIR=/var/uucp/.Status
1937c478bdstevel@tonic-gate *
1947c478bdstevel@tonic-gate */
1957c478bdstevel@tonic-gate
1967c478bdstevel@tonic-gate/* where to put the STST. files? */
1977c478bdstevel@tonic-gate#define STATDIR		"/var/uucp/.Status"
1987c478bdstevel@tonic-gate
1997c478bdstevel@tonic-gate/* where should logfiles be kept? */
2007c478bdstevel@tonic-gate#define LOGUUX		"/var/uucp/.Log/uux"
2017c478bdstevel@tonic-gate#define LOGUUXQT	"/var/uucp/.Log/uuxqt"
2027c478bdstevel@tonic-gate#define LOGUUCP		"/var/uucp/.Log/uucp"
2037c478bdstevel@tonic-gate#define LOGCICO		"/var/uucp/.Log/uucico"
2047c478bdstevel@tonic-gate
2057c478bdstevel@tonic-gate/* some sites use /var/uucp/.Corrupt and /var/uucp/.Xqtdir here */
2067c478bdstevel@tonic-gate/* use caution since things are linked into there from /var/spool/uucp */
2077c478bdstevel@tonic-gate#define CORRUPTDIR	"/var/spool/uucp/.Corrupt"
2087c478bdstevel@tonic-gate#define XQTDIR		"/var/spool/uucp/.Xqtdir"
2097c478bdstevel@tonic-gate
2107c478bdstevel@tonic-gate/* how much of a system name can we print in a [CX]. file? */
2117c478bdstevel@tonic-gate/* MAXBASENAME - 1 (pre) - 1 ('.') - 1 (grade) - 4 (sequence number) */
2127c478bdstevel@tonic-gate#define SYSNSIZE (MAXBASENAME - 7)
2137c478bdstevel@tonic-gate
2147c478bdstevel@tonic-gate#ifdef USRSPOOLLOCKS
2157c478bdstevel@tonic-gate#define LOCKPRE		"/var/spool/locks/LCK."
2167c478bdstevel@tonic-gate#else /*!USRSPOOLLOCKS*/
2177c478bdstevel@tonic-gate#define LOCKPRE		"/var/spool/uucp/LCK."
2187c478bdstevel@tonic-gate#endif /* USRSPOOLLOCKS */
2197c478bdstevel@tonic-gate
2207c478bdstevel@tonic-gate#define SQFILE		"/etc/uucp/SQFILE"
2217c478bdstevel@tonic-gate#define SQTMP		"/etc/uucp/SQTMP"
2227c478bdstevel@tonic-gate#define SLCKTIME	5400	/* system/device timeout (LCK.. files) */
2237c478bdstevel@tonic-gate#define DIALCODES	"/etc/uucp/Dialcodes"
2247c478bdstevel@tonic-gate#define PERMISSIONS	"/etc/uucp/Permissions"
2257c478bdstevel@tonic-gate#define SYSNAMEFILE	"/etc/uucp/Sysname"
2267c478bdstevel@tonic-gate
2277c478bdstevel@tonic-gate#define SPOOL		"/var/spool/uucp"
2287c478bdstevel@tonic-gate#define SEQDIR		"/var/uucp/.Sequence"
2297c478bdstevel@tonic-gate
2307c478bdstevel@tonic-gate#define X_LOCKTIME	3600
2317c478bdstevel@tonic-gate#ifdef USRSPOOLLOCKS
2327c478bdstevel@tonic-gate#define SEQLOCK		"/var/spool/locks/LCK.SQ."
2337c478bdstevel@tonic-gate#define SQLOCK		"/var/spool/locks/LCK.SQ"
2347c478bdstevel@tonic-gate#define X_LOCK		"/var/spool/locks/LCK.X"
2357c478bdstevel@tonic-gate#define S_LOCK		"/var/spool/locks/LCK.S"
2367c478bdstevel@tonic-gate#define L_LOCK		"/var/spool/locks/LK"
2377c478bdstevel@tonic-gate#define X_LOCKDIR	"/var/spool/locks"	/* must be dir part of above */
2387c478bdstevel@tonic-gate#else /*!USRSPOOLLOCKS*/
2397c478bdstevel@tonic-gate#define SEQLOCK		"/var/spool/uucp/LCK.SQ."
2407c478bdstevel@tonic-gate#define SQLOCK		"/var/spool/uucp/LCK.SQ"
2417c478bdstevel@tonic-gate#define X_LOCK		"/var/spool/uucp/LCK.X"
2427c478bdstevel@tonic-gate#define S_LOCK		"/var/spool/uucp/LCK.S"
2437c478bdstevel@tonic-gate#define L_LOCK		"/var/spool/uucp/LK"
2447c478bdstevel@tonic-gate#define X_LOCKDIR	"/var/spool/uucp"	/* must be dir part of above */
2457c478bdstevel@tonic-gate#endif /* USRSPOOLLOCKS */
2467c478bdstevel@tonic-gate#define X_LOCKPRE	"LCK.X"		/* must be last part of above */
2477c478bdstevel@tonic-gate#define	S_LOCKPRE	"LCK.S"
2487c478bdstevel@tonic-gate
2497c478bdstevel@tonic-gate/*
2507c478bdstevel@tonic-gate * Note: this should be "/usr/spool/uucppublic", not "/var/spool/uucppublic",
2517c478bdstevel@tonic-gate * because if a Permissions file entry doesn't explicitly list directories to
2527c478bdstevel@tonic-gate * which and from which files can be copied you can only copy files to and from
2537c478bdstevel@tonic-gate * PUBDIR, and most systems out there will think PUBDIR is
2547c478bdstevel@tonic-gate * "/usr/spool/uucppublic" not "/var/spool/uucppublic" (i.e., if you change
2557c478bdstevel@tonic-gate * this, other systems may be rudely surprised when they try to get things from
2567c478bdstevel@tonic-gate * or to PUBDIR).
2577c478bdstevel@tonic-gate */
2587c478bdstevel@tonic-gate#define PUBDIR		"/usr/spool/uucppublic"
2597c478bdstevel@tonic-gate#define ADMIN		"/var/uucp/.Admin"
2607c478bdstevel@tonic-gate#define ERRLOG		"/var/uucp/.Admin/errors"
2617c478bdstevel@tonic-gate#define SYSLOG		"/var/uucp/.Admin/xferstats"
2627c478bdstevel@tonic-gate#define RMTDEBUG	"/var/uucp/.Admin/audit"
2637c478bdstevel@tonic-gate#define CLEANUPLOGFILE	"/var/uucp/.Admin/uucleanup"
2647c478bdstevel@tonic-gate#define CMDLOG		"/var/uucp/.Admin/command"
2657c478bdstevel@tonic-gate#define PERFLOG		"/var/uucp/.Admin/perflog"
2667c478bdstevel@tonic-gate#define ACCOUNT		"/var/uucp/.Admin/account"
2677c478bdstevel@tonic-gate#define SECURITY	"/var/uucp/.Admin/security"
2687c478bdstevel@tonic-gate
2697c478bdstevel@tonic-gate/*
2707c478bdstevel@tonic-gate * WORKSPACE should be in the same filesystem as SPOOL so that "mv"
2717c478bdstevel@tonic-gate * between the two will work.  Otherwise, the file must be copied
2727c478bdstevel@tonic-gate * and a window exists during which the file is mode 666.
2737c478bdstevel@tonic-gate */
2747c478bdstevel@tonic-gate#define	WORKSPACE	"/var/spool/uucp/.Workspace"
2757c478bdstevel@tonic-gate
2767c478bdstevel@tonic-gate#define SQTIME		60
2777c478bdstevel@tonic-gate#define TRYCALLS	2	/* number of tries to dial call */
2787c478bdstevel@tonic-gate#define MINULIMIT	(1L<<11)	/* minimum reasonable ulimit */
2797c478bdstevel@tonic-gate#define	MAX_LOCKTRY	5	/* number of attempts to lock device */
2807c478bdstevel@tonic-gate
2817c478bdstevel@tonic-gate/*
2827c478bdstevel@tonic-gate * CDEBUG is for communication line debugging
2837c478bdstevel@tonic-gate * DEBUG is for program debugging
2847c478bdstevel@tonic-gate * #define SMALL to compile without the DEBUG code
2857c478bdstevel@tonic-gate */
2867c478bdstevel@tonic-gate
2877c478bdstevel@tonic-gate#ifndef DIAL
2887c478bdstevel@tonic-gate#define CDEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s)
2897c478bdstevel@tonic-gate#else
2907c478bdstevel@tonic-gate#define CDEBUG(l, f, s)
2917c478bdstevel@tonic-gate#define SMALL
2927c478bdstevel@tonic-gate#endif
2937c478bdstevel@tonic-gate
2947c478bdstevel@tonic-gate#ifndef SMALL
2957c478bdstevel@tonic-gate#define DEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s)
2967c478bdstevel@tonic-gate#else
2977c478bdstevel@tonic-gate#define DEBUG(l, f, s)
2987c478bdstevel@tonic-gate#endif /* SMALL */
2997c478bdstevel@tonic-gate
3007c478bdstevel@tonic-gate/*
3017c478bdstevel@tonic-gate * VERBOSE is used by cu and ct to inform the user of progress
3027c478bdstevel@tonic-gate * In other programs, the Value of Verbose is always 0.
3037c478bdstevel@tonic-gate */
3047c478bdstevel@tonic-gate#define VERBOSE(f, s) { if (Verbose > 0) fprintf(stderr, f, s); }
3057c478bdstevel@tonic-gate
3067c478bdstevel@tonic-gate#define PREFIX(pre, str)	(strncmp((pre), (str), strlen(pre)) == SAME)
3077c478bdstevel@tonic-gate#define BASENAME(str, c) ((Bnptr = strrchr((str), c)) ? (Bnptr + 1) : (str))
3087c478bdstevel@tonic-gate#define EQUALS(a,b)	((a != CNULL) && (b != CNULL) && (strcmp((a),(b))==SAME))
3097c478bdstevel@tonic-gate#define WEQUALS(a,b)	((a != CNULL) && (b != CNULL) && (wcscmp((a),(b))==SAME))
3107c478bdstevel@tonic-gate#define EQUALSN(a,b,n)	((a != CNULL) && (b != CNULL) && (strncmp((a),(b),(n))==SAME))
3117c478bdstevel@tonic-gate#define WEQUALSN(a,b,n)	((a != CNULL) && (b != CNULL) && (wcsncmp((a),(b),(n))==SAME))
3127c478bdstevel@tonic-gate#define LASTCHAR(s)	(s+strlen(s)-1)
3137c478bdstevel@tonic-gate
3147c478bdstevel@tonic-gate#define SAME 0
3157c478bdstevel@tonic-gate#define ANYREAD 04
3167c478bdstevel@tonic-gate#define ANYWRITE 02
3177c478bdstevel@tonic-gate#define FAIL -1
3187c478bdstevel@tonic-gate#define SUCCESS 0
3197c478bdstevel@tonic-gate#define NULLCHAR	'\0'
3207c478bdstevel@tonic-gate#define CNULL ((void *) 0)
3217c478bdstevel@tonic-gate#define STBNULL (struct sgttyb *) 0
3227c478bdstevel@tonic-gate#define MASTER 1
3237c478bdstevel@tonic-gate#define SLAVE 0
3247c478bdstevel@tonic-gate#define MAXBASENAME 14 /* should be DIRSIZ but that is now fs dependent */
3257c478bdstevel@tonic-gate#define MAXFULLNAME BUFSIZ
3267c478bdstevel@tonic-gate#define MAXNAMESIZE	64	/* /var/spool/uucp/<14 chars>/<14 chars>+slop */
3277c478bdstevel@tonic-gate#define CONNECTTIME 30
3287c478bdstevel@tonic-gate#define EXPECTTIME 45
3297c478bdstevel@tonic-gate#define MSGTIME 60
3307c478bdstevel@tonic-gate#define NAMESIZE MAXBASENAME+1
3317c478bdstevel@tonic-gate#define	SIZEOFPID	10		/* maximum number of digits in a pid */
3327c478bdstevel@tonic-gate#define EOTMSG "\004\n\004\n"
3337c478bdstevel@tonic-gate#define CALLBACK 1
3347c478bdstevel@tonic-gate
3357c478bdstevel@tonic-gate/* manifests for sysfiles.c's sysaccess()	*/
3367c478bdstevel@tonic-gate/* check file access for REAL user id */
3377c478bdstevel@tonic-gate#define	ACCESS_SYSTEMS	1
3387c478bdstevel@tonic-gate#define	ACCESS_DEVICES	2
3397c478bdstevel@tonic-gate#define	ACCESS_DIALERS	3
3407c478bdstevel@tonic-gate/* check file access for EFFECTIVE user id */
3417c478bdstevel@tonic-gate#define	EACCESS_SYSTEMS	4
3427c478bdstevel@tonic-gate#define	EACCESS_DEVICES	5
3437c478bdstevel@tonic-gate#define	EACCESS_DIALERS	6
3447c478bdstevel@tonic-gate
3457c478bdstevel@tonic-gate/* manifest for chkpth flag */
3467c478bdstevel@tonic-gate#define CK_READ		0
3477c478bdstevel@tonic-gate#define CK_WRITE	1
3487c478bdstevel@tonic-gate
3497c478bdstevel@tonic-gate/*
3507c478bdstevel@tonic-gate * commands
3517c478bdstevel@tonic-gate */
3527c478bdstevel@tonic-gate#define SHELL		"/usr/bin/sh"
3537c478bdstevel@tonic-gate#define MAIL		"mail"
3547c478bdstevel@tonic-gate#define UUCICO		"/usr/lib/uucp/uucico"
3557c478bdstevel@tonic-gate#define UUXQT		"/usr/lib/uucp/uuxqt"
3567c478bdstevel@tonic-gate#define UUX		"/usr/bin/uux"
3577c478bdstevel@tonic-gate#define UUCP		"/usr/bin/uucp"
3587c478bdstevel@tonic-gate
3597c478bdstevel@tonic-gate
3607c478bdstevel@tonic-gate/* system status stuff */
3617c478bdstevel@tonic-gate#define SS_OK			0
3627c478bdstevel@tonic-gate#define SS_NO_DEVICE		1
3637c478bdstevel@tonic-gate#define SS_TIME_WRONG		2
3647c478bdstevel@tonic-gate#define SS_INPROGRESS		3
3657c478bdstevel@tonic-gate#define SS_CONVERSATION		4
3667c478bdstevel@tonic-gate#define SS_SEQBAD		5
3677c478bdstevel@tonic-gate#define SS_LOGIN_FAILED		6
3687c478bdstevel@tonic-gate#define SS_DIAL_FAILED		7
3697c478bdstevel@tonic-gate#define SS_BAD_LOG_MCH		8
3707c478bdstevel@tonic-gate#define SS_LOCKED_DEVICE	9
3717c478bdstevel@tonic-gate#define SS_ASSERT_ERROR		10
3727c478bdstevel@tonic-gate#define SS_BADSYSTEM		11
3737c478bdstevel@tonic-gate#define SS_CANT_ACCESS_DEVICE	12
3747c478bdstevel@tonic-gate#define SS_DEVICE_FAILED	13	/* used for interface failure */
3757c478bdstevel@tonic-gate#define SS_WRONG_MCH		14
3767c478bdstevel@tonic-gate#define SS_CALLBACK		15
3777c478bdstevel@tonic-gate#define SS_RLOCKED		16
3787c478bdstevel@tonic-gate#define SS_RUNKNOWN		17
3797c478bdstevel@tonic-gate#define SS_RLOGIN		18
3807c478bdstevel@tonic-gate#define SS_UNKNOWN_RESPONSE	19
3817c478bdstevel@tonic-gate#define SS_STARTUP		20
3827c478bdstevel@tonic-gate#define SS_CHAT_FAILED		21
3837c478bdstevel@tonic-gate#define SS_CALLBACK_LOOP	22
3847c478bdstevel@tonic-gate
3857c478bdstevel@tonic-gate#define MAXPH	60	/* maximum phone string size */
3867c478bdstevel@tonic-gate#define	MAXC	BUFSIZ
3877c478bdstevel@tonic-gate
3887c478bdstevel@tonic-gate#define	TRUE	1
3897c478bdstevel@tonic-gate#define	FALSE	0
3907c478bdstevel@tonic-gate#define NAMEBUF	32
3917c478bdstevel@tonic-gate
3927c478bdstevel@tonic-gate/* The call structure is used by ct.c, cu.c, and dial.c.	*/
3937c478bdstevel@tonic-gate
394462be47ceasthastruct call {
3957c478bdstevel@tonic-gate	char *speed;		/* transmission baud rate */
3967c478bdstevel@tonic-gate	char *line;		/* device name for outgoing line */
3977c478bdstevel@tonic-gate	char *telno;		/* ptr to tel-no digit string */
3987c478bdstevel@tonic-gate	char *type;		/* type of device to use for call. */
3997c478bdstevel@tonic-gate};
4007c478bdstevel@tonic-gate
4017c478bdstevel@tonic-gate/* structure of an Systems file line */
4027c478bdstevel@tonic-gate#define F_MAX	50	/* max number of fields in Systems file line */
4037c478bdstevel@tonic-gate#define F_NAME 0
4047c478bdstevel@tonic-gate#define F_TIME 1
4057c478bdstevel@tonic-gate#define F_TYPE 2
4067c478bdstevel@tonic-gate#define F_CLASS 3	/* an optional prefix and the speed */
4077c478bdstevel@tonic-gate#define F_PHONE 4
4087c478bdstevel@tonic-gate#define F_LOGIN 5
4097c478bdstevel@tonic-gate
4107c478bdstevel@tonic-gate/* structure of an Devices file line */
4117c478bdstevel@tonic-gate#define D_TYPE 0
4127c478bdstevel@tonic-gate#define D_LINE 1
4137c478bdstevel@tonic-gate#define D_CALLDEV 2
4147c478bdstevel@tonic-gate#define D_CLASS 3
4157c478bdstevel@tonic-gate#define D_CALLER 4
4167c478bdstevel@tonic-gate#define D_ARG 5
4177c478bdstevel@tonic-gate#define D_MAX	50	/* max number of fields in Devices file line */
4187c478bdstevel@tonic-gate
4197c478bdstevel@tonic-gate#define D_ACU 1
4207c478bdstevel@tonic-gate#define D_DIRECT 2
4217c478bdstevel@tonic-gate#define D_PROT 4
4227c478bdstevel@tonic-gate
4237c478bdstevel@tonic-gate#define GRADES "/etc/uucp/Grades"
4247c478bdstevel@tonic-gate
4257c478bdstevel@tonic-gate#define	D_QUEUE	'Z'	/* default queue */
4267c478bdstevel@tonic-gate
4277c478bdstevel@tonic-gate/* past here, local changes are not recommended */
4287c478bdstevel@tonic-gate#define CMDPRE		'C'
4297c478bdstevel@tonic-gate#define DATAPRE		'D'
4307c478bdstevel@tonic-gate#define XQTPRE		'X'
4317c478bdstevel@tonic-gate
4327c478bdstevel@tonic-gate/*
4337c478bdstevel@tonic-gate * stuff for command execution
4347c478bdstevel@tonic-gate */
4357c478bdstevel@tonic-gate#define X_RQDFILE	'F'
4367c478bdstevel@tonic-gate#define X_STDIN		'I'
4377c478bdstevel@tonic-gate#define X_STDOUT	'O'
4387c478bdstevel@tonic-gate#define X_STDERR	'E'
4397c478bdstevel@tonic-gate#define X_CMD		'C'
4407c478bdstevel@tonic-gate#define X_USER		'U'
4417c478bdstevel@tonic-gate#define X_BRINGBACK	'B'
4427c478bdstevel@tonic-gate#define X_MAILF		'M'
4437c478bdstevel@tonic-gate#define X_RETADDR	'R'
4447c478bdstevel@tonic-gate#define X_COMMENT	'#'
4457c478bdstevel@tonic-gate#define X_NONZERO	'Z'
4467c478bdstevel@tonic-gate#define X_SENDNOTHING	'N'
4477c478bdstevel@tonic-gate#define X_SENDZERO	'n'
4487c478bdstevel@tonic-gate#define X_JOBID		'J'
4497c478bdstevel@tonic-gate
4507c478bdstevel@tonic-gate
4517c478bdstevel@tonic-gate/* This structure describes call routines */
4527c478bdstevel@tonic-gatestruct caller {
4537c478bdstevel@tonic-gate	char	*CA_type;
4547c478bdstevel@tonic-gate	int	(*CA_caller)();
4557c478bdstevel@tonic-gate};
4567c478bdstevel@tonic-gate
4577c478bdstevel@tonic-gate/* structure for a saved C file */
4587c478bdstevel@tonic-gate
459462be47ceasthastruct cs_struct {
4607c478bdstevel@tonic-gate	char	file[NAMESIZE];
4617c478bdstevel@tonic-gate	char	sys[NAMESIZE+5];
4627c478bdstevel@tonic-gate	char	sgrade[NAMESIZE];
4637c478bdstevel@tonic-gate	char	grade;
4647c478bdstevel@tonic-gate	long	jsize;
4657c478bdstevel@tonic-gate};
4667c478bdstevel@tonic-gate
4677c478bdstevel@tonic-gate/* This structure describes dialing routines */
4687c478bdstevel@tonic-gatestruct dialer {
4697c478bdstevel@tonic-gate	char	*DI_type;
4707c478bdstevel@tonic-gate	int	(*DI_dialer)();
4717c478bdstevel@tonic-gate};
4727c478bdstevel@tonic-gate
4737c478bdstevel@tonic-gatestruct nstat {
4747c478bdstevel@tonic-gate	pid_t	t_pid;		/* process id				*/
4757c478bdstevel@tonic-gate	time_t	t_start;	/* start time				*/
4767c478bdstevel@tonic-gate	time_t	t_scall;	/* start call to system			*/
4777c478bdstevel@tonic-gate	time_t	t_ecall;	/* end call to system			*/
4787c478bdstevel@tonic-gate	time_t	t_tacu;		/* acu time				*/
4797c478bdstevel@tonic-gate	time_t	t_tlog;		/* login time				*/
4807c478bdstevel@tonic-gate	time_t	t_sftp;		/* start file transfer protocol		*/
4817c478bdstevel@tonic-gate	time_t	t_sxf;		/* start xfer 				*/
4827c478bdstevel@tonic-gate	time_t	t_exf;		/* end xfer 				*/
4837c478bdstevel@tonic-gate	time_t	t_eftp;		/* end file transfer protocol		*/
4847c478bdstevel@tonic-gate	time_t	t_qtime;	/* time file queued			*/
4857c478bdstevel@tonic-gate	int	t_ndial;	/* # of dials				*/
4867c478bdstevel@tonic-gate	int	t_nlogs;	/* # of login trys			*/
4877c478bdstevel@tonic-gate	struct tms t_tbb;	/* start execution times		*/
4887c478bdstevel@tonic-gate	struct tms t_txfs;	/* xfer start times			*/
4897c478bdstevel@tonic-gate	struct tms t_txfe;	/* xfer end times 			*/
4907c478bdstevel@tonic-gate	struct tms t_tga;	/* garbage execution times		*/
4917c478bdstevel@tonic-gate};
4927c478bdstevel@tonic-gate
4937c478bdstevel@tonic-gate/* This structure describes the values from Limits file */
4947c478bdstevel@tonic-gatestruct limits {
4957c478bdstevel@tonic-gate	int	totalmax;	/* overall limit */
4967c478bdstevel@tonic-gate	int	sitemax;	/* limit per site */
4977c478bdstevel@tonic-gate	char	mode[64];	/* uucico mode */
4987c478bdstevel@tonic-gate};
4997c478bdstevel@tonic-gate
5007c478bdstevel@tonic-gate/* external declarations */
5017c478bdstevel@tonic-gate
5027c478bdstevel@tonic-gateEXTERN ssize_t (*Read)(), (*Write)();
5037c478bdstevel@tonic-gate#if defined(__STDC__)
5047c478bdstevel@tonic-gateEXTERN int (*Ioctl)(int,int,...);
5057c478bdstevel@tonic-gate#else
5067c478bdstevel@tonic-gateEXTERN int (*Ioctl)();
5077c478bdstevel@tonic-gate#endif
5087c478bdstevel@tonic-gateEXTERN int Ifn, Ofn;
5097c478bdstevel@tonic-gateEXTERN int Debug, Verbose;
5107c478bdstevel@tonic-gateEXTERN uid_t Uid, Euid;		/* user-id and effective-uid */
5117c478bdstevel@tonic-gateEXTERN long Ulimit;
5127c478bdstevel@tonic-gateEXTERN mode_t Dev_mode;		/* save device mode here */
5137c478bdstevel@tonic-gateEXTERN char Wrkdir[];
5147c478bdstevel@tonic-gateEXTERN long Retrytime;
5157c478bdstevel@tonic-gateEXTERN char **Env;
5167c478bdstevel@tonic-gateEXTERN char Uucp[];
5177c478bdstevel@tonic-gateEXTERN char Pchar;
5187c478bdstevel@tonic-gateEXTERN struct nstat Nstat;
5197c478bdstevel@tonic-gateEXTERN char Dc[];			/* line name			*/
5207c478bdstevel@tonic-gateEXTERN int Seqn;			/* sequence #			*/
5217c478bdstevel@tonic-gateEXTERN int Role;
5227c478bdstevel@tonic-gateEXTERN int Sgrades;		/* flag for administrator defined service grades */
5237c478bdstevel@tonic-gateEXTERN char Grade;
5247c478bdstevel@tonic-gateEXTERN char Logfile[MAXFULLNAME];
5257c478bdstevel@tonic-gateEXTERN char Rmtname[MAXFULLNAME];
5267c478bdstevel@tonic-gateEXTERN char JobGrade[MAXBASENAME+1];
5277c478bdstevel@tonic-gateEXTERN char User[MAXFULLNAME];
5287c478bdstevel@tonic-gateEXTERN char Loginuser[NAMESIZE];
5297c478bdstevel@tonic-gateEXTERN char *Spool;
5307c478bdstevel@tonic-gateEXTERN char *Pubdir;
5317c478bdstevel@tonic-gateEXTERN char Myname[];
5327c478bdstevel@tonic-gateEXTERN char Progname[];
5337c478bdstevel@tonic-gateEXTERN char RemSpool[];
5347c478bdstevel@tonic-gateEXTERN char *Bnptr;		/* used when BASENAME macro is expanded */
5357c478bdstevel@tonic-gateEXTERN char *Shchar;		/* shell meta-charaters */
5367c478bdstevel@tonic-gateEXTERN int SizeCheck;		/* ulimit check supported flag */
5377c478bdstevel@tonic-gateEXTERN long RemUlimit;		/* remote ulimit if supported */
5387c478bdstevel@tonic-gateEXTERN int Restart;		/* checkpoint restart supported flag */
5397c478bdstevel@tonic-gate
5407c478bdstevel@tonic-gateEXTERN char Jobid[NAMESIZE];	/* Jobid of current C. file */
5417c478bdstevel@tonic-gateEXTERN int Uerror;		/* global error code */
5427c478bdstevel@tonic-gateEXTERN char *UerrorText[];	/* text for error code */
5437c478bdstevel@tonic-gate
5447c478bdstevel@tonic-gate#define UERRORTEXT		UerrorText[Uerror]
5457c478bdstevel@tonic-gate#define UTEXT(x)		UerrorText[x]
5467c478bdstevel@tonic-gate
5477c478bdstevel@tonic-gate/* things get kind of tricky beyond this point -- please stay out */
5487c478bdstevel@tonic-gate
5497c478bdstevel@tonic-gate#ifdef ATTSV
5507c478bdstevel@tonic-gate#define index strchr
5517c478bdstevel@tonic-gate#define rindex strrchr
5527c478bdstevel@tonic-gate#else /*!ATTSV*/
5537c478bdstevel@tonic-gate#define strchr index
5547c478bdstevel@tonic-gate#define strrchr rindex
5557c478bdstevel@tonic-gate#endif /*ATTSV*/
5567c478bdstevel@tonic-gate
5577c478bdstevel@tonic-gate#ifdef BSD4_2
5587c478bdstevel@tonic-gate#define memcpy(s1,s2,n) bcopy(s2,s1,n)
5597c478bdstevel@tonic-gateextern void	bcopy();
5607c478bdstevel@tonic-gate#else
5617c478bdstevel@tonic-gate#ifndef ATTSVR4
5627c478bdstevel@tonic-gate#define vfork fork
5637c478bdstevel@tonic-gateextern char	*memcpy();
5647c478bdstevel@tonic-gate#endif
5657c478bdstevel@tonic-gate#endif
5667c478bdstevel@tonic-gate
5677c478bdstevel@tonic-gateEXTERN struct stat __s_;
5687c478bdstevel@tonic-gate#define F_READANY(f)	((fstat((f),&__s_)==0) && ((__s_.st_mode&(0004))!=0) )
5697c478bdstevel@tonic-gate#define READANY(f)	((stat((f),&__s_)==0) && ((__s_.st_mode&(0004))!=0) )
5707c478bdstevel@tonic-gate
5717c478bdstevel@tonic-gate#define WRITEANY(f)	((stat((f),&__s_)==0) && ((__s_.st_mode&(0002))!=0) )
5727c478bdstevel@tonic-gate#define DIRECTORY(f)	((stat((f),&__s_)==0) && ((__s_.st_mode&(S_IFMT))==S_IFDIR) )
5737c478bdstevel@tonic-gate#define NOTEMPTY(f)	((stat((f),&__s_)==0) && (__s_.st_size!=0) )
5747c478bdstevel@tonic-gate
5757c478bdstevel@tonic-gate/* uucp functions and subroutine */
5767c478bdstevel@tonic-gateEXTERN void	(*genbrk)();
5777c478bdstevel@tonic-gateextern int	iswrk(), gtwvec();			/* anlwrk.c */
5787c478bdstevel@tonic-gateextern void	findgrade();				/* grades.c */
5797c478bdstevel@tonic-gateextern void	chremdir(), mkremdir();			/* chremdir.c */
5807c478bdstevel@tonic-gateextern void	toCorrupt();				/* cpmv.c  */
5817c478bdstevel@tonic-gateextern int	xmv();					/* cpmv.c  */
5827c478bdstevel@tonic-gate
5837c478bdstevel@tonic-gateEXTERN int	getargs();				/* getargs.c */
5847c478bdstevel@tonic-gateEXTERN void	bsfix();				/* getargs.c */
5857c478bdstevel@tonic-gateextern char	*_uu_setlocale();			/* getargs.c */
5867c478bdstevel@tonic-gateextern void	_uu_resetlocale();			/* getargs.c */
5877c478bdstevel@tonic-gateextern char	*getprm();				/* getprm.c */
5887c478bdstevel@tonic-gate
5897c478bdstevel@tonic-gateextern char	*next_token();				/* permission.c */
5907c478bdstevel@tonic-gateextern char	*nextarg();				/* permission.c */
5917c478bdstevel@tonic-gateextern int	getuline();				/* permission.c */
5927c478bdstevel@tonic-gate
5937c478bdstevel@tonic-gateEXTERN void	logent(), usyslog(), ucloselog();	/* logent.c */
5947c478bdstevel@tonic-gateextern void	commandlog();				/* logent.c */
5957c478bdstevel@tonic-gateextern time_t	millitick();				/* logent.c */
5967c478bdstevel@tonic-gate
5977c478bdstevel@tonic-gateextern unsigned long	getfilesize();			/* statlog.c */
5987c478bdstevel@tonic-gateextern void 		putfilesize();			/* statlog.c */
5997c478bdstevel@tonic-gate
6007c478bdstevel@tonic-gateEXTERN char	*protoString();				/* permission.c */
601462be47ceasthaextern int	logFind(), mchFind();			/* permission.c */
602462be47ceasthaextern int	chkperm(), chkpth();			/* permission.c */
603462be47ceasthaextern int	cmdOK(), switchRole();			/* permission.c */
604462be47ceasthaextern int	callBack(), requestOK();		/* permission.c */
605462be47ceasthaextern int	noSpool();				/* permission.c */
6067c478bdstevel@tonic-gateextern void	myName();				/* permission.c */
6077c478bdstevel@tonic-gate
6087c478bdstevel@tonic-gateextern int	mkdirs();				/* expfile.c */
6097c478bdstevel@tonic-gateextern int	scanlimit();				/* limits.c */
6107c478bdstevel@tonic-gateextern void	systat();				/* systat.c */
6117c478bdstevel@tonic-gateEXTERN int	fd_mklock(), fd_cklock();		/* ulockf.c */
6127c478bdstevel@tonic-gateEXTERN int	fn_cklock();				/* ulockf.c */
6137c478bdstevel@tonic-gateEXTERN int	mklock(), cklock(), umlock();		/* ulockf.c */
6147c478bdstevel@tonic-gateEXTERN void	fd_rmlock(), delock(), rmlock();	/* ulockf.c */
6157c478bdstevel@tonic-gateextern char	*timeStamp();				/* utility.c */
6167c478bdstevel@tonic-gateEXTERN void	assert(), errent();			/* utility.c */
6177c478bdstevel@tonic-gateextern void	uucpname();				/* uucpname.c */
6187c478bdstevel@tonic-gateextern int	versys();				/* versys.c */
6197c478bdstevel@tonic-gateextern void	xuuxqt(), xuucico();			/* xqt.c */
6207c478bdstevel@tonic-gateEXTERN void	cleanup();				/* misc main.c */
6217c478bdstevel@tonic-gate
6227c478bdstevel@tonic-gate#define ASSERT(e, s1, s2, i1) if (!(e)) {\
6237c478bdstevel@tonic-gate	assert(s1, s2, i1, __FILE__, __LINE__);\
6247c478bdstevel@tonic-gate	cleanup(FAIL);};
6257c478bdstevel@tonic-gate
6267c478bdstevel@tonic-gate#ifdef ATTSV
6277c478bdstevel@tonic-gatevoid	setbuf();
6287c478bdstevel@tonic-gate#else /* !ATTSV */
6297c478bdstevel@tonic-gateint	setbuf(), ftime();
6307c478bdstevel@tonic-gatechar	*mktemp();
6317c478bdstevel@tonic-gate#endif /*ATTSV*/
6327c478bdstevel@tonic-gate
6337c478bdstevel@tonic-gate#ifdef UNAME
6347c478bdstevel@tonic-gate#include <sys/utsname.h>
6357c478bdstevel@tonic-gate#endif /* UNAME */
6367c478bdstevel@tonic-gate
6377c478bdstevel@tonic-gate#ifndef NOUSTAT
6387c478bdstevel@tonic-gate#ifdef V7USTAT
6397c478bdstevel@tonic-gatestruct  ustat {
6407c478bdstevel@tonic-gate	daddr_t	f_tfree;	/* total free */
6417c478bdstevel@tonic-gate	ino_t	f_tinode;	/* total inodes free */
6427c478bdstevel@tonic-gate};
6437c478bdstevel@tonic-gate#else /* !NOUSTAT && !V7USTAT */
6447c478bdstevel@tonic-gate#ifdef STATFS
6457c478bdstevel@tonic-gate#include <sys/vfs.h>
6467c478bdstevel@tonic-gate#else
6477c478bdstevel@tonic-gate#include <ustat.h>
6487c478bdstevel@tonic-gate#endif /* STATFS */
6497c478bdstevel@tonic-gate#endif /* V7USTAT */
6507c478bdstevel@tonic-gate#endif /* NOUSTAT */
6517c478bdstevel@tonic-gate
6527c478bdstevel@tonic-gate#ifdef BSD4_2
6537c478bdstevel@tonic-gateint	gethostname();
6547c478bdstevel@tonic-gate#endif /* BSD4_2 */
6557c478bdstevel@tonic-gate
6567c478bdstevel@tonic-gate/* messages */
6577c478bdstevel@tonic-gateEXTERN char *Ct_OPEN;
6587c478bdstevel@tonic-gateEXTERN char *Ct_WRITE;
6597c478bdstevel@tonic-gateEXTERN char *Ct_READ;
6607c478bdstevel@tonic-gateEXTERN char *Ct_CREATE;
6617c478bdstevel@tonic-gateEXTERN char *Ct_ALLOCATE;
6627c478bdstevel@tonic-gateEXTERN char *Ct_LOCK;
6637c478bdstevel@tonic-gateEXTERN char *Ct_STAT;
6647c478bdstevel@tonic-gateEXTERN char *Ct_CHOWN;
6657c478bdstevel@tonic-gateEXTERN char *Ct_CHMOD;
6667c478bdstevel@tonic-gateEXTERN char *Ct_LINK;
6677c478bdstevel@tonic-gateEXTERN char *Ct_CHDIR;
6687c478bdstevel@tonic-gateEXTERN char *Ct_UNLINK;
6697c478bdstevel@tonic-gateEXTERN char *Wr_ROLE;
6707c478bdstevel@tonic-gateEXTERN char *Ct_CORRUPT;
6717c478bdstevel@tonic-gateEXTERN char *Ct_FORK;
6727c478bdstevel@tonic-gateEXTERN char *Ct_CLOSE;
6737c478bdstevel@tonic-gateEXTERN char *Ct_BADOWN;
6747c478bdstevel@tonic-gateEXTERN char *Fl_EXISTS;
6757c478bdstevel@tonic-gate
676ace1a5fdp
677ace1a5fdp#ifdef __cplusplus
678ace1a5fdp}
6797c478bdstevel@tonic-gate#endif
680ace1a5fdp
681ace1a5fdp#endif	/* _UUCP_H */
682