xref: /titanic_54/usr/src/cmd/lp/cmd/lpadmin/lpadmin.h (revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #define BEGIN_CRITICAL	{ ignore_signals(); {
337c478bd9Sstevel@tonic-gate #define END_CRITICAL	} trap_signals(); }
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate extern void		ignore_signals(),
367c478bd9Sstevel@tonic-gate 			trap_signals();
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate extern int		a,
397c478bd9Sstevel@tonic-gate 			banner,
407c478bd9Sstevel@tonic-gate #if	defined(DIRECT_ACCESS)
417c478bd9Sstevel@tonic-gate 			C,
427c478bd9Sstevel@tonic-gate #endif
437c478bd9Sstevel@tonic-gate 			filebreak,
447c478bd9Sstevel@tonic-gate 			h,
457c478bd9Sstevel@tonic-gate 			j,
467c478bd9Sstevel@tonic-gate 			l,
477c478bd9Sstevel@tonic-gate 			M,
487c478bd9Sstevel@tonic-gate 			t,
497c478bd9Sstevel@tonic-gate 			o,
507c478bd9Sstevel@tonic-gate 			Q,
517c478bd9Sstevel@tonic-gate 			W,
527c478bd9Sstevel@tonic-gate 			scheduler_active;
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate extern char		*A,
557c478bd9Sstevel@tonic-gate 			*c,
567c478bd9Sstevel@tonic-gate 			*cpi,
577c478bd9Sstevel@tonic-gate 			*d,
587c478bd9Sstevel@tonic-gate 			*D,
597c478bd9Sstevel@tonic-gate 			*e,
607c478bd9Sstevel@tonic-gate 			*f,
617c478bd9Sstevel@tonic-gate 			**f_allow,
627c478bd9Sstevel@tonic-gate 			**f_deny,
637c478bd9Sstevel@tonic-gate 			**p_add,
647c478bd9Sstevel@tonic-gate 			**p_remove,
657c478bd9Sstevel@tonic-gate 			*P,
667c478bd9Sstevel@tonic-gate 			*F,
677c478bd9Sstevel@tonic-gate 			**H,
687c478bd9Sstevel@tonic-gate 			*i,
697c478bd9Sstevel@tonic-gate 			**I,
707c478bd9Sstevel@tonic-gate 			*length,
717c478bd9Sstevel@tonic-gate 			*lpi,
727c478bd9Sstevel@tonic-gate 			*m,
737c478bd9Sstevel@tonic-gate 			modifications[128],
747c478bd9Sstevel@tonic-gate #ifdef LP_USE_PAPI_ATTR
757c478bd9Sstevel@tonic-gate 			*n_opt,
767c478bd9Sstevel@tonic-gate #endif
777c478bd9Sstevel@tonic-gate 			*p,
787c478bd9Sstevel@tonic-gate 			*r,
797c478bd9Sstevel@tonic-gate 			*s,
807c478bd9Sstevel@tonic-gate 			*stty_opt,
817c478bd9Sstevel@tonic-gate 			**o_options,
827c478bd9Sstevel@tonic-gate 			**S,
837c478bd9Sstevel@tonic-gate 			**T,
847c478bd9Sstevel@tonic-gate 			*u,
857c478bd9Sstevel@tonic-gate 			**u_allow,
867c478bd9Sstevel@tonic-gate 			**u_deny,
877c478bd9Sstevel@tonic-gate 			*U,
887c478bd9Sstevel@tonic-gate 			*v,
897c478bd9Sstevel@tonic-gate 			*width,
907c478bd9Sstevel@tonic-gate 			*x;
917c478bd9Sstevel@tonic-gate 
927c478bd9Sstevel@tonic-gate #if	defined(LPUSER)
937c478bd9Sstevel@tonic-gate extern SCALED		cpi_sdn,
947c478bd9Sstevel@tonic-gate 			length_sdn,
957c478bd9Sstevel@tonic-gate 			lpi_sdn,
967c478bd9Sstevel@tonic-gate 			width_sdn;
977c478bd9Sstevel@tonic-gate #endif
987c478bd9Sstevel@tonic-gate 
997c478bd9Sstevel@tonic-gate #if	defined(PR_MAX)
1007c478bd9Sstevel@tonic-gate extern PRINTER		*oldp;
1017c478bd9Sstevel@tonic-gate 
1027c478bd9Sstevel@tonic-gate extern PWHEEL		*oldS;
1037c478bd9Sstevel@tonic-gate #endif
1047c478bd9Sstevel@tonic-gate 
1057c478bd9Sstevel@tonic-gate extern short		daisy;
1067c478bd9Sstevel@tonic-gate 
1077c478bd9Sstevel@tonic-gate extern char		*Local_System;
1087c478bd9Sstevel@tonic-gate 
1097c478bd9Sstevel@tonic-gate extern char		*getdflt();
1107c478bd9Sstevel@tonic-gate 
1117c478bd9Sstevel@tonic-gate extern int		ismodel(),
1127c478bd9Sstevel@tonic-gate 			output(),
1137c478bd9Sstevel@tonic-gate 			verify_form(),
1147c478bd9Sstevel@tonic-gate 			do_align();
1157c478bd9Sstevel@tonic-gate 
1167c478bd9Sstevel@tonic-gate extern void		do_fault(),
1177c478bd9Sstevel@tonic-gate 			do_mount(),
1187c478bd9Sstevel@tonic-gate 			do_printer(),
1197c478bd9Sstevel@tonic-gate 			do_pwheel(),
1207c478bd9Sstevel@tonic-gate 			done(),
1217c478bd9Sstevel@tonic-gate 			fromclass(),
1227c478bd9Sstevel@tonic-gate 			newdflt(),
1237c478bd9Sstevel@tonic-gate 			options(),
1247c478bd9Sstevel@tonic-gate 			rmdest(),
1257c478bd9Sstevel@tonic-gate 			startup(),
1267c478bd9Sstevel@tonic-gate 			usage();
1277c478bd9Sstevel@tonic-gate 
128*45916cd2Sjpk /* Routines/variables needed for labeled systems */
129*45916cd2Sjpk extern void		update_dev_dbs(char *, char *, char *);
130*45916cd2Sjpk extern int		system_labeled;
131*45916cd2Sjpk 
1327c478bd9Sstevel@tonic-gate 
1337c478bd9Sstevel@tonic-gate #if	defined(__STDC__)
1347c478bd9Sstevel@tonic-gate void			send_message( int , ... );
1357c478bd9Sstevel@tonic-gate extern char ** pick_opts(char *, char **);
1367c478bd9Sstevel@tonic-gate #else
1377c478bd9Sstevel@tonic-gate extern void		send_message();
1387c478bd9Sstevel@tonic-gate extern char ** pick_opts();
1397c478bd9Sstevel@tonic-gate #endif
140