aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/sj3-lib
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-08-19 19:37:29 +0800
committerasami <asami@FreeBSD.org>1996-08-19 19:37:29 +0800
commit855f3d287ddbe061552fe48f59aaaaa3fa774a39 (patch)
treee79737d3d879e2e139f0e3d2a4b2803540a86794 /japanese/sj3-lib
parent4c2281e02d7b31cc48d1f41977dfe3f0e024079e (diff)
downloadfreebsd-ports-graphics-855f3d287ddbe061552fe48f59aaaaa3fa774a39.tar.gz
freebsd-ports-graphics-855f3d287ddbe061552fe48f59aaaaa3fa774a39.tar.zst
freebsd-ports-graphics-855f3d287ddbe061552fe48f59aaaaa3fa774a39.zip
Yet another kanji input method.
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
Diffstat (limited to 'japanese/sj3-lib')
-rw-r--r--japanese/sj3-lib/Makefile31
-rw-r--r--japanese/sj3-lib/distinfo1
-rw-r--r--japanese/sj3-lib/files/patch-aa1844
-rw-r--r--japanese/sj3-lib/pkg-comment1
-rw-r--r--japanese/sj3-lib/pkg-descr20
-rw-r--r--japanese/sj3-lib/pkg-plist23
6 files changed, 1920 insertions, 0 deletions
diff --git a/japanese/sj3-lib/Makefile b/japanese/sj3-lib/Makefile
new file mode 100644
index 00000000000..e2e9f5ab92c
--- /dev/null
+++ b/japanese/sj3-lib/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: SJ3
+# Version required: 2.0.1.13
+# Date created: 10 Aug 1996
+# Whom: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= sj3-2.0.1.13
+CATEGORIES+= japanese
+MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
+ ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
+
+MAINTAINER= hidekazu@cs.titech.ac.jp
+
+# This port requires xmkmf but installs in /usr/local
+#
+# NOTE : You must not use 'xmkmf -a', because the running 'make depend' caused a error.
+
+do-configure:
+ ( cd $(WRKDIR)/sj3-2.0.1.13 ; xmkmf ; make Makefiles )
+
+post-install:
+.if !defined(NOMANCOMPRESS)
+ gzip -9nf ${PREFIX}/man/ja_JP.EUC/man1/sj3.1
+ gzip -9nf ${PREFIX}/man/ja_JP.EUC/man1/sj3dic.1
+ gzip -9nf ${PREFIX}/man/ja_JP.EUC/man1/sj3mkdic.1
+ gzip -9nf ${PREFIX}/man/ja_JP.EUC/man1/sj3serv.1
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/sj3-lib/distinfo b/japanese/sj3-lib/distinfo
new file mode 100644
index 00000000000..9d39008a5ba
--- /dev/null
+++ b/japanese/sj3-lib/distinfo
@@ -0,0 +1 @@
+MD5 (sj3-2.0.1.13.tar.gz) = f29a04e72a657557f7436268ccdafe49
diff --git a/japanese/sj3-lib/files/patch-aa b/japanese/sj3-lib/files/patch-aa
new file mode 100644
index 00000000000..2860f3f77b7
--- /dev/null
+++ b/japanese/sj3-lib/files/patch-aa
@@ -0,0 +1,1844 @@
+diff -arcN ../sj3-2.0.1.13.org/Imakefile ./Imakefile
+*** ../sj3-2.0.1.13.org/Imakefile Tue May 30 21:30:16 1995
+--- ./Imakefile Mon Aug 12 11:34:47 1996
+***************
+*** 35,41 ****
+ #define IHaveSubdirs
+ #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
+
+! SUBDIRS = dict kanakan server sj3lib sj3 sj3dic sj3stat demo
+
+ MakeSubdirs($(SUBDIRS))
+ DependSubdirs($(SUBDIRS))
+--- 35,46 ----
+ #define IHaveSubdirs
+ #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
+
+! /*
+! * Add make rules to install manpages and other documents.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! SUBDIRS = dict doc kanakan server sj3lib sj3 sj3dic sj3stat demo
+
+ MakeSubdirs($(SUBDIRS))
+ DependSubdirs($(SUBDIRS))
+diff -arcN ../sj3-2.0.1.13.org/README ./README
+*** ../sj3-2.0.1.13.org/README Thu Mar 21 14:59:47 1996
+--- ./README Tue Aug 13 03:10:23 1996
+***************
+*** 20,40 ****
+
+ Following files are installed after make install:
+
+! /usr/dict/sj3/sj3main.dic Main dictionary(used by sj3serv)
+! /usr/bin/sj3serv Kana-Kanji conversion server
+! /usr/bin/sj3 Kana-Kanji conversion client
+! /usr/bin/sj3dic User dictionary utility
+! /usr/bin/sj3mkdic Dictionary converter
+! /usr/bin/sj3stat Utility to show status of sj3serv
+! /usr/include/sj3lib.h Header file for sj3lib
+! /usr/lib/libsj3lib.a Kana-Kanji conversion library
+! /usr/lib/sj3/serverrc Configuration file for sj3serv
+! /usr/lib/sj3/sjrc Configuration file for sj3
+! /usr/lib/sj3/sjrk Roma-Kana conversion file for sj3
+! /usr/lib/sj3/cvtkey.xterm Mapping table between function key
+! /usr/lib/sj3/cvtkey.news and escape sequence for sj3
+! /usr/lib/sj3/cvtkey.nws511
+! /usr/lib/sj3/cvtkey.nws517
+
+ * Source tree
+ dict/dict Main dictionary(text file)
+--- 20,49 ----
+
+ Following files are installed after make install:
+
+! /usr/local/lib/sj3/dict/sj3main.dic Main dictionary(used by sj3serv)
+! /usr/local/bin/sj3serv Kana-Kanji conversion server
+! /usr/local/bin/sj3 Kana-Kanji conversion client
+! /usr/local/bin/sj3dic User dictionary utility
+! /usr/local/bin/sj3mkdic Dictionary converter
+! /usr/local/bin/sj3stat Utility to show status of sj3serv
+! /usr/local/include/sj3lib.h Header file for sj3lib
+! /usr/local/lib/libsj3lib.a Kana-Kanji conversion library
+! /usr/local/man/ja_JP.EUC/man1/sj3.1 sj3's online manual(Japanese)
+! /usr/local/man/ja_JP.EUC/man1/sj3dic.1 sj3dic's online manual(Japanese)
+! /usr/local/man/ja_JP.EUC/man1/sj3mkdic.1 sj3mkdic's online manual(Japanese)
+! /usr/local/man/ja_JP.EUC/man1/sj3serv.1 sj3serv's online manual(Japanese)
+! /usr/local/lib/sj3/serverrc Configuration file for sj3serv
+! /usr/local/lib/sj3/sjrc Configuration file for sj3
+! /usr/local/lib/sj3/sjrk Roma-Kana conversion file for sj3
+! /usr/local/lib/sj3/cvtkey.xterm Mapping table between function key
+! /usr/local/lib/sj3/cvtkey.news and escape sequence for sj3
+! /usr/local/lib/sj3/cvtkey.nws511
+! /usr/local/lib/sj3/cvtkey.nws517
+! /usr/local/lib/sj3/Nihongo.ps.Z Operation guide for SJ3(Japanese)
+! /usr/local/lib/sj3/hinsi.ms Documents(Japanese)
+! /usr/local/lib/sj3/makedict.ms Documents(Japanese)
+! /usr/local/lib/sj3/sj3lib.ms Documents(Japanese)
+! /usr/local/lib/sj3/sj3serv.ms Documents(Japanese)
+
+ * Source tree
+ dict/dict Main dictionary(text file)
+diff -arcN ../sj3-2.0.1.13.org/README.eucJP ./README.eucJP
+*** ../sj3-2.0.1.13.org/README.eucJP Thu Mar 21 15:00:11 1996
+--- ./README.eucJP Tue Aug 13 03:10:45 1996
+***************
+*** 28,48 ****
+
+ この操作によりインストールされるファイルをいかに示します。
+
+! /usr/dict/sj3/sj3main.dic sj3serv が使用するメイン辞書
+! /usr/bin/sj3serv 仮名漢字変換サーバ
+! /usr/bin/sj3 端末用仮名漢字変換クライアント
+! /usr/bin/sj3dic ユーザ辞書ユーティリティ
+! /usr/bin/sj3mkdic 辞書生成ツール
+! /usr/bin/sj3stat sj3serv への接続状況表示ユーティリティ
+! /usr/include/sj3lib.h 仮名漢字変換ライブラリのヘッダファイル
+! /usr/lib/libsj3lib.a 仮名漢字変換ライブラリ
+! /usr/lib/sj3/serverrc sj3serv の設定ファイル
+! /usr/lib/sj3/sjrc sj3 の設定ファイル
+! /usr/lib/sj3/sjrk sj3 のローマ字仮名変換設定ファイル
+! /usr/lib/sj3/cvtkey.xterm sj3 のファンクションキーとエスケープ
+! /usr/lib/sj3/cvtkey.news シーケンスの対応を設定するファイル。
+! /usr/lib/sj3/cvtkey.nws511
+! /usr/lib/sj3/cvtkey.nws517
+
+
+ ・ディレクトリ構成
+--- 28,57 ----
+
+ この操作によりインストールされるファイルをいかに示します。
+
+! /usr/local/lib/sj3/dict/sj3main.dic sj3serv が使用するメイン辞書
+! /usr/local/bin/sj3serv 仮名漢字変換サーバ
+! /usr/local/bin/sj3 端末用仮名漢字変換クライアント
+! /usr/local/bin/sj3dic ユーザ辞書ユーティリティ
+! /usr/local/bin/sj3mkdic 辞書生成ツール
+! /usr/local/bin/sj3stat sj3serv への接続状況表示ユーティリティ
+! /usr/local/include/sj3lib.h 仮名漢字変換ライブラリのヘッダファイル
+! /usr/local/lib/libsj3lib.a 仮名漢字変換ライブラリ
+! /usr/local/man/ja_JP.EUC/man1/sj3.1 sj3 のオンラインマニュアル
+! /usr/local/man/ja_JP.EUC/man1/sj3dic.1 sj3dic のオンラインマニュアル
+! /usr/local/man/ja_JP.EUC/man1/sj3mkdic.1 sj3mkdic のオンラインマニュアル
+! /usr/local/man/ja_JP.EUC/man1/sj3serv.1 sj3serv のオンラインマニュアル
+! /usr/local/lib/sj3/serverrc sj3serv の設定ファイル
+! /usr/local/lib/sj3/sjrc sj3 の設定ファイル
+! /usr/local/lib/sj3/sjrk sj3 のローマ字仮名変換設定ファイル
+! /usr/local/lib/sj3/cvtkey.xterm sj3 のファンクションキーとエスケープ
+! /usr/local/lib/sj3/cvtkey.news シーケンスの対応を設定するファイル。
+! /usr/local/lib/sj3/cvtkey.nws511
+! /usr/local/lib/sj3/cvtkey.nws517
+! /usr/local/lib/sj3/Nihongo.ps.Z SJ3 日本語入力ガイド
+! /usr/local/lib/sj3/hinsi.ms ドキュメント
+! /usr/local/lib/sj3/makedict.ms ドキュメント
+! /usr/local/lib/sj3/sj3lib.ms ドキュメント
+! /usr/local/lib/sj3/sj3serv.ms ドキュメント
+
+
+ ・ディレクトリ構成
+diff -arcN ../sj3-2.0.1.13.org/demo/sample.c ./demo/sample.c
+*** ../sj3-2.0.1.13.org/demo/sample.c Fri Jun 3 17:00:16 1994
+--- ./demo/sample.c Mon Aug 12 12:30:29 1996
+***************
+*** 44,50 ****
+ #include "wchar16.h"
+
+ #define RETURN(c) ((c == '\n') || (c == '\r'))
+! #define RKFILE "/usr/lib/sj3/sjrk"
+ #define LOCALHOST "localhost"
+ #define HBUFSIZ 512
+ #define QBUFSIZ 256
+--- 44,54 ----
+ #include "wchar16.h"
+
+ #define RETURN(c) ((c == '\n') || (c == '\r'))
+! /*
+! * Change a default value.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! #define RKFILE "/usr/local/lib/sj3/sjrk"
+ #define LOCALHOST "localhost"
+ #define HBUFSIZ 512
+ #define QBUFSIZ 256
+diff -arcN ../sj3-2.0.1.13.org/dict/dict/Imakefile ./dict/dict/Imakefile
+*** ../sj3-2.0.1.13.org/dict/dict/Imakefile Fri Dec 9 20:27:05 1994
+--- ./dict/dict/Imakefile Tue Aug 13 03:14:31 1996
+***************
+*** 32,38 ****
+ * $SonyDate: 1994/12/09 11:27:05 $
+ */
+
+! DICTDIR = /usr/dict/sj3
+
+ TOOL_DIR = ../tool
+ TOOL_NAME = sj3mkdic
+--- 32,43 ----
+ * $SonyDate: 1994/12/09 11:27:05 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DICTDIR = /usr/local/lib/sj3/dict
+
+ TOOL_DIR = ../tool
+ TOOL_NAME = sj3mkdic
+***************
+*** 44,52 ****
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = staff
+ #endif
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 444
+
+ all: $(OBJS)
+
+--- 49,57 ----
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = bin
+ #endif
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 444
+
+ all: $(OBJS)
+
+diff -arcN ../sj3-2.0.1.13.org/dict/tool/Imakefile ./dict/tool/Imakefile
+*** ../sj3-2.0.1.13.org/dict/tool/Imakefile Fri Dec 9 20:27:05 1994
+--- ./dict/tool/Imakefile Mon Aug 12 11:38:02 1996
+***************
+*** 32,47 ****
+ * $SonyDate: 1994/12/09 11:27:05 $
+ */
+
+! DEST = /usr/bin
+
+ INCLUDES = -I../include -I../../include
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = staff
+ #endif
+
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 755
+
+ SRCS = \
+ char.c \
+--- 32,52 ----
+ * $SonyDate: 1994/12/09 11:27:05 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DEST = /usr/local/bin
+
+ INCLUDES = -I../include -I../../include
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = bin
+ #endif
+
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 755
+
+ SRCS = \
+ char.c \
+diff -arcN ../sj3-2.0.1.13.org/doc/Imakefile ./doc/Imakefile
+*** ../sj3-2.0.1.13.org/doc/Imakefile Thu Jan 1 09:00:00 1970
+--- ./doc/Imakefile Mon Aug 12 11:34:22 1996
+***************
+*** 0 ****
+--- 1,40 ----
++ /*
++ * Copyright (c) 1991-1994 Sony Corporation
++ *
++ * Permission is hereby granted, free of charge, to any person obtaining
++ * a copy of this software and associated documentation files (the
++ * "Software"), to deal in the Software without restriction, including
++ * without limitation the rights to use, copy, modify, merge, publish,
++ * distribute, sublicense, and/or sell copies of the Software, and to
++ * permit persons to whom the Software is furnished to do so, subject to
++ * the following conditions:
++ *
++ * The above copyright notice and this permission notice shall be
++ * included in all copies or substantial portions of the Software.
++ *
++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++ * IN NO EVENT SHALL SONY CORPORATION BE LIABLE FOR ANY CLAIM,
++ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
++ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++ *
++ * Except as contained in this notice, the name of Sony Corporation
++ * shall not be used in advertising or otherwise to promote the sale, use
++ * or other dealings in this Software without prior written authorization
++ * from Sony Corporation.
++ */
++
++ /*
++ * Add make rules to install manpages and other documents.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++
++ #define IHaveSubdirs
++ #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
++
++ SUBDIRS = doc man
++
++ MakeSubdirs($(SUBDIRS))
++ DependSubdirs($(SUBDIRS))
+diff -arcN ../sj3-2.0.1.13.org/doc/doc/Imakefile ./doc/doc/Imakefile
+*** ../sj3-2.0.1.13.org/doc/doc/Imakefile Thu Jan 1 09:00:00 1970
+--- ./doc/doc/Imakefile Mon Aug 12 11:34:34 1996
+***************
+*** 0 ****
+--- 1,41 ----
++ /*
++ * Copyright (c) 1994 Sony Corporation
++ *
++ * Permission is hereby granted, free of charge, to any person obtaining
++ * a copy of this software and associated documentation files (the
++ * "Software"), to deal in the Software without restriction, including
++ * without limitation the rights to use, copy, modify, merge, publish,
++ * distribute, sublicense, and/or sell copies of the Software, and to
++ * permit persons to whom the Software is furnished to do so, subject to
++ * the following conditions:
++ *
++ * The above copyright notice and this permission notice shall be
++ * included in all copies or substantial portions of the Software.
++ *
++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++ * IN NO EVENT SHALL SONY CORPORATION BE LIABLE FOR ANY CLAIM,
++ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
++ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++ *
++ * Except as contained in this notice, the name of Sony Corporation
++ * shall not be used in advertising or otherwise to promote the sale, use
++ * or other dealings in this Software without prior written authorization
++ * from Sony Corporation.
++ */
++
++ /*
++ * Add make rules to install other documents.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++
++ CONFDIR = /usr/local/lib/sj3
++ DOCLIST = Nihongo.ps.Z hinsi.ms makedict.ms sj3lib.ms sj3serv.ms
++
++ all::
++
++ depend::
++
++ InstallMultiple($(DOCLIST),$(CONFDIR))
+diff -arcN ../sj3-2.0.1.13.org/doc/doc/sj3lib.ms ./doc/doc/sj3lib.ms
+*** ../sj3-2.0.1.13.org/doc/doc/sj3lib.ms Fri Jun 3 17:00:49 1994
+--- ./doc/doc/sj3lib.ms Tue Aug 13 03:17:26 1996
+***************
+*** 56,62 ****
+ .IP ・
+ メイン辞書、ユーザ辞書、学習ファイルは、接続するサーバの動作しているマシン上のものが使用されます。
+ .br
+! これらのファイルは、デフォルトではディレクトリ \fB/usr/dict/sj3\fP の下におかれますが、サーバのセットアップファイルにより変更が可能です。
+ .IP ・
+ ユーザ辞書と学習ファイルは、関数 sj3_open で指定されたユーザ名を USER と
+ すれば、\fBuser/USER/private.dic\fP と \fBuser/USER/study.dat\fP です。
+--- 56,62 ----
+ .IP ・
+ メイン辞書、ユーザ辞書、学習ファイルは、接続するサーバの動作しているマシン上のものが使用されます。
+ .br
+! これらのファイルは、デフォルトではディレクトリ \fB/usr/local/lib/sj3/dict\fP の下におかれますが、サーバのセットアップファイルにより変更が可能です。
+ .IP ・
+ ユーザ辞書と学習ファイルは、関数 sj3_open で指定されたユーザ名を USER と
+ すれば、\fBuser/USER/private.dic\fP と \fBuser/USER/study.dat\fP です。
+***************
+*** 91,97 ****
+ サーバと正常に接続できたときには 0 を、何かエラーのあったときには 0 以外の
+ エラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+--- 91,97 ----
+ サーバと正常に接続できたときには 0 を、何かエラーのあったときには 0 以外の
+ エラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+***************
+*** 138,144 ****
+ サーバとの使用を正常に終了できたときには 0 を、
+ 何かエラーのあったときには 0 以外のエラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+--- 138,144 ----
+ サーバとの使用を正常に終了できたときには 0 を、
+ 何かエラーのあったときには 0 以外のエラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+***************
+*** 187,193 ****
+ 変換結果の漢字文字列を、配列 \fBstruct bunsetu bun[]\fP に
+ 各文節に関する情報をセットします。
+ .br
+! \fBstruct bunsetu\fP はヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 宣言されている以下のような構造体です。
+ .sp
+ .RS
+--- 187,193 ----
+ 変換結果の漢字文字列を、配列 \fBstruct bunsetu bun[]\fP に
+ 各文節に関する情報をセットします。
+ .br
+! \fBstruct bunsetu\fP はヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 宣言されている以下のような構造体です。
+ .sp
+ .RS
+***************
+*** 417,423 ****
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義される以下の品詞のうちの一つです。
+ .sp
+ .RS
+--- 417,423 ----
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義される以下の品詞のうちの一つです。
+ .sp
+ .RS
+***************
+*** 445,451 ****
+ 登録できたときには 0 が、登録できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義され、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+--- 445,451 ----
+ 登録できたときには 0 が、登録できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義され、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+***************
+*** 519,525 ****
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードは \fB/usr/include/sj3lib.h\fP で定義される以下の品詞の
+ うちの一つです。
+ .sp
+ .RS
+--- 519,525 ----
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードは \fB/usr/local/include/sj3lib.h\fP で定義される以下の品詞の
+ うちの一つです。
+ .sp
+ .RS
+***************
+*** 547,553 ****
+ 削除できたときには 0 が、削除できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスは \fB/usr/include/sj3lib.h\fP で定義され、
+ 詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+--- 547,553 ----
+ 削除できたときには 0 が、削除できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスは \fB/usr/local/include/sj3lib.h\fP で定義され、
+ 詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+diff -arcN ../sj3-2.0.1.13.org/doc/doc/sj3serv.ms ./doc/doc/sj3serv.ms
+*** ../sj3-2.0.1.13.org/doc/doc/sj3serv.ms Fri Jun 3 17:00:50 1994
+--- ./doc/doc/sj3serv.ms Tue Aug 13 03:18:01 1996
+***************
+*** 111,117 ****
+ そのファイル名を絶対パスとして辞書にアクセスしますが、\'/\'以外のときには、
+ ここで指定されるディレクトリからの相対パスとして辞書にアクセスします。
+ .br
+! デフォルトは /usr/dict/sj3 です。
+ .RE
+ .sp
+ .NH 3
+--- 111,117 ----
+ そのファイル名を絶対パスとして辞書にアクセスしますが、\'/\'以外のときには、
+ ここで指定されるディレクトリからの相対パスとして辞書にアクセスします。
+ .br
+! デフォルトは /usr/local/lib/sj3/dict です。
+ .RE
+ .sp
+ .NH 3
+diff -arcN ../sj3-2.0.1.13.org/doc/man/Imakefile ./doc/man/Imakefile
+*** ../sj3-2.0.1.13.org/doc/man/Imakefile Thu Jan 1 09:00:00 1970
+--- ./doc/man/Imakefile Mon Aug 12 11:34:15 1996
+***************
+*** 0 ****
+--- 1,50 ----
++ /*
++ * Copyright (c) 1994 Sony Corporation
++ *
++ * Permission is hereby granted, free of charge, to any person obtaining
++ * a copy of this software and associated documentation files (the
++ * "Software"), to deal in the Software without restriction, including
++ * without limitation the rights to use, copy, modify, merge, publish,
++ * distribute, sublicense, and/or sell copies of the Software, and to
++ * permit persons to whom the Software is furnished to do so, subject to
++ * the following conditions:
++ *
++ * The above copyright notice and this permission notice shall be
++ * included in all copies or substantial portions of the Software.
++ *
++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++ * IN NO EVENT SHALL SONY CORPORATION BE LIABLE FOR ANY CLAIM,
++ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
++ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++ *
++ * Except as contained in this notice, the name of Sony Corporation
++ * shall not be used in advertising or otherwise to promote the sale, use
++ * or other dealings in this Software without prior written authorization
++ * from Sony Corporation.
++ */
++
++ /*
++ * Add make rules to install manpages.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++
++ #ifndef JapaneseManLocale
++ #define JapaneseManLocale ja_JP.EUC
++ #endif
++ JMANLOCALE = JapaneseManLocale
++
++ #ifndef JapaneseManDir
++ #define JapaneseManDir /usr/local/man/$(JMANLOCALE)/man1
++ #endif
++
++ JMANDIR = JapaneseManDir
++ MANLIST = sj3.1 sj3dic.1 sj3mkdic.1 sj3serv.1
++
++ all::
++
++ depend::
++
++ InstallMultipleFlags($(MANLIST),$(JMANDIR),$(INSTMANFLAGS))
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3.1 ./doc/man/sj3.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3.1 Fri Jun 3 17:00:51 1994
+--- ./doc/man/sj3.1 Tue Aug 13 03:18:59 1996
+***************
+*** 109,121 ****
+ .SH 関連ファイル
+ .PD 0
+ .TP 15
+! /usr/dict/sj3/user/$USER/private.dic
+ 仮名漢字変換ユーザ辞書
+ .TP
+! /usr/dict/sj3/user/$USER/study.dat
+ 仮名漢字変換学習ファイル
+ .TP
+! /usr/lib/sj3/sjrk
+ デフォルトローマ字仮名変換規則定義ファイル
+ .SH 関連事項
+ sj3serv(1), sj3lib(3)
+--- 109,121 ----
+ .SH 関連ファイル
+ .PD 0
+ .TP 15
+! /usr/local/lib/sj3/dict/user/$USER/private.dic
+ 仮名漢字変換ユーザ辞書
+ .TP
+! /usr/local/lib/sj3/dict/user/$USER/study.dat
+ 仮名漢字変換学習ファイル
+ .TP
+! /usr/local/lib/sj3/sjrk
+ デフォルトローマ字仮名変換規則定義ファイル
+ .SH 関連事項
+ sj3serv(1), sj3lib(3)
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3dic.1 ./doc/man/sj3dic.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3dic.1 Fri Jun 3 17:00:52 1994
+--- ./doc/man/sj3dic.1 Tue Aug 13 03:19:55 1996
+***************
+*** 105,120 ****
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! /usr/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! /usr/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! /usr/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+--- 105,120 ----
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/local/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! /usr/local/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! /usr/local/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+***************
+*** 126,135 ****
+ user/\fIusername\fP/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! /usr/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! /usr/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+ .\".TP
+ .\"/usr/sony/demo/sj3/*
+--- 126,135 ----
+ user/\fIusername\fP/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! /usr/local/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! /usr/local/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+ .\".TP
+ .\"/usr/sony/demo/sj3/*
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3mkdic.1 ./doc/man/sj3mkdic.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3mkdic.1 Fri Dec 9 18:15:37 1994
+--- ./doc/man/sj3mkdic.1 Tue Aug 13 03:20:17 1996
+***************
+*** 550,565 ****
+ .SH ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\f2username\f1/private.dic'u+2n
+! .B /usr/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! .B /usr/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! .B /usr/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! .B /usr/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ .B " sj3main.dic
+--- 550,565 ----
+ .SH ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\f2username\f1/private.dic'u+2n
+! .B /usr/local/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! .B /usr/local/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! .B /usr/local/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! .B /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ .B " sj3main.dic
+***************
+*** 571,584 ****
+ .B " user/\f2username\f1/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! .B /usr/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! .B /usr/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+! .TP
+! \f3/usr/demo/sj3/ *\f1
+! かな漢字変換ライブラリ 使用法サンプル
+ .PD
+ .SH 関連項目
+ \f4sj3\f1 (1),
+--- 571,584 ----
+ .B " user/\f2username\f1/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! .B /usr/local/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! .B /usr/local/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+! .\".TP
+! .\"\f3/usr/local/demo/sj3/ *\f1
+! .\"かな漢字変換ライブラリ 使用法サンプル
+ .PD
+ .SH 関連項目
+ \f4sj3\f1 (1),
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3serv.1 ./doc/man/sj3serv.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3serv.1 Fri Jun 3 17:00:53 1994
+--- ./doc/man/sj3serv.1 Tue Aug 13 03:20:41 1996
+***************
+*** 47,63 ****
+ このオプションは、\fIsj3serv\fP の読み込むセットアップファイルを指定します。
+ .br
+ \fIsj3serv\fP はデフォルトではセットアップファイル
+! ‘/usr/lib/sj3/serverrc’を読み込みますが、
+ このオプションが指定されたときにはかわりに
+ コマンドラインで指定されたセットアップファイルを読み込みます。
+ .br
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/lib/sj3/serverrc
+ デフォルト仮名変換サーバ セットアップファイル
+ .TP
+! /usr/sony/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+--- 47,63 ----
+ このオプションは、\fIsj3serv\fP の読み込むセットアップファイルを指定します。
+ .br
+ \fIsj3serv\fP はデフォルトではセットアップファイル
+! ‘/usr/local/lib/sj3/serverrc’を読み込みますが、
+ このオプションが指定されたときにはかわりに
+ コマンドラインで指定されたセットアップファイルを読み込みます。
+ .br
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/local/lib/sj3/serverrc
+ デフォルト仮名変換サーバ セットアップファイル
+ .TP
+! /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+diff -arcN ../sj3-2.0.1.13.org/include/Const.h ./include/Const.h
+*** ../sj3-2.0.1.13.org/include/Const.h Fri Oct 21 13:16:19 1994
+--- ./include/Const.h Tue Aug 13 03:13:39 1996
+***************
+*** 33,38 ****
+--- 33,42 ----
+ * $SonyDate: 1994/10/21 04:16:06 $
+ */
+
++ /*
++ * Change some default values.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
+
+
+ #define HostNameLen 128
+***************
+*** 54,66 ****
+ #define MinClLen 512
+ #define MaxClLen 0x7fff
+
+! #define RunCmdFile "/usr/lib/sj3/serverrc"
+ #define DebugOutFile NULL
+ #define DebugLevel 0
+ #define ForkFlag 1
+ #define MaxClientNum 512
+ #define ErrorOutFile "/dev/console"
+! #define DictRootDir "/usr/dict/sj3"
+ #define LogOutFile NULL
+ #define PortName "sj3"
+ #ifdef TLI
+--- 58,85 ----
+ #define MinClLen 512
+ #define MaxClLen 0x7fff
+
+! #define RunCmdFile "/usr/local/lib/sj3/serverrc"
+ #define DebugOutFile NULL
+ #define DebugLevel 0
+ #define ForkFlag 1
+ #define MaxClientNum 512
++ /*
++ * Change ErrotOutFile variable.
++ * Because suppress a error when sj3serv start up, change to "/dev/stderr".
++ * This error is "Cannot Open "/dev/console".".
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ *
++ * Change ErrotOutFile variable.
++ * This default value is "/dev/null" in document.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/11
++ */
++ #if 0
+ #define ErrorOutFile "/dev/console"
+! #else
+! /* #define ErrorOutFile "/dev/stderr" */ /* for test */
+! #define ErrorOutFile "/dev/null"
+! #endif
+! #define DictRootDir "/usr/local/lib/sj3/dict"
+ #define LogOutFile NULL
+ #define PortName "sj3"
+ #ifdef TLI
+diff -arcN ../sj3-2.0.1.13.org/server/Imakefile ./server/Imakefile
+*** ../sj3-2.0.1.13.org/server/Imakefile Fri Jun 3 17:02:50 1994
+--- ./server/Imakefile Mon Aug 12 11:38:51 1996
+***************
+*** 32,39 ****
+ * $SonyDate: 1994/06/03 08:02:49 $
+ */
+
+! DEST = /usr/bin
+! CONFDIR = /usr/lib/sj3
+ CONFFILE = $(CONFDIR)/serverrc
+ RKDIR = ../sj3lib
+
+--- 32,44 ----
+ * $SonyDate: 1994/06/03 08:02:49 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DEST = /usr/local/bin
+! CONFDIR = /usr/local/lib/sj3
+ CONFFILE = $(CONFDIR)/serverrc
+ RKDIR = ../sj3lib
+
+***************
+*** 45,59 ****
+ EXTRA_LIBRARIES = -lnsl
+ #endif
+ #else
+! INSTGROUP = staff
+ #endif
+ DEFINES = $(ARCDEFS) $(SYSDEFS) $(USETLI)
+
+ CONVLIB = ../kanakan/libkanakan.a
+ DEPLIBS = $(CONVLIB)
+ LOCAL_LIBRARIES = $(CONVLIB)
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 4755
+! INSTFLAGS2 = -o root -g $(INSTGROUP) -m 444
+
+ #MKDIRHIER = ../util/mkdirh/mkdirh
+
+--- 50,64 ----
+ EXTRA_LIBRARIES = -lnsl
+ #endif
+ #else
+! INSTGROUP = bin
+ #endif
+ DEFINES = $(ARCDEFS) $(SYSDEFS) $(USETLI)
+
+ CONVLIB = ../kanakan/libkanakan.a
+ DEPLIBS = $(CONVLIB)
+ LOCAL_LIBRARIES = $(CONVLIB)
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 4755
+! INSTFLAGS2 = -o bin -g $(INSTGROUP) -m 444
+
+ #MKDIRHIER = ../util/mkdirh/mkdirh
+
+***************
+*** 80,83 ****
+ DependTarget()
+ LinkSourceFile(string.c,$(RKDIR))
+ InstallProgramWithFlags(sj3serv,$(DEST),$(INSTFLAGS))
+! InstallProgramWithFlags(serverrc,$(CONFDIR),$(INSTFLAGS2))
+--- 85,88 ----
+ DependTarget()
+ LinkSourceFile(string.c,$(RKDIR))
+ InstallProgramWithFlags(sj3serv,$(DEST),$(INSTFLAGS))
+! InstallMultipleFlags(serverrc,$(CONFDIR),$(INSTFLAGS2))
+diff -arcN ../sj3-2.0.1.13.org/server/rc.sj3serv ./server/rc.sj3serv
+*** ../sj3-2.0.1.13.org/server/rc.sj3serv Fri Jun 3 17:02:55 1994
+--- ./server/rc.sj3serv Mon Aug 12 11:48:07 1996
+***************
+*** 41,49 ****
+ CMDNAME=sj3serv
+
+ PRINTNAME=$CMDNAME
+! CMDDIR=/usr/bin
+ BACKGROUND=
+! PATH=/usr/bin:/bin
+ CMDPATH=$CMDDIR/$CMDNAME
+
+ RESTARTMESSAGE=
+--- 41,49 ----
+ CMDNAME=sj3serv
+
+ PRINTNAME=$CMDNAME
+! CMDDIR=/usr/local/bin
+ BACKGROUND=
+! PATH=/usr/local/bin:/usr/bin:/bin
+ CMDPATH=$CMDDIR/$CMDNAME
+
+ RESTARTMESSAGE=
+***************
+*** 54,111 ****
+ #DOWNMESSAGE="Killed $PRINTNAME"
+ USAGEMESSAGE="Usage: $0 [start|stop]"
+
+ if [ "$CMDNAME" = "sj3serv" ]
+ then
+! if [ ! -d /usr/bin ]
+! then # /usr not mounted
+ exit
+ fi
+
+- pid=`/sbin/findproc $CMDNAME`
+ case "$1" in
+ 'start')
+! if [ $pid ]
+! then
+! kill -TERM $pid
+! sleep 1
+! pid=`/sbin/findproc $CMDNAME`
+! if [ $pid ]
+! then
+! kill -9 $pid
+! fi
+! if [ -f $CMDPATH ]
+ then
+! if [ "$RESTARTMESSAGE" ]
+! then
+! echo $RESTARTMESSAGE > /dev/console
+! fi
+! eval $CMDPATH $BACKGROUND
+ fi
+! else
+! if [ -f $CMDPATH ]
+! then
+! if [ "$STARTMESSAGE" ]
+! then
+! echo $STARTMESSAGE >/dev/console
+! fi
+! eval $CMDPATH $BACKGROUND
+! fi
+ fi
+ ;;
+ 'stop')
+! if [ $pid ]
+! then
+! kill -TERM $pid
+! sleep 1
+! pid=`/sbin/findproc $CMDNAME`
+! if [ $pid ]
+! then
+! kill -9 $pid
+! fi
+! if [ "$DOWNMESSAGE" ]
+ then
+! echo $DOWNMESSAGE > /dev/console
+! fi
+ fi
+ ;;
+ *)
+--- 54,152 ----
+ #DOWNMESSAGE="Killed $PRINTNAME"
+ USAGEMESSAGE="Usage: $0 [start|stop]"
+
++ #if [ "$CMDNAME" = "sj3serv" ]
++ #then
++ # if [ ! -d /usr/local/bin ]
++ # then # /usr/local not mounted
++ # exit
++ # fi
++ #
++ # pid=`/sbin/findproc $CMDNAME`
++ # case "$1" in
++ # 'start')
++ # if [ $pid ]
++ # then
++ # kill -TERM $pid
++ # sleep 1
++ # pid=`/sbin/findproc $CMDNAME`
++ # if [ $pid ]
++ # then
++ # kill -9 $pid
++ # fi
++ # if [ -f $CMDPATH ]
++ # then
++ # if [ "$RESTARTMESSAGE" ]
++ # then
++ # echo $RESTARTMESSAGE > /dev/console
++ # fi
++ # eval $CMDPATH $BACKGROUND
++ # fi
++ # else
++ # if [ -f $CMDPATH ]
++ # then
++ # if [ "$STARTMESSAGE" ]
++ # then
++ # echo $STARTMESSAGE >/dev/console
++ # fi
++ # eval $CMDPATH $BACKGROUND
++ # fi
++ # fi
++ # ;;
++ # 'stop')
++ # if [ $pid ]
++ # then
++ # kill -TERM $pid
++ # sleep 1
++ # pid=`/sbin/findproc $CMDNAME`
++ # if [ $pid ]
++ # then
++ # kill -9 $pid
++ # fi
++ # if [ "$DOWNMESSAGE" ]
++ # then
++ # echo $DOWNMESSAGE > /dev/console
++ # fi
++ # fi
++ # ;;
++ # *)
++ # echo $USAGEMESSAGE
++ # ;;
++ # esac
++ #fi
++
++ ##
++ ## For system which don't have a findproc command.(FreeBSD, ...)
++ ## Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ ##
++
+ if [ "$CMDNAME" = "sj3serv" ]
+ then
+! if [ ! -d /usr/local/bin ]
+! then # /usr/local not mounted
+ exit
+ fi
+
+ case "$1" in
+ 'start')
+! if [ -f $CMDPATH ]
+! then
+! if [ "$STARTMESSAGE" ]
+ then
+! echo $STARTMESSAGE >/dev/console
+ fi
+! eval $CMDPATH $BACKGROUND
+ fi
+ ;;
+ 'stop')
+! ;;
+! '')
+! if [ -f $CMDPATH ]
+! then
+! if [ "$STARTMESSAGE" ]
+ then
+! echo $STARTMESSAGE >/dev/console
+! fi
+! eval $CMDPATH $BACKGROUND
+ fi
+ ;;
+ *)
+diff -arcN ../sj3-2.0.1.13.org/server/setup.c ./server/setup.c
+*** ../sj3-2.0.1.13.org/server/setup.c Fri Dec 9 20:27:07 1994
+--- ./server/setup.c Mon Aug 12 23:58:25 1996
+***************
+*** 221,250 ****
+ u_char *(*optfunc)();
+ int optarg;
+ } option[] = {
+ "DebugOut", get_str, (int)&debug_file,
+ "DebugLevel", get_int, (int)&debug_level,
+ "ForkFlag", get_flag, (int)&fork_flag,
+
+ "PortName", get_str, (int)&port_name,
+ #ifdef TLI
+ "PortNumber", get_str, (int)&port_number,
+! "ProtoName", get_str, (int)&proto_name,
+ #else
+ "PortNumber", get_int, (int)&port_number,
+ #endif
+ "SocketName", get_str, (int)&socket_name,
+ #ifdef LOCK_FILE
+ "LockFile", get_str, (int)&lock_file;
+ #endif
+
+ "maxclient", get_int, (int)&max_client,
+ "dictdir", get_str, (int)&dict_dir,
+ "readdict", get_list, (int)&read_dict,
+ "opendict", get_list, (int)&open_dict,
+ "errorout", get_str, (int)&error_file,
+ "logout", get_str, (int)&log_file,
+ "dirmode", get_int, (int)&dir_mode,
+ "filemode", get_int, (int)&file_mode,
+ "allowuser", get_list, (int)&allow_user,
+ 0, 0, 0
+ };
+--- 221,273 ----
+ u_char *(*optfunc)();
+ int optarg;
+ } option[] = {
++ /*
++ * Add option flag.
++ * Because They are lacked in here. See document.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
+ "DebugOut", get_str, (int)&debug_file,
++ "debugout", get_str, (int)&debug_file,
+ "DebugLevel", get_int, (int)&debug_level,
++ "debuglevel", get_int, (int)&debug_level,
+ "ForkFlag", get_flag, (int)&fork_flag,
++ "forkflag", get_flag, (int)&fork_flag,
+
+ "PortName", get_str, (int)&port_name,
++ "portname", get_str, (int)&port_name,
+ #ifdef TLI
+ "PortNumber", get_str, (int)&port_number,
+! "portnumber", get_str, (int)&port_number,
+! "ProtoName", get_str, (int)&proto_name,
+! "protoname", get_str, (int)&proto_name,
+ #else
+ "PortNumber", get_int, (int)&port_number,
++ "portnumber", get_int, (int)&port_number,
+ #endif
+ "SocketName", get_str, (int)&socket_name,
++ "socketname", get_str, (int)&socket_name,
+ #ifdef LOCK_FILE
+ "LockFile", get_str, (int)&lock_file;
++ "lockfile", get_str, (int)&lock_file;
+ #endif
+
++ "MaxClient", get_int, (int)&max_client,
+ "maxclient", get_int, (int)&max_client,
++ "DictDir", get_str, (int)&dict_dir,
+ "dictdir", get_str, (int)&dict_dir,
++ "ReadDict", get_list, (int)&read_dict,
+ "readdict", get_list, (int)&read_dict,
++ "OpenDict", get_list, (int)&open_dict,
+ "opendict", get_list, (int)&open_dict,
++ "ErrorOut", get_str, (int)&error_file,
+ "errorout", get_str, (int)&error_file,
++ "LogOut", get_str, (int)&log_file,
+ "logout", get_str, (int)&log_file,
++ "DirMode", get_int, (int)&dir_mode,
+ "dirmode", get_int, (int)&dir_mode,
++ "FileMode", get_int, (int)&file_mode,
+ "filemode", get_int, (int)&file_mode,
++ "AllowUser", get_list, (int)&allow_user,
+ "allowuser", get_list, (int)&allow_user,
+ 0, 0, 0
+ };
+diff -arcN ../sj3-2.0.1.13.org/sj3/Imakefile ./sj3/Imakefile
+*** ../sj3-2.0.1.13.org/sj3/Imakefile Fri Jun 3 17:03:02 1994
+--- ./sj3/Imakefile Mon Aug 12 18:29:43 1996
+***************
+*** 32,39 ****
+ * $SonyDate: 1994/06/03 08:03:01 $
+ */
+
+! DEST = /usr/bin
+! CONFDIR = /usr/lib/sj3
+
+ INCLUDES = -I../sj3h -I../sj3lib -I../include
+ #if SystemV4 || SystemV
+--- 32,44 ----
+ * $SonyDate: 1994/06/03 08:03:01 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DEST = /usr/local/bin
+! CONFDIR = /usr/local/lib/sj3
+
+ INCLUDES = -I../sj3h -I../sj3lib -I../include
+ #if SystemV4 || SystemV
+***************
+*** 48,56 ****
+ EXTRA_LIBRARIES = -lnsl
+ #endif
+ #else
+! INSTGROUP = staff
+ SRC0 = nmttyslot.c
+ OBJ0 = nmttyslot.o
+ #endif
+ DEFINES = $(ARCDEFS) $(SYSDEFS) -DKANJI -DOKB
+
+--- 53,70 ----
+ EXTRA_LIBRARIES = -lnsl
+ #endif
+ #else
+! INSTGROUP = bin
+ SRC0 = nmttyslot.c
+ OBJ0 = nmttyslot.o
++ /*
++ * Change for FreeBSD.
++ * Because When the LANG variable is EUC, setlocale function in library libc
++ * return NULL, use it in library libxpg4
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++ #if defined(FreeBSDArchitecture)
++ CODE_LIBS = -lxpg4
++ #endif
+ #endif
+ DEFINES = $(ARCDEFS) $(SYSDEFS) -DKANJI -DOKB
+
+***************
+*** 59,65 ****
+ SJ3_LIBDIR = ../sj3lib
+ RKDIR = ../sj3rkcv
+ SJLIB = $(SJ3_LIBDIR)/libsj3lib.a
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 4755
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+--- 73,79 ----
+ SJ3_LIBDIR = ../sj3lib
+ RKDIR = ../sj3rkcv
+ SJLIB = $(SJ3_LIBDIR)/libsj3lib.a
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 4755
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+diff -arcN ../sj3-2.0.1.13.org/sj3/edit.c ./sj3/edit.c
+*** ../sj3-2.0.1.13.org/sj3/edit.c Fri Jun 3 17:03:14 1994
+--- ./sj3/edit.c Tue Aug 13 01:02:16 1996
+***************
+*** 302,308 ****
+ cv = GetConversion ();
+ if (cv->Ppoint[n+1] == 0)
+ return;
+! mlen = strlen (cv->Ppoint[n+1]);
+ plen = cv->Ppoint[n] - cv->Ppoint[0];
+ p = cv->Ppoint[n];
+ pp = &cv->out_mode[plen];
+--- 302,313 ----
+ cv = GetConversion ();
+ if (cv->Ppoint[n+1] == 0)
+ return;
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* mlen = strlen (cv->Ppoint[n+1]); */
+! mlen = strlen ((char *)cv->Ppoint[n+1]);
+ plen = cv->Ppoint[n] - cv->Ppoint[0];
+ p = cv->Ppoint[n];
+ pp = &cv->out_mode[plen];
+***************
+*** 728,734 ****
+
+ ylen = wslen(Zs);
+ limit = Elimit - ylen;
+! hlimit = Ehlimit - strlen(Hs);
+ *ztmp = '\0';
+ *htmp = '\0';
+ SaveConversion (GetConversion ());
+--- 733,744 ----
+
+ ylen = wslen(Zs);
+ limit = Elimit - ylen;
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* hlimit = Ehlimit - strlen(Hs); */
+! hlimit = Ehlimit - strlen((char *)Hs);
+ *ztmp = '\0';
+ *htmp = '\0';
+ SaveConversion (GetConversion ());
+***************
+*** 749,755 ****
+ else
+ (void)exec_romaji2(inc, htmp, ztmp, otmp, len, rlen);
+ }
+! (void)exec_romaji2(0, htmp, ztmp, otmp, strlen(ztmp), strlen(htmp));
+ sj3_rkclear();
+ len = wslen (ztmp);
+ backspace(wcbyte(ztmp));
+--- 759,770 ----
+ else
+ (void)exec_romaji2(inc, htmp, ztmp, otmp, len, rlen);
+ }
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* (void)exec_romaji2(0, htmp, ztmp, otmp, strlen(ztmp), strlen(htmp)); */
+! (void)exec_romaji2(0, htmp, ztmp, otmp, strlen((char *)ztmp), strlen((char *)htmp));
+ sj3_rkclear();
+ len = wslen (ztmp);
+ backspace(wcbyte(ztmp));
+diff -arcN ../sj3-2.0.1.13.org/sj3/funckey.c ./sj3/funckey.c
+*** ../sj3-2.0.1.13.org/sj3/funckey.c Fri Jun 3 17:03:18 1994
+--- ./sj3/funckey.c Mon Aug 12 11:53:25 1996
+***************
+*** 117,123 ****
+ struct cvtkey *ckeyp;
+ struct wcvtkey *wckeyp;
+
+! strcpy(cvtkey_file, "/usr/lib/sj3/cvtkey.");
+ strcpy(line, term);
+ if((p = strchr(line, '-')) != NULL)
+ *p = '\0';
+--- 117,127 ----
+ struct cvtkey *ckeyp;
+ struct wcvtkey *wckeyp;
+
+! /*
+! * Change a default value.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! strcpy(cvtkey_file, "/usr/local/lib/sj3/cvtkey.");
+ strcpy(line, term);
+ if((p = strchr(line, '-')) != NULL)
+ *p = '\0';
+diff -arcN ../sj3-2.0.1.13.org/sj3/henkan.c ./sj3/henkan.c
+*** ../sj3-2.0.1.13.org/sj3/henkan.c Fri Jun 3 17:03:19 1994
+--- ./sj3/henkan.c Tue Aug 13 01:01:25 1996
+***************
+*** 340,346 ****
+ out += i;
+ }
+ if (*in != '\0')
+! (void)sj_hantozen(out, in, strlen(in));
+ }
+
+
+--- 340,351 ----
+ out += i;
+ }
+ if (*in != '\0')
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* (void)sj_hantozen(out, in, strlen(in)); */
+! (void)sj_hantozen(out, in, strlen((char *)in));
+ }
+
+
+diff -arcN ../sj3-2.0.1.13.org/sj3/romaji.c ./sj3/romaji.c
+*** ../sj3-2.0.1.13.org/sj3/romaji.c Fri Jun 3 17:03:22 1994
+--- ./sj3/romaji.c Tue Aug 13 01:03:23 1996
+***************
+*** 370,376 ****
+ s2 += i;
+ roma[res + i] = '\0';
+ rlen = sj3_rkconv2(roma, kstr, i + res - 1);
+! res = strlen(roma);
+ if (rlen <= 0)
+ continue;
+ kp = kstr;
+--- 370,381 ----
+ s2 += i;
+ roma[res + i] = '\0';
+ rlen = sj3_rkconv2(roma, kstr, i + res - 1);
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* res = strlen(roma); */
+! res = strlen((char *)roma);
+ if (rlen <= 0)
+ continue;
+ kp = kstr;
+diff -arcN ../sj3-2.0.1.13.org/sj3/sj3.c ./sj3/sj3.c
+*** ../sj3-2.0.1.13.org/sj3/sj3.c Fri Apr 7 17:36:34 1995
+--- ./sj3/sj3.c Tue Aug 13 02:47:32 1996
+***************
+*** 189,195 ****
+ (void) signal (SIGBUS, (void (*)())makecore);
+ (void) signal (SIGSEGV, (void (*)())makecore);
+ (void) signal (SIGFPE, (void (*)())makecore);
+! sigpipe = signal (SIGPIPE, SIG_IGN);
+
+ if (argv [0][0] == '-')
+ Lflag ++;
+--- 189,204 ----
+ (void) signal (SIGBUS, (void (*)())makecore);
+ (void) signal (SIGSEGV, (void (*)())makecore);
+ (void) signal (SIGFPE, (void (*)())makecore);
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* sigpipe = signal (SIGPIPE, SIG_IGN); */
+! #ifdef SIGTYPE_VOID
+! sigpipe = (void(*)()) signal (SIGPIPE, SIG_IGN);
+! #else
+! sigpipe = (int(*)()) signal (SIGPIPE, SIG_IGN);
+! #endif
+
+ if (argv [0][0] == '-')
+ Lflag ++;
+***************
+*** 452,466 ****
+--- 461,499 ----
+
+ ioctl(master, I_PUSH, "pckt");
+ #else
++ /*
++ * Change pseudo-devices.
++ * Because FreeBSD's master pseudo-devices are pty[p-sP-S][0-9a-v].
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++ #if defined(__FreeBSD__)
++ struct stat stb;
++ int h, i, j, k1, k2;
++ #else /* !__FreeBSD__ */
+ char c;
+ struct stat stb;
+ int i, j, k1, k2;
++ #endif /* __FreeBSD__ */
+
+ strcpy(line, "/dev/ptyXX");
+
+ k1 = strlen("/dev/pty");
+ k2 = strlen ("/dev/ptyp");
+
++ /*
++ * Change pseudo-devices.
++ * Because FreeBSD's master pseudo-devices are pty[p-sP-S][0-9a-v].
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++ #if defined(__FreeBSD__)
++ for (h = 0; h < 8; h++) {
++ line[k1] = "pqrsPQRS"[h];
++ line[k2] = '0';
++ if (stat (line, &stb) < 0)
++ break;
++ for (i = 0; i < 32; i++) {
++ line[k2] = "0123456789abcdefghijklmnopqrstuv"[i];
++ #else /* !__FreeBSD__ */
+ for (c = 'p'; c <= 'z'; c ++) {
+ line[k1] = c;
+ line[k2] = '0';
+***************
+*** 468,473 ****
+--- 501,507 ----
+ break;
+ for (i = 0; i < 16; i++) {
+ line[k2] = "0123456789abcdef"[i];
++ #endif /* __FreeBSD__ */
+ master = open (line, 2);
+ if (master >= 0) {
+ j = 1;
+***************
+*** 681,687 ****
+ }
+
+ #ifndef SVR4
+! (void) signal (SIGCHLD, exitprocess);
+ #endif
+ }
+
+--- 715,726 ----
+ }
+
+ #ifndef SVR4
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* (void) signal (SIGCHLD, exitprocess); */
+! (void) signal (SIGCHLD, (void (*)())exitprocess);
+ #endif
+ }
+
+***************
+*** 787,792 ****
+--- 826,836 ----
+ #else /* SYSV_TERMIOS */
+ struct utmp Utmp;
+ register char *p;
++ /*
++ * Remove warning.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++ char *ttyname (), *strrchr ();
+ #define SCPYN(a, b) strncpy(a, b, sizeof(a))
+
+ if ((p = ttyname (0)) == NULL)
+***************
+*** 836,842 ****
+ shellargs[1] = (char *) 0;
+ }
+
+! (void) signal (SIGPIPE, sigpipe);
+ if ( *shellprog == '/' ) {
+ if (shell_flag) {
+ strcpy (shellbuf, "SHELL=");
+--- 880,891 ----
+ shellargs[1] = (char *) 0;
+ }
+
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* (void) signal (SIGPIPE, sigpipe); */
+! (void) signal (SIGPIPE, (void (*)())sigpipe);
+ if ( *shellprog == '/' ) {
+ if (shell_flag) {
+ strcpy (shellbuf, "SHELL=");
+***************
+*** 1006,1012 ****
+ union wait status;
+ int pid;
+
+! pid = wait3 (&status, (WNOHANG|WUNTRACED), 0);
+ if (WIFSTOPPED (status))
+ #endif
+ suspend();
+--- 1055,1066 ----
+ union wait status;
+ int pid;
+
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* pid = wait3 (&status, (WNOHANG|WUNTRACED), 0); */
+! pid = wait3 ((int *)&status, (WNOHANG|WUNTRACED), 0);
+ if (WIFSTOPPED (status))
+ #endif
+ suspend();
+***************
+*** 1068,1080 ****
+ SetRegion();
+ }
+
+! old_sigtstp = signal (SIGTSTP, SIG_DFL);
+
+ kill (0, SIGTSTP);
+
+
+
+! (void) signal (SIGTSTP, old_sigtstp);
+ killpg (Pid_shell, SIGCONT);
+ fixtty ();
+
+--- 1122,1148 ----
+ SetRegion();
+ }
+
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* old_sigtstp = signal (SIGTSTP, SIG_DFL); */
+! #ifdef SIGTYPE_VOID
+! old_sigtstp = (void(*)()) signal (SIGTSTP, SIG_DFL);
+! #else
+! old_sigtstp = (int(*)()) signal (SIGTSTP, SIG_DFL);
+! #endif
+
+ kill (0, SIGTSTP);
+
+
+
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* (void) signal (SIGTSTP, old_sigtstp); */
+! (void) signal (SIGTSTP, (void (*)())old_sigtstp);
+ killpg (Pid_shell, SIGCONT);
+ fixtty ();
+
+diff -arcN ../sj3-2.0.1.13.org/sj3/sjrc.c ./sj3/sjrc.c
+*** ../sj3-2.0.1.13.org/sj3/sjrc.c Fri Dec 9 20:27:09 1994
+--- ./sj3/sjrc.c Tue Aug 13 00:53:22 1996
+***************
+*** 52,59 ****
+ extern char home[];
+ extern char term_name[];
+ extern int current_locale;
+! #define DEFRKFILE "/usr/lib/sj3/sjrk"
+! #define DEFRCFILE "/usr/lib/sj3/sjrc"
+
+ #define GUIDELEN 80
+
+--- 52,63 ----
+ extern char home[];
+ extern char term_name[];
+ extern int current_locale;
+! /*
+! * Change a default value.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! #define DEFRKFILE "/usr/local/lib/sj3/sjrk"
+! #define DEFRCFILE "/usr/local/lib/sj3/sjrc"
+
+ #define GUIDELEN 80
+
+***************
+*** 442,448 ****
+ struct wordent word[];
+ {
+ if (word[1].word_str[0] != '\0' && shellprog[0] == '\0') {
+! strcpy (shellprog, word[1].word_str);
+ shell_flag++;
+ }
+ }
+--- 446,457 ----
+ struct wordent word[];
+ {
+ if (word[1].word_str[0] != '\0' && shellprog[0] == '\0') {
+! /*
+! * Remove warning.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* strcpy (shellprog, word[1].word_str); */
+! strcpy (shellprog, (char *)word[1].word_str);
+ shell_flag++;
+ }
+ }
+diff -arcN ../sj3-2.0.1.13.org/sj3dic/Imakefile ./sj3dic/Imakefile
+*** ../sj3-2.0.1.13.org/sj3dic/Imakefile Fri Jun 3 17:03:33 1994
+--- ./sj3dic/Imakefile Mon Aug 12 12:20:15 1996
+***************
+*** 32,38 ****
+ * $SonyDate: 1994/06/03 08:03:32 $
+ */
+
+! DEST = /usr/bin
+
+ INCLUDES = -I../include -I../sj3lib
+ #if SystemV4 || SystemV
+--- 32,43 ----
+ * $SonyDate: 1994/06/03 08:03:32 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DEST = /usr/local/bin
+
+ INCLUDES = -I../include -I../sj3lib
+ #if SystemV4 || SystemV
+***************
+*** 41,47 ****
+ CODE_LIBS = -ljcode
+ #endif
+ #else
+! INSTGROUP = staff
+ #endif
+
+ SYS_LIBRARIES = $(CODE_LIBS)
+--- 46,52 ----
+ CODE_LIBS = -ljcode
+ #endif
+ #else
+! INSTGROUP = bin
+ #endif
+
+ SYS_LIBRARIES = $(CODE_LIBS)
+***************
+*** 52,58 ****
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 755
+
+ SRCS = codecnv.c \
+ dictdisp.c \
+--- 57,63 ----
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 755
+
+ SRCS = codecnv.c \
+ dictdisp.c \
+diff -arcN ../sj3-2.0.1.13.org/sj3h/sj2.h ./sj3h/sj2.h
+*** ../sj3-2.0.1.13.org/sj3h/sj2.h Fri Jun 3 17:03:51 1994
+--- ./sj3h/sj2.h Tue Aug 13 01:14:54 1996
+***************
+*** 95,103 ****
+
+
+
+ #define TRUE 0
+ #define FALSE -1
+!
+
+
+ struct wordent {
+--- 95,115 ----
+
+
+
++ /*
++ * Remove warning.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
++ #if defined(TRUE) && defined(FALSE)
++ #if (TRUE != 0) || (TRUE != -1)
++ #undef TRUE
++ #undef FALSE
+ #define TRUE 0
+ #define FALSE -1
+! #endif
+! #else
+! #define TRUE 0
+! #define FALSE -1
+! #endif
+
+
+ struct wordent {
+diff -arcN ../sj3-2.0.1.13.org/sj3lib/Imakefile ./sj3lib/Imakefile
+*** ../sj3-2.0.1.13.org/sj3lib/Imakefile Fri Jun 3 17:03:54 1994
+--- ./sj3lib/Imakefile Mon Aug 12 12:22:02 1996
+***************
+*** 32,39 ****
+ * $SonyDate: 1994/06/03 08:03:53 $
+ */
+
+! INSTALL_LIBDIR = /usr/lib
+! INSTALL_HDRDIR = /usr/include
+ #if SystemV4 || SystemV
+ DEFINES = -DTLI
+ #endif
+--- 32,44 ----
+ * $SonyDate: 1994/06/03 08:03:53 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! INSTALL_LIBDIR = /usr/local/lib
+! INSTALL_HDRDIR = /usr/local/include
+ #if SystemV4 || SystemV
+ DEFINES = -DTLI
+ #endif
+diff -arcN ../sj3-2.0.1.13.org/sj3stat/Imakefile ./sj3stat/Imakefile
+*** ../sj3-2.0.1.13.org/sj3stat/Imakefile Tue May 30 21:29:25 1995
+--- ./sj3stat/Imakefile Mon Aug 12 12:23:14 1996
+***************
+*** 32,44 ****
+ * $SonyDate: 1995/05/30 12:29:17 $
+ */
+
+! DEST = /usr/bin
+
+ INCLUDES = -I../include -I../sj3lib
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = staff
+ #endif
+
+ SYS_LIBRARIES = $(CODE_LIBS)
+--- 32,49 ----
+ * $SonyDate: 1995/05/30 12:29:17 $
+ */
+
+! /*
+! * Change some make rules.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+!
+! DEST = /usr/local/bin
+
+ INCLUDES = -I../include -I../sj3lib
+ #if SystemV4 || SystemV
+ INSTGROUP = bin
+ #else
+! INSTGROUP = bin
+ #endif
+
+ SYS_LIBRARIES = $(CODE_LIBS)
+***************
+*** 49,55 ****
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+! INSTFLAGS = -o root -g $(INSTGROUP) -m 755
+
+ SRCS = sj3stat.c
+
+--- 54,60 ----
+ DEPLIBS = $(SJLIB)
+ LOCAL_LIBRARIES = $(SJLIB)
+
+! INSTFLAGS = -o bin -g $(INSTGROUP) -m 755
+
+ SRCS = sj3stat.c
+
+diff -arcN ../sj3-2.0.1.13.org/sj3stat/sj3stat.c ./sj3stat/sj3stat.c
+*** ../sj3-2.0.1.13.org/sj3stat/sj3stat.c Tue May 30 21:29:25 1995
+--- ./sj3stat/sj3stat.c Mon Aug 12 23:39:19 1996
+***************
+*** 91,100 ****
+ }
+ fprintf (stdout, "%d users.\n", n);
+
+! fprintf(stdout, "%-16s %-16s %-8s %s\n",
+ "(USER)", "(HOST)", "(FD)", "(CLIENT)");
+ for (i = 0; i < n; i++) {
+! fprintf(stdout, "%-16s %-16s %-8d %s\n", who[i].username,
+ who[i].hostname, who[i].fd, who[i].progname);
+ }
+ (void) sj3_erase_connection(&clnt);
+--- 91,107 ----
+ }
+ fprintf (stdout, "%d users.\n", n);
+
+! /*
+! * Change hostname entry's length.
+! * Because it's so short.
+! * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+! */
+! /* fprintf(stdout, "%-16s %-16s %-8s %s\n", */
+! fprintf(stdout, "%-16s %-32s %-8s %s\n",
+ "(USER)", "(HOST)", "(FD)", "(CLIENT)");
+ for (i = 0; i < n; i++) {
+! /* fprintf(stdout, "%-16s %-16s %-8d %s\n", who[i].username, */
+! fprintf(stdout, "%-16s %-32s %-8d %s\n", who[i].username,
+ who[i].hostname, who[i].fd, who[i].progname);
+ }
+ (void) sj3_erase_connection(&clnt);
diff --git a/japanese/sj3-lib/pkg-comment b/japanese/sj3-lib/pkg-comment
new file mode 100644
index 00000000000..4efc44b432d
--- /dev/null
+++ b/japanese/sj3-lib/pkg-comment
@@ -0,0 +1 @@
+A Japanese input method.
diff --git a/japanese/sj3-lib/pkg-descr b/japanese/sj3-lib/pkg-descr
new file mode 100644
index 00000000000..297d0296b6b
--- /dev/null
+++ b/japanese/sj3-lib/pkg-descr
@@ -0,0 +1,20 @@
+This is SJ3 2.0.1.13, a Japanese input method.
+This system developed by Sony Corporation.
+SJ3 is composed of Kana-Kanji conversion server(sj3serv),
+Kana-Kanji conversion client for terminal(sj3) and Kana-Kanji
+conversion library(sj3lib).
+
+If you start up sj3serv, you must add a following entry into
+/etc/services file or NIS/YP services map.
+
+sj3 3000/tcp
+
+This port number may be changed by the setup file(See manpages).
+
+This also include many patches for FreeBSD or others.
+(Remove warning, support pseudo-terminal of FreeBSD,
+ some bug fix and change make rules.) If there are any problem
+in this patches, please know me via E-mail.
+
+Hidekazu Kuroki
+(hidekazu@cs.titech.ac.jp)
diff --git a/japanese/sj3-lib/pkg-plist b/japanese/sj3-lib/pkg-plist
new file mode 100644
index 00000000000..e808f3949c9
--- /dev/null
+++ b/japanese/sj3-lib/pkg-plist
@@ -0,0 +1,23 @@
+bin/sj3
+bin/sj3dic
+bin/sj3mkdic
+bin/sj3serv
+bin/sj3stat
+lib/libsj3lib.a
+lib/sj3/Nihongo.ps.Z
+lib/sj3/cvtkey.news
+lib/sj3/cvtkey.nwp511
+lib/sj3/cvtkey.nwp517
+lib/sj3/cvtkey.xterm
+lib/sj3/dict/sj3main.dic
+lib/sj3/hinsi.ms
+lib/sj3/makedict.ms
+lib/sj3/serverrc
+lib/sj3/sj3lib.ms
+lib/sj3/sj3serv.ms
+lib/sj3/sjrc
+lib/sj3/sjrk
+man/ja_JP.EUC/man1/sj3.1.gz
+man/ja_JP.EUC/man1/sj3dic.1.gz
+man/ja_JP.EUC/man1/sj3mkdic.1.gz
+man/ja_JP.EUC/man1/sj3serv.1.gz