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