1 /* 2 * $Id: wnn_os.h,v 2.10.2.1 2000/08/04 05:37:16 kaneda Exp $ 3 */ 4 /* 5 WNN6 CLIENT LIBRARY--SOFTWARE LICENSE TERMS AND CONDITIONS 6 7 8 Wnn6 Client Library : 9 (C) Copyright OMRON Corporation. 1995,1998,2000 all rights reserved. 10 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved. 11 12 Wnn Software : 13 (C) Copyright Kyoto University Research Institute for Mathematical Sciences 14 1987, 1988, 1989, 1990, 1991, 1992, 1993 15 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993 16 (C) Copyright ASCTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992, 1993 17 18 Preamble 19 20 These Wnn6 Client Library--Software License Terms and Conditions 21 (the "License Agreement") shall state the conditions under which you are 22 permitted to copy, distribute or modify the software which can be used 23 to create Wnn6 Client Library (the "Wnn6 Client Library"). The License 24 Agreement can be freely copied and distributed verbatim, however, you 25 shall NOT add, delete or change anything on the License Agreement. 26 27 OMRON Corporation and OMRON Software Co., Ltd. (collectively referred to 28 as "OMRON") jointly developed the Wnn6 Software (development code name 29 is FI-Wnn), based on the Wnn Software. Starting from November, 1st, 1998, 30 OMRON publishes the source code of the Wnn6 Client Library, and OMRON 31 permits anyone to copy, distribute or change the Wnn6 Client Library under 32 the License Agreement. 33 34 Wnn6 Client Library is based on the original version of Wnn developed by 35 Kyoto University Research Institute for Mathematical Sciences (KURIMS), 36 OMRON Corporation and ASTEC Inc. 37 38 Article 1. Definition. 39 40 "Source Code" means the embodiment of the computer code, readable and 41 understandable by a programmer of ordinary skills. It includes related 42 source code level system documentation, comments and procedural code. 43 44 "Object File" means a file, in substantially binary form, which is directly 45 executable by a computer after linking applicable files. 46 47 "Library" means a file, composed of several Object Files, which is directly 48 executable by a computer after linking applicable files. 49 50 "Software" means a set of Source Code including information on its use. 51 52 "Wnn6 Client Library" the computer program, originally supplied by OMRON, 53 which can be used to create Wnn6 Client Library. 54 55 "Executable Module" means a file, created after linking Object Files or 56 Library, which is directly executable by a computer. 57 58 "User" means anyone who uses the Wnn6 Client Library under the License 59 Agreement. 60 61 Article 2. Copyright 62 63 2.1 OMRON Corporation and OMRON Software Co., Ltd. jointly own the Wnn6 64 Client Library, including, without limitation, its copyright. 65 66 2.2 Following words followed by the above copyright notices appear 67 in all supporting documentation of software based on Wnn6 Client Library: 68 69 This software is based on the original version of Wnn6 Client Library 70 developed by OMRON Corporation and OMRON Software Co., Ltd. and also based on 71 the original version of Wnn developed by Kyoto University Research Institute 72 for Mathematical Sciences (KURIMS), OMRON Corporation and ASTEC Inc. 73 74 Article 3. Grant 75 76 3.1 A User is permitted to make and distribute verbatim copies of 77 the Wnn6 Client Library, including verbatim of copies of the License 78 Agreement, under the License Agreement. 79 80 3.2 A User is permitted to modify the Wnn6 Client Library to create 81 Software ("Modified Software") under the License Agreement. A User 82 is also permitted to make or distribute copies of Modified Software, 83 including verbatim copies of the License Agreement with the following 84 information. Upon modifying the Wnn6 Client Library, a User MUST insert 85 comments--stating the name of the User, the reason for the modifications, 86 the date of the modifications, additional terms and conditions on the 87 part of the modifications if there is any, and potential risks of using 88 the Modified Software if they are known--right after the end of the 89 License Agreement (or the last comment, if comments are inserted already). 90 91 3.3 A User is permitted to create Library or Executable Modules by 92 modifying the Wnn6 Client Library in whole or in part under the License 93 Agreement. A User is also permitted to make or distribute copies of 94 Library or Executable Modules with verbatim copies of the License 95 Agreement under the License Agreement. Upon modifying the Wnn6 Client 96 Library for creating Library or Executable Modules, except for porting 97 a computer, a User MUST add a text file to a package of the Wnn6 Client 98 Library, providing information on the name of the User, the reason for 99 the modifications, the date of the modifications, additional terms and 100 conditions on the part of the modifications if there is any, and potential 101 risks associated with using the modified Wnn6 Client Library, Library or 102 Executable Modules if they are known. 103 104 3.4 A User is permitted to incorporate the Wnn6 Client Library in whole 105 or in part into another Software, although its license terms and 106 conditions may be different from the License Agreement, if such 107 incorporation or use associated with the incorporation does NOT violate 108 the License Agreement. 109 110 Article 4. Warranty 111 112 THE WNN6 CLIENT LIBRARY IS PROVIDED BY OMRON ON AN "AS IS" BAISIS. 113 OMRON EXPRESSLY DISLCIAMS ANY AND ALL WRRANTIES, EXPRESS OR IMPLIED, 114 INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY AND FITNESS 115 FOR A PARTICULAR PURPOSE, IN CONNECTION WITH THE WNN6 CLIENT LIBRARY 116 OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT LIBRARY. IN NO EVENT 117 SHALL OMRON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE 118 OR CONSEQUENTIAL DAMAGES OF ANY KIND WHATSOEVER IN CONNECTION WITH THE 119 WNN6 CLIENT LIBRARY OR THE USE OR OTHER DEALING IN THE WNN6 CLIENT 120 LIBRARY. 121 122 *************************************************************************** 123 Wnn6 Client Library : 124 (C) Copyright OMRON Corporation. 1995,1998,2000 all rights reserved. 125 (C) Copyright OMRON Software Co., Ltd. 1995,1998,2000 all rights reserved. 126 127 Wnn Software : 128 (C) Copyright Kyoto University Research Institute for Mathematical Sciences 129 1987, 1988, 1989, 1990, 1991, 1992, 1993 130 (C) Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1993 131 (C) Copyright ASCTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992, 1993 132 *************************************************************************** 133 134 Comments on Modifications: 135 */ 136 137 138 #ifndef _WNN_OS_ 139 #define _WNN_OS_ 140 141 /* OS dependent */ 142 143 #include <stdio.h> 144 #include <signal.h> 145 146 #ifdef SYSVR2 147 #include <fcntl.h> 148 #include <string.h> 149 #ifndef AIXV3 150 #define index strchr 151 #endif /* AIXV3 */ 152 #ifndef re_signal 153 # define re_signal(x, y) signal((x), (y)) 154 #endif 155 #else 156 # define re_signal(x, y) 157 #endif 158 159 #if defined(SYSVR2) || defined(UX386) 160 #include <sys/param.h> 161 #ifndef SVR4 /* for Solaris2.x */ 162 #define getdtablesize() (NOFILE) /* sys/param.h must be included */ 163 #endif /* SVR4 */ 164 #ifndef SIGCHLD 165 # define SIGCHLD SIGCLD 166 #endif 167 #endif 168 169 #include <sys/types.h> 170 #include <sys/file.h> 171 172 #ifdef BSD42 173 #include <strings.h> 174 #endif 175 176 #ifdef TERMINFO 177 #include <curses.h> 178 #include <term.h> 179 #endif 180 181 #ifdef HAS_SETLOCALE 182 #include <locale.h> 183 #endif 184 185 /* 186 if your system has wait3() system call define HAVE_WAIT3. 187 wait3() doesn't have to be fully supported. 188 uum uses only NULL for the 3rd parameter rusage. 189 */ 190 191 #if !defined(UX386) && !defined(SVR4) && !defined(hpux) && !defined(AIXV3) 192 #define HAVE_WAIT3 193 #endif 194 195 #if defined(luna) && !defined(SIGNALRETURNSINT) 196 #define SIGNALRETURNSINT 197 #endif 198 199 #ifndef SIGNALRETURNSINT 200 typedef void intfntype; 201 #define SIGNAL_RETURN return 202 #else 203 typedef int intfntype; 204 #define SIGNAL_RETURN return(0) 205 #endif 206 typedef intfntype (*intfnptr)(); 207 208 209 #endif /* _WNN_OS_ */ 210