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 (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 22 /* All Rights Reserved */ 23 24 25 /* 26 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 27 * Use is subject to license terms. 28 */ 29 30 #define BEGIN_CRITICAL { ignore_signals(); { 31 #define END_CRITICAL } trap_signals(); } 32 33 extern void ignore_signals(), 34 trap_signals(); 35 36 extern int a, 37 banner, 38 #if defined(DIRECT_ACCESS) 39 C, 40 #endif 41 filebreak, 42 h, 43 j, 44 l, 45 M, 46 t, 47 o, 48 Q, 49 W, 50 scheduler_active; 51 52 extern char *A, 53 *c, 54 *cpi, 55 *d, 56 *D, 57 *e, 58 *f, 59 **f_allow, 60 **f_deny, 61 **p_add, 62 **p_remove, 63 *P, 64 *F, 65 **H, 66 *i, 67 **I, 68 *length, 69 *lpi, 70 *m, 71 modifications[128], 72 #ifdef LP_USE_PAPI_ATTR 73 *n_opt, 74 #endif 75 *p, 76 *r, 77 *s, 78 *stty_opt, 79 **o_options, 80 **S, 81 **T, 82 *u, 83 **u_allow, 84 **u_deny, 85 *U, 86 *v, 87 *width, 88 *x; 89 90 #if defined(LPUSER) 91 extern SCALED cpi_sdn, 92 length_sdn, 93 lpi_sdn, 94 width_sdn; 95 #endif 96 97 #if defined(PR_MAX) 98 extern PRINTER *oldp; 99 100 extern PWHEEL *oldS; 101 #endif 102 103 extern short daisy; 104 105 extern char *Local_System; 106 107 extern char *getdflt(); 108 109 extern int ismodel(), 110 output(), 111 verify_form(), 112 do_align(); 113 114 extern void do_fault(), 115 do_mount(), 116 do_printer(), 117 do_pwheel(), 118 done(), 119 fromclass(), 120 newdflt(), 121 options(), 122 rmdest(), 123 startup(), 124 usage(); 125 126 /* Routines/variables needed for labeled systems */ 127 extern void update_dev_dbs(char *, char *, char *); 128 extern int system_labeled; 129 130 131 #if defined(__STDC__) 132 void send_message( int , ... ); 133 extern char ** pick_opts(char *, char **); 134 #else 135 extern void send_message(); 136 extern char ** pick_opts(); 137 #endif 138