xref: /illumos-gate/usr/src/cmd/sh/ctype.c (revision 55fea89dcaa64928bed4327112404dcb3e07b79f)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.9.1.1	*/
27*7c478bd9Sstevel@tonic-gate /*
28*7c478bd9Sstevel@tonic-gate  *	UNIX shell
29*7c478bd9Sstevel@tonic-gate  */
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #include	"defs.h"
32*7c478bd9Sstevel@tonic-gate 
33*7c478bd9Sstevel@tonic-gate #ifdef __STDC__
34*7c478bd9Sstevel@tonic-gate const
35*7c478bd9Sstevel@tonic-gate #endif
36*7c478bd9Sstevel@tonic-gate unsigned char	_ctype1[] =
37*7c478bd9Sstevel@tonic-gate {
38*7c478bd9Sstevel@tonic-gate /*	000	001	002	003	004	005	006	007	*/
39*7c478bd9Sstevel@tonic-gate 	_EOF,	0,	0,	0,	0,	0,	0,	0,
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate /*	bs	ht	nl	vt	np	cr	so	si	*/
42*7c478bd9Sstevel@tonic-gate 	0,	_TAB,	_EOR,	0,	0,	0,	0,	0,
43*7c478bd9Sstevel@tonic-gate 
44*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate /*	sp	!	"	#	$	%	&	'	*/
49*7c478bd9Sstevel@tonic-gate 	_SPC,	0,	_DQU,	0,	_DOL1,	0,	_AMP,	0,
50*7c478bd9Sstevel@tonic-gate 
51*7c478bd9Sstevel@tonic-gate /*	(	)	*	+	,	-	.	/	*/
52*7c478bd9Sstevel@tonic-gate 	_BRA,	_KET,	0,	0,	0,	0,	0,	0,
53*7c478bd9Sstevel@tonic-gate 
54*7c478bd9Sstevel@tonic-gate /*	0	1	2	3	4	5	6	7	*/
55*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
56*7c478bd9Sstevel@tonic-gate 
57*7c478bd9Sstevel@tonic-gate /*	8	9	:	;	<	=	>	?	*/
58*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	_SEM,	_LT,	0,	_GT,	0,
59*7c478bd9Sstevel@tonic-gate 
60*7c478bd9Sstevel@tonic-gate /*	@	A	B	C	D	E	F	G	*/
61*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
62*7c478bd9Sstevel@tonic-gate 
63*7c478bd9Sstevel@tonic-gate /*	H	I	J	K	L	M	N	O	*/
64*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
65*7c478bd9Sstevel@tonic-gate 
66*7c478bd9Sstevel@tonic-gate /*	P	Q	R	S	T	U	V	W	*/
67*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
68*7c478bd9Sstevel@tonic-gate 
69*7c478bd9Sstevel@tonic-gate /*	X	Y	Z	[	\	]	^	_	*/
70*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	_BSL,	0,	_HAT,	0,
71*7c478bd9Sstevel@tonic-gate 
72*7c478bd9Sstevel@tonic-gate /*	`	a	b	c	d	e	f	g	*/
73*7c478bd9Sstevel@tonic-gate 	_LQU,	0,	0,	0,	0,	0,	0,	0,
74*7c478bd9Sstevel@tonic-gate 
75*7c478bd9Sstevel@tonic-gate /*	h	i	j	k	l	m	n	o	*/
76*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
77*7c478bd9Sstevel@tonic-gate 
78*7c478bd9Sstevel@tonic-gate /*	p	q	r	s	t	u	v	w	*/
79*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
80*7c478bd9Sstevel@tonic-gate 
81*7c478bd9Sstevel@tonic-gate /*	x	y	z	{	|	}	~	del	*/
82*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	_BAR,	0,	0,	0
83*7c478bd9Sstevel@tonic-gate };
84*7c478bd9Sstevel@tonic-gate 
85*7c478bd9Sstevel@tonic-gate #ifdef __STDC__
86*7c478bd9Sstevel@tonic-gate const
87*7c478bd9Sstevel@tonic-gate #endif
88*7c478bd9Sstevel@tonic-gate unsigned char	_ctype2[] =
89*7c478bd9Sstevel@tonic-gate {
90*7c478bd9Sstevel@tonic-gate /*	000	001	002	003	004	005	006	007	*/
91*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
92*7c478bd9Sstevel@tonic-gate 
93*7c478bd9Sstevel@tonic-gate /*	bs	ht	nl	vt	np	cr	so	si	*/
94*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
95*7c478bd9Sstevel@tonic-gate 
96*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate 	0,	0,	0,	0,	0,	0,	0,	0,
99*7c478bd9Sstevel@tonic-gate 
100*7c478bd9Sstevel@tonic-gate /*	sp	!	"	#	$	%	&	'	*/
101*7c478bd9Sstevel@tonic-gate 	0,	_PCS,	0,	_NUM,	_DOL2,	0,	0,	0,
102*7c478bd9Sstevel@tonic-gate 
103*7c478bd9Sstevel@tonic-gate /*	(	)	*	+	,	-	.	/	*/
104*7c478bd9Sstevel@tonic-gate 	0,	0,	_AST,	_PLS,	0,	_MIN,	0,	0,
105*7c478bd9Sstevel@tonic-gate 
106*7c478bd9Sstevel@tonic-gate /*	0	1	2	3	4	5	6	7	*/
107*7c478bd9Sstevel@tonic-gate 	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,	_DIG,
108*7c478bd9Sstevel@tonic-gate 
109*7c478bd9Sstevel@tonic-gate /*	8	9	:	;	<	=	>	?	*/
110*7c478bd9Sstevel@tonic-gate 	_DIG,	_DIG,	0,	0,	0,	_EQ,	0,	_QU,
111*7c478bd9Sstevel@tonic-gate 
112*7c478bd9Sstevel@tonic-gate /*	@	A	B	C	D	E	F	G	*/
113*7c478bd9Sstevel@tonic-gate 	_AT,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,
114*7c478bd9Sstevel@tonic-gate 
115*7c478bd9Sstevel@tonic-gate /*	H	I	J	K	L	M	N	O	*/
116*7c478bd9Sstevel@tonic-gate 	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,
117*7c478bd9Sstevel@tonic-gate 
118*7c478bd9Sstevel@tonic-gate /*	P	Q	R	S	T	U	V	W	*/
119*7c478bd9Sstevel@tonic-gate 	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,	_UPC,
120*7c478bd9Sstevel@tonic-gate 
121*7c478bd9Sstevel@tonic-gate /*	X	Y	Z	[	\	]	^	_	*/
122*7c478bd9Sstevel@tonic-gate 	_UPC,	_UPC,	_UPC,	0,	0,	0,	0,	_UPC,
123*7c478bd9Sstevel@tonic-gate 
124*7c478bd9Sstevel@tonic-gate /*	`	a	b	c	d	e	f	g	*/
125*7c478bd9Sstevel@tonic-gate 	0,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,
126*7c478bd9Sstevel@tonic-gate 
127*7c478bd9Sstevel@tonic-gate /*	h	i	j	k	l	m	n	o	*/
128*7c478bd9Sstevel@tonic-gate 	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,
129*7c478bd9Sstevel@tonic-gate 
130*7c478bd9Sstevel@tonic-gate /*	p	q	r	s	t	u	v	w	*/
131*7c478bd9Sstevel@tonic-gate 	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,	_LPC,
132*7c478bd9Sstevel@tonic-gate 
133*7c478bd9Sstevel@tonic-gate /*	x	y	z	{	|	}	~	del	*/
134*7c478bd9Sstevel@tonic-gate 	_LPC,	_LPC,	_LPC,	_CBR,	0,	_CKT,	0,	0
135*7c478bd9Sstevel@tonic-gate };
136