1 /*
2  * Copyright (c) 1994  Sony Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining
5  * a copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sublicense, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be
13  * included in all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18  * IN NO EVENT SHALL SONY CORPORATION BE LIABLE FOR ANY CLAIM,
19  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
21  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  *
23  * Except as contained in this notice, the name of Sony Corporation
24  * shall not be used in advertising or otherwise to promote the sale, use
25  * or other dealings in this Software without prior written authorization
26  * from Sony Corporation.
27  *
28  */
29 
30 /*
31  * $SonyRCSfile: sj.h,v $
32  * $SonyRevision: 1.2 $
33  * $SonyDate: 1996/02/23 11:04:02 $
34  */
35 
36 
37 #include "sj_sysvdef.h"
38 #include <stdio.h>
39 #include <signal.h>
40 #include <ctype.h>
41 #include <sys/types.h>
42 #include <sys/stat.h>
43 #ifdef SVR4
44 #ifdef __sony_news
45 #include "/usr/include/sys/ioctl.h"
46 #endif
47 #include <sys/ttold.h>
48 #include <sys/termio.h>
49 #else
50 #include <sys/ioctl.h>
51 #endif
52 #include <sys/wait.h>
53 #include <sys/time.h>
54 #include <sys/param.h>
55 #ifdef HUPCL
56 #undef HUPCL
57 #endif
58 
59 
60 #include <pwd.h>
61 #ifdef SVR4
62 #include <sac.h>
63 #include <utmpx.h>
64 #else
65 #include <utmp.h>
66 #endif
67 #if defined(__sony_news) && defined(SVR4)
68 #include <jctype.h>
69 #endif
70 
71 #if defined(BSD4_3) || defined(SVR4)
72 #define BSD43
73 #endif
74 
75 #ifdef __sony_news
76 #ifdef KM_EUC
77 #ifndef EUC
78 #define EUC
79 #endif
80 #endif
81 #else
82 #ifndef EUC
83 #define EUC
84 #endif
85 #endif
86 
87 
88 
89 #ifdef NOTDEF
90 #define WBUFF		512
91 #endif
92 #define BUFFLENGTH	128
93 #define	LONGLENGTH	256
94 #define	SHORTLENGTH	32
95 #define DOUONLEN	32
96 #define DOUON_N		257  /* 256 + 1 (Zenkaku Kana) */
97 #define SHORTBUFFSIZE	16
98 #define RSIZE		256
99 
100 #define TCBUFSIZE	1024
101 #define AREASIZE	256
102 
103 #define MAXLINE		256
104 #define MAXWORD		256
105 #define WORDN		32
106 
107 #define KB_KANA		0
108 #define KB_ROMA		1
109 
110 
111 #define       MAXSERVER       16
112 
113