17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*45916cd2Sjpk * Common Development and Distribution License (the "License"). 6*45916cd2Sjpk * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 227c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate /* 26*45916cd2Sjpk * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 277c478bd9Sstevel@tonic-gate * Use is subject to license terms. 287c478bd9Sstevel@tonic-gate */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #define BEGIN_CRITICAL { ignore_signals(); { 317c478bd9Sstevel@tonic-gate #define END_CRITICAL } trap_signals(); } 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate extern void ignore_signals(), 347c478bd9Sstevel@tonic-gate trap_signals(); 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate extern int a, 377c478bd9Sstevel@tonic-gate banner, 387c478bd9Sstevel@tonic-gate #if defined(DIRECT_ACCESS) 397c478bd9Sstevel@tonic-gate C, 407c478bd9Sstevel@tonic-gate #endif 417c478bd9Sstevel@tonic-gate filebreak, 427c478bd9Sstevel@tonic-gate h, 437c478bd9Sstevel@tonic-gate j, 447c478bd9Sstevel@tonic-gate l, 457c478bd9Sstevel@tonic-gate M, 467c478bd9Sstevel@tonic-gate t, 477c478bd9Sstevel@tonic-gate o, 487c478bd9Sstevel@tonic-gate Q, 497c478bd9Sstevel@tonic-gate W, 507c478bd9Sstevel@tonic-gate scheduler_active; 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate extern char *A, 537c478bd9Sstevel@tonic-gate *c, 547c478bd9Sstevel@tonic-gate *cpi, 557c478bd9Sstevel@tonic-gate *d, 567c478bd9Sstevel@tonic-gate *D, 577c478bd9Sstevel@tonic-gate *e, 587c478bd9Sstevel@tonic-gate *f, 597c478bd9Sstevel@tonic-gate **f_allow, 607c478bd9Sstevel@tonic-gate **f_deny, 617c478bd9Sstevel@tonic-gate **p_add, 627c478bd9Sstevel@tonic-gate **p_remove, 637c478bd9Sstevel@tonic-gate *P, 647c478bd9Sstevel@tonic-gate *F, 657c478bd9Sstevel@tonic-gate **H, 667c478bd9Sstevel@tonic-gate *i, 677c478bd9Sstevel@tonic-gate **I, 687c478bd9Sstevel@tonic-gate *length, 697c478bd9Sstevel@tonic-gate *lpi, 707c478bd9Sstevel@tonic-gate *m, 717c478bd9Sstevel@tonic-gate modifications[128], 727c478bd9Sstevel@tonic-gate #ifdef LP_USE_PAPI_ATTR 737c478bd9Sstevel@tonic-gate *n_opt, 747c478bd9Sstevel@tonic-gate #endif 757c478bd9Sstevel@tonic-gate *p, 767c478bd9Sstevel@tonic-gate *r, 777c478bd9Sstevel@tonic-gate *s, 787c478bd9Sstevel@tonic-gate *stty_opt, 797c478bd9Sstevel@tonic-gate **o_options, 807c478bd9Sstevel@tonic-gate **S, 817c478bd9Sstevel@tonic-gate **T, 827c478bd9Sstevel@tonic-gate *u, 837c478bd9Sstevel@tonic-gate **u_allow, 847c478bd9Sstevel@tonic-gate **u_deny, 857c478bd9Sstevel@tonic-gate *U, 867c478bd9Sstevel@tonic-gate *v, 877c478bd9Sstevel@tonic-gate *width, 887c478bd9Sstevel@tonic-gate *x; 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate #if defined(LPUSER) 917c478bd9Sstevel@tonic-gate extern SCALED cpi_sdn, 927c478bd9Sstevel@tonic-gate length_sdn, 937c478bd9Sstevel@tonic-gate lpi_sdn, 947c478bd9Sstevel@tonic-gate width_sdn; 957c478bd9Sstevel@tonic-gate #endif 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate #if defined(PR_MAX) 987c478bd9Sstevel@tonic-gate extern PRINTER *oldp; 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate extern PWHEEL *oldS; 1017c478bd9Sstevel@tonic-gate #endif 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate extern short daisy; 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate extern char *Local_System; 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate extern char *getdflt(); 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate extern int ismodel(), 1107c478bd9Sstevel@tonic-gate output(), 1117c478bd9Sstevel@tonic-gate verify_form(), 1127c478bd9Sstevel@tonic-gate do_align(); 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gate extern void do_fault(), 1157c478bd9Sstevel@tonic-gate do_mount(), 1167c478bd9Sstevel@tonic-gate do_printer(), 1177c478bd9Sstevel@tonic-gate do_pwheel(), 1187c478bd9Sstevel@tonic-gate done(), 1197c478bd9Sstevel@tonic-gate fromclass(), 1207c478bd9Sstevel@tonic-gate newdflt(), 1217c478bd9Sstevel@tonic-gate options(), 1227c478bd9Sstevel@tonic-gate rmdest(), 1237c478bd9Sstevel@tonic-gate startup(), 1247c478bd9Sstevel@tonic-gate usage(); 1257c478bd9Sstevel@tonic-gate 126*45916cd2Sjpk /* Routines/variables needed for labeled systems */ 127*45916cd2Sjpk extern void update_dev_dbs(char *, char *, char *); 128*45916cd2Sjpk extern int system_labeled; 129*45916cd2Sjpk 1307c478bd9Sstevel@tonic-gate 1317c478bd9Sstevel@tonic-gate #if defined(__STDC__) 1327c478bd9Sstevel@tonic-gate void send_message( int , ... ); 1337c478bd9Sstevel@tonic-gate extern char ** pick_opts(char *, char **); 1347c478bd9Sstevel@tonic-gate #else 1357c478bd9Sstevel@tonic-gate extern void send_message(); 1367c478bd9Sstevel@tonic-gate extern char ** pick_opts(); 1377c478bd9Sstevel@tonic-gate #endif 138