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 /* 27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31 #pragma ident "%Z%%M% %I% %E% SMI" 32 33 #define BEGIN_CRITICAL { ignore_signals(); { 34 #define END_CRITICAL } trap_signals(); } 35 36 extern void ignore_signals(), 37 trap_signals(); 38 39 extern int a, 40 banner, 41 #if defined(DIRECT_ACCESS) 42 C, 43 #endif 44 filebreak, 45 h, 46 j, 47 l, 48 M, 49 t, 50 o, 51 Q, 52 W, 53 scheduler_active; 54 55 extern char *A, 56 *c, 57 *cpi, 58 *d, 59 *D, 60 *e, 61 *f, 62 **f_allow, 63 **f_deny, 64 **p_add, 65 **p_remove, 66 *P, 67 *F, 68 **H, 69 *i, 70 **I, 71 *length, 72 *lpi, 73 *m, 74 modifications[128], 75 #ifdef LP_USE_PAPI_ATTR 76 *n_opt, 77 #endif 78 *p, 79 *r, 80 *s, 81 *stty_opt, 82 **o_options, 83 **S, 84 **T, 85 *u, 86 **u_allow, 87 **u_deny, 88 *U, 89 *v, 90 *width, 91 *x; 92 93 #if defined(LPUSER) 94 extern SCALED cpi_sdn, 95 length_sdn, 96 lpi_sdn, 97 width_sdn; 98 #endif 99 100 #if defined(PR_MAX) 101 extern PRINTER *oldp; 102 103 extern PWHEEL *oldS; 104 #endif 105 106 extern short daisy; 107 108 extern char *Local_System; 109 110 extern char *getdflt(); 111 112 extern int ismodel(), 113 output(), 114 verify_form(), 115 do_align(); 116 117 extern void do_fault(), 118 do_mount(), 119 do_printer(), 120 do_pwheel(), 121 done(), 122 fromclass(), 123 newdflt(), 124 options(), 125 rmdest(), 126 startup(), 127 usage(); 128 129 130 #if defined(__STDC__) 131 void send_message( int , ... ); 132 extern char ** pick_opts(char *, char **); 133 #else 134 extern void send_message(); 135 extern char ** pick_opts(); 136 #endif 137