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 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 /* All Rights Reserved */ 24 25 26 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ 27 28 #include "uucp.h" 29 30 /* Configurable parameters */ 31 32 GLOBAL char _ProtoCfg[40]; /* protocol string from Config file */ 33 34 /* Non-configurable parameters */ 35 36 GLOBAL int Debug; 37 GLOBAL uid_t Uid, Euid; /* user-id and effective-uid */ 38 GLOBAL mode_t Dev_mode; /* save device mode here */ 39 GLOBAL char Progname[NAMESIZE]; 40 GLOBAL const char *Spool = SPOOL; 41 GLOBAL const char *Pubdir = PUBDIR; 42 43 GLOBAL long Retrytime; 44 GLOBAL char Dc[50]; /* line name */ 45 GLOBAL char *Bnptr; /* used when BASENAME macro is expanded */ 46 GLOBAL int Uerror; /* global error code */ 47 48 GLOBAL void (*genbrk)(); 49 50 GLOBAL int Verbose; /* only for cu and ct to change */ 51 52 /* messages */ 53 GLOBAL const char Ct_OPEN[] = "CAN'T OPEN"; 54 GLOBAL const char Ct_WRITE[] = "CAN'T WRITE"; 55 GLOBAL const char Ct_READ[] = "CAN'T READ"; 56 GLOBAL const char Ct_CREATE[] = "CAN'T CREATE"; 57 GLOBAL const char Ct_ALLOCATE[] = "CAN'T ALLOCATE"; 58 GLOBAL const char Ct_LOCK[] = "CAN'T LOCK"; 59 GLOBAL const char Ct_STAT[] = "CAN'T STAT"; 60 GLOBAL const char Ct_CHOWN[] = "CAN'T CHOWN"; 61 GLOBAL const char Ct_CHMOD[] = "CAN'T CHMOD"; 62 GLOBAL const char Ct_LINK[] = "CAN'T LINK"; 63 GLOBAL const char Ct_CHDIR[] = "CAN'T CHDIR"; 64 GLOBAL const char Ct_UNLINK[] = "CAN'T UNLINK"; 65 GLOBAL const char Wr_ROLE[] = "WRONG ROLE"; 66 GLOBAL const char Ct_CORRUPT[] = "CAN'T MOVE TO CORRUPTDIR"; 67 GLOBAL const char Ct_CLOSE[] = "CAN'T CLOSE"; 68 GLOBAL const char Ct_FORK[] = "CAN'T FORK"; 69 GLOBAL const char Fl_EXISTS[] = "FILE EXISTS"; 70 GLOBAL const char Ct_BADOWN[] = "BAD OWNER/PERMS"; 71 72 GLOBAL char *UerrorText[] = { 73 /* SS_OK 0 */ "SUCCESSFUL", 74 /* SS_NO_DEVICE 1 */ "NO DEVICES AVAILABLE", 75 /* SS_TIME_WRONG 2 */ "WRONG TIME TO CALL", 76 /* SS_INPROGRESS 3 */ "TALKING", 77 /* SS_CONVERSATION 4 */ "CONVERSATION FAILED", 78 /* SS_SEQBAD 5 */ "BAD SEQUENCE CHECK", 79 /* SS_LOGIN_FAILED 6 */ "LOGIN FAILED", 80 /* SS_DIAL_FAILED 7 */ "DIAL FAILED", 81 /* SS_BAD_LOG_MCH 8 */ "BAD LOGIN/MACHINE COMBINATION", 82 /* SS_LOCKED_DEVICE 9 */ "DEVICE LOCKED", 83 /* SS_ASSERT_ERROR 10 */ "ASSERT ERROR", 84 /* SS_BADSYSTEM 11 */ "SYSTEM NOT IN Systems FILE", 85 /* SS_CANT_ACCESS_DEVICE 12 */ "CAN'T ACCESS DEVICE", 86 /* SS_DEVICE_FAILED 13 */ "DEVICE FAILED", 87 /* SS_WRONG_MCH 14 */ "WRONG MACHINE NAME", 88 /* SS_CALLBACK 15 */ "CALLBACK REQUIRED", 89 /* SS_RLOCKED 16 */ "REMOTE HAS A LCK FILE FOR ME", 90 /* SS_RUNKNOWN 17 */ "REMOTE DOES NOT KNOW ME", 91 /* SS_RLOGIN 18 */ "REMOTE REJECT AFTER LOGIN", 92 /* SS_UNKNOWN_RESPONSE 19 */ "REMOTE REJECT, UNKNOWN MESSAGE", 93 /* SS_STARTUP 20 */ "STARTUP FAILED", 94 /* SS_CHAT_FAILED 21 */ "CALLER SCRIPT FAILED", 95 /* SS_CALLBACK_LOOP 22 */ "CALLBACK REQUIRED - LOOP", 96 }; 97