xref: /illumos-gate/usr/src/cmd/lp/lib/requests/r_head.c (revision bd97c7ce2344fa3252d8785c35895490916bc79b)
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 /*
23  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /* EMACS_MODES: !fill, lnumb, !overwrite, !nodelete, !picture */
31 
32 #include "sys/types.h"
33 
34 #include "lp.h"
35 #include "requests.h"
36 
37 struct {
38 	char			*v;
39 	short			len;
40 }			reqheadings[RQ_MAX] = {
41 
42 #define	ENTRY(X)	X, sizeof(X)-1
43 
44 	ENTRY("C "),	/* RQ_COPIES */
45 	ENTRY("D "),	/* RQ_DEST */
46 	ENTRY("F "),	/* RQ_FILE */
47 	ENTRY("f "),	/* RQ_FORM */
48 	ENTRY("H "),	/* RQ_HANDL */
49 	ENTRY("N "),	/* RQ_NOTIFY */
50 	ENTRY("O "),	/* RQ_OPTS */
51 	ENTRY("P "),	/* RQ_PRIOR */
52 	ENTRY("p "),	/* RQ_PGES */
53 	ENTRY("S "),	/* RQ_CHARS */
54 	ENTRY("T "),	/* RQ_TITLE */
55 	ENTRY("Y "),	/* RQ_MODES */
56 	ENTRY("t "),	/* RQ_TYPE */
57 	ENTRY("U "),	/* RQ_USER */
58 	ENTRY("r "),	/* RQ_RAW */
59 	ENTRY("a "),	/* RQ_FAST */
60 	ENTRY("s "),	/* RQ_STAT */
61 	ENTRY("v "),	/* RQ_VERSION */
62 /*	ENTRY("x "), */	/* reserved (slow filter) */
63 /*	ENTRY("y "), */	/* reserved (fast filter) */
64 /*	ENTRY("z "), */	/* reserved (printer name) */
65 
66 #undef	ENTRY
67 
68 };
69