./0000700000175000017500000000000011403533417011140 5ustar twernertwerner./rxtx-2.2pre2/0000755000175000017500000000000011142441221013236 5ustar twernertwerner./rxtx-2.2pre2/buildwin320000644000175000017500000000062610134440010015142 0ustar twernertwernerrm -f config.cache config.h config.status export WIN32INCLUDE=/home/bob/win32-include export PATH=/usr/local/cross-tools/i386-mingw32/bin/:/bin:/usr/bin:/home/rxtx/jdk1.5.0/bin: ../configure --target=i386-mingw32 --host=i386-pc-linux --build=i386-mingw32 make #export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.3/bin:/usr/local/cross-tools/i386-mingw32/bin/:/usr/local/cross-tools/i386-mingw32/bin ./rxtx-2.2pre2/install-japanese.html0000644000175000017500000001405707021253725017400 0ustar twernertwerner

Software Taken with permission from Masayuki "Tencho" Yamashita's home page.

[java communication toolをLinux上で動かすための設定]
英語をすんなり読める方は、RXTX: The Prescription for Transmissionへアクセスし、プログラムをダウンロードして頂いて
解凍したあとに「INSTALL」ファイルを見てください。

ここからは私が実際に行ったインストール作業です。
(パソコンの環境が異なっている場合もあるので必ずしも成功するとは限らないことをご了承ください)
インストールを行った環境は下記の通りです。
[ Linux Kernel version ] 2.2.12
[ Linux distribution ] Vine1.1(RedHat Linux 5.2 & glibc6 based)
[ RXTX version ] 1.3.8

インストールを行うために下記のファイルを用意しました。

これらのファイルの保存先を以後/hogehogeとしておきます。

まず、JDK1.2をインストールしている方はここを読み飛ばしてステップ5へ進んで下さい。
1. JDK1.2をインストールするために/usr/localに移動しました。
     #cd /usr/local

2. jdk-1.2pre-v2.tar.bz2ファイルを解凍します。
    #bzip2 -dc /hogehoge/jdk1.2pre-v2.tar.bz2 | tar xvf -

3.PATH変数の編集を行います。
   homeディレクトリに.bash_profileという起動ファイルがあるので(ls -aで確認できます)
   適当なエディタを使ってこのファイルを開きます。
   最下行のところに
   PATH=$PATH:/usr/local/jdk1.2/bin
  を記入して保存してください。
  その後、起動ファイルをロードします。 #. $HOME/.bash_profile
  一度logoutしてまたloginします。
  javaコマンドが使えるかどうか"which java"と打って確かめて下さい。

4.このままでもコンパイルできるのですが、コンパイルした後になにやら Sun製JITコンパイラのエラー表示がでます。
  気になる方は JITコンパイラのパーミッションが下記のようになっているので
  jdk1.2/jre/lib/i386/libsunwjit.so -rw-r-----

  #chmod 755 jdk1.2/jre/lib/i386/libsunwjit.so
  と入力しておいてください。
  ただ、JITコンパイラ自体に多少問題を抱えているらしいとの情報があるらしいです。

5. javacomm20-x86-tar.Zを解凍します。(カレントディレクトリは/usr/local/jdk1.2です)
  #uncompress < /hogehoge/javacomm20-x86-tar.Z | tar -xf -
  commapiというディレクトリが作成されているか確認します(#ls )。

6. commapiの中にcomm.jar(Solaris用)とjavax.comm.propertiesがあるので
  所定のディレクトリにコピーします。

  #cp /usr/local/jdk1.2/commapi/comm.jar /usr/local/jdk1.2/jre/lib/ext/
  #cp /usr/local/jdk1.2/commapi/javax.comm.properties /usr/local/jdk1.2/jre/lib/

  余談ですが私はwin32用のcomm.jarを入れたことに気がつかなくて相当悩んでた時期がありました(^ ^;。

7. javax.comm.propertiesを編集します。
   デフォルトで、"Driver=com.sun.commSolarisDriver"と書かれているので
   この行をコメントアウトするなり削除して
   "Driver=gnu.io.RXTXCommDriver" という文字を記述して上書き保存してください。

8. rxtx_1.3.8.tar.gzを解凍します。(カレントディレクトリは/usr/local/jdk1.2です)
   #tar zxvf /hogehoge/rxtx_1.3.8.tar.gz

9. #cd /usr/local/jdk1.2/rxtx-1.3.8/

10. buildディレクトリを作成します。
     #mkdir build

11. #cd build

12. #../cofigure --prefix=/usr

13. #make

14. #make install

きちんと組み込まれているか実際にsample fileを使ってみます。
今回は/usr/local/jdk1.2/commapi/samples/SerialDemo/を用いました。
javaコマンドのPATHを通してない場合は下記のように打てばlogoutするまで有効です。
#export PATH=/usr/local/jdk1.2/bin:$PATH
このままSerialDemo.classを起動させようと
#java SerialDemo
と打っても実行しません。
これは読み取り属性のままになっているからなので、
/usr/local/jdk1.2/commapi/samples/SerialDemo/以下の
すべてのクラスファイル属性に実行権限を与えるようにしないと動きません。
#cd /usr/local/jdk1.2/commapi/samples/SerialDemo/
#chmod 755 AlertDialog.class
.
.省略
.
#chmod 755 SerialParameters.class

これで実行(#java SerialDemo)すると、
"Font specified in font.properties not found"という表示がズラズラとでますが 無事アプリケーションが立ち上がりました。

以上、root上での作業を話してきましたが
user権限でもシリアルポートを使いたいという方は、 /dev/ttyS0 の属性を変える必要があります。
#chmod o+rw /dev/ttyS0
とすればシリアルポートを制御することができますが、個人レベルでなら問題ないですが
公共あるいはインターネットに接続しているようなマシンには十分セキュリティ対策を行ってください。

(99/11/30 執筆)


./rxtx-2.2pre2/aclocal.m40000644000175000017500000010102211126554366015113 0ustar twernertwerner# generated automatically by aclocal 1.10 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_if(m4_PACKAGE_VERSION, [2.61],, [m4_fatal([this file was generated for autoconf 2.61. You have another version of autoconf. If you want to use that, you should regenerate the build system entirely.], [63])]) # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10])dnl _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) ./rxtx-2.2pre2/Makefile.msvc0000644000175000017500000001026611113606560015661 0ustar twernertwerner# ---- # The original author is Eugene Melekhov # Object Tools http://www.object-tools.com # Contributed to rxtx Wed Sep 8 2004 # Reportedly builds rxtxSerial.dll but rxtxParallel.dll is untested. # Accepted as is by taj@www.linux.org.uk # --- # This is the first quick and dirty attempt to compile rxtx for Windows # using Microsoft Visual C compiler. I've done this mostly to debug rxtx # with Microsoft debugger # # This makefile was made for MSVC 6.0. I'm afraid that debug info command # line switches like /Z7 -debugtype:CV -pdb:NONE won't work with # MSVC 7.0 or above. # Last tested successfully with Visual C++ Express 2008 (without the # LINKFLAGS just mentioned). # # The serial port library seems to be working, except the hangup while # writing to unplugged serial port. BTW the mingw32 library behavior # is the same. # # Parallel port library compiles, but I have not used it # # To build rxtx library execute commands like the following # mkdir build # copy Makefile.msvc build\Makefile # cd build # nmake # # To build only serial/parallel library use # nmake serial # or # nmake parallel # # If you wish to make the version with debug info then do something # like this # nmake serial DEBUG_INFO=1 # # 'nmake clean' will remove all object dll and other working files # # Please make sure that variable JAVA_HOME points to the place where # your Java SDK is located # JAVA_HOME = D:\Apps\Java\j2sdk1.4.2_17 COMMINSTALL="$(JAVA_HOME)\jre\lib\ext" LIBINSTALL="$(JAVA_HOME)\jre\bin" JUNIT_JAR=D:\Apps\junit3.8.2\junit.jar JAVAC = $(JAVA_HOME)\bin\javac -source 1.2 -target 1.2 JAR = $(JAVA_HOME)\bin\jar JAVAH = $(JAVA_HOME)\bin\javah JAVA = $(JAVA_HOME)\bin\java SRC=..\src CFLAGS= -nologo -I$(JAVA_HOME)\include -I$(JAVA_HOME)\include\win32 -I$(SRC) -I. -DWIN32 LINK_FLAGS = -nologo -map -incremental:no !IFDEF DEBUG_INFO JAVAC = $(JAVAC) -g CFLAGS = -Z7 -Oi -Oy- $(CFLAGS) CFLAGS_DLL = $(CFLAGS_DLL) -GZ #LINK_FLAGS = $(LINK_FLAGS) -debug -debugtype:CV -pdb:NONE LINK_FLAGS = $(LINK_FLAGS) -debug DEBUG_INFO_FLAG = DEBUG_INFO^=1 !ELSE CFLAGS = $(CFLAGS) -Ox !ENDIF OBJS=init.obj SerialImp.obj termios.obj fuserImp.obj PARALLEL_OBJS= ParallelImp.obj termios.obj init.obj all: serial parallel serial: RXTXcomm.jar rxtxSerial.dll parallel: RXTXcomm.jar rxtxParallel.dll init.obj: config.h $(CC) $(CFLAGS) /TP -c $(SRC)\init.cc fixup.obj: config.h $(CC) $(CFLAGS) -c $(SRC)\fixup.c fuserImp.obj: $(SRC)\fuserImp.c config.h gnu_io_CommPortIdentifier.h $(CC) $(CFLAGS) -c $(SRC)\fuserImp.c termios.obj: $(SRC)\termios.c $(SRC)\win32termios.h config.h $(CC) $(CFLAGS) -c $(SRC)\termios.c SerialImp.obj: $(SRC)\SerialImp.c $(SRC)\SerialImp.h $(SRC)\win32termios.h config.h gnu_io_RXTXPort.h $(CC) $(CFLAGS) -c $(SRC)\SerialImp.c ParallelImp.obj: $(SRC)\ParallelImp.c $(SRC)\ParallelImp.h $(SRC)\win32termios.h config.h gnu_io_LPRPort.h $(CC) $(CFLAGS) -c $(SRC)\ParallelImp.c rxtxSerial.dll: $(OBJS) link -dll -out:$@ $** $(LINK_FLAGS) rxtxParallel.dll: $(PARALLEL_OBJS) link -dll -out:$@ $** $(LINK_FLAGS) gnu_io_RXTXPort.h gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_RXTXVersion.h: RXTXcomm.jar $(JAVAH) -jni gnu.io.RXTXPort gnu.io.CommPortIdentifier gnu.io.LPRPort gnu.io.RXTXVersion RXTXcomm.jar: $(JAVAC) -d . ..\src\gnu\io\*.java $(JAR) -cf RXTXcomm.jar gnu config.h: Makefile echo #define HAVE_FCNTL_H >> config.h echo #define HAVE_SIGNAL_H >> config.h echo #undef HAVE_SYS_FCNTL_H >> config.h echo #undef HAVE_SYS_FILE_H >> config.h echo #undef HAVE_SYS_SIGNAL_H >> config.h echo #undef HAVE_TERMIOS_H >> config.h echo #undef HAVE_SYS_TIME_H >> config.h testcp\stamp: RXTXcomm.jar ..\tests\gnu\io\rxtx\tests\*.java -mkdir testcp $(JAVAC) -classpath RXTXcomm.jar;$(JUNIT_JAR) -d testcp ..\tests\gnu\io\rxtx\tests\*.java echo > testcp\stamp tests: all testcp\stamp $(JAVA) -classpath RXTXcomm.jar;testcp;$(JUNIT_JAR) gnu.io.rxtx.tests.RXTXTestSuite clean: -rmdir /s /q gnu -rmdir /s /q testcp -del *.obj *.h RXTXcomm.jar rxtxSerial.* rxtxParallel.* install: all @REM xcopy /Y RXTXcomm.jar $(COMMINSTALL) @REM xcopy RXTXcomm.jar "e:\matlab~1\java\jarext\commapi\win32" @REM xcopy /Y rxtx*.dll $(LIBINSTALL) @REM xcopy $(TARGETLIBS) "e:\matlab~1\bin\win32" ./rxtx-2.2pre2/AUTHORS0000644000175000017500000001011110720065436014313 0ustar twernertwernerThis is AUTHORS Sun Nov 18 09:29:52 MST 2007 This package is not the result of one persons time. Recognition is given to the following people for their assistance. Martin Oberhuber Has submitted several fixes for rxtx integration into Eclipse. Stephane Cachat J2SE java.util.loggin and property file to match Sheikh, Awais HP-UX port enumeration fixes. Bill Smith QNX Port Michal Hobot MichalHobot@netscape.net http://www.mhobot.w.pl WinCE port. Scott Burleigh Documentation of ThinkPad Serial Behavior and clairification of "No serial ports found!" Melissa Pike Integration of rxtx into QA tests. Jauhar Ismail QA testing Joey Armstrong The amazing wonder pulling things together behind the scenes. Finbarr O'Kane True64 Port Peter C. Verhage FreeBSD fixes Jonathan Schilling UnixWare and OpenUNIX ports Dmitry Markman Mac OS X builds with CW lots of fixes Joseph Goldstone Mac OS X port. Brian Hindman Brian initiated the BeOS port and implemented most of the functions. Chris Portal Joey Armstrong did some intense testing and debugging of RS232 on Linux. "Bertrand Renuart" provided a java side read() which appears to have resolved many problems. W. Craig Trader and Gareth Lee Added Calls to DeleteLocalRef to functions get_java_var and throw_java_exception to avoid FATAL ERROR in native method: Out of memory when expanding local ref table beyond capacity Tim Groner Assistance tracking down an open() bug that was accidently introduced in rxtx-1.3-10. "Alejandro P. Revilla" Assistance tracking down event_loop races. Peter Bennett Moxa serial board support. Bug hunting. Simple Read/Write example contributions. Masayuki "Tencho" Yamashita Japanese install instructions Stuart Anderson Free-BSD port Ken Thompson Comtrol RocketPort serial boards support. Holger Lehmann Printer support fixes Neil Darlow Flow Control Modifications/Implementation. Will Kassebaum Work on rxtx.spec Douglas Lau Major Rewrite. rxtx-1.3. Multiple fixes and enhancements. Wayne Roberts Win32 Enhancements (extensive) Read Timeouts. Thresholds. event notification. Linux kernel hacking. verification of rxtx with analysis equipment. Wayne has been invaluable to rxtx. The project would be a 404 without him. Yuen-Ping Leung Fixes for FreeBSD support. David Atkinson david.atkinson@vf.vodafone.co.uk Hardware event handling implementation. Many fixes and contributions. Sheldon Young sheldon@intergate.bc.ca JCL/CommAPI compatibility with "javacomm20-ea" Many fixes and contributions. kevinh@acm.org (Kevin Hester) CommAPI support. The Linux Comm Project http://www.interstice.com/~kevinh/linuxcomm.html src/RXTXPort.java src/RXTXCommDriver.java karl@blackdown.org (Karl Asha) Karl gave this package a web presence at www.blackdown.org Debugging the autoconfig Reminding me to upgrade to 1.1.1. oliver@io.aec.at (Oliver Frommel) IRIX port Fixed open() call so pins 4,5,6,8 and 20 don't need to be tied together. Helped track down a problem with the threads that prevented the package from working. Multiple suggestions. Verifying serial communication with the rs232 analyzer Michael.Forte@Corp.Sun.COM (Mike Forte) SunOS port Gilles.Paquet@ulb.ac.be (Gilles Paquet) SunOS port Martin Pool Added support for explicitly-specified lists of ports Maintainer: Trent Jarvi taj@www.linux.org.uk. ./rxtx-2.2pre2/WinCE/0000755000175000017500000000000011126534475014223 5ustar twernertwerner./rxtx-2.2pre2/WinCE/rxtxHelpers.cpp0000644000175000017500000004645410614033754017267 0ustar twernertwerner| RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net /*------------------------------------------------------------------------- | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include "StdAfx.h" #include #include #include "rxtxHelpers.h" /*---------------------------------------------------------- get_java_int_var accept: env (keyhole to java) jobj (java RXTXPort object) return: the jint field from the java object, casted to long exceptions: none comments: ----------------------------------------------------------*/ long get_java_int_var( JNIEnv *env, jobject jobj, char *id) { long result = 0; jclass jclazz = env->GetObjectClass(jobj); jfieldID jfd = env->GetFieldID(jclazz, id, "I"); if( !jfd ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(jclazz); return result; } result = (long)( env->GetIntField(jobj, jfd) ); env->DeleteLocalRef(jclazz); return result; } /*---------------------------------------------------------- get_java_boolean_var accept: env (keyhole to java) jobj (java RXTXPort object) return: the jboolean field from the java object, converted to bool exceptions: none comments: ----------------------------------------------------------*/ bool get_java_boolean_var( JNIEnv *env, jobject jobj, char *id) { bool result = FALSE; jclass jclazz = env->GetObjectClass(jobj); jfieldID jfd = env->GetFieldID(jclazz, id, "Z"); if( !jfd ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(jclazz); return result; } result = (env->GetBooleanField(jobj, jfd)) != JNI_FALSE; env->DeleteLocalRef(jclazz); return result; } /*---------------------------------------------------------- get_java_boolean_var2 accept: env (keyhole to java) jobj (java RXTXPort object) jclazz (class of jobj) return: the jboolean field from the java object, converted to bool exceptions: none comments: can be faster for fetching many variables one by one ----------------------------------------------------------*/ bool get_java_boolean_var2(JNIEnv *env, jobject jobj, jclass jclazz, char *id) { bool result = FALSE; jfieldID jfd = env->GetFieldID(jclazz, id, "Z"); if( !jfd ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(jclazz); return result; } result = (env->GetBooleanField(jobj, jfd)) != JNI_FALSE; return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception(JNIEnv *env, const char *exc, const char *foo, const char *msg) { char buf[250]; jclass clazz = env->FindClass(exc); if( !clazz ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); return; } _snprintf(buf, 60, "%s: %s in %s", exc, msg, foo); env->ThrowNew(clazz, buf); env->DeleteLocalRef(clazz); } // Unicode version: void throw_java_exceptionW(JNIEnv *env, const char *exc, const wchar_t *foo, const wchar_t *msg) { wchar_t buf[500]; char *lpcBuf; int msgLen; jclass clazz = env->FindClass(exc); if( !clazz ) { env->ExceptionDescribe(); env->ExceptionClear(); return; } msgLen = swprintf(buf, L"%S: %s in %s", exc, msg, foo); IF_DEBUG ( printj(env, L"!!!!! Throwing %s\n", buf); //MessageBox(NULL, buf, L"throw_java_exceptionW"), MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ) lpcBuf = (char *)malloc((msgLen+1)*sizeof(wchar_t)); // Will be ok - mbs not longer than wcs lpcBuf[msgLen] = '\0'; wcstombs(lpcBuf, buf, msgLen); env->ThrowNew(clazz, lpcBuf); free(lpcBuf); env->DeleteLocalRef(clazz); } /*---------------------------------------------------------- get_fd accept: env (keyhole to java) jobj (java RXTXPort object) return: "fd" field from the java object, as HANDLE exceptions: none comments: ----------------------------------------------------------*/ HANDLE get_fd(JNIEnv *env, jobject jobj) { HANDLE fd = (HANDLE)get_java_int_var(env, jobj, "fd"); return fd!=0?fd:INVALID_HANDLE_VALUE; } /*---------------------------------------------------------- get_eis accept: env (keyhole to java) jobj (java RXTXPort object) return: "eis" field from the java object, as (EventInfoStruct *) exceptions: none comments: ----------------------------------------------------------*/ EventInfoStruct *get_eis(JNIEnv *env, jobject jobj) { return (EventInfoStruct *)get_java_int_var(env, jobj, "eis"); } /*---------------------------------------------------------- printj accept: like vwprintf() return: number of jchars written or -1 exceptions: none comments: prints data using System.out.print() ----------------------------------------------------------*/ int printj(JNIEnv *env, wchar_t *fmt, ...) { wchar_t buf[1024]; int retval; jstring jsBuf; jclass clsSystem, clsOut; jfieldID jfid; jobject objOut; jmethodID midPrint; va_list ap; va_start(ap, fmt); retval = _vsnwprintf(buf, 1024, fmt, ap); va_end(ap); buf[1023] = '\0'; if((clsSystem = env->FindClass("java/lang/System")) == NULL) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); return -1; } if((jfid = env->GetStaticFieldID(clsSystem, "out", "Ljava/io/PrintStream;")) == NULL) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(clsSystem); return -1; } objOut = env->GetStaticObjectField(clsSystem, jfid); clsOut = env->GetObjectClass(objOut); if((midPrint = env->GetMethodID(clsOut, "print", "(Ljava/lang/String;)V")) == NULL) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(clsOut); env->DeleteLocalRef(clsSystem); return -1; } jsBuf = env->NewString(buf, wcslen(buf)); env->CallVoidMethod(objOut, midPrint, jsBuf); env->DeleteLocalRef(jsBuf); env->DeleteLocalRef(clsOut); env->DeleteLocalRef(clsSystem); return retval; } /*---------------------------------------------------------- CommEventThread accept: communication structure ptr return: 0 - normal finish, other - error exceptions: none comments: runs as separate thread ----------------------------------------------------------*/ DWORD __stdcall CommEventThread(LPVOID lpEventInfo) { DWORD dwErr; EventInfoStruct *EventInfo = (EventInfoStruct *)lpEventInfo; HANDLE hPort = EventInfo->fd; // Specify a set of events to be monitored for the port. if(!SetCommMask(hPort, EventInfo->ef)) { dwErr = GetLastError(); IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(dwErr, lpMsgBuf); MessageBoxW(NULL, lpMsgBuf, L"!!! CommEventThread - SetCommMask() error", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ReleaseErrorMsg(lpMsgBuf); ) return dwErr; } // Thread is ready to work EventInfo->eventThreadReady = true; do { // Wait for an event to occur for the port. if(!WaitCommEvent(hPort, &(EventInfo->event), NULL)) { dwErr = GetLastError(); if(dwErr == ERROR_INVALID_PARAMETER) { // Mask is empty - let's wait for a moment and continue MessageBeep(MB_ICONQUESTION); Sleep(200); continue; } if(dwErr == ERROR_INVALID_HANDLE) { // Port was closed //MessageBox(NULL, L"--- CommEventThread - Port closed", L"ERROR_INVALID_HANDLE", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); free(EventInfo); return 0; } IF_DEBUG ( LPCWSTR lpMsgBuf; WCHAR MsgBuf2[1000]; CreateErrorMsg(dwErr, lpMsgBuf); wsprintfW(MsgBuf2, L"%ld %s, CommMask==%ld", dwErr, lpMsgBuf, EventInfo->ef); MessageBoxW(NULL, MsgBuf2, L"!!! CommEventThread - WaitCommEvent() error", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ReleaseErrorMsg(lpMsgBuf); ) return dwErr; } IF_DEBUG ( MessageBeep(MB_ICONEXCLAMATION); //MessageBoxW(NULL, L"--- RXTXPort.CommEventThread() - CommEvent", L"CommEventThread", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ) // Re-specify the set of events to be monitored for the port. if(!SetCommMask(hPort, EventInfo->ef)) { dwErr = GetLastError(); IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(dwErr, lpMsgBuf); MessageBoxW(NULL, lpMsgBuf, L"!!! CommEventThread - SetCommMask() error", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ReleaseErrorMsg(lpMsgBuf); ) return dwErr; } if(!SetEvent(EventInfo->eventHandle)) { dwErr = GetLastError(); if(dwErr == ERROR_INVALID_HANDLE) // Event was closed { //MessageBoxW(NULL, L"--- CommEventThread - Event closed", L"ERROR_INVALID_HANDLE", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); free(EventInfo); return 0; } IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(dwErr, lpMsgBuf); MessageBoxW(NULL, lpMsgBuf, L"!!! CommEventThread - SetEvent() error", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ReleaseErrorMsg(lpMsgBuf); ) return dwErr; } // Wait for receiving and clearing event while(EventInfo->event != 0) Sleep(0); } while(TRUE); } /*---------------------------------------------------------- setEventFlags accept: EventFlag table return: none exceptions: none comments: sets EventFlag table according to Java MonitorThread fields ----------------------------------------------------------*/ /*void setEventFlags(JNIEnv *env, jobject jobjPort, bool ef[]) { jfieldID jfid; jclass cls; jobject jobj; jclass clsPort = env->GetObjectClass(jobjPort); if((jfid = env->GetFieldID(clsPort, "monThread", "Lgnu/io/RXTXPort$MonitorThread;")) == NULL) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(clsPort); return; } jobj = env->GetObjectField(jobjPort, jfid); cls = env->GetObjectClass(jobj); ef[SPE_DATA_AVAILABLE] = get_java_boolean_var2(env, jobj, cls, "Data"); ef[SPE_OUTPUT_BUFFER_EMPTY] = get_java_boolean_var2(env, jobj, cls, "Output"); ef[SPE_CTS] = get_java_boolean_var2(env, jobj, cls, "CTS"); ef[SPE_DSR] = get_java_boolean_var2(env, jobj, cls, "DSR"); ef[SPE_RI] = get_java_boolean_var2(env, jobj, cls, "RI"); ef[SPE_CD] = get_java_boolean_var2(env, jobj, cls, "CD"); ef[SPE_OE] = get_java_boolean_var2(env, jobj, cls, "OE"); ef[SPE_PE] = get_java_boolean_var2(env, jobj, cls, "PE"); ef[SPE_FE] = get_java_boolean_var2(env, jobj, cls, "FE"); ef[SPE_BI] = get_java_boolean_var2(env, jobj, cls, "BI"); env->DeleteLocalRef(clsPort); env->DeleteLocalRef(cls); env->DeleteLocalRef(jobj); } */ /*---------------------------------------------------------- InitialiseEventInfoStruct accept: Port handle return: 0 - OK, other - error number exceptions: none comments: Structure for communication with thread ----------------------------------------------------------*/ int InitialiseEventInfoStruct(HANDLE hPort, EventInfoStruct **EventInfoPtr) { DWORD dwErr; WCHAR wsEventName[MAX_PATH]; (*EventInfoPtr) = (EventInfoStruct *)malloc(sizeof(EventInfoStruct)); if(*EventInfoPtr == NULL) return ERROR_NOT_ENOUGH_MEMORY; memset(*EventInfoPtr, 0, sizeof(EventInfoStruct)); (*EventInfoPtr)->fd = hPort; wsprintfW(wsEventName, L"rxtxPort.SerEvt%lx", hPort); (*EventInfoPtr)->eventHandle = CreateEventW(NULL, FALSE, FALSE, wsEventName); dwErr = GetLastError(); if((*EventInfoPtr)->eventHandle == NULL || dwErr == ERROR_ALREADY_EXISTS) { IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(dwErr, lpMsgBuf); MessageBoxW(NULL, lpMsgBuf, L"!!! InitialiseEventInfoStruct - CreateEvent() error", MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND); ReleaseErrorMsg(lpMsgBuf); ) free(*EventInfoPtr); return dwErr; } // Set initial event flags: It should be not empty, but unused here and relatively rare event (*EventInfoPtr)->ef = EV_POWER; //In WinNT you can use EV_EVENT2 instead return 0; } /*---------------------------------------------------------- SendEvents accept: return: exceptions: none comments: Sends events needed ----------------------------------------------------------*/ int SendEvents(JNIEnv *env, jobject jobj, DWORD dwEvent, EventInfoStruct *EventInfo, jmethodID jmSendEvent) { DWORD dwErrors; COMSTAT Stat; IF_DEBUG ( printj(env, L"--- SendEvents(): event %#lx\n", dwEvent); ) if(!ClearCommError(EventInfo->fd, &dwErrors, &Stat)) { IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(GetLastError(), lpMsgBuf); printj(env, L"!!! SendEvents - ClearCommError() error: %s\n", lpMsgBuf); ReleaseErrorMsg(lpMsgBuf); ) return -1; } // Ignore not subscribed events dwEvent &= EventInfo->ef; if(dwEvent & EV_RXCHAR) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_RXCHAR\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_DATA_AVAILABLE, JNI_TRUE) == JNI_TRUE) return SPE_DATA_AVAILABLE; } if(dwEvent & EV_TXEMPTY) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_TXEMPTY\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_OUTPUT_BUFFER_EMPTY, JNI_TRUE) == JNI_TRUE) return SPE_OUTPUT_BUFFER_EMPTY; } if(dwEvent & EV_CTS) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_CTS\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_CTS, Stat.fCtsHold?JNI_TRUE:JNI_TRUE) == JNI_TRUE) return SPE_CTS; } if(dwEvent & EV_DSR) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_DSR\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_DSR, Stat.fDsrHold?JNI_TRUE:JNI_TRUE) == JNI_TRUE) return SPE_DSR; } if(dwEvent & EV_RING) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_RING\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_RI, JNI_TRUE) == JNI_TRUE) return SPE_RI; } if(dwEvent & EV_RLSD) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_RLSD\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_CD, Stat.fRlsdHold?JNI_TRUE:JNI_TRUE) == JNI_TRUE) return SPE_CD; } if(dwEvent & EV_ERR) { if(dwErrors & CE_OVERRUN) { IF_DEBUG ( printj(env, L"--- SendEvents(): CE_OVERRUN\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_OE, JNI_TRUE) == JNI_TRUE) return SPE_OE; } if(dwErrors & CE_RXPARITY) { IF_DEBUG ( printj(env, L"--- SendEvents(): CE_RXPARITY\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_PE, JNI_TRUE) == JNI_TRUE) return SPE_PE; } if(dwErrors & CE_FRAME) { IF_DEBUG ( printj(env, L"--- SendEvents(): CE_FRAME\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_FE, JNI_TRUE) == JNI_TRUE) return SPE_FE; } } if(dwEvent & EV_BREAK) { IF_DEBUG ( printj(env, L"--- SendEvents(): EV_BREAK\n"); ) if(env->CallBooleanMethod(jobj, jmSendEvent, SPE_BI, JNI_TRUE) == JNI_TRUE) return SPE_BI; } return 0; } ./rxtx-2.2pre2/WinCE/gnu_io_RXTXPort.cpp0000644000175000017500000014112510614033754017740 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include "StdAfx.h" #include "rxtxHelpers.h" /* Initialize accept: none perform: Initialize the native library return: none exceptions: none comments: * Class: gnu_io_RXTXPort * Method: Initialize * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_Initialize(JNIEnv *env, jclass cls) { } /* open accept: The device to open. ie "COM1:" perform: open the device return: handle exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. * Class: gnu_io_RXTXPort * Method: open * Signature: (Ljava/lang/String{ })I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_open(JNIEnv *env, jobject jobj, jstring name) { DCB PortDCB; COMMTIMEOUTS CommTimeouts; LPCWSTR lpMsgBuf; EventInfoStruct *EventInfo; DWORD dwErr; LPCWSTR wszName = env->GetStringChars(name, NULL); HANDLE hPort = CreateFileW(wszName, // Pointer to the name of the port GENERIC_READ | GENERIC_WRITE,// Access (read-write) mode 0, // Share mode NULL, // Pointer to the security attribute OPEN_EXISTING,// How to open the serial port 0, // Port attributes NULL); // Handle to port with attribute to copy // If it fails to open the port, return FALSE. if ( hPort == INVALID_HANDLE_VALUE ) { // Could not open the port. CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, PORT_IN_USE_EXCEPTION, L"open - CreateFile", lpMsgBuf ); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseStringChars(name, wszName); return (jint)INVALID_HANDLE_VALUE; } PortDCB.DCBlength = sizeof (DCB); // Get the default port setting information. GetCommState(hPort, &PortDCB); // Change the DCB structure settings. PortDCB.fBinary = TRUE; // Binary mode; no EOF check PortDCB.fParity = TRUE; // Enable parity checking PortDCB.fOutxDsrFlow = FALSE; // No DSR output flow control PortDCB.fDtrControl = DTR_CONTROL_HANDSHAKE;// DTR flow control type PortDCB.fDsrSensitivity = FALSE; // DSR sensitivity PortDCB.fTXContinueOnXoff = TRUE; // XOFF continues Tx PortDCB.fErrorChar = FALSE; // Disable error replacement PortDCB.fNull = FALSE; // Disable null stripping PortDCB.fRtsControl = RTS_CONTROL_ENABLE;// RTS flow control PortDCB.fAbortOnError = FALSE; // Do not abort reads/writes on error // Configure the port according to the specifications of the DCB structure. if (!SetCommState(hPort, &PortDCB)) { // Could not set comm port state CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, PORT_IN_USE_EXCEPTION, L"open - SetCommState", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseStringChars(name, wszName); return (jint)INVALID_HANDLE_VALUE; } // Retrieve the time-out parameters for all read and write operations // on the port. GetCommTimeouts(hPort, &CommTimeouts); // Change the COMMTIMEOUTS structure settings. CommTimeouts.ReadIntervalTimeout = 0; CommTimeouts.ReadTotalTimeoutMultiplier = 0; CommTimeouts.ReadTotalTimeoutConstant = MAXDWORD; CommTimeouts.WriteTotalTimeoutMultiplier = 10; CommTimeouts.WriteTotalTimeoutConstant = 1000; // Set the time-out parameters for all read and write operations // on the port. if (!SetCommTimeouts(hPort, &CommTimeouts)) { // Unable to set the time-out parameters CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, PORT_IN_USE_EXCEPTION, L"open - SetCommTimeouts", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseStringChars(name, wszName); return (jint)INVALID_HANDLE_VALUE; } // SETRTS: Sends the RTS (request-to-send) signal. EscapeCommFunction(hPort, SETRTS); if(dwErr = InitialiseEventInfoStruct(hPort, &EventInfo)) { // Unable to set up EventInfo structure for event processing CreateErrorMsg(dwErr, lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"open - InitialiseEventInfoStruct", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseStringChars(name, wszName); return (jint)INVALID_HANDLE_VALUE; } jclass cls = env->GetObjectClass(jobj); jfieldID jfEis = env->GetFieldID(cls, "eis", "I"); if( !jfEis ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); // Free the buffers. env->ReleaseStringChars(name, wszName); return (jint)INVALID_HANDLE_VALUE; } env->SetIntField(jobj, jfEis, (jint)EventInfo); env->ReleaseStringChars(name, wszName); // Returning HANDLE (which is a pointer) as file descriptor... Anyway, 32 bits are 32 bits return (jint)hPort; } /* nativeSetSerialPortParams accept: speed, data bits, stop bits, parity perform: set the serial port parameters return: void exceptions: UnsupportedCommOperationException * Class: gnu_io_RXTXPort * Method: nativeSetSerialPortParams * Signature: (IIII)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { DCB PortDCB; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeSetSerialPortParams(%ld, %ld, %ld, %ld) called\n", speed, dataBits, stopBits, parity); ) // Get the default port setting information. if(!GetCommState(hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetSerialPortParams - GetCommState", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } // Change the DCB structure settings. PortDCB.BaudRate = speed; // Current baud PortDCB.ByteSize = (BYTE)dataBits; // Number of bits/byte, 4-8 PortDCB.Parity = (BYTE)parity; // 0-4=no,odd,even,mark,space switch(stopBits) { case gnu_io_RXTXPort_STOPBITS_1: PortDCB.StopBits = ONESTOPBIT; break; case gnu_io_RXTXPort_STOPBITS_2: PortDCB.StopBits = TWOSTOPBITS; break; case gnu_io_RXTXPort_STOPBITS_1_5: PortDCB.StopBits = ONE5STOPBITS; break; default: throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetSerialPortParams", L"Incorrect stopBits"); } // Configure the port according to the specifications of the DCB structure. if (!SetCommState (hPort, &PortDCB)) { //Unable to configure the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetSerialPortParams - SetCommState", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } } /* setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: UnsupportedCommOperationException comments: there is no differentiation between input and output hardware flow control * Class: gnu_io_RXTXPort * Method: setflowcontrol * Signature: (I)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setflowcontrol(JNIEnv *env, jobject jobj, jint flowcontrol) { DCB PortDCB; LPCWSTR lpMsgBuf; IF_DEBUG ( printj(env, L"--- RXTXPort.setflowcontrol(%ld) called\n", flowcontrol); ) HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); if(!GetCommState (hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"setflowcontrol - GetCommState", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } if(flowcontrol & (gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN | gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT)) PortDCB.fRtsControl = RTS_CONTROL_HANDSHAKE; else PortDCB.fRtsControl = RTS_CONTROL_ENABLE; if(flowcontrol & gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT) PortDCB.fOutxCtsFlow = TRUE; else PortDCB.fOutxCtsFlow = FALSE; if(flowcontrol & gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN) PortDCB.fInX = TRUE; else PortDCB.fInX = FALSE; if(flowcontrol & gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT) PortDCB.fOutX = TRUE; else PortDCB.fOutX = FALSE; // Configure the port according to the specifications of the DCB structure. if (!SetCommState (hPort, &PortDCB)) { // Could not set params CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"setflowcontrol - SetCommState", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } } /* NativegetReceiveTimeout accept: none perform: get termios.c_cc[VTIME] return: VTIME comments: see NativeEnableReceiveTimeoutThreshold * Class: gnu_io_RXTXPort * Method: NativegetReceiveTimeout * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_NativegetReceiveTimeout(JNIEnv *env, jobject jobj) { COMMTIMEOUTS CommTimeouts; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.NativegetReceiveTimeout() called\n"); ) // Retrieve the time-out parameters for all read and write operations on the port. if (!GetCommTimeouts(hPort, &CommTimeouts)) { // Unable to get the time-out parameters CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"NativegetReceiveTimeout - GetCommTimeouts", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return -1; } // As far as I know c_cc is byte table return CommTimeouts.ReadIntervalTimeout/100 <= 255 ? CommTimeouts.ReadIntervalTimeout / 100 : 255; } /* NativeisReceiveTimeoutEnabled accept: none perform: determine if VTIME is none 0 return: JNI_TRUE if VTIME > 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold * Class: gnu_io_RXTXPort * Method: NativeisReceiveTimeoutEnabled * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled(JNIEnv *env, jobject jobj) { COMMTIMEOUTS CommTimeouts; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.NativeisReceiveTimeoutEnabled() called\n"); ) // Retrieve the time-out parameters for all read and write operations // on the port. if (!GetCommTimeouts(hPort, &CommTimeouts)) { // Unable to get the time-out parameters CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"NativeisReceiveTimeoutEnabled - GetCommTimeouts", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return -1; } return CommTimeouts.ReadIntervalTimeout || CommTimeouts.ReadTotalTimeoutConstant || CommTimeouts.ReadTotalTimeoutMultiplier ? JNI_TRUE : JNI_FALSE; } /* NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. * Class: gnu_io_RXTXPort * Method: NativeEnableReceiveTimeoutThreshold * Signature: (III)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold(JNIEnv *env, jobject jobj, jint time, jint threshold, jint InputBuffer) { COMMTIMEOUTS CommTimeouts; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.NativeEnableReceiveTimeoutThreshold(%ld, %ld) called\n", time, threshold); ) // Retrieve the time-out parameters for all read and write operations // on the port. if (!GetCommTimeouts(hPort, &CommTimeouts)) { // Unable to get the time-out parameters CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"NativeEnableReceiveTimeoutThreshold - GetCommTimeouts", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } /* ------ from javax.comm.CommPort javadoc ------------------------------------------------------------- | Threshold | Timeout |Read Buffer Size | Read Behaviour |State |Value |State |Value| | |disabled| - |disabled| - | n bytes | block until any data is available |enabled |m bytes|disabled| - | n bytes | block until min(m,n) bytes are available |disabled| - |enabled |x ms | n bytes | block for x ms or until any data is available |enabled |m bytes|enabled |x ms | n bytes | block for x ms or until min(m,n) bytes are available -------------------------------------------------------------------------------------------------------- Enabling the Timeout OR Threshold with a value a zero is a special case. This causes the underlying driver to poll for incoming data instead being event driven. Otherwise, the behaviour is identical to having both the Timeout and Threshold disabled. */ // Following is based on my understanding of timeout parameters meaning. // Not completely precise (threshold?!) if(time == 0) { // polling mode - return if no data CommTimeouts.ReadIntervalTimeout = MAXDWORD; CommTimeouts.ReadTotalTimeoutMultiplier = MAXDWORD; CommTimeouts.ReadTotalTimeoutConstant = 1; } else if(time == -1) { // disable timeout CommTimeouts.ReadIntervalTimeout = 0; CommTimeouts.ReadTotalTimeoutMultiplier = 0; CommTimeouts.ReadTotalTimeoutConstant = 0; } else { // set timeout CommTimeouts.ReadIntervalTimeout = 0; CommTimeouts.ReadTotalTimeoutMultiplier = 0; CommTimeouts.ReadTotalTimeoutConstant = time; } // Set the time-out parameters for all read and write operations // on the port. if (!SetCommTimeouts (hPort, &CommTimeouts)) { // Unable to set the time-out parameters CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"NativeEnableReceiveTimeoutThreshold - SetCommTimeouts", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } } /* isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready * Class: gnu_io_RXTXPort * Method: isDTR * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDTR(JNIEnv *env, jobject jobj) { DCB PortDCB; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); // Get the default port setting information. if(!GetCommState(hPort, &PortDCB)) { GetLastError(); return JNI_FALSE; } // This is not completely correct: I assume that nobody's playing with // manually setting/resetting DTR. Instead, DTR is in handshake mode (ON unless // port closed) or disable mode (OFF). // So, don't use EscapeCommFunction(SETDTR/CLRDTR) in this library! return PortDCB.fDtrControl != DTR_CONTROL_DISABLE ? JNI_TRUE : JNI_FALSE; } /* setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready * Class: gnu_io_RXTXPort * Method: setDTR * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDTR(JNIEnv *env, jobject jobj, jboolean state) { DCB PortDCB; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); // Don't use EscapeCommFunction(SETDTR/CLRDTR) in this library! // Get the default port setting information. if(!GetCommState (hPort, &PortDCB)) { //Unable to get configuration of the serial port GetLastError(); return; } if(state == JNI_TRUE) PortDCB.fDtrControl = DTR_CONTROL_HANDSHAKE; else PortDCB.fDtrControl = DTR_CONTROL_DISABLE; // Configure the port according to the specifications of the DCB structure. if (!SetCommState (hPort, &PortDCB)) { //Unable to configure the serial port GetLastError(); return; } } /* setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW * Class: gnu_io_RXTXPort * Method: setRTS * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setRTS(JNIEnv *env, jobject jobj, jboolean state) { HANDLE hPort = get_fd(env, jobj); // EscapeCommFunction will fail if there's RTS/CTS flowcontrol. If it is incorrect, // we could turn flowcontrol off when getting to this function if(state == JNI_TRUE) EscapeCommFunction(hPort, SETRTS); else EscapeCommFunction(hPort, CLRRTS); } /* setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW * Class: gnu_io_RXTXPort * Method: setDSR * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDSR(JNIEnv *env, jobject jobj, jboolean state) { DCB PortDCB; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); // Get the default port setting information. if(!GetCommState (hPort, &PortDCB)) { //Unable to get configuration of the serial port GetLastError(); return; } // Change the DCB structure settings. if(state != JNI_FALSE) PortDCB.fOutxDsrFlow = TRUE; else PortDCB.fOutxDsrFlow = FALSE; // Configure the port according to the specifications of the DCB // structure. if (!SetCommState (hPort, &PortDCB)) { //Unable to configure the serial port GetLastError(); return; } } /* isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. * Class: gnu_io_RXTXPort * Method: isCTS * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCTS(JNIEnv *env, jobject jobj) { DWORD ModemStat; HANDLE hPort = get_fd(env, jobj); if(!GetCommModemStatus(hPort, &ModemStat)) return JNI_FALSE; return ModemStat|MS_CTS_ON ? JNI_TRUE : JNI_FALSE; } /* isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready * Class: gnu_io_RXTXPort * Method: isDSR * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDSR(JNIEnv *env, jobject jobj) { DWORD ModemStat; HANDLE hPort = get_fd(env, jobj); if(!GetCommModemStatus(hPort, &ModemStat)) return JNI_FALSE; return ModemStat|MS_DSR_ON ? JNI_TRUE : JNI_FALSE; } /* isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" * Class: gnu_io_RXTXPort * Method: isCD * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCD(JNIEnv *env, jobject jobj) { DWORD ModemStat; HANDLE hPort = get_fd(env, jobj); if(!GetCommModemStatus(hPort, &ModemStat)) return JNI_FALSE; return ModemStat|MS_RLSD_ON ? JNI_TRUE : JNI_FALSE; } /* isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator * Class: gnu_io_RXTXPort * Method: isRI * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRI(JNIEnv *env, jobject jobj) { DWORD ModemStat; HANDLE hPort = get_fd(env, jobj); if(!GetCommModemStatus(hPort, &ModemStat)) return JNI_FALSE; return ModemStat|MS_RING_ON ? JNI_TRUE : JNI_FALSE; } /* isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW * Class: gnu_io_RXTXPort * Method: isRTS * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRTS(JNIEnv *env, jobject jobj) { DCB PortDCB; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); if(!GetCommState (hPort, &PortDCB)) { //Unable to get configuration of the serial port GetLastError(); return JNI_FALSE; } if(PortDCB.fRtsControl == RTS_CONTROL_DISABLE) return JNI_FALSE; if(PortDCB.fRtsControl == RTS_CONTROL_ENABLE) return JNI_TRUE; if(PortDCB.fRtsControl == RTS_CONTROL_HANDSHAKE) { //MessageBox(NULL, L"Undefined condition: isRTS() but control is RTS_CONTROL_HANDSHAKE\r\nReturning FALSE", L"Warning", MB_OK | MB_ICONWARNING | MB_SETFOREGROUND); printj(env, L"Undefined condition: isRTS() but control is RTS_CONTROL_HANDSHAKE. Returning FALSE\n"); return JNI_FALSE; } return JNI_FALSE; } /* sendBreak accept: duration in milliseconds. perform: send break for actual time. not less than 0.25 seconds. exceptions: none comments: not very precise * Class: gnu_io_RXTXPort * Method: sendBreak * Signature: (I)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_sendBreak(JNIEnv *env, jobject jobj, jint duration) { HANDLE hPort = get_fd(env, jobj); SetCommBreak(hPort); Sleep(duration); ClearCommBreak(hPort); } /* writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException * Class: gnu_io_RXTXPort * Method: writeByte * Signature: (IZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeByte(JNIEnv *env, jobject jobj, jint b, jboolean i) { DWORD dwNumBytesWritten; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); BYTE bb = (BYTE)b; do { if (!WriteFile(hPort, // Port handle &bb, // Pointer to the data to write 1, // Number of bytes to write &dwNumBytesWritten, // Pointer to the number of bytes written NULL)) // Must be NULL for Windows CE { // WriteFile failed. Report error. CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"writeByte - WriteFile", lpMsgBuf ); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return; } } while(dwNumBytesWritten == 0); } /* writeArray accept: jbarray: bytes used for writing off: offset in array to start writing len: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException * Class: gnu_io_RXTXPort * Method: writeArray * Signature: ([BIIZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeArray(JNIEnv *env, jobject jobj, jbyteArray b, jint off, jint len, jboolean i) { LPCWSTR lpMsgBuf; DWORD dwNumBytesWritten; jint total=0; HANDLE hPort = get_fd(env, jobj); jbyte *body = env->GetByteArrayElements(b, NULL); do { IF_DEBUG ( printj(env, L"--- writeArray - %d bytes to write\n", len-total); ) if (!WriteFile(hPort, // Port handle body+total+off, // Pointer to the data to write len-total, // Number of bytes to write &dwNumBytesWritten, // Pointer to the number of bytes written NULL)) // Must be NULL for Windows CE { // WriteFile failed. Report error. CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"writeArray - WriteFile", lpMsgBuf ); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseByteArrayElements(b, body, JNI_ABORT); return; } total += dwNumBytesWritten; } while( total < len ); env->ReleaseByteArrayElements(b, body, JNI_ABORT); } /* nativeDrain accept: none perform: wait until all data is transmitted return: none exceptions: IOException comments: java.io.OutputStream.flush() is equivalent to tcdrain, not tcflush, which throws away unsent bytes count logic added to avoid infinite loops when EINTR is true... Thread.yeild() was suggested. * Class: gnu_io_RXTXPort * Method: nativeDrain * Signature: ()V */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeDrain(JNIEnv *env, jobject jobj, jboolean i) { //COMSTAT Stat; //DWORD dwErrors; HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeDrain() called\n"); ) /* if(!FlushFileBuffers(hPort)) { IF_DEBUG ( printj(env, L"!!! FlushFileBuffers() error %ld\n", GetLastError()); ) return JNI_FALSE; } */ // Alternative implementation: /* do { if(!ClearCommError(hPort, &dwErrors, &Stat)) { GetLastError(); return; } Sleep(10); } while(Stat.cbOutQue > 0);*/ return JNI_FALSE; } /* nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none /// should be IOException * Class: gnu_io_RXTXPort * Method: nativeavailable * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeavailable(JNIEnv *env, jobject jobj) { DWORD dwErrors; COMSTAT Stat; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeavailable() called"); ) if(!ClearCommError(hPort, &dwErrors, &Stat)) { CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"nativeavailable - ClearCommError", lpMsgBuf ); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return -1; } IF_DEBUG ( printj(env, L" - returning %ld\n", Stat.cbInQue); ) return Stat.cbInQue; } /* readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException * Class: gnu_io_RXTXPort * Method: readByte * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readByte(JNIEnv *env, jobject jobj) { BYTE bb; DWORD dwNumBytesRead; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); if (!ReadFile(hPort, &bb, 1, &dwNumBytesRead, NULL)) { // ReadFile failed. Report error. CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"readByte - ReadFile", lpMsgBuf); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); return -1; } return dwNumBytesRead > 0 ? bb : -1; } /* readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes * Class: gnu_io_RXTXPort * Method: readArray * Signature: ([BII)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readArray(JNIEnv *env, jobject jobj, jbyteArray b, jint off, jint len) { LPCWSTR lpMsgBuf; DWORD dwNumBytesRead, dwTotalRead = 0; jint threshold; HANDLE hPort = get_fd(env, jobj); if(len < 0) { throw_java_exceptionW(env, ARRAY_INDEX_OUT_OF_BOUNDS, L"readArray", L"Negative number of character to read"); return -1; } jbyte *body = env->GetByteArrayElements(b, NULL); threshold = get_java_int_var(env, jobj, "threshold"); do { if (!ReadFile(hPort, (unsigned char *)(body+off), len, &dwNumBytesRead, NULL)) { // ReadFile failed. Report error. CreateErrorMsg(GetLastError(), lpMsgBuf); throw_java_exceptionW(env, IO_EXCEPTION, L"readArray - WriteFile", lpMsgBuf ); // Free the buffers. ReleaseErrorMsg(lpMsgBuf); env->ReleaseByteArrayElements(b, body, JNI_ABORT); return -1; } dwTotalRead += dwNumBytesRead; } while(dwNumBytesRead > 0 && threshold != 0 && dwTotalRead <= (DWORD)len && dwTotalRead < (DWORD)threshold); env->ReleaseByteArrayElements(b, body, 0); return dwTotalRead; } /* eventLoop accept: none perform: periodically check for SerialPortEvents return: none exceptions: none comments: please keep this function clean. * Class: gnu_io_RXTXPort * Method: eventLoop * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_eventLoop(JNIEnv *env, jobject jobj) { jfieldID jfMonitorThreadCloseLock, jfMonitorThreadLock, jfMonThreadisInterrupted; jmethodID jmSendEvent; HANDLE hCommEventThread; DWORD dwThreadID, dwWaitResult, dwEvent; int RetVal; HANDLE hPort = get_fd(env, jobj); EventInfoStruct *EventInfo = get_eis(env, jobj); IF_DEBUG ( printj(env, L"--- RXTXPort.eventLoop() start\n"); ) jclass cls = env->GetObjectClass(jobj); // Get pointers to some Java variables and methods: if( !(jfMonitorThreadLock = env->GetFieldID(cls, "MonitorThreadLock", "Z")) || !(jfMonThreadisInterrupted = env->GetFieldID(cls, "monThreadisInterrupted", "Z")) || !(jfMonitorThreadCloseLock = env->GetFieldID(cls, "MonitorThreadCloseLock", "Z")) || !(jmSendEvent = env->GetMethodID(cls, "sendEvent", "(IZ)Z")) ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); return; } hCommEventThread = CreateThread(NULL, 0, CommEventThread, (LPVOID)EventInfo, 0, &dwThreadID); if(hCommEventThread == NULL) { LPCWSTR lpMsgBuf; CreateErrorMsg(GetLastError(), lpMsgBuf); printj(env, L"!!! eventLoop - CreateThread() error: %s\n", lpMsgBuf); ReleaseErrorMsg(lpMsgBuf); return; } CloseHandle(hCommEventThread); do { if(env->GetBooleanField(jobj, jfMonThreadisInterrupted) == JNI_TRUE) { IF_DEBUG ( printj(env, L"--- RXTXPort.eventLoop() interrupted - exiting\n"); ) CloseHandle(EventInfo->eventHandle); env->SetBooleanField(jobj, jfMonitorThreadCloseLock, JNI_FALSE); return; } if(EventInfo->eventThreadReady) { // Thread is ready to work - pass signal to Java IF_DEBUG ( printj(env, L"--- RXTXPort.eventLoop() - EventThread is ready\n"); ) env->SetBooleanField(jobj, jfMonitorThreadLock, JNI_FALSE); EventInfo->eventThreadReady = false; } if((dwWaitResult = WaitForSingleObject(EventInfo->eventHandle, 250)) == WAIT_FAILED) { IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(GetLastError(), lpMsgBuf); printj(env, L"!!! eventLoop - WaitForSingleObject() error: %s\n", lpMsgBuf); ReleaseErrorMsg(lpMsgBuf); ) CloseHandle(EventInfo->eventHandle); env->SetBooleanField(jobj, jfMonitorThreadCloseLock, JNI_FALSE); return; } if(dwWaitResult == WAIT_OBJECT_0) { dwEvent = EventInfo->event; // Clearing event - event thread will continue EventInfo->event = 0; // Send events to Java if(RetVal = SendEvents(env, jobj, dwEvent, EventInfo, jmSendEvent)) { IF_DEBUG ( printj(env, L"!!! eventLoop - SendEvents() result: %d\n", RetVal); ) CloseHandle(EventInfo->eventHandle); env->SetBooleanField(jobj, jfMonitorThreadCloseLock, JNI_FALSE); return; } } else { IF_DEBUG ( //printj(env, L"--- eventLoop() looping\n"); MessageBeep(MB_OK); ) } } while(TRUE); } /* interruptEventLoop accept: nothing perform: sets monThreadisInterrupted return: nothing exceptions: none comments: real monitoring thread will stay until port is closed * Class: gnu_io_RXTXPort * Method: interruptEventLoop * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_interruptEventLoop(JNIEnv *env, jobject jobj) { jfieldID jfid; HANDLE hPort = get_fd(env, jobj); jclass cls = env->GetObjectClass(jobj); jfid = env->GetFieldID(cls, "monThreadisInterrupted", "Z"); env->SetBooleanField(jobj, jfid, JNI_TRUE); } /* nativeSetEventFlag accept: fd for finding the struct, event to flag, flag. perform: toggle the flag return: none exceptions: none comments: all the logic used to be done in Java but its too noisy * Class: gnu_io_RXTXPort * Method: nativeSetEventFlag * Signature: (IIZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetEventFlag(JNIEnv *env, jobject jobj, jint fd, jint event, jboolean flag) { DWORD dwErr, NewFlag; EventInfoStruct *EventInfo = get_eis(env, jobj); HANDLE hPort = (HANDLE)fd; IF_DEBUG ( printj(env, L"--- nativeSetEventFlag(%ld, %d) called\n", event, (int)flag); ) switch(event) { case SPE_DATA_AVAILABLE: NewFlag = EV_RXCHAR; break; case SPE_OUTPUT_BUFFER_EMPTY: NewFlag = EV_TXEMPTY; break; case SPE_CTS: NewFlag = EV_CTS; break; case SPE_DSR: NewFlag = EV_DSR; break; case SPE_RI: NewFlag = EV_RING; break; case SPE_CD: NewFlag = EV_RLSD; break; case SPE_OE: case SPE_PE: case SPE_FE: NewFlag = EV_ERR; break; case SPE_BI: NewFlag = EV_BREAK; break; } if(flag == JNI_TRUE) EventInfo->ef = EventInfo->ef | NewFlag; else EventInfo->ef = EventInfo->ef & ~NewFlag; if(!SetCommMask(hPort, EventInfo->ef)) { dwErr = GetLastError(); IF_DEBUG ( LPCWSTR lpMsgBuf; CreateErrorMsg(dwErr, lpMsgBuf); printj(env, L"!!! nativeSetEventFlag - SetCommMask() error: %ld %s\n", dwErr, lpMsgBuf ); ReleaseErrorMsg(lpMsgBuf); ) return; } } /* nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none * Class: gnu_io_RXTXPort * Method: nativeClose * Signature: (Ljava/lang/String{ })V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeClose(JNIEnv *env, jobject jobj, jstring name) { HANDLE hPort = get_fd(env, jobj); IF_DEBUG ( LPCWSTR wszName = env->GetStringChars(name, NULL); printj(env, L"--- RXTXPort.nativeClose(%s) called\n", wszName); env->ReleaseStringChars(name, wszName); ) if (!CloseHandle(hPort)) { GetLastError(); return; } } /* nativeGetParityErrorChar accept: - perform: check the ParityErrorChar return: The ParityErrorChar as an jbyte. exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. * Class: gnu_io_RXTXPort * Method: nativeGetParityErrorChar * Signature: ()I */ JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar(JNIEnv *env, jobject jobj) { DCB PortDCB; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeGetParityErrorChar() called\n"); ) // Get port setting information. if(!GetCommState(hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeGetParityErrorChar - GetCommState() error: %s\n", lpMsgBuf); ) ReleaseErrorMsg(lpMsgBuf); return -1; } return (jbyte)PortDCB.ErrorChar; } /* nativeSetParityErrorChar accept: the ParityArrorCharacter as an int. perform: Set the ParityErrorChar return: JNI_TRUE on success exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. * Class: gnu_io_RXTXPort * Method: nativeSetParityErrorChar * Signature: (B)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar(JNIEnv *env, jobject jobj, jbyte b) { DCB PortDCB; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeSetParityErrorChar(%#x) called\n", (int)b); ) // Get port setting information. if(!GetCommState(hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeSetParityErrorChar - GetCommState() error: %s\n", lpMsgBuf); ) ReleaseErrorMsg(lpMsgBuf); return JNI_FALSE; } if(b != 0) { PortDCB.fErrorChar = TRUE; PortDCB.fParity = TRUE; PortDCB.ErrorChar = b; } else { PortDCB.fErrorChar = FALSE; PortDCB.fParity = FALSE; PortDCB.ErrorChar = 0; } if (!SetCommState(hPort, &PortDCB)) { CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeSetParityErrorChar - SetCommState() error: %s\n", lpMsgBuf); ) ReleaseErrorMsg(lpMsgBuf); return JNI_FALSE; } return JNI_TRUE; } /* nativeGetEndOfInputChar accept: - perform: check the EndOf InputChar return: the EndOfInputChar as an jbyte. -1 on error exceptions: UnsupportedCommOperationException if not implemented comments: * Class: gnu_io_RXTXPort * Method: nativeGetEndOfInputChar * Signature: ()I */ JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetEndOfInputChar(JNIEnv *env, jobject jobj) { DCB PortDCB; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeGetEndOfInputChar() called\n"); ) // Get port setting information. if(!GetCommState(hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeGetEndOfInputChar - GetCommState() error: %s\n", lpMsgBuf); ) ReleaseErrorMsg(lpMsgBuf); return -1; } return (jbyte)PortDCB.EofChar; } /* nativeSetEndOfInputChar accept: The EndOfInputChar as an int perform: set the EndOfInputChar return: JNI_TRUE on success exceptions: UnsupportedCommOperationException if not implemented comments: This may cause troubles on Windows. Lets give it a shot and see what happens. See termios.c for the windows bits. EofChar = val; fBinary = false; //winapi docs say always use true. ? * Class: gnu_io_RXTXPort * Method: nativeSetEndOfInputChar * Signature: (B)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetEndOfInputChar(JNIEnv *env, jobject jobj, jbyte b) { DCB PortDCB; LPCWSTR lpMsgBuf; HANDLE hPort = get_fd(env, jobj); PortDCB.DCBlength = sizeof(DCB); IF_DEBUG ( printj(env, L"--- RXTXPort.nativeSetEndOfInputChar(%#x) called\n", (int)b); ) // Get port setting information. if(!GetCommState(hPort, &PortDCB)) { //Unable to get configuration of the serial port CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeSetEndOfInputChar - GetCommState() error: %s\n", lpMsgBuf); ) ReleaseErrorMsg(lpMsgBuf); return JNI_FALSE; } if( b != 0) { PortDCB.fBinary = FALSE; PortDCB.EofChar = b; } else { PortDCB.fBinary = TRUE; PortDCB.EofChar = 0; } if (!SetCommState(hPort, &PortDCB)) { CreateErrorMsg(GetLastError(), lpMsgBuf); IF_DEBUG ( printj(env, L"!!! nativeSetEndOfInputChar - SetCommState() error: %s\n", lpMsgBuf); ) throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetEndOfInputChar", lpMsgBuf); ReleaseErrorMsg(lpMsgBuf); return JNI_FALSE; } return JNI_TRUE; } /* * Class: gnu_io_RXTXPort * Method: nativeSetUartType * Signature: (Ljava/lang/String{ }Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetUartType(JNIEnv *env, jobject jobj, jstring type, jboolean test) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetUartType", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeGetUartType * Signature: ()Ljava/lang/String{ } */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXPort_nativeGetUartType(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetUartType", L"Operation not implemented"); return env->NewStringUTF("Unknown"); } /* * Class: gnu_io_RXTXPort * Method: nativeSetBaudBase * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetBaudBase(JNIEnv *env, jobject jobj, jint baudBase) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetBaudBase", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeGetBaudBase * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetBaudBase(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeGetBaudBase", L"Operation not implemented"); return -1; } /* * Class: gnu_io_RXTXPort * Method: nativeSetDivisor * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetDivisor(JNIEnv *env, jobject jobj, jint divisor) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetDivisor", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeGetDivisor * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetDivisor(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeGetDivisor", L"Operation not implemented"); return -1; } /* * Class: gnu_io_RXTXPort * Method: nativeSetLowLatency * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetLowLatency(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetLowLatency", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeGetLowLatency * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetLowLatency(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeGetLowLatency", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeSetCallOutHangup * Signature: (Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetCallOutHangup(JNIEnv *env, jobject jobj, jboolean noHup) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeSetCallOutHangup", L"Operation not implemented"); return JNI_FALSE; } /* * Class: gnu_io_RXTXPort * Method: nativeGetCallOutHangup * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetCallOutHangup(JNIEnv *env, jobject jobj) { throw_java_exceptionW(env, UNSUPPORTED_COMM_OPERATION, L"nativeGetCallOutHangup", L"Operation not implemented"); return JNI_FALSE; } ./rxtx-2.2pre2/WinCE/README0000644000175000017500000000226507443100716015102 0ustar twernertwernerHi. Enclosed you'll find a version of rxtx for Windows CE. It was compiled using Microsoft's eMbedded Visual C++ 3.0 (which is free). It was tested on Compaq iPAQ 3650 (ARM). Native code is completely rewritten, since CE doesn't have overlapped IO (and MANY other things), but does non-overlapped better than regular Win32 - simultanous multiple operations on the same handle are OK. I tried compiling this project under NT (with Visual C++ 6.0) and it compiles without problems but it doesn't work right because NT doesn't support simultanous operations without overlapping. Yes, that means that there's no compatibility between Win32 and Win32CE - neither direction. I love Microsoft. Aha, I used unicode everywhere, since both CE and Java use it internally (CE doesn't have ANSI at all) and I didn't find converting data back and forth sensible. Windows CE doesn't have stdio and console at all so I had to make printj() function. Look at it - it can be quite usable for other projects. Basically it works like printf() but uses System.out.print() for output. You can find more info on Java serial support on http://www.mhobot.w.pl/java/comm Michal Hobot MichalHobot@netscape.net Krakow, Poland ./rxtx-2.2pre2/WinCE/rxtxHelpers.h0000644000175000017500000001422310614033754016721 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #if !defined(Included_RXTXHELPERS_H) #define Included_RXTXSERIAL_H /* javax.comm.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 #define PORT_SERIAL 1 #define PORT_PARALLEL 2 #define PORT_I2C 3 #define PORT_RS485 4 #define PORT_RAW 5 #define CreateErrorMsg(dwError, lpMsgBuf) \ FormatMessage( \ FORMAT_MESSAGE_ALLOCATE_BUFFER | \ FORMAT_MESSAGE_FROM_SYSTEM | \ FORMAT_MESSAGE_IGNORE_INSERTS, \ NULL, \ dwError, \ 0, \ (LPTSTR) & (lpMsgBuf), \ 0, \ NULL \ ), \ ((WCHAR *)lpMsgBuf)[wcslen((WCHAR *)lpMsgBuf)-2] = '\0' #define ReleaseErrorMsg(lpMsgBuf) LocalFree((LPVOID)(lpMsgBuf)) #if defined(DEBUG) # define IF_DEBUG(x) {x} #else # define IF_DEBUG(x) #endif /* java exception class names */ #define UNSUPPORTED_COMM_OPERATION "javax/comm/UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" #define PORT_IN_USE_EXCEPTION "javax/comm/PortInUseException" typedef struct { /* Port handle */ HANDLE fd; /* flags for events */ DWORD ef; /* event handle for Monitor interthread signalling*/ HANDLE eventHandle; /* current serial event */ DWORD event; /* EventThread sets this flag to TRUE when it's ready */ bool eventThreadReady; } EventInfoStruct; long get_java_int_var(JNIEnv *, jobject, char *); bool get_java_boolean_var(JNIEnv *, jobject, char *); bool get_java_boolean_var2(JNIEnv *, jobject, jclass, char *); void throw_java_exception(JNIEnv *, const char *, const char *, const char *); void throw_java_exceptionW(JNIEnv *, const char *, const wchar_t *, const wchar_t *); HANDLE get_fd(JNIEnv *, jobject); EventInfoStruct *get_eis(JNIEnv *, jobject); int printj(JNIEnv *, wchar_t *, ...); DWORD __stdcall CommEventThread(LPVOID); //void setEventFlags(JNIEnv *env, jobject jobj, bool ef[]); int InitialiseEventInfoStruct(HANDLE, EventInfoStruct **); int SendEvents(JNIEnv *, jobject, DWORD, EventInfoStruct *, jmethodID); #endif //Included_RXTXHELPERS_H ./rxtx-2.2pre2/WinCE/rxtxSerial.vcp0000644000175000017500000003771707443100105017103 0ustar twernertwerner# Microsoft eMbedded Visual Tools Project File - Name="rxtxSerial" - Package Owner=<4> # Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02 # ** DO NOT EDIT ** # TARGTYPE "Win32 (WCE x86) Dynamic-Link Library" 0x8302 # TARGTYPE "Win32 (WCE ARM) Dynamic-Link Library" 0x8502 CFG=rxtxSerial - Win32 (WCE ARM) Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "rxtxSerial.vcn". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "rxtxSerial.vcn" CFG="rxtxSerial - Win32 (WCE ARM) Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "rxtxSerial - Win32 (WCE ARM) Release" (based on "Win32 (WCE ARM) Dynamic-Link Library") !MESSAGE "rxtxSerial - Win32 (WCE ARM) Debug" (based on "Win32 (WCE ARM) Dynamic-Link Library") !MESSAGE "rxtxSerial - Win32 (WCE x86) Release" (based on "Win32 (WCE x86) Dynamic-Link Library") !MESSAGE "rxtxSerial - Win32 (WCE x86) Debug" (based on "Win32 (WCE x86) Dynamic-Link Library") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" # PROP ATL_Project 2 !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "ARMRel" # PROP BASE Intermediate_Dir "ARMRel" # PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "ARMRel" # PROP Intermediate_Dir "ARMRel" # PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r CPP=clarm.exe # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c # ADD CPP /nologo /W3 /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Oxs /M$(CECrtMT) /c # SUBTRACT CPP /X MTL=midl.exe # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "ARMDbg" # PROP BASE Intermediate_Dir "ARMDbg" # PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "ARMDbg" # PROP Intermediate_Dir "ARMDbg" # PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r CPP=clarm.exe # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /M$(CECrtMTDebug) /c # ADD CPP /nologo /W3 /Zi /Od /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /FR /Yu"stdafx.h" /M$(CECrtMTDebug) /c # SUBTRACT CPP /X MTL=midl.exe # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "X86Rel" # PROP BASE Intermediate_Dir "X86Rel" # PROP BASE CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}" # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "X86Rel" # PROP Intermediate_Dir "X86Rel" # PROP CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}" # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r CPP=cl.exe # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /Oxs /c # ADD CPP /nologo /W3 /X /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /Oxs /c MTL=midl.exe # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "X86Dbg" # PROP BASE Intermediate_Dir "X86Dbg" # PROP BASE CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}" # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "X86Dbg" # PROP Intermediate_Dir "X86Dbg" # PROP CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}" # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r CPP=cl.exe # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /c # ADD CPP /nologo /W3 /Zi /Od /X /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /c MTL=midl.exe # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 !ENDIF # Begin Target # Name "rxtxSerial - Win32 (WCE ARM) Release" # Name "rxtxSerial - Win32 (WCE ARM) Debug" # Name "rxtxSerial - Win32 (WCE x86) Release" # Name "rxtxSerial - Win32 (WCE x86) Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\gnu_io_RXTXCommDriver.cpp !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" DEP_CPP_GNU_I=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" DEP_CPP_GNU_I=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" DEP_CPP_GNU_I=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ NODEP_CPP_GNU_I=\ ".\rxtxSerial.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" DEP_CPP_GNU_I=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ !ENDIF # End Source File # Begin Source File SOURCE=.\gnu_io_RXTXPort.cpp !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" DEP_CPP_GNU_IO=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" DEP_CPP_GNU_IO=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" DEP_CPP_GNU_IO=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" DEP_CPP_GNU_IO=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ !ENDIF # End Source File # Begin Source File SOURCE=.\rxtxHelpers.cpp !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" DEP_CPP_RXTXH=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" DEP_CPP_RXTXH=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" DEP_CPP_RXTXH=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" DEP_CPP_RXTXH=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\rxtxHelpers.h"\ ".\StdAfx.h"\ !ENDIF # End Source File # Begin Source File SOURCE=.\rxtxSerial.cpp !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" DEP_CPP_RXTXS=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" DEP_CPP_RXTXS=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" DEP_CPP_RXTXS=\ ".\StdAfx.h"\ !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" DEP_CPP_RXTXS=\ ".\StdAfx.h"\ !ENDIF # End Source File # Begin Source File SOURCE=.\StdAfx.cpp !IF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Release" DEP_CPP_STDAF=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ # ADD CPP /Yc"stdafx.h" !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE ARM) Debug" DEP_CPP_STDAF=\ "..\..\..\JBuilder6\jdk1.3.1\include\jni.h"\ "..\..\..\JBuilder6\jdk1.3.1\include\win32\jni_md.h"\ ".\gnu_io_RXTXCommDriver.h"\ ".\gnu_io_RXTXPort.h"\ ".\StdAfx.h"\ # ADD CPP /Yc"stdafx.h" !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Release" DEP_CPP_STDAF=\ ".\StdAfx.h"\ # ADD CPP /Yc"stdafx.h" !ELSEIF "$(CFG)" == "rxtxSerial - Win32 (WCE x86) Debug" DEP_CPP_STDAF=\ ".\StdAfx.h"\ # ADD CPP /Yc"stdafx.h" !ENDIF # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File SOURCE=.\gnu_io_RXTXCommDriver.h # End Source File # Begin Source File SOURCE=.\gnu_io_RXTXPort.h # End Source File # Begin Source File SOURCE=.\rxtxHelpers.h # End Source File # Begin Source File SOURCE=.\StdAfx.h # End Source File # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # Begin Source File SOURCE=.\README # End Source File # End Target # End Project ./rxtx-2.2pre2/WinCE/rxtxSerial.cpp0000644000175000017500000000742010614033754017072 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ // rxtxSerial.cpp : Defines the entry point for the DLL application. // #include "StdAfx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } ./rxtx-2.2pre2/WinCE/gnu_io_RXTXCommDriver.h0000644000175000017500000000260607454556561020546 0ustar twernertwerner/* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class gnu_io_RXTXCommDriver */ #ifndef _Included_gnu_io_RXTXCommDriver #define _Included_gnu_io_RXTXCommDriver #ifdef __cplusplus extern "C" { #endif #undef gnu_io_RXTXCommDriver_debug #define gnu_io_RXTXCommDriver_debug 0L /* * Class: gnu_io_RXTXCommDriver * Method: nativeGetVersion * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXCommDriver_nativeGetVersion (JNIEnv *, jclass); /* * Class: gnu_io_RXTXCommDriver * Method: registerKnownPorts * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_registerKnownPorts (JNIEnv *, jobject, jint); /* * Class: gnu_io_RXTXCommDriver * Method: isPortPrefixValid * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_isPortPrefixValid (JNIEnv *, jobject, jstring); /* * Class: gnu_io_RXTXCommDriver * Method: testRead * Signature: (Ljava/lang/String;I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_testRead (JNIEnv *, jobject, jstring, jint); /* * Class: gnu_io_RXTXCommDriver * Method: getDeviceDirectory * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXCommDriver_getDeviceDirectory (JNIEnv *, jobject); #ifdef __cplusplus } #endif #endif ./rxtx-2.2pre2/WinCE/StdAfx.cpp0000644000175000017500000000717010614033754016120 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ // stdafx.cpp : source file that includes just the standard includes // rxtxSerial.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file ./rxtx-2.2pre2/WinCE/rxtxserial.dsp0000644000175000017500000001306607435425636017154 0ustar twernertwerner# Microsoft Developer Studio Project File - Name="rxtxSerial" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 CFG=rxtxSerial - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE !MESSAGE NMAKE /f "rxtxserial.mak". !MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "rxtxserial.mak" CFG="rxtxSerial - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "rxtxSerial - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "rxtxSerial - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 # PROP Scc_ProjName "" # PROP Scc_LocalPath "" CPP=cl.exe MTL=midl.exe RSC=rc.exe !IF "$(CFG)" == "rxtxSerial - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "W32Rel" # PROP BASE Intermediate_Dir "W32Rel" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "W32Rel" # PROP Intermediate_Dir "W32Rel" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /YX /FD /c # ADD CPP /nologo /MT /W3 /GX /O2 /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D "NDEBUG" /D "_MBCS" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /YX"StdAfx.h" /FD /c # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x415 /d "NDEBUG" # ADD RSC /l 0x415 /d "NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "W32Dbg" # PROP BASE Intermediate_Dir "W32Dbg" # PROP BASE Target_Dir "" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "W32Dbg" # PROP Intermediate_Dir "W32Dbg" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /YX /FD /GZ /c # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "C:\JBuilder6\jdk1.3.1\include" /I "C:\JBuilder6\jdk1.3.1\include\win32" /D "DEBUG" /D "_DEBUG" /D "W32Dbg" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "RXTXSERIAL_EXPORTS" /FR /YX"StdAfx.h" /FD /GZ /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x415 /d "_DEBUG" # ADD RSC /l 0x415 /d "_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept !ENDIF # Begin Target # Name "rxtxSerial - Win32 Release" # Name "rxtxSerial - Win32 Debug" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=.\gnu_io_RXTXCommDriver.cpp !IF "$(CFG)" == "rxtxSerial - Win32 Release" # ADD CPP /YX !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # ADD CPP /YX"StdAfx.h" !ENDIF # End Source File # Begin Source File SOURCE=.\gnu_io_RXTXPort.cpp !IF "$(CFG)" == "rxtxSerial - Win32 Release" # ADD CPP /YX !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # ADD CPP /YX"StdAfx.h" !ENDIF # End Source File # Begin Source File SOURCE=.\rxtxHelpers.cpp !IF "$(CFG)" == "rxtxSerial - Win32 Release" # ADD CPP /YX !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # ADD CPP /YX"StdAfx.h" !ENDIF # End Source File # Begin Source File SOURCE=.\rxtxSerial.cpp !IF "$(CFG)" == "rxtxSerial - Win32 Release" # ADD CPP /YX !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # ADD CPP /YX"StdAfx.h" !ENDIF # End Source File # Begin Source File SOURCE=.\StdAfx.cpp !IF "$(CFG)" == "rxtxSerial - Win32 Release" # ADD CPP /YX !ELSEIF "$(CFG)" == "rxtxSerial - Win32 Debug" # ADD CPP /YX"StdAfx.h" !ENDIF # End Source File # End Group # Begin Group "Header Files" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File SOURCE=.\gnu_io_RXTXCommDriver.h # End Source File # Begin Source File SOURCE=.\gnu_io_RXTXPort.h # End Source File # Begin Source File SOURCE=.\rxtxHelpers.h # End Source File # Begin Source File SOURCE=.\StdAfx.h # End Source File # End Group # Begin Group "Resource Files" # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # End Group # End Target # End Project ./rxtx-2.2pre2/WinCE/StdAfx.h0000644000175000017500000001023510614033754015561 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__B78985E1_0CAF_4EE2_8807_4D04C75EAFCE__INCLUDED_) #define AFX_STDAFX_H__B78985E1_0CAF_4EE2_8807_4D04C75EAFCE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include "gnu_io_RXTXPort.h" #include "gnu_io_RXTXCommDriver.h" // Insert your headers here #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include #include // TODO: reference additional headers your program requires here //{{AFX_INSERT_LOCATION}} // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__B78985E1_0CAF_4EE2_8807_4D04C75EAFCE__INCLUDED_) ./rxtx-2.2pre2/WinCE/gnu_io_RXTXCommDriver.cpp0000644000175000017500000002106610614033754021064 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2004 Michal Hobot MichalHobot@netscape.net | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include "StdAfx.h" #include "rxtxHelpers.h" /* nativeGetVersion accept: none perform: return the current version return: version exceptions: none comments: This is used to avoid mixing versions of the .jar and native library. First introduced in rxtx-1.5-9 * Class: gnu_io_RXTXCommDriver * Method: nativeGetVersion * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXCommDriver_nativeGetVersion(JNIEnv *env, jclass cls) { return env->NewStringUTF("RXTX-2.0-1"); } /* registerKnownPorts accept: the type of port perform: register any ports of the desired type a priori known to this OS return: JNI_TRUE if any such ports were registered otherwise JNI_FALSE exceptions: none comments: * Class: gnu_io_RXTXCommDriver * Method: registerKnownPorts * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_registerKnownPorts(JNIEnv *env, jobject jobj, jint portType) { enum {PORT_TYPE_SERIAL = 1, PORT_TYPE_PARALLEL, PORT_TYPE_I2C, PORT_TYPE_RS485, PORT_TYPE_RAW}; jboolean result = JNI_FALSE; switch(portType) { case PORT_TYPE_SERIAL: // We could check here what COMs are on system and register them. break; case PORT_TYPE_PARALLEL: case PORT_TYPE_I2C: case PORT_TYPE_RS485: case PORT_TYPE_RAW: break; default: // Wrong port type - I'd raise exception, but there's no defined for Java IF_DEBUG ( printj(env, L"!!! RXTXCommDriver.registerKnownPorts(%ld): Wrong port type\n", portType); //MessageBox(NULL, TEXT("RXTXCommDriver.registerKnownPorts(): Wrong port type"), TEXT("Error"), MB_OK); ) break; } return result; } /* isPortPrefixValid accept: a port prefix perform: see if the port prefix matches a port that is valid on this OS. return: JNI_TRUE if it exists otherwise JNI_FALSE exceptions: none comments: * Class: gnu_io_RXTXCommDriver * Method: isPortPrefixValid * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_isPortPrefixValid(JNIEnv *env, jobject jobj, jstring dev) { jboolean retVal; const char *szDev = env->GetStringUTFChars(dev, NULL); if( strncmp(szDev, "COM", 3) == 0 || strncmp(szDev, "LPT", 3) == 0) // is first 3 chars OK? retVal = JNI_TRUE; else retVal = JNI_FALSE; env->ReleaseStringUTFChars(dev, szDev); return retVal; } /* testRead accept: dev The device to be tested perform: test if the device can be read from return: JNI_TRUE if the device can be read from exceptions: none comments: From Wayne Roberts wroberts1@home.com check tcget/setattr returns. support for non serial ports Trent * Class: gnu_io_RXTXCommDriver * Method: testRead * Signature: (Ljava/lang/String;I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_testRead(JNIEnv *env, jobject jobj, jstring dev, jint type) { jboolean retVal; DWORD dwError; if ( type == PORT_SERIAL ) { const WCHAR *wszDev = env->GetStringChars(dev, NULL); HANDLE hPort = CreateFileW(wszDev, // Pointer to the name of the port GENERIC_READ | GENERIC_WRITE, // Access (read-write) mode 0, // Share mode NULL, // Pointer to the security attribute OPEN_EXISTING,// How to open the serial port 0, // Port attributes NULL); // Handle to port with attribute // to copy // If it fails to open the port, return FALSE. if ( hPort == INVALID_HANDLE_VALUE ) { // Could not open the port. IF_DEBUG ( ;//printj(env, TEXT("!!! RXTXCommDriver.testRead(%s, %ld): cannot open port\n"), wszDev, type); //MessageBox(NULL, TEXT("RXTXCommDriver.testRead(): cannot open port"), wszDev /*TEXT("Error")*/, MB_OK | MB_SETFOREGROUND); ) dwError = GetLastError(); retVal = JNI_FALSE; } else { // Port open OK - let's close it and return TRUE if (!CloseHandle(hPort)) dwError = GetLastError(); IF_DEBUG ( ;//printj(env, TEXT("--- RXTXCommDriver.testRead(%s, %ld): port open OK\n"), wszDev, type); //MessageBox(NULL, TEXT("RXTXCommDriver.testRead(): port open OK"), wszDev /*TEXT("Success")*/, MB_OK | MB_SETFOREGROUND); ) retVal = JNI_TRUE; } env->ReleaseStringChars(dev, wszDev); } else retVal = JNI_FALSE; return retVal; } /* getDeviceDirectory accept: perform: return: the directory containing the device files exceptions: comments: we need it only for Unix * Class: gnu_io_RXTXCommDriver * Method: getDeviceDirectory * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXCommDriver_getDeviceDirectory(JNIEnv *env, jobject jobj) { return env->NewStringUTF(""); } ./rxtx-2.2pre2/WinCE/CVS/0000755000175000017500000000000011126534475014656 5ustar twernertwerner./rxtx-2.2pre2/WinCE/CVS/Template0000644000175000017500000000000011126534455016340 0ustar twernertwerner./rxtx-2.2pre2/WinCE/CVS/Tag0000644000175000017500000000001711126534456015311 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/WinCE/CVS/Root0000644000175000017500000000007511126534455015524 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/WinCE/CVS/Entries0000644000175000017500000000143111126534475016211 0ustar twernertwerner/README/1.1.2.2/Mon Mar 11 10:07:10 2002//Tcommapi-0-0-1 /StdAfx.cpp/1.1.2.4/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /StdAfx.h/1.1.2.4/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /gnu_io_RXTXCommDriver.cpp/1.1.2.6/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /gnu_io_RXTXCommDriver.h/1.1.2.2/Tue Apr 9 12:24:17 2002//Tcommapi-0-0-1 /gnu_io_RXTXPort.cpp/1.1.2.10/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /gnu_io_RXTXPort.h/1.1.2.2/Tue Apr 9 12:24:17 2002//Tcommapi-0-0-1 /rxtxHelpers.cpp/1.1.2.5/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /rxtxHelpers.h/1.1.2.5/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /rxtxSerial.cpp/1.1.2.4/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /rxtxSerial.vcp/1.1.2.2/Mon Mar 11 10:00:37 2002//Tcommapi-0-0-1 /rxtxserial.dsp/1.1.2.1/Fri Feb 22 11:29:34 2002//Tcommapi-0-0-1 D ./rxtx-2.2pre2/WinCE/CVS/Repository0000644000175000017500000000002111126534455016747 0ustar twernertwernerrxtx-devel/WinCE ./rxtx-2.2pre2/WinCE/gnu_io_RXTXPort.h0000644000175000017500000003036607454556561017427 0ustar twernertwerner/* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class gnu_io_RXTXPort */ #ifndef _Included_gnu_io_RXTXPort #define _Included_gnu_io_RXTXPort #ifdef __cplusplus extern "C" { #endif #undef gnu_io_RXTXPort_DATABITS_5 #define gnu_io_RXTXPort_DATABITS_5 5L #undef gnu_io_RXTXPort_DATABITS_6 #define gnu_io_RXTXPort_DATABITS_6 6L #undef gnu_io_RXTXPort_DATABITS_7 #define gnu_io_RXTXPort_DATABITS_7 7L #undef gnu_io_RXTXPort_DATABITS_8 #define gnu_io_RXTXPort_DATABITS_8 8L #undef gnu_io_RXTXPort_STOPBITS_1 #define gnu_io_RXTXPort_STOPBITS_1 1L #undef gnu_io_RXTXPort_STOPBITS_2 #define gnu_io_RXTXPort_STOPBITS_2 2L #undef gnu_io_RXTXPort_STOPBITS_1_5 #define gnu_io_RXTXPort_STOPBITS_1_5 3L #undef gnu_io_RXTXPort_PARITY_NONE #define gnu_io_RXTXPort_PARITY_NONE 0L #undef gnu_io_RXTXPort_PARITY_ODD #define gnu_io_RXTXPort_PARITY_ODD 1L #undef gnu_io_RXTXPort_PARITY_EVEN #define gnu_io_RXTXPort_PARITY_EVEN 2L #undef gnu_io_RXTXPort_PARITY_MARK #define gnu_io_RXTXPort_PARITY_MARK 3L #undef gnu_io_RXTXPort_PARITY_SPACE #define gnu_io_RXTXPort_PARITY_SPACE 4L #undef gnu_io_RXTXPort_FLOWCONTROL_NONE #define gnu_io_RXTXPort_FLOWCONTROL_NONE 0L #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN 1L #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT 2L #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN 4L #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT 8L #undef gnu_io_RXTXPort_debug #define gnu_io_RXTXPort_debug 0L #undef gnu_io_RXTXPort_debug_verbose #define gnu_io_RXTXPort_debug_verbose 0L #undef gnu_io_RXTXPort_debug_events #define gnu_io_RXTXPort_debug_events 0L /* Inaccessible static: dsrFlag */ /* * Class: gnu_io_RXTXPort * Method: Initialize * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_Initialize (JNIEnv *, jclass); /* * Class: gnu_io_RXTXPort * Method: open * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_open (JNIEnv *, jobject, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeSetSerialPortParams * Signature: (IIII)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams (JNIEnv *, jobject, jint, jint, jint, jint); /* * Class: gnu_io_RXTXPort * Method: setflowcontrol * Signature: (I)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setflowcontrol (JNIEnv *, jobject, jint); /* * Class: gnu_io_RXTXPort * Method: NativegetReceiveTimeout * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_NativegetReceiveTimeout (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: NativeisReceiveTimeoutEnabled * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: NativeEnableReceiveTimeoutThreshold * Signature: (III)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold (JNIEnv *, jobject, jint, jint, jint); /* * Class: gnu_io_RXTXPort * Method: isDTR * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDTR (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: setDTR * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDTR (JNIEnv *, jobject, jboolean); /* * Class: gnu_io_RXTXPort * Method: setRTS * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setRTS (JNIEnv *, jobject, jboolean); /* * Class: gnu_io_RXTXPort * Method: setDSR * Signature: (Z)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDSR (JNIEnv *, jobject, jboolean); /* * Class: gnu_io_RXTXPort * Method: isCTS * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCTS (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: isDSR * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDSR (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: isCD * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCD (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: isRI * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRI (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: isRTS * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRTS (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: sendBreak * Signature: (I)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_sendBreak (JNIEnv *, jobject, jint); /* * Class: gnu_io_RXTXPort * Method: writeByte * Signature: (IZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeByte (JNIEnv *, jobject, jint, jboolean); /* * Class: gnu_io_RXTXPort * Method: writeArray * Signature: ([BIIZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeArray (JNIEnv *, jobject, jbyteArray, jint, jint, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeDrain * Signature: (Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeDrain (JNIEnv *, jobject, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeavailable * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeavailable (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: readByte * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readByte (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: readArray * Signature: ([BII)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readArray (JNIEnv *, jobject, jbyteArray, jint, jint); /* * Class: gnu_io_RXTXPort * Method: eventLoop * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_eventLoop (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: interruptEventLoop * Signature: ()V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_interruptEventLoop (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetEventFlag * Signature: (IIZ)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetEventFlag (JNIEnv *, jobject, jint, jint, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeClose * Signature: (Ljava/lang/String;)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeClose (JNIEnv *, jobject, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticSetSerialPortParams * Signature: (Ljava/lang/String;IIII)V */ JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams (JNIEnv *, jclass, jstring, jint, jint, jint, jint); /* * Class: gnu_io_RXTXPort * Method: nativeStaticSetDSR * Signature: (Ljava/lang/String;Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDSR (JNIEnv *, jclass, jstring, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeStaticSetDTR * Signature: (Ljava/lang/String;Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDTR (JNIEnv *, jclass, jstring, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeStaticSetRTS * Signature: (Ljava/lang/String;Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetRTS (JNIEnv *, jclass, jstring, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsDSR * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDSR (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsDTR * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDTR (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsRTS * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRTS (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsCTS * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCTS (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsCD * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCD (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticIsRI * Signature: (Ljava/lang/String;)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRI (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticGetBaudRate * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetBaudRate (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticGetDataBits * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetDataBits (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticGetParity * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetParity (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeStaticGetStopBits * Signature: (Ljava/lang/String;)I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetStopBits (JNIEnv *, jclass, jstring); /* * Class: gnu_io_RXTXPort * Method: nativeGetParityErrorChar * Signature: ()B */ JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetParityErrorChar * Signature: (B)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar (JNIEnv *, jobject, jbyte); /* * Class: gnu_io_RXTXPort * Method: nativeGetEndOfInputChar * Signature: ()B */ JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetEndOfInputChar (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetEndOfInputChar * Signature: (B)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetEndOfInputChar (JNIEnv *, jobject, jbyte); /* * Class: gnu_io_RXTXPort * Method: nativeSetUartType * Signature: (Ljava/lang/String;Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetUartType (JNIEnv *, jobject, jstring, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeGetUartType * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_gnu_io_RXTXPort_nativeGetUartType (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetBaudBase * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetBaudBase (JNIEnv *, jobject, jint); /* * Class: gnu_io_RXTXPort * Method: nativeGetBaudBase * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetBaudBase (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetDivisor * Signature: (I)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetDivisor (JNIEnv *, jobject, jint); /* * Class: gnu_io_RXTXPort * Method: nativeGetDivisor * Signature: ()I */ JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetDivisor (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetLowLatency * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetLowLatency (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeGetLowLatency * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetLowLatency (JNIEnv *, jobject); /* * Class: gnu_io_RXTXPort * Method: nativeSetCallOutHangup * Signature: (Z)Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetCallOutHangup (JNIEnv *, jobject, jboolean); /* * Class: gnu_io_RXTXPort * Method: nativeGetCallOutHangup * Signature: ()Z */ JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetCallOutHangup (JNIEnv *, jobject); #ifdef __cplusplus } #endif #endif ./rxtx-2.2pre2/buildtest0000755000175000017500000000302207330101373015165 0ustar twernertwerner#!/bin/sh echo buildtest started `date` MOUNT=/usr/local export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.3/bin:/usr/local/cross-tools/i386-mingw32/bin/:/usr/local/cross-tools/i386-mingw32/bin unset JAVA_HOME mount 10.0.2.1:/usr/src/linux-2.2.14 /usr/src/linux mount 10.0.2.1:/mnt/hda3/local /usr/local echo -n building gcc-win32 export PATH=/usr/local/cross-tools/i386-mingw32/bin/:/bin:/usr/bin:/usr/java/jdk1.3/bin/: export WIN32INCLUDE=/home/jarvi/RXTX/tools/win32-include ../configure --target=i386-mingw32 --host=i386-redhat-linux > ../logs/configure-log-mingw32 2>&1 && make > ../logs/make-log-gcc-win32 2>&1 echo " build result=$?" rm -rf ../build/* unset WIN32INCLUDE export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.3/bin:/usr/local/cross-tools/i386-mingw32/bin/:/usr/local/cross-tools/i386-mingw32/bin umount /usr/local mount 10.0.2.1:/mnt/hda3/local/kaffe/usr/local/ /usr/local echo -n building kaffe export JAVA_HOME=/usr/local ../configure > ../logs/configure-log-kaffe 2>&1 && make > ../logs/make-log-kaffe 2>&1 echo " build result=$?" rm -rf ../build/* unset JAVA_HOME umount /usr/local mount 10.0.2.1:/mnt/hda3/local /usr/local for i in \ j2sdk1.4.0 \ jdk117_v2 \ jdk118 \ jdk118_v1 \ jdk118_v3 \ jdk1.2 \ jdk1.2.2-006-sun \ jdk1.3 do export JAVA_HOME=$MOUNT/$i echo -n building with $JAVA_HOME ../configure > ../logs/configure-log-$i 2>&1 && make > ../logs/make-log-$i 2>&1 echo " build result=$?" rm -rf ../build/* unset JAVA_HOME done umount /usr/local umount /usr/src/linux echo buildtest finished `date` ./rxtx-2.2pre2/mkinstalldirs0000755000175000017500000000133606674241607016073 0ustar twernertwerner#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain # $Id: mkinstalldirs,v 1.1.1.1 1999-03-18 18:18:47 douglau Exp $ errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr fi fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here ./rxtx-2.2pre2/README0000644000175000017500000001203510614033753014131 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ This is README Wed Apr 25 22:37:26 MDT 2007 See Also: INSTALL: install instructions and solutions to common problems TODO: Comments for developers COPYING: The LGPL license PORTING: hints for people trying to port rxtx Authors: who wrote what. ChangeLog: when they wrote it. RMISecurityManager.html: Comments for people using RMISecurityManager SerialPortInstructions.txt: HOWTO on read/writing to your com ports on linux for beginners There are numerous possibilities for projects that involve serial communication. Java is an excellent language for putting GUI apps together. Well have fun. Send back stories. Copies of the latest RXTX will be on http://www.rxtx.org/download The primary source for information/support is http://www.rxtx.org. The rxtx mail-list is at Majordomo@hex.linuxgrrls.org. Send email with "subscribe rxtx" in the subject without the quotes to join. This is a native lib for jdk 1.1.* and newer. If you find changes required for different platforms or OS's please pass them back this way so we may share it with others. Credit will be given unless one specifically requests no credit. We chopped rxtx out of my program and tried to put a small example together. There is plenty of room for configurability, safe guarding and error reporting. If you have some time please contribute some improvements. We are interested in sharing this code in hopes that a more versatile lib may be developed and released with minimal restrictions. Please send any patches back my way if you like. If you are interested in using rxtx for things like RS485, I2C or raw IO Please get the latest CVS version. Some work has been done for each of them. The latest development version is a stand alone implementation of CommAPI. For bug reports please follow the directions in INSTALL Trent Jarvi taj@www.linux.org.uk ./rxtx-2.2pre2/src/0000755000175000017500000000000011142440764014040 5ustar twernertwerner./rxtx-2.2pre2/src/init.cc0000644000175000017500000000131507022061466015312 0ustar twernertwerner#include /* extern "C" { int WINAPI dll_entry (HANDLE handke, DWORD dword, void *var); }; int WINAPI dll_entry (HANDLE , DWORD dword, void *) { return 1; } */ #ifdef __CYGWIN32__ struct _reent *_impure_ptr; extern struct _reent *__imp_reent_data; #endif extern "C" { int WINAPI dll_entry (HANDLE h, DWORD reason, void *ptr); }; int WINAPI dll_entry (HANDLE , DWORD reason, void *) { #ifdef __CYGWIN32__ _impure_ptr = __imp_reent_data; #endif switch (reason) { case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return 1; } ./rxtx-2.2pre2/src/RS485Imp.h0000644000175000017500000001245410614033755015453 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.SerialPort constants */ #ifndef WIN32 #define DATABITS_5 5 #define DATABITS_6 6 #define DATABITS_7 7 #define DATABITS_8 8 #define PARITY_NONE 0 #define PARITY_ODD 1 #define PARITY_EVEN 2 #define PARITY_MARK 3 #define PARITY_SPACE 4 #endif #define STOPBITS_1 1 #define STOPBITS_2 2 #define FLOWCONTROL_NONE 0 #define FLOWCONTROL_RTSCTS_IN 1 #define FLOWCONTROL_RTSCTS_OUT 2 #define FLOWCONTROL_XONXOFF_IN 4 #define FLOWCONTROL_XONXOFF_OUT 8 /* gnu.io.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 /* java exception class names */ #define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ #ifdef CRTSCTS #define HARDWARE_FLOW_CONTROL CRTSCTS #else # ifdef CCTS_OFLOW # define HARDWARE_FLOW_CONTROL CCTS_OFLOW|CRST_IFLOW # else # ifdef RTSFLOW # define HARDWARE_FLOW_CONTROL RTSFLOW|CTSFLOW # else # ifdef CRTSFL # define HARDWARE_FLOW_CONTROL CRTSFL # else # ifdef CTSCD # define HARDWARE_FLOW_CONTROL CTSCD # else # define HARDWARE_FLOW_CONTROL 0 # endif # endif # endif # endif #endif /* PROTOTYPES */ int translate_speed( JNIEnv*, jint ); int translate_data_bits( JNIEnv *, int *, jint ); int translate_stop_bits( JNIEnv *, int *, jint ); int translate_parity( JNIEnv *, int *, jint ); int read_byte_array( int, unsigned char *, int, int ); int get_java_var( JNIEnv *, jobject, char *, char * ); int get_java_fd( JNIEnv *, jobject ); void send_modem_events( JNIEnv *, jobject, jmethodID, int, int, int ); void throw_java_exception( JNIEnv *, char *, char *, char * ); ./rxtx-2.2pre2/src/Parallel.def0000644000175000017500000000272607564247212016271 0ustar twernertwernerEXPORTS Java_gnu_io_LPRPort_Initialize=Java_gnu_io_LPRPort_Initialize@8 Java_gnu_io_LPRPort_eventLoop=Java_gnu_io_LPRPort_eventLoop@8 Java_gnu_io_LPRPort_getInputBufferSize=Java_gnu_io_LPRPort_getInputBufferSize@8 Java_gnu_io_LPRPort_getOutputBufferFree=Java_gnu_io_LPRPort_getOutputBufferFree@8 Java_gnu_io_LPRPort_getOutputBufferSize=Java_gnu_io_LPRPort_getOutputBufferSize@8 Java_gnu_io_LPRPort_isPaperOut=Java_gnu_io_LPRPort_isPaperOut@8 Java_gnu_io_LPRPort_isPrinterBusy=Java_gnu_io_LPRPort_isPrinterBusy@8 Java_gnu_io_LPRPort_isPrinterError=Java_gnu_io_LPRPort_isPrinterError@8 Java_gnu_io_LPRPort_isPrinterSelected=Java_gnu_io_LPRPort_isPrinterSelected@8 Java_gnu_io_LPRPort_isPrinterTimedOut=Java_gnu_io_LPRPort_isPrinterTimedOut@8 Java_gnu_io_LPRPort_nativeClose=Java_gnu_io_LPRPort_nativeClose@8 Java_gnu_io_LPRPort_nativeavailable=Java_gnu_io_LPRPort_nativeavailable@8 Java_gnu_io_LPRPort_open=Java_gnu_io_LPRPort_open@12 Java_gnu_io_LPRPort_readArray=Java_gnu_io_LPRPort_readArray@20 Java_gnu_io_LPRPort_readByte=Java_gnu_io_LPRPort_readByte@8 Java_gnu_io_LPRPort_setHWFC=Java_gnu_io_LPRPort_setHWFC@12 Java_gnu_io_LPRPort_setInputBufferSize=Java_gnu_io_LPRPort_setInputBufferSize@12 Java_gnu_io_LPRPort_setLPRMode=Java_gnu_io_LPRPort_setLPRMode@12 Java_gnu_io_LPRPort_setOutputBufferSize=Java_gnu_io_LPRPort_setOutputBufferSize@12 Java_gnu_io_LPRPort_writeArray=Java_gnu_io_LPRPort_writeArray@20 Java_gnu_io_LPRPort_writeByte=Java_gnu_io_LPRPort_writeByte@12 ./rxtx-2.2pre2/src/psmisc/0000755000175000017500000000000011126534474015342 5ustar twernertwerner./rxtx-2.2pre2/src/psmisc/README0000644000175000017500000000134407446410214016217 0ustar twernertwernerpsmisc, version 18 + _hacks_ to get a lib Trent Jarvi taj@parcelfarce.linux.theplanet.co.uk This is experimental work for rxtx. try testing /dev/tty1 to see whats up. get psmisc if you are interested in the real package ================== This package contains four little utilities that use the proc FS: fuser identifies processes using files or sockets (similar to Sun's or SGI's fuser) killall kills processes by name, e.g. killall -HUP named pidof like killall, buts lists PIDs instead of killing processes pstree shows the currently running processes as a tree They should work with most recent kernels. Man pages are included. - Werner Almesberger ./rxtx-2.2pre2/src/psmisc/testing.c0000644000175000017500000000022207072240433017151 0ustar twernertwernerextern void show_user(char[]); int main(int argc,char **argv) { if (argv[1]) show_user(argv[1]); else show_user("/dev/tty1"); exit(0); } ./rxtx-2.2pre2/src/psmisc/Makefile0000644000175000017500000000076007072240433016777 0ustar twernertwernerCC=cc CFLAGS=-O -D_GNU_SOURCE -Wall -Wno-parentheses -Wwrite-strings -Wpointer-arith REAL_CPP=/lib/cpp LIBDIR=/usr/lib all: libpsmisc.la testing testing: testing.c libpsmisc.la cp .libs/*so* . $(CC) $(CFLAGS) -L .libs -lpsmisc -o testing testing.c libpsmisc.la: fuser.c Makefile libtool --mode=compile $(CC) $(CFLAGS) -c fuser.c libtool --mode=link $(CC) $(CFLAGS) --version-info 1:0:1 -o libpsmisc.la -rpath $(LIBDIR) fuser.lo clean: rm -rf *.o .libs *~ core testing *.lo libps* ./rxtx-2.2pre2/src/psmisc/COPYING0000644000175000017500000000105106762765463016410 0ustar twernertwernerpsmisc (fuser, killall and pstree) program code, documentation and auxiliary programs are Copyright 1993-1998 Werner Almesberger. All rights reserved. Redistribution and use in source and binary forms of parts of or the whole original or derived work are permitted provided that the original work is properly attributed to the author. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. This work is provided "as is" and without any express or implied warranties. ./rxtx-2.2pre2/src/psmisc/CVS/0000755000175000017500000000000011142410104015752 5ustar twernertwerner./rxtx-2.2pre2/src/psmisc/CVS/Tag0000644000175000017500000000001711126534474016431 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/src/psmisc/CVS/Root0000644000175000017500000000007511126534474016645 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/src/psmisc/CVS/Entries0000644000175000017500000000044211126534474017331 0ustar twernertwerner/COPYING/1.1/Tue Aug 31 14:48:19 1999//Tcommapi-0-0-1 /Makefile/1.1.2.1/Tue Apr 4 01:10:51 2000//Tcommapi-0-0-1 /README/1.2.2.2/Thu Mar 21 16:55:40 2002//Tcommapi-0-0-1 /fuser.c/1.1.2.8/Wed Aug 14 00:43:06 2002//Tcommapi-0-0-1 /testing.c/1.1.2.1/Tue Apr 4 01:10:51 2000//Tcommapi-0-0-1 D ./rxtx-2.2pre2/src/psmisc/CVS/Repository0000644000175000017500000000002611126534474020075 0ustar twernertwernerrxtx-devel/src/psmisc ./rxtx-2.2pre2/src/psmisc/fuser.c0000644000175000017500000001750107526323632016637 0ustar twernertwerner#ifndef __linux__ JNIEXPORT jstring JNICALL Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner (JNIEnv *env, jobject obj, jstring arg) { return (*env)->NewStringUTF(env, "Unknown Application"); } #else /* loosly based on fuser.c by Werner Almesberger. */ /* fuser.c - identify processes using files */ /* Copyright 1993-1998 Werner Almesberger. See file COPYING for details. psmisc (fuser, killall and pstree) program code, documentation and auxiliary programs are Copyright 1993-1998 Werner Almesberger. All rights reserved. Redistribution and use in source and binary forms of parts of or the whole original or derived work are permitted provided that the original work is properly attributed to the author. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. This work is provided "as is" and without any express or implied warranties. */ #include #include #include #include #include #include #include #include #include #include #include "gnu_io_CommPortIdentifier.h" #define COMM_LEN 16 #define PROC_BASE "/proc" #define UID_UNKNOWN -1 #define NAME_FIELD 20 /* space reserved for file name */ #define REF_FILE 1 /* an open file */ #define REF_ROOT 2 /* current root */ #define REF_CWD 4 /* current directory */ #define REF_EXE 8 /* executable */ #define REF_MMAP 16 /* mmap'ed file or library */ #define FLAG_UID 2 /* show uid */ #define FLAG_VERB 4 /* show verbose output */ #define FLAG_DEV 8 /* show all processes using this device */ char returnstring[256]; void parse_args(const char *); typedef struct { const char *name; } SPACE_DSC; typedef enum { it_proc,it_mount,it_loop,it_swap } ITEM_TYPE; typedef struct item_dsc { ITEM_TYPE type; union { struct { pid_t pid; int uid; /* must also accept UID_UNKNOWN */ int ref_set; } proc; struct { const char *path; } misc; } u; struct item_dsc *next; } ITEM_DSC; typedef struct file_dsc { const char *name; /* NULL if previous entry has name */ dev_t dev; ino_t ino; int flags,sig_num; SPACE_DSC *name_space; /* or NULL if no indication */ ITEM_DSC *items; struct file_dsc *named,*next; } FILE_DSC; static SPACE_DSC name_spaces[] = { }; static FILE_DSC *files = NULL; static FILE_DSC *last_named = NULL; static int all = 0,found_item = 0; static void add_file(const char *path,unsigned long device,unsigned long inode, pid_t pid,int ref) { struct stat st; FILE_DSC *file,*next; ITEM_DSC **item,*this; unsigned long mount_dev; if (device) mount_dev = device; for (file = files; file; file = next) { next = file->next; if (file->flags & FLAG_DEV ? mount_dev && mount_dev == file->dev : device == file->dev && inode == file->ino) { if (!file->name) file = file->named; for (item = &file->items; *item; item = &(*item)->next) if ((*item)->type == it_proc && (*item)->u.proc.pid >= pid) break; if (*item && (*item)->u.proc.pid == pid) this = *item; else { if (!(this = malloc(sizeof(ITEM_DSC)))) { perror("malloc"); exit(1); } this->type = it_proc; this->u.proc.pid = pid; this->u.proc.uid = UID_UNKNOWN; this->u.proc.ref_set = 0; this->next = *item; *item = this; found_item = 1; } this->u.proc.ref_set |= ref; if ((file->flags & (FLAG_UID | FLAG_VERB)) && this->u.proc.uid == UID_UNKNOWN && lstat(path,&st) >= 0) this->u.proc.uid = st.st_uid; } } } static void check_dir(const char *rel,pid_t pid,int type) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; struct stat st; if (!(dir = opendir(rel))) return; while (de = readdir(dir)) if (strcmp(de->d_name,".") && strcmp(de->d_name,"..")) { sprintf(path,"%s/%s",rel,de->d_name); if (stat(path,&st) >= 0) add_file(path,st.st_dev,st.st_ino,pid,type); } (void) closedir(dir); } extern void scan_fd(void) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; pid_t pid; int empty; if (!(dir = opendir(PROC_BASE))) { perror(PROC_BASE); exit(1); } empty = 1; while (de = readdir(dir)) if (pid = atoi(de->d_name)) { empty = 0; sprintf(path,"%s/%d",PROC_BASE,pid); if (chdir(path) >= 0) { check_dir("fd",pid,REF_FILE); } } (void) closedir(dir); if (empty) { fprintf(stderr,PROC_BASE " is empty (not mounted ?)\n"); exit(1); } } extern void show_user(const char tstring[],char *rs) { const ITEM_DSC *item; FILE *f; const struct passwd *pw; const char *user,*scan; char tmp[10],path[PATH_MAX+1],comm[COMM_LEN+1]; int dummy; int keeper; pid_t self; const char *name; int uid; char temp[80]; parse_args(tstring); scan_fd(); if (seteuid(getuid()) < 0) { sprintf(rs, "%s", "Unknown Linux Application"); return; } self = getpid(); if (!files->name || !(files->items || all)) { sprintf(rs, "%s", "Unknown Linux Application"); return; } scan = files->name; strcat(returnstring," "); item = files->items; sprintf(path,PROC_BASE "/%d/stat",item->u.proc.pid); strcpy(comm,"???"); if (f = fopen(path,"r")) { (void) fscanf(f,"%d (%[^)]",&dummy,comm); (void) fclose(f); } name = comm; uid = item->u.proc.uid; if (uid == UID_UNKNOWN) user = "???"; else if (pw = getpwuid(uid)) user = pw->pw_name; else { sprintf(tmp,"%d",uid); user = tmp; } strcat(returnstring,user); strcat(returnstring," PID = "); sprintf(temp,"%6d ",item->u.proc.pid); strcat(returnstring,temp); strcat(returnstring,"Program = "); if (name) { for (scan = name; *scan; scan++) { if (*scan == '\\') { sprintf(temp,"\\\\"); strcat(returnstring,temp); } else if (*scan > ' ' && *scan <= '~') { keeper=strlen(returnstring); returnstring[keeper]= *scan; returnstring[keeper+1]= '\0'; } else { sprintf(temp,"\\%03o", scan); strcat(returnstring,temp); } } } strcpy(rs,returnstring); } static void enter_item(const char *name,int flags,int sig_number,dev_t dev, ino_t ino,SPACE_DSC *name_space) { static FILE_DSC *last = NULL; FILE_DSC *new; if (!(new = malloc(sizeof(FILE_DSC)))) { perror("malloc"); exit(1); } if (last_named && !strcmp(last_named->name,name) && last_named->name_space == name_space) new->name = NULL; else if (!(new->name = strdup(name))) { perror("strdup"); exit(1); } new->flags = flags; new->sig_num = sig_number; new->items = NULL; new->next = NULL; new->dev = dev; new->ino = ino; new->name_space = name_space; if (last) last->next = new; else files = new; last = new; new->named = last_named; if (new->name) last_named = new; } void parse_args(const char *argv) { SPACE_DSC *name_space; int flags,sig_number,no_files; SPACE_DSC *this_name_space; struct stat st; flags = 0; sig_number = SIGKILL; name_space = name_spaces; no_files = 1; flags |= FLAG_UID; no_files = 0; last_named = NULL; this_name_space = name_space; if (this_name_space == name_spaces) { if (stat(argv,&st) < 0) { perror(argv); exit(0); } if (!S_ISSOCK(st.st_mode) || (flags & FLAG_DEV)) enter_item(argv,flags,sig_number,st.st_dev,st.st_ino,NULL); } } JNIEXPORT jstring JNICALL Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner (JNIEnv *env, jobject obj, jstring arg) { char returnstring[256]; const char *str = (*env)->GetStringUTFChars(env, arg, 0); show_user(str,returnstring); (*env)->ReleaseStringUTFChars(env, arg, str); return (*env)->NewStringUTF(env, returnstring); } #endif /* __linux__ */ ./rxtx-2.2pre2/src/ParallelImp.h0000644000175000017500000001117610614033755016422 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.ParallelPort constants */ /* this appears to be handled in /usr/src/linux/misc/parport_pc.c */ #define LPT_MODE_ANY 0 #define LPT_MODE_SPP 1 #define LPT_MODE_PS2 2 #define LPT_MODE_EPP 3 #define LPT_MODE_ECP 4 #define LPT_MODE_NIBBLE 5 /* some popular releases of Slackware do not have SSIZE_MAX */ #ifndef SSIZE_MAX # if defined(INT_MAX) # define SSIZE_MAX INT_MAX # elif defined(MAXINT) # define SSIZE_MAX MAXINT # else # define SSIZE_MAX 2147483647 /* ugh */ # endif #endif /* gnu.io.ParallelPortEvent constants */ #define PAR_EV_ERROR 1 #define PAR_EV_BUFFER 2 /* java exception class names */ #define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" #define PORT_IN_USE_EXCEPTION "gnu/io/PortInUseException" /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ /* PROTOTYPES */ jboolean is_interrupted(JNIEnv *, jobject ); int send_event(JNIEnv *, jobject, jint, int ); int read_byte_array( int fd, unsigned char *buffer, int length, int threshold, int timeout ); int get_java_var( JNIEnv *, jobject, char *, char * ); void report(char *); void report_error(char *); void throw_java_exception( JNIEnv *, char *, char *, char * ); void throw_java_exception_system_msg( JNIEnv *, char *, char * ); ./rxtx-2.2pre2/src/win32termios.h0000644000175000017500000003467711142437727016604 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2009 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #ifndef _WIN32S_H_ #define _WIN32S_H_ #include #include #include #ifdef TRACE #define ENTER(x) report("entering "x" \n"); #define LEAVE(x) report("leaving "x" \n"); #else #define ENTER(x) #define LEAVE(x) #endif /* TRACE */ #if defined(_MSC_VER) #define YACK() \ { \ char *allocTextBuf, message[80]; \ unsigned long nChars; \ unsigned int errorCode = GetLastError(); \ nChars = FormatMessage ( \ FORMAT_MESSAGE_ALLOCATE_BUFFER | \ FORMAT_MESSAGE_FROM_SYSTEM, \ NULL, \ errorCode, \ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), \ (LPSTR)&allocTextBuf, \ 16, \ NULL ); \ _snprintf_s( message, 80, 80, "Error 0x%x at %s(%d): %s\n", errorCode, __FILE__, __LINE__, allocTextBuf); \ report_error( message ); \ LocalFree(allocTextBuf); \ Sleep(1); \ } #else #define YACK() \ { \ char *allocTextBuf, message[80]; \ unsigned long nChars; \ unsigned int errorCode = GetLastError(); \ nChars = FormatMessage ( \ FORMAT_MESSAGE_ALLOCATE_BUFFER | \ FORMAT_MESSAGE_FROM_SYSTEM, \ NULL, \ errorCode, \ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), \ (LPSTR)&allocTextBuf, \ 16, \ NULL ); \ snprintf( message, 80, "Error 0x%x at %s(%d): %s\n", errorCode, __FILE__, __LINE__, allocTextBuf); \ report_error( message ); \ LocalFree(allocTextBuf); \ Sleep(1); \ } #endif typedef unsigned char cc_t; typedef unsigned int speed_t; typedef unsigned int tcflag_t; /* structs are from linux includes or linux man pages to match interfaces. */ struct timespec { time_t tv_sec; long tv_nsec; }; #define NCCS 32 struct termios { tcflag_t c_iflag; /* input mode flags */ tcflag_t c_oflag; /* output mode flags */ tcflag_t c_cflag; /* control mode flags */ tcflag_t c_lflag; /* local mode flags */ cc_t c_cc[NCCS]; /* control characters */ cc_t c_line; /* line discipline (== c_cc[33]) */ speed_t c_ispeed; /* input speed */ speed_t c_ospeed; /* output speed */ }; /* for TIOCGSERIAL and TIOCSSERIAL of interest are baud_base and * custom_divisor * --- NOTE: This is not used. Win32 sets custom speeds on the * kernel side. */ struct serial_struct { /* Mainly we are after baud_base/custom_diviser to match the ioctl() in SerialImp.c */ int custom_divisor; /* use to set unsupported speeds */ int baud_base; /* use to set unsupported speeds */ unsigned short close_delay, closing_wait, iomem_reg_shift; int type, line, irq, flags, xmit_fifo_size, hub6; unsigned int port, port_high; char io_type; unsigned char *iomem_base; }; struct serial_icounter_struct { int cts; /* clear to send count */ int dsr; /* data set ready count */ int rng; /* ring count */ int dcd; /* carrier detect count */ int rx; /* recieved byte count */ int tx; /* transmitted byte count */ int frame; /* frame error count */ int overrun; /* hardware overrun error count */ int parity; /* parity error count */ int brk; /* break count */ int buf_overrun; /* buffer overrun count */ int reserved[9]; /* unused */ }; int serial_test( char * ); int serial_open(const char *File, int flags, ... ); int serial_close(int fd); int serial_read(int fd, void *b, int size); int serial_write(int fd, char *Str, int length); /* * lcc winsock.h conflicts */ #ifndef __LCC__ int serial_select(int, struct fd_set *, struct fd_set *, struct fd_set *, struct timeval *); #define select serial_select #endif #define OPEN serial_open #define CLOSE serial_close #define READ serial_read #define WRITE serial_write void termios_interrupt_event_loop( int , int ); void termios_setflags( int , int[] ); struct termios_list *find_port( int ); void usleep(unsigned long usec); int fcntl(int fd, int command, ...); const char *get_dos_port(const char *); void set_errno(int); char *sterror(int); int B_to_CBR(int); int CBR_to_B(int); int termios_to_bytesize(int); int bytesize_to_termios(int); int tcgetattr(int Fd, struct termios *s_termios); int tcsetattr(int Fd, int when, struct termios *); int serial_close(int ); speed_t cfgetospeed(struct termios *s_termios); speed_t cfgetispeed(struct termios *s_termios); int cfsetspeed(struct termios *, speed_t speed); int cfsetospeed(struct termios *, speed_t speed); int cfsetispeed ( struct termios *, speed_t speed); int tcflush ( int , int ); int tcgetpgrp ( int ); int tcsetpgrp ( int , int ); int tcdrain ( int ); int tcflow ( int , int ); int tcsendbreak ( int , int ); int ioctl(int fd, int request, ... ); /* int fstat(int fd, ... ); */ void cfmakeraw(struct termios *s_termios); int termiosGetParityErrorChar( int ); void termiosSetParityError( int, char ); #define O_NOCTTY 0400 /* not for fcntl */ #define O_NONBLOCK 00004 #define O_NDELAY O_NONBLOCK #define O_SYNC 040000 #define O_FSYNC O_SYNC #define O_ASYNC 020000 /* fcntl, for BSD compatibility */ #define F_DUPFD 0 /* dup */ #define F_GETFD 1 /* get f_flags */ #define F_SETFD 2 /* set f_flags */ #define F_GETFL 3 /* more flags (cloexec) */ #define F_SETFL 4 #define F_GETLK 7 #define F_SETLK 8 #define F_SETLKW 9 #define F_SETOWN 5 /* for sockets. */ #define F_GETOWN 6 /* for sockets. */ /* for F_[GET|SET]FL */ #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ /* for posix fcntl() and lockf() */ #define F_RDLCK 1 #define F_WRLCK 2 #define F_UNLCK 8 /* for old implementation of bsd flock () */ #define F_EXLCK 16 /* or 3 */ #define F_SHLCK 32 /* or 4 */ /* operations for bsd flock(), also used by the kernel implementation */ #define LOCK_SH 1 /* shared lock */ #define LOCK_EX 2 /* exclusive lock */ #define LOCK_NB 4 /* or'd with one of the above to prevent blocking */ #define LOCK_UN 8 /* remove lock */ /* c_cc characters */ #define VINTR 0 #define VQUIT 1 #define VERASE 2 #define VKILL 3 #define VEOF 4 #define VTIME 5 #define VMIN 6 #define VSWTC 7 #define VSTART 8 #define VSTOP 9 #define VSUSP 10 #define VEOL 11 #define VREPRINT 12 #define VDISCARD 13 #define VWERASE 14 #define VLNEXT 15 #define VEOL2 16 /* c_iflag bits */ #define IGNBRK 0000001 #define BRKINT 0000002 #define IGNPAR 0000004 #define PARMRK 0000010 #define INPCK 0000020 #define ISTRIP 0000040 #define INLCR 0000100 #define IGNCR 0000200 #define ICRNL 0000400 #define IXON 0002000 #define IXANY 0004000 #define IXOFF 0010000 #define IMAXBEL 0020000 #define CRTS_IFLOW 0040000 #define CCTS_OFLOW 0100000 #define CIGNORE 0400000 #define CRTSCTS 020000000000 /* flow control */ #define HARDWARE_FLOW_CONTROL CRTSCTS #define CRTSXOFF 010000000000 /* c_oflag bits */ #define OPOST 0000001 #define ONLCR 0000002 #define OLCUC 0000004 #define OCRNL 0000010 #define ONOCR 0000020 #define ONLRET 0000040 #define OFILL 00000100 #define OFDEL 00000200 #define NLDLY 00001400 #define NL0 00000000 #define NL1 00000400 #define NL2 00001000 #define NL3 00001400 #define TABDLY 00006000 #define TAB0 00000000 #define TAB1 00002000 #define TAB2 00004000 #define TAB3 00006000 #define CRDLY 00030000 #define CR0 00000000 #define CR1 00010000 #define CR2 00020000 #define CR3 00030000 #define FFDLY 00040000 #define FF0 00000000 #define FF1 00040000 #define BSDLY 00100000 #define BS0 00000000 #define BS1 00100000 #define VTDLY 00200000 #define VT0 00000000 #define VT1 00200000 #define XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */ /* c_cflag bit meaning */ #define CBAUD 0030017 #define B0 0000000 /* hang up */ #define B50 0000001 #define B75 0000002 #define B110 0000003 #define B134 0000004 #define B150 0000005 #define B200 0000006 #define B300 0000007 #define B600 0000010 #define B1200 0000011 #define B1800 0000012 #define B2400 0000013 #define B4800 0000014 #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 #define B57600 0010001 #define B115200 0010002 #define B230400 0010003 #define B460800 0010004 #define B500000 0010005 #define B576000 0010006 #define B921600 0010007 #define B1000000 0010010 #define B1152000 0010011 #define B1500000 0010012 #define B2000000 0010013 #define B2500000 0010014 #define B3000000 0010015 #define B3500000 0010016 #define B4000000 0010017 /* glue for unsupported linux speeds see also SerialImp.h custom baud rates around 8192-9000 will not work because of these. */ #define B14400 0020001 #define B28800 0020002 #define B128000 0020003 #define B256000 0020004 #define EXTA B19200 #define EXTB B38400 #define CSIZE 0000060 #define CS5 0000000 #define CS6 0000020 #define CS7 0000040 #define CS8 0000060 #define CSTOPB 0000100 #define CREAD 0000200 #define PARENB 0000400 #define PARODD 0001000 #define HUPCL 0002000 #define CLOCAL 0004000 # define CBAUDEX 0010000 # define CIBAUD 002003600000 /* input baud rate (not used) */ # define CRTSCTS 020000000000 /* flow control */ /* c_l flag */ #define ISIG 0000001 #define ICANON 0000002 #define XCASE 0000004 #define ECHO 0000010 #define ECHOE 0000020 #define ECHOK 0000040 #define ECHONL 0000100 #define NOFLSH 0000200 #define TOSTOP 0000400 #define ECHOCTL 0001000 #define ECHOPRT 0002000 #define ECHOKE 0004000 #define FLUSHO 0010000 #define PENDIN 0040000 #define IEXTEN 0100000 /* glue for unsupported windows speeds */ #define CBR_28800 28800 #define CBR_128000 128000 #define CBR_230400 230400 #define CBR_256000 256000 #define CBR_460800 460800 #define CBR_500000 500000 #define CBR_576000 576000 #define CBR_921600 921600 #define CBR_1000000 1000000 #define CBR_1152000 1152000 #define CBR_1500000 1500000 #define CBR_2000000 2000000 #define CBR_2500000 2500000 #define CBR_3000000 3000000 #define CBR_3500000 3500000 #define CBR_4000000 4000000 /* Values for the ACTION argument to `tcflow'. */ #define TCOOFF 0 #define TCOON 1 #define TCIOFF 2 #define TCION 3 /* Values for the QUEUE_SELECTOR argument to `tcflush'. */ #define TCIFLUSH 0 #define TCOFLUSH 1 #define TCIOFLUSH 2 /* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */ #define TCSANOW 0 #define TCSADRAIN 1 #define TCSAFLUSH 2 /* ioctls */ #define TIOCSERGETLSR 0x5459 #endif /*_WIN32S_H_*/ /* unused ioctls */ #define TCSBRK 0x5409 #define TIOCOUTQ 0x5411 #define TIOCMGET 0x5415 #define TIOCMBIS 0x5416 #define TIOCMBIC 0x5417 #define TIOCMSET 0x5418 #define TIOCGSOFTCAR 0x5419 #define TIOCSSOFTCAR 0x541a #define TIOCSER_TEMP 0x01 /* #define FIONREAD 0x541b TIOC[GS]SERIAL is not used on win32. It was dropped after we could not find a way to get/set buad_base and divisor directly. #define TIOCGSERIAL 0x541e #define TIOCSSERIAL 0x541f */ #define TCSBRKP 0x5425 #define TIOCSERCONFIG 0x5453 #define TIOCSERGWILD 0x5454 #define TIOCSERSWILD 0x5455 #define TIOCSERGSTRUCT 0x5458 #define TIOCSERGETMULTI 0x545a #define TIOCSERSETMULTI 0x545b #define TIOCMIWAIT 0x545c /* this would require being able to get the number of overruns ... */ /* FIXME frame and parity errors caused crashes in testing BlackBox */ #define TIOCGICOUNT 0x545d /* ioctl errors */ #define ENOIOCTLCMD 515 #define EBADFD 77 /* modem lines */ #define TIOCM_LE 0x001 #define TIOCM_DTR 0x002 #define TIOCM_RTS 0x004 #define TIOCM_ST 0x008 #define TIOCM_SR 0x010 #define TIOCM_CTS 0x020 #define TIOCM_CAR 0x040 #define TIOCM_RNG 0x080 #define TIOCM_DSR 0x100 #define TIOCM_CD TIOCM_CAR #define TIOCM_RI TIOCM_RNG #define CMSPAR 010000000000 /* mark or space parity */ ./rxtx-2.2pre2/src/fuserImp.c0000644000175000017500000001770411107144717016007 0ustar twernertwerner#if defined(__MWERKS__) /* dima */ #include "CommPortIdentifier.h" #else /* dima */ #include "gnu_io_CommPortIdentifier.h" #endif /* dima */ #ifndef __linux__ JNIEXPORT jstring JNICALL Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner (JNIEnv *env, jobject obj, jstring arg) { return (*env)->NewStringUTF(env, "Unknown Application"); /* return("Unknown Application\n"); */ } #else /* loosly based on fuser.c by Werner Almesberger. */ /* Copyright 1993-1998 Werner Almesberger. See file COPYING for details. psmisc (fuser, killall and pstree) program code, documentation and auxiliary programs are Copyright 1993-1998 Werner Almesberger. All rights reserved. Redistribution and use in source and binary forms of parts of or the whole original or derived work are permitted provided that the original work is properly attributed to the author. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. This work is provided "as is" and without any express or implied warranties. */ #include #include #include #include #include #include #include #include #include #include #define COMM_LEN 16 #define PROC_BASE "/proc" #define UID_UNKNOWN -1 #define NAME_FIELD 20 /* space reserved for file name */ #define REF_FILE 1 /* an open file */ #define REF_ROOT 2 /* current root */ #define REF_CWD 4 /* current directory */ #define REF_EXE 8 /* executable */ #define REF_MMAP 16 /* mmap'ed file or library */ #define FLAG_UID 2 /* show uid */ #define FLAG_VERB 4 /* show verbose output */ #define FLAG_DEV 8 /* show all processes using this device */ char returnstring[256]; void parse_args(const char *); typedef struct { const char *name; } SPACE_DSC; typedef enum { it_proc,it_mount,it_loop,it_swap } ITEM_TYPE; typedef struct item_dsc { ITEM_TYPE type; union { struct { pid_t pid; int uid; /* must also accept UID_UNKNOWN */ int ref_set; } proc; struct { const char *path; } misc; } u; struct item_dsc *next; } ITEM_DSC; typedef struct file_dsc { const char *name; /* NULL if previous entry has name */ dev_t dev; ino_t ino; int flags,sig_num; SPACE_DSC *name_space; /* or NULL if no indication */ ITEM_DSC *items; struct file_dsc *named,*next; } FILE_DSC; static SPACE_DSC *name_spaces; static FILE_DSC *files = NULL; static FILE_DSC *last_named = NULL; static int all = 0,found_item = 0; static void add_file(const char *path,unsigned long device,unsigned long inode, pid_t pid,int ref) { struct stat st; FILE_DSC *file,*next; ITEM_DSC **item,*this; unsigned long mount_dev = 0; if (device) mount_dev = device; for (file = files; file; file = next) { next = file->next; if (file->flags & FLAG_DEV ? mount_dev && mount_dev == file->dev : device == file->dev && inode == file->ino) { if (!file->name) file = file->named; for (item = &file->items; *item; item = &(*item)->next) if ((*item)->type == it_proc && (*item)->u.proc.pid >= pid) break; if (*item && (*item)->u.proc.pid == pid) this = *item; else { if (!(this = malloc(sizeof(ITEM_DSC)))) { perror("malloc"); exit(1); } this->type = it_proc; this->u.proc.pid = pid; this->u.proc.uid = UID_UNKNOWN; this->u.proc.ref_set = 0; this->next = *item; *item = this; found_item = 1; } this->u.proc.ref_set |= ref; if ((file->flags & (FLAG_UID | FLAG_VERB)) && this->u.proc.uid == UID_UNKNOWN && lstat(path,&st) >= 0) this->u.proc.uid = st.st_uid; } } } static void check_dir(const char *rel,pid_t pid,int type) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; struct stat st; if (!(dir = opendir(rel))) return; while ( (de = readdir(dir) ) ) if (strcmp(de->d_name,".") && strcmp(de->d_name,"..")) { sprintf(path,"%s/%s",rel,de->d_name); if (stat(path,&st) >= 0) add_file(path,st.st_dev,st.st_ino,pid,type); } (void) closedir(dir); } extern void scan_fd(void) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; pid_t pid; int empty; if (!(dir = opendir(PROC_BASE))) { perror(PROC_BASE); exit(1); } empty = 1; while ( ( de = readdir(dir) ) ) if ( ( pid = atoi(de->d_name) ) ) { empty = 0; sprintf(path,"%s/%d",PROC_BASE,pid); if (chdir(path) >= 0) { check_dir("fd",pid,REF_FILE); } } (void) closedir(dir); if (empty) { fprintf(stderr,PROC_BASE " is empty (not mounted ?)\n"); exit(1); } } extern void show_user(const char tstring[],char *rs) { const ITEM_DSC *item; FILE *f; const struct passwd *pw; const char *user,*scan; char tmp[10],path[PATH_MAX+1],comm[COMM_LEN+1]; int dummy; int keeper; pid_t self; const char *name; int uid; char temp[80]; parse_args(tstring); scan_fd(); if (seteuid(getuid()) < 0) { sprintf(rs, "%s", "Unknown Linux Application"); return; } self = getpid(); if (!files->name || !(files->items || all)) { sprintf(rs, "%s", "Unknown Linux Application"); return; } scan = files->name; strcat(returnstring," "); item = files->items; sprintf(path,PROC_BASE "/%d/stat",item->u.proc.pid); strcpy(comm,"???"); if ( ( f = fopen(path,"r") ) ) { (void) fscanf(f,"%d (%[^)]",&dummy,comm); (void) fclose(f); } name = comm; uid = item->u.proc.uid; if (uid == UID_UNKNOWN) user = "???"; else if ( ( pw = getpwuid(uid) ) ) user = pw->pw_name; else { sprintf(tmp,"%d",uid); user = tmp; } strcat(returnstring,user); strcat(returnstring," PID = "); sprintf(temp,"%6d ",item->u.proc.pid); strcat(returnstring,temp); strcat(returnstring,"Program = "); if (name) { for (scan = name; *scan; scan++) { if (*scan == '\\') { sprintf(temp,"\\\\"); strcat(returnstring,temp); } else if (*scan > ' ' && *scan <= '~') { keeper=strlen(returnstring); returnstring[keeper]= *scan; returnstring[keeper+1]= '\0'; } else { sprintf(temp,"\\%03zo", (size_t) scan); strcat(returnstring,temp); } } } strcpy(rs,returnstring); } static void enter_item(const char *name,int flags,int sig_number,dev_t dev, ino_t ino,SPACE_DSC *name_space) { static FILE_DSC *last = NULL; FILE_DSC *new; if (!(new = malloc(sizeof(FILE_DSC)))) { perror("malloc"); exit(1); } if (last_named && !strcmp(last_named->name,name) && last_named->name_space == name_space) new->name = NULL; else if (!(new->name = strdup(name))) { perror("strdup"); exit(1); } new->flags = flags; new->sig_num = sig_number; new->items = NULL; new->next = NULL; new->dev = dev; new->ino = ino; new->name_space = name_space; if (last) last->next = new; else files = new; last = new; new->named = last_named; if (new->name) last_named = new; } void parse_args(const char *argv) { SPACE_DSC *name_space; int flags,sig_number,no_files; SPACE_DSC *this_name_space; struct stat st; flags = 0; sig_number = SIGKILL; name_space = name_spaces; no_files = 1; flags |= FLAG_UID; no_files = 0; last_named = NULL; this_name_space = name_space; if (this_name_space == name_spaces) { if (stat(argv,&st) < 0) { perror(argv); exit(0); } if (!S_ISSOCK(st.st_mode) || (flags & FLAG_DEV)) enter_item(argv,flags,sig_number,st.st_dev,st.st_ino,NULL); } } JNIEXPORT jstring JNICALL Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner (JNIEnv *env, jobject obj, jstring arg) { char returnstring[256]; const char *str = (*env)->GetStringUTFChars(env, arg, 0); show_user(str,returnstring); (*env)->ReleaseStringUTFChars(env, arg, str); return (*env)->NewStringUTF(env, returnstring); } #endif /* __linux__ */ ./rxtx-2.2pre2/src/RS485Imp.c0000644000175000017500000012325410614033755015447 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #if defined(__MWERKS__) /* dima */ #include "RS485.h" #else /* dima */ #include "config.h" #include "gnu_io_RS485.h" #endif /* dima */ #include #include #include #include #include #include #ifndef WIN32 #include #include #include #ifdef HAVE_TERMIOS_H # include #endif #ifdef HAVE_SYS_SIGNAL_H # include #endif #else # include #endif #include #include #include #ifdef HAVE_SYS_FCNTL_H # include #endif #ifdef HAVE_SYS_FILE_H # include #endif #if defined(__linux__) # include /* fix for linux-2.3.4? kernels */ # include # include #endif extern int errno; #include "RS485Imp.h" /* #define DEBUG_TIMEOUT */ /*---------------------------------------------------------- RS485Port.Initialize accept: none perform: Initialize the native library return: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_Initialize( JNIEnv *env, jclass jclazz ) { #ifndef WIN32 struct utsname name; /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(__FreeBSD___) struct sigaction handler; sigaction( SIGIO, NULL, &handler ); if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); #endif /* !__FreeBSD__ */ #if defined(__linux__) /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { fprintf(stderr,"RXTX WARNING: cannot get system name\n"); return; } if(strcmp(name.release,UTS_RELEASE)!=0) { fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release); getchar(); } #endif /* __linux__ */ #endif /* WIN32 */ } /*---------------------------------------------------------- RS485Port.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_open( JNIEnv *env, jobject jobj, jstring jstr ) { struct termios ttyset; int fd; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); do { fd=open (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); (*env)->ReleaseStringUTFChars( env, jstr, NULL ); if( fd < 0 ) goto fail; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_iflag = INPCK; ttyset.c_lflag = 0; ttyset.c_oflag = 0; ttyset.c_cflag = CREAD | CS8 | CLOCAL; ttyset.c_cc[ VMIN ] = 0; ttyset.c_cc[ VTIME ] = 0; #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, B9600 ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, B9600 ) < 0 ) goto fail; if( cfsetospeed( &ttyset, B9600 ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; #ifndef WIN32 fcntl( fd, F_SETOWN, getpid() ); fcntl( fd, F_SETFL, FASYNC ); #endif /* WIN32 */ return (jint)fd; fail: throw_java_exception( env, IO_EXCEPTION, "open", strerror( errno ) ); return -1; } /*---------------------------------------------------------- RS485Port.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_nativeClose( JNIEnv *env, jobject jobj ) { int result; int fd = get_java_var( env, jobj,"fd","I" ); do { result=close (fd); } while (result < 0 && errno==EINTR); return; } /*---------------------------------------------------------- RS485Port.nativeSetRS485PortParams accept: speed, data bits, stop bits, parity perform: set the RS485 port parameters return: void exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_nativeSetRS485PortParams( JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); int cspeed = translate_speed( env, speed ); if( !cspeed ) return; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; if( !translate_data_bits( env, (int *)&(ttyset.c_cflag), dataBits ) ) return; /* dima c_cflag in darwin is unsigned long */ if( !translate_stop_bits( env, (int *)&(ttyset.c_cflag), stopBits ) ) return; /* dima c_cflag in darwin is unsigned long */ if( !translate_parity( env, (int *)&(ttyset.c_cflag), parity ) ) return;/* dima c_cflag in darwin is unsigned long */ #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, cspeed ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, cspeed ) < 0 ) goto fail; if( cfsetospeed( &ttyset, cspeed ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; /* dump_termios("set",*ttyset); */ return; fail: throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetRS485PortParams", strerror( errno ) ); } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: UnsupportedCommOperationException comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ int translate_speed( JNIEnv *env, jint speed ) { switch( speed ) { case 0: return B0; case 50: return B50; case 75: return B75; case 110: return B110; case 134: return B134; case 150: return B150; case 200: return B200; case 300: return B300; case 600: return B600; case 1200: return B1200; case 1800: return B1800; case 2400: return B2400; case 4800: return B4800; case 9600: return B9600; case 19200: return B19200; case 38400: return B38400; case 57600: return B57600; case 115200: return B115200; case 230400: return B230400; #ifdef B460800 case 460800: return B460800; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_speed", "speed" ); return 0; } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.RS485Port.DATABITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( JNIEnv *env, int *cflag, jint dataBits ) { int temp = (*cflag) & ~CSIZE; switch( dataBits ) { case DATABITS_5: (*cflag) = temp | CS5; return 1; case DATABITS_6: (*cflag) = temp | CS6; return 1; case DATABITS_7: (*cflag) = temp | CS7; return 1; case DATABITS_8: (*cflag) = temp | CS8; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_data_bits", "data bits" ); return 0; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.RS485Port.STOPBITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: If you specify 5 data bits and 2 stop bits, the port will allegedly use 1.5 stop bits. Does anyone care? ----------------------------------------------------------*/ int translate_stop_bits( JNIEnv *env, int *cflag, jint stopBits ) { switch( stopBits ) { case STOPBITS_1: (*cflag) &= ~CSTOPB; return 1; case STOPBITS_2: (*cflag) |= CSTOPB; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_stop_bits", "stop bits" ); return 0; } /*---------------------------------------------------------- translate_parity accept: gnu.io.RS485Port.PARITY_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: The CMSPAR bit should be used for 'mark' and 'space' parity, but it's not in glibc's includes. Oh well, rarely used anyway. ----------------------------------------------------------*/ int translate_parity( JNIEnv *env, int *cflag, jint parity ) { (*cflag) &= ~(PARENB | PARODD); switch( parity ) { case PARITY_NONE: return 1; #ifdef CMSPAR case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; case PARITY_MARK: (*cflag) |= PARENB | PARODD | CMSPAR; return 1; case PARITY_SPACE: (*cflag) |= PARENB | CMSPAR; return 1; #else case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_parity", "parity" ); return 0; } /*---------------------------------------------------------- RS485Port.writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_writeByte( JNIEnv *env, jobject jobj, jint ji ) { unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); int result=0,count=0; /* turn on the DTR */ ioctl(fd, TIOCMGET, &result); result |= TIOCM_DTR; ioctl(fd, TIOCMSET, &result); /* send the data */ do { result=write (fd, &byte, sizeof(unsigned char)); } while (result < 0 && errno==EINTR); if(result < 0) goto fail; /* wait for the last bit to go * see get_lsr_info in linux/driver/char/serial.c * */ #if defined(TIOCSERGETLSR) /* dima ????????? I did it in exactly the same way as in SerialImp.c */ do { result=ioctl(fd, TIOCSERGETLSR); /* FIXME this should work but its a hack */ if (result != TIOCSER_TEMT) { usleep(100); } } while(result != TIOCSER_TEMT); #endif /* TIOCSERGETLSR */ /* shut down the DTR */ ioctl(fd, TIOCMGET, &result); result &= ~TIOCM_DTR; ioctl(fd, TIOCMSET, &result); /* flush input (we dont want to get our own message */ do { result=tcflush(fd, TCIFLUSH); } while (result && errno==EINTR && count <5); if(result) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "writeByte", strerror( errno ) ); } /*---------------------------------------------------------- RS485Port.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_writeArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count ) { int fd = get_java_var( env, jobj,"fd","I" ); int result=0,total=0,i; unsigned char *bytes = (unsigned char *)malloc( count ); jbyte *body = (*env)->GetByteArrayElements( env, jbarray, 0 ); for( i = 0; i < count; i++ ) bytes[ i ] = body[ i + offset ]; (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); /* turn on the DTR */ ioctl(fd, TIOCMGET, &result); result |= TIOCM_DTR; ioctl(fd, TIOCMSET, &result); /* send the data */ do { result=write (fd, bytes + total, count - total); if(result >0){ total += result; } } while ((total 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_NativeisReceiveTimeoutEnabled( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; return(ttyset.c_cc[ VTIME ] > 0 ? JNI_TRUE:JNI_FALSE); fail: throw_java_exception( env, IO_EXCEPTION, "isReceiveTimeoutEnabled", strerror( errno ) ); return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isDSR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DSR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isCD( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CD ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isCTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isRI( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RI ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isRTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setRTS( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- RS485Port.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setDSR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- RS485Port.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RS485Port_isDTR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DTR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RS485Port.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setDTR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; fd_set rfds; struct timeval sleep; struct timeval *psleep=&sleep; left = length; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); if( timeout != 0 ) { sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); } while( bytes < length ) { /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ do { if( timeout == 0 ) psleep = NULL; ret=select( fd + 1, &rfds, NULL, NULL, psleep ); } while (ret < 0 && errno==EINTR); if( ret == 0 ) break; if( ret < 0 ) return -1; ret = read( fd, buffer + bytes, left ); if( ret == 0 ) break; if( ret < 0 ) return -1; bytes += ret; left -= ret; } return bytes; } /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_NativeEnableReceiveTimeoutThreshold(JNIEnv *env, jobject jobj, jint vtime, jint threshold, jint buffer) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[ VMIN ] = threshold; ttyset.c_cc[ VTIME ] = vtime/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "TimeoutThreshold", strerror( errno ) ); return; } /*---------------------------------------------------------- RS485Port.readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_readByte( JNIEnv *env, jobject jobj ) { int bytes; unsigned char buffer[ 1 ]; int fd = get_java_var( env, jobj,"fd","I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); bytes = read_byte_array( fd, buffer, 1, timeout ); if( bytes < 0 ) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- RS485Port.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_readArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { int bytes; jbyte *body; unsigned char *buffer; int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); if( (size_t) length > SSIZE_MAX || (size_t) length < 0 ) { throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } buffer = (unsigned char *)malloc( sizeof( unsigned char ) * length ); if( buffer == 0 ) { throw_java_exception( env, OUT_OF_MEMORY, "readArray", "Unable to allocate buffer" ); return -1; } bytes = read_byte_array( fd, buffer, length, timeout ); if( bytes < 0 ) { free( buffer ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); memcpy(body + offset, buffer, bytes); (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); free( buffer ); return (bytes ? bytes : -1); } /*---------------------------------------------------------- RS485Port.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_nativeavailable( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); int result; if( ioctl( fd, FIONREAD, &result ) ) { throw_java_exception( env, IO_EXCEPTION, "nativeavailable", strerror( errno ) ); return -1; } else return (jint)result; } /*---------------------------------------------------------- RS485Port.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: IOException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setflowcontrol( JNIEnv *env, jobject jobj, jint flowmode ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) ttyset.c_iflag |= IXOFF; else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) ttyset.c_iflag |= IXON; else ttyset.c_iflag &= ~IXON; if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } /*---------------------------------------------------------- RS485Port.eventLoop accept: none perform: periodically check for RS485PortEvents return: none exceptions: none comments: FIXME This is probably wrong on bsd. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RS485Port_eventLoop( JNIEnv *env, jobject jobj ) { int fd, ret, change; fd_set rfds; struct timeval tv_sleep; unsigned int mflags; #if defined(TIOCGICOUNT) struct serial_icounter_struct sis, osis; #endif /* TIOCGICOUNT */ unsigned int omflags; jmethodID method, interrupt; jboolean interrupted = 0; jclass jclazz, jthread; jclazz = (*env)->GetObjectClass( env, jobj ); fd = get_java_var(env, jobj, "fd", "I"); method = (*env)->GetMethodID( env, jclazz, "sendEvent", "(IZ)V" ); jthread = (*env)->FindClass( env, "java/lang/Thread" ); interrupt = (*env)->GetStaticMethodID( env, jthread, "interrupted", "()Z" ); /* Some multiport RS485 cards do not implement TIOCGICOUNT ... */ #if defined(TIOCGICOUNT) if( ioctl( fd, TIOCGICOUNT, &osis ) < 0 ) { fprintf( stderr, "Port does not support TIOCGICOUNT events\n" ); return; } #else fprintf( stderr, "Port does not support all Hardware events\n" ); #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &omflags) <0 ) { fprintf( stderr, "Port does not support events\n" ); return; } FD_ZERO( &rfds ); while( !interrupted ) { FD_SET( fd, &rfds ); /* Check every 1 second, or on receive data */ tv_sleep.tv_sec = 1; tv_sleep.tv_usec = 0; do { ret=select( fd + 1, &rfds, NULL, NULL, &tv_sleep ); } while (ret < 0 && errno==EINTR); if( ret < 0 ) { fprintf( stderr, "select() Failed\n" ); break; } #if defined TIOCSERGETLSR if( ioctl( fd, TIOCSERGETLSR, &change ) ) { fprintf( stderr, "TIOCSERGETLSR Failed\n" ); break; } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OUTPUT_BUFFER_EMPTY, JNI_TRUE ); } #endif /* TIOCSERGETLSR */ #if defined(TIOCGICOUNT) /* wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); */ if( ioctl( fd, TIOCGICOUNT, &sis ) ) { fprintf( stderr, "TIOCGICOUNT Failed\n" ); break; } while( sis.frame != osis.frame ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_FE, JNI_TRUE ); osis.frame++; } while( sis.overrun != osis.overrun ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OE, JNI_TRUE ); osis.overrun++; } while( sis.parity != osis.parity ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_PE, JNI_TRUE ); osis.parity++; } while( sis.brk != osis.brk ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_BI, JNI_TRUE ); osis.brk++; } osis = sis; #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &mflags ) ) { fprintf( stderr, "TIOCMGET Failed\n" ); break; } interrupted = (*env)->CallStaticBooleanMethod( env, jthread, interrupt ); /* A Portable implementation */ change = (mflags&TIOCM_CTS) - (omflags&TIOCM_CTS); if( change ) { fprintf(stderr, "Sending SPE_CTS\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CTS, JNI_TRUE ); } change = (mflags&TIOCM_DSR) - (omflags&TIOCM_DSR); if( change ) { fprintf(stderr, "Sending SPE_DSR\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DSR, JNI_TRUE ); } change = (mflags&TIOCM_RNG) - (omflags&TIOCM_RNG); if( change ) { fprintf(stderr, "Sending SPE_RI\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_RI, JNI_TRUE ); } change = (mflags&TIOCM_CD) - (omflags&TIOCM_CD); if( change ) { fprintf(stderr, "Sending SPE_CD\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CD, JNI_TRUE ); } omflags = mflags; if( ioctl( fd, FIONREAD, &change ) ) { fprintf( stderr, "FIONREAD Failed\n" ); } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DATA_AVAILABLE, JNI_TRUE ); usleep(1000); /* select wont block */ } } return; } /*---------------------------------------------------------- send_modem_events accept: int event RS485PortEvent constant int change Number of times this event happened int state current state: 0 is false, nonzero is true perform: Send the necessary events return: none exceptions: none comments: Since the interrupt counters tell us how many times the state has changed, we can send a RS485PortEvent for each interrupt (change) that has occured. If we don't do this, we'll miss a whole bunch of events. ----------------------------------------------------------*/ void send_modem_events( JNIEnv *env, jobject jobj, jmethodID method, int event, int change, int state ) { int i, s; jboolean flag; if( state ) s = 1; else s = 0; for( i = 0; i < change; i++ ) { if( ( change + s + i ) % 2 ) flag = JNI_FALSE; else flag = JNI_TRUE; (*env)->CallVoidMethod( env, jobj, method, (jint)event, flag ); } } /*---------------------------------------------------------- get_java_fd accept: env (keyhole to java) jobj (java RS485Port object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { int result = 0; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); if( !jfd ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return result; } result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); /* ct7 & gel * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, jclazz ); return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { char buf[ 60 ]; jclass clazz = (*env)->FindClass( env, exc ); if( !clazz ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ (*env)->ThrowNew( env, clazz, buf ); /* ct7 * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, clazz ); } JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_IsDeviceGood(JNIEnv *env, jobject jobj, jstring tty_name){ jboolean result; static struct stat mystat; char teststring[256]; int fd,i; const char *name = (*env)->GetStringUTFChars(env, tty_name, 0); #if defined(__linux__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s\*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__FreeBSD__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__NetBSD__) if( !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR")|| !strcmp(name,"ttyM") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif for(i=0;i<64;i++){ sprintf(teststring,"/dev/%s%i",name, i); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; break; } result=JNI_FALSE; } else result=JNI_FALSE; } sprintf(teststring,"/dev/%s",name); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; } } (*env)->ReleaseStringUTFChars(env, tty_name, name); return(result); } JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setInputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setInputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_getInputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getInputBufferSize is not implemented\n"); #endif return(1); } JNIEXPORT void JNICALL Java_gnu_io_RS485Port_setOutputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setOutputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_RS485Port_getOutputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getOutputBufferSize is not implemented\n"); #endif return(1); } void dump_termios(char *foo,struct termios *ttyset) { int i; fprintf(stderr,"%s %o\n",foo,ttyset->c_iflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_lflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_oflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_cflag); for(i=0;ic_cc[i]); } fprintf(stderr,"\n"); } ./rxtx-2.2pre2/src/RawImp.c0000644000175000017500000012334010720136612015401 0ustar twernertwerner /* coded open read* write* and close. * largly from helping Jim Garvin get a simple example working. * everything else needs work. TJ */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ #endif #if defined(__MWERKS__)/* dima */ #include "Raw.h" #else /* dima */ #include "config.h" #include "gnu_io_Raw.h" #endif /* dima */ #include #include #include #include #include #include #include #include #include #ifdef HAVE_TERMIOS_H # include #endif #ifdef HAVE_SYS_SIGNAL_H # include #endif #include #include #include #ifdef HAVE_SYS_FCNTL_H # include #endif #ifdef HAVE_SYS_FILE_H # include #endif #if defined(__linux__) # include /* fix for linux-2.3.4? kernels */ # include # include #endif #ifndef __APPLE__ /* dima */ #ifndef PPC #include #endif /* PPC */ #endif /* dima */ extern int errno; #include "I2CImp.h" /* #define DEBUG_TIMEOUT */ /*---------------------------------------------------------- RawPort.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RawPort_open( JNIEnv *env, jobject jobj, jint ciAddress ) { if(ioperm(ciAddress, 3, 1)) goto fail; return (0); fail: throw_java_exception( env, IO_EXCEPTION, "open", strerror( errno ) ); return -1; } /*---------------------------------------------------------- RawPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RawPort_nativeClose( JNIEnv *env, jobject jobj ) { int ciAddress = get_java_var( env, jobj,"ciAddress","I" ); if(ioperm(ciAddress, 3, 0)) goto fail; return(0); fail: throw_java_exception( env, IO_EXCEPTION, "close", "failed" ); return -1; } /*---------------------------------------------------------- RawPort.Java_Bus_read8 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_Bus_read8 (JNIEnv * env, jobject poObj, jint piPort) { return (jint) inb((unsigned) piPort); } /*---------------------------------------------------------- RawPort.Java_Bus_write8 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_Bus_write8 (JNIEnv * env, jobject poObj, jint piData, jint piPort) { outb((unsigned char) piData ,(unsigned) piPort); } /*---------------------------------------------------------- RawPort.Java_Bus_read16 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_Bus_read16 (JNIEnv * env, jobject poObj, jint piPort) { return (jint) inw((unsigned) piPort); } /*---------------------------------------------------------- RawPort.Java_Bus_write16 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_Bus_write16 (JNIEnv * env, jobject poObj, jint piPort, jint piData) { outb((unsigned short) piData ,(unsigned) piPort); } /*---------------------------------------------------------- RawPort.Java_Bus_read32 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_Bus_read32 (JNIEnv * env, jobject poObj, jint piPort) { return (jint) inl((unsigned) piPort); } /*---------------------------------------------------------- RawPort.Java_Bus_read32 accept: none perform: none return: none exceptions: none ----------------------------------------------------------*/ /* This Function is called from Java to write to a 32 bit bus */ JNIEXPORT void JNICALL Java_Bus_write32 (JNIEnv * env, jobject poObj, jint piPort, jint piData) { outl((unsigned) piData ,(unsigned) piPort); } /* these need implementation or stumping. Happy coding */ /*---------------------------------------------------------- RawPort.Initialize accept: none perform: Initialize the native library return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_Initialize( JNIEnv *env, jclass jclazz ) { #ifndef WIN32 struct utsname name; /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(__FreeBSD___) struct sigaction handler; sigaction( SIGIO, NULL, &handler ); if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); #endif /* !__FreeBSD__ */ #if defined(__linux__) /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { fprintf(stderr,"RXTX WARNING: cannot get system name\n"); return; } if(strcmp(name.release,UTS_RELEASE)!=0) { fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release); getchar(); } #endif /* __linux__ */ #endif /* WIN32 */ } /*---------------------------------------------------------- RawPort.nativeSetRawPortParams accept: speed, data bits, stop bits, parity perform: set the i2c port parameters return: void exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_nativeSetRawPortParams( JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); int cspeed = translate_speed( env, speed ); if( !cspeed ) return; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; if( !translate_data_bits( env, (int *)&(ttyset.c_cflag), dataBits ) ) return; /* dima c_flag darwin unsigned long */ if( !translate_stop_bits( env, (int *)&(ttyset.c_cflag), stopBits ) ) return; /* dima c_flag darwin unsigned long */ if( !translate_parity( env, (int *)&(ttyset.c_cflag), parity ) ) return;/* dima c_flag darwin unsigned long */ #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, cspeed ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, cspeed ) < 0 ) goto fail; if( cfsetospeed( &ttyset, cspeed ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; /* dump_termios("set",*ttyset); */ return; fail: throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetRawPortParams", strerror( errno ) ); } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: UnsupportedCommOperationException comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ int translate_speed( JNIEnv *env, jint speed ) { switch( speed ) { case 0: return B0; case 50: return B50; case 75: return B75; case 110: return B110; case 134: return B134; case 150: return B150; case 200: return B200; case 300: return B300; case 600: return B600; case 1200: return B1200; case 1800: return B1800; case 2400: return B2400; case 4800: return B4800; case 9600: return B9600; case 19200: return B19200; case 38400: return B38400; case 57600: return B57600; case 115200: return B115200; case 230400: return B230400; #ifdef B460800 case 460800: return B460800; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_speed", "speed" ); return 0; } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.RawPort.DATABITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( JNIEnv *env, int *cflag, jint dataBits ) { int temp = (*cflag) & ~CSIZE; switch( dataBits ) { case DATABITS_5: (*cflag) = temp | CS5; return 1; case DATABITS_6: (*cflag) = temp | CS6; return 1; case DATABITS_7: (*cflag) = temp | CS7; return 1; case DATABITS_8: (*cflag) = temp | CS8; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_data_bits", "data bits" ); return 0; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.RawPort.STOPBITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: If you specify 5 data bits and 2 stop bits, the port will allegedly use 1.5 stop bits. Does anyone care? ----------------------------------------------------------*/ int translate_stop_bits( JNIEnv *env, int *cflag, jint stopBits ) { switch( stopBits ) { case STOPBITS_1: (*cflag) &= ~CSTOPB; return 1; case STOPBITS_2: (*cflag) |= CSTOPB; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_stop_bits", "stop bits" ); return 0; } /*---------------------------------------------------------- translate_parity accept: gnu.io.RawPort.PARITY_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: The CMSPAR bit should be used for 'mark' and 'space' parity, but it's not in glibc's includes. Oh well, rarely used anyway. ----------------------------------------------------------*/ int translate_parity( JNIEnv *env, int *cflag, jint parity ) { (*cflag) &= ~(PARENB | PARODD); switch( parity ) { case PARITY_NONE: return 1; #ifdef CMSPAR case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; case PARITY_MARK: (*cflag) |= PARENB | PARODD | CMSPAR; return 1; case PARITY_SPACE: (*cflag) |= PARENB | CMSPAR; return 1; #else case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_parity", "parity" ); return 0; } /*---------------------------------------------------------- RawPort.writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_writeByte( JNIEnv *env, jobject jobj, jint ji ) { unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); int result; do { result=write (fd, &byte, sizeof(unsigned char)); } while (result < 0 && errno==EINTR); if(result >= 0) return; throw_java_exception( env, IO_EXCEPTION, "writeByte", strerror( errno ) ); } /*---------------------------------------------------------- RawPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_writeArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count ) { int fd = get_java_var( env, jobj,"fd","I" ); int result=0,total=0,i; unsigned char *bytes = (unsigned char *)malloc( count ); jbyte *body = (*env)->GetByteArrayElements( env, jbarray, 0 ); for( i = 0; i < count; i++ ) bytes[ i ] = body[ i + offset ]; (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); do { result=write (fd, bytes + total, count - total); if(result >0){ total += result; } } while ((total 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_NativeisReceiveTimeoutEnabled( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; return(ttyset.c_cc[ VTIME ] > 0 ? JNI_TRUE:JNI_FALSE); fail: throw_java_exception( env, IO_EXCEPTION, "isReceiveTimeoutEnabled", strerror( errno ) ); return JNI_FALSE; } /*---------------------------------------------------------- RawPort.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isDSR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DSR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isCD( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CD ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isCTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isRI( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RI ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isRTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_setRTS( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- RawPort.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_setDSR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- RawPort.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_RawPort_isDTR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DTR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RawPort.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_setDTR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; fd_set rfds; struct timeval sleep; struct timeval *psleep=&sleep; left = length; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); if( timeout != 0 ) { sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); } while( bytes < length ) { /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ do { if( timeout == 0 ) psleep = NULL; ret=select( fd + 1, &rfds, NULL, NULL, psleep ); } while (ret < 0 && errno==EINTR); if( ret == 0 ) break; if( ret < 0 ) return -1; ret = read( fd, buffer + bytes, left ); if( ret == 0 ) break; if( ret < 0 ) return -1; bytes += ret; left -= ret; } return bytes; } /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_NativeEnableReceiveTimeoutThreshold(JNIEnv *env, jobject jobj, jint vtime, jint threshold, jint buffer) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[ VMIN ] = threshold; ttyset.c_cc[ VTIME ] = vtime/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "TimeoutThreshold", strerror( errno ) ); return; } /*---------------------------------------------------------- RawPort.readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RawPort_readByte( JNIEnv *env, jobject jobj ) { int bytes; unsigned char buffer[ 1 ]; int fd = get_java_var( env, jobj,"fd","I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); bytes = read_byte_array( fd, buffer, 1, timeout ); if( bytes < 0 ) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- RawPort.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RawPort_readArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { int bytes; jbyte *body; unsigned char *buffer; int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); if( (size_t) length > SSIZE_MAX || (size_t) length < 0 ) { throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } buffer = (unsigned char *)malloc( sizeof( unsigned char ) * length ); if( buffer == 0 ) { throw_java_exception( env, OUT_OF_MEMORY, "readArray", "Unable to allocate buffer" ); return -1; } bytes = read_byte_array( fd, buffer, length, timeout ); if( bytes < 0 ) { free( buffer ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); memcpy(body + offset, buffer, bytes); (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); free( buffer ); return (bytes ? bytes : -1); } /*---------------------------------------------------------- RawPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_RawPort_nativeavailable( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); int result; if( ioctl( fd, FIONREAD, &result ) ) { throw_java_exception( env, IO_EXCEPTION, "nativeavailable", strerror( errno ) ); return -1; } else return (jint)result; } /*---------------------------------------------------------- RawPort.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: IOException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_setflowcontrol( JNIEnv *env, jobject jobj, jint flowmode ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) ttyset.c_iflag |= IXOFF; else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) ttyset.c_iflag |= IXON; else ttyset.c_iflag &= ~IXON; if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } /*---------------------------------------------------------- RawPort.eventLoop accept: none perform: periodically check for RawPortEvents return: none exceptions: none comments: FIXME This is probably wrong on bsd. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_RawPort_eventLoop( JNIEnv *env, jobject jobj ) { int fd, ret, change; fd_set rfds; struct timeval tv_sleep; unsigned int mflags; #if defined(TIOCGICOUNT) struct serial_icounter_struct sis, osis; #endif /* TIOCGICOUNT */ unsigned int omflags; jmethodID method, interrupt; jboolean interrupted = 0; jclass jclazz, jthread; jclazz = (*env)->GetObjectClass( env, jobj ); fd = get_java_var(env, jobj, "fd", "I"); method = (*env)->GetMethodID( env, jclazz, "sendEvent", "(IZ)V" ); jthread = (*env)->FindClass( env, "java/lang/Thread" ); interrupt = (*env)->GetStaticMethodID( env, jthread, "interrupted", "()Z" ); /* Some multiport i2c cards do not implement TIOCGICOUNT ... */ #if defined(TIOCGICOUNT) if( ioctl( fd, TIOCGICOUNT, &osis ) < 0 ) { fprintf( stderr, "Port does not support TIOCGICOUNT events\n" ); return; } #else fprintf( stderr, "Port does not support all Hardware events\n" ); #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &omflags) <0 ) { fprintf( stderr, "Port does not support events\n" ); return; } FD_ZERO( &rfds ); while( !interrupted ) { FD_SET( fd, &rfds ); /* Check every 1 second, or on receive data */ tv_sleep.tv_sec = 1; tv_sleep.tv_usec = 0; do { ret=select( fd + 1, &rfds, NULL, NULL, &tv_sleep ); } while (ret < 0 && errno==EINTR); if( ret < 0 ) { fprintf( stderr, "select() Failed\n" ); break; } #if defined TIOCSERGETLSR if( ioctl( fd, TIOCSERGETLSR, &change ) ) { fprintf( stderr, "TIOCSERGETLSR Failed\n" ); break; } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OUTPUT_BUFFER_EMPTY, JNI_TRUE ); } #endif /* TIOCSERGETLSR */ #if defined(TIOCGICOUNT) /* wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); */ if( ioctl( fd, TIOCGICOUNT, &sis ) ) { fprintf( stderr, "TIOCGICOUNT Failed\n" ); break; } while( sis.frame != osis.frame ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_FE, JNI_TRUE ); osis.frame++; } while( sis.overrun != osis.overrun ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OE, JNI_TRUE ); osis.overrun++; } while( sis.parity != osis.parity ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_PE, JNI_TRUE ); osis.parity++; } while( sis.brk != osis.brk ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_BI, JNI_TRUE ); osis.brk++; } osis = sis; #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &mflags ) ) { fprintf( stderr, "TIOCMGET Failed\n" ); break; } interrupted = (*env)->CallStaticBooleanMethod( env, jthread, interrupt ); /* A Portable implementation */ change = (mflags&TIOCM_CTS) - (omflags&TIOCM_CTS); if( change ) { fprintf(stderr, "Sending SPE_CTS\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CTS, JNI_TRUE ); } change = (mflags&TIOCM_DSR) - (omflags&TIOCM_DSR); if( change ) { fprintf(stderr, "Sending SPE_DSR\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DSR, JNI_TRUE ); } change = (mflags&TIOCM_RNG) - (omflags&TIOCM_RNG); if( change ) { fprintf(stderr, "Sending SPE_RI\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_RI, JNI_TRUE ); } change = (mflags&TIOCM_CD) - (omflags&TIOCM_CD); if( change ) { fprintf(stderr, "Sending SPE_CD\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CD, JNI_TRUE ); } omflags = mflags; if( ioctl( fd, FIONREAD, &change ) ) { fprintf( stderr, "FIONREAD Failed\n" ); } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DATA_AVAILABLE, JNI_TRUE ); usleep(1000); /* select wont block */ } } return; } /*---------------------------------------------------------- send_modem_events accept: int event RawPortEvent constant int change Number of times this event happened int state current state: 0 is false, nonzero is true perform: Send the necessary events return: none exceptions: none comments: Since the interrupt counters tell us how many times the state has changed, we can send a RawPortEvent for each interrupt (change) that has occured. If we don't do this, we'll miss a whole bunch of events. ----------------------------------------------------------*/ void send_modem_events( JNIEnv *env, jobject jobj, jmethodID method, int event, int change, int state ) { int i, s; jboolean flag; if( state ) s = 1; else s = 0; for( i = 0; i < change; i++ ) { if( ( change + s + i ) % 2 ) flag = JNI_FALSE; else flag = JNI_TRUE; (*env)->CallVoidMethod( env, jobj, method, (jint)event, flag ); } } /*---------------------------------------------------------- get_java_fd accept: env (keyhole to java) jobj (java RawPort object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { int result = 0; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); if( !jfd ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return result; } result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); /* ct7 & gel * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, jclazz ); return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { char buf[ 60 ]; jclass clazz = (*env)->FindClass( env, exc ); if( !clazz ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ (*env)->ThrowNew( env, clazz, buf ); /* ct7 * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, clazz ); } JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_IsDeviceGood(JNIEnv *env, jobject jobj, jstring tty_name){ jboolean result; static struct stat mystat; char teststring[256]; int fd,i; const char *name = (*env)->GetStringUTFChars(env, tty_name, 0); #if defined(__linux__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s\*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__FreeBSD__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__NetBSD__) if( !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR")|| !strcmp(name,"ttyM") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif for(i=0;i<64;i++){ sprintf(teststring,"/dev/%s%i",name, i); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; break; } result=JNI_FALSE; } else result=JNI_FALSE; } sprintf(teststring,"/dev/%s",name); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; } } (*env)->ReleaseStringUTFChars(env, tty_name, name); return(result); } JNIEXPORT void JNICALL Java_gnu_io_RawPort_setInputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setInputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_RawPort_getInputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getInputBufferSize is not implemented\n"); #endif return(1); } JNIEXPORT void JNICALL Java_gnu_io_RawPort_setOutputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setOutputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_RawPort_getOutputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getOutputBufferSize is not implemented\n"); #endif return(1); } void dump_termios(char *foo,struct termios *ttyset) { int i; fprintf(stderr,"%s %o\n",foo,ttyset->c_iflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_lflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_oflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_cflag); for(i=0;ic_cc[i]); } fprintf(stderr,"\n"); } ./rxtx-2.2pre2/src/I2CImp.c0000644000175000017500000011767310614033755015247 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #if defined(__MWERKS__) /* dima */ #include "I2C.h" /* dima */ #else /* dima */ #include "config.h" #include "gnu_io_I2C.h" #endif /* dima */ #include #include #include #include #include #include #ifndef WIN32 #include #include #include #ifdef HAVE_TERMIOS_H # include #endif #ifdef HAVE_SYS_SIGNAL_H # include #endif #else # include #endif #include #include #include #ifdef HAVE_SYS_FCNTL_H # include #endif #ifdef HAVE_SYS_FILE_H # include #endif #if defined(__linux__) # include /* fix for linux-2.3.4? kernels */ # include # include #endif extern int errno; #include "I2CImp.h" /* #define DEBUG_TIMEOUT */ /*---------------------------------------------------------- I2CPort.Initialize accept: none perform: Initialize the native library return: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_Initialize( JNIEnv *env, jclass jclazz ) { #ifndef WIN32 struct utsname name; /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(__FreeBSD___) struct sigaction handler; sigaction( SIGIO, NULL, &handler ); if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); #endif /* !__FreeBSD__ */ #if defined(__linux__) /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { fprintf(stderr,"RXTX WARNING: cannot get system name\n"); return; } if(strcmp(name.release,UTS_RELEASE)!=0) { fprintf(stderr, "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release); getchar(); } #endif /* __linux__ */ #endif /* WIN32 */ } /*---------------------------------------------------------- I2CPort.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_open( JNIEnv *env, jobject jobj, jstring jstr ) { struct termios ttyset; int fd; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); do { fd=open (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); (*env)->ReleaseStringUTFChars( env, jstr, NULL ); if( fd < 0 ) goto fail; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_iflag = INPCK; ttyset.c_lflag = 0; ttyset.c_oflag = 0; ttyset.c_cflag = CREAD | CS8 | CLOCAL; ttyset.c_cc[ VMIN ] = 0; ttyset.c_cc[ VTIME ] = 0; #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, B9600 ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, B9600 ) < 0 ) goto fail; if( cfsetospeed( &ttyset, B9600 ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; #ifndef WIN32 fcntl( fd, F_SETOWN, getpid() ); fcntl( fd, F_SETFL, FASYNC ); #endif /* WIN32 */ return (jint)fd; fail: throw_java_exception( env, IO_EXCEPTION, "open", strerror( errno ) ); return -1; } /*---------------------------------------------------------- I2CPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_nativeClose( JNIEnv *env, jobject jobj ) { int result; int fd = get_java_var( env, jobj,"fd","I" ); do { result=close (fd); } while (result < 0 && errno==EINTR); return; } /*---------------------------------------------------------- I2CPort.nativeSetI2CPortParams accept: speed, data bits, stop bits, parity perform: set the i2c port parameters return: void exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_nativeSetI2CPortParams( JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); int cspeed = translate_speed( env, speed ); if( !cspeed ) return; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; if( !translate_data_bits( env, (int *)&(ttyset.c_cflag), dataBits ) ) return; /* dima darwin defime c_cflag as unsigned long */ if( !translate_stop_bits( env, (int *)&(ttyset.c_cflag), stopBits ) ) return; /* dima darwin defime c_cflag as unsigned long */ if( !translate_parity( env, (int *)&(ttyset.c_cflag), parity ) ) return;/* dima darwin defime c_cflag as unsigned long */ #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, cspeed ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, cspeed ) < 0 ) goto fail; if( cfsetospeed( &ttyset, cspeed ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; /* dump_termios("set",*ttyset); */ return; fail: throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetI2CPortParams", strerror( errno ) ); } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: UnsupportedCommOperationException comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ int translate_speed( JNIEnv *env, jint speed ) { switch( speed ) { case 0: return B0; case 50: return B50; case 75: return B75; case 110: return B110; case 134: return B134; case 150: return B150; case 200: return B200; case 300: return B300; case 600: return B600; case 1200: return B1200; case 1800: return B1800; case 2400: return B2400; case 4800: return B4800; case 9600: return B9600; case 19200: return B19200; case 38400: return B38400; case 57600: return B57600; case 115200: return B115200; case 230400: return B230400; #ifdef B460800 case 460800: return B460800; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_speed", "speed" ); return 0; } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.I2CPort.DATABITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( JNIEnv *env, int *cflag, jint dataBits ) { int temp = (*cflag) & ~CSIZE; switch( dataBits ) { case DATABITS_5: (*cflag) = temp | CS5; return 1; case DATABITS_6: (*cflag) = temp | CS6; return 1; case DATABITS_7: (*cflag) = temp | CS7; return 1; case DATABITS_8: (*cflag) = temp | CS8; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_data_bits", "data bits" ); return 0; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.I2CPort.STOPBITS_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: If you specify 5 data bits and 2 stop bits, the port will allegedly use 1.5 stop bits. Does anyone care? ----------------------------------------------------------*/ int translate_stop_bits( JNIEnv *env, int *cflag, jint stopBits ) { switch( stopBits ) { case STOPBITS_1: (*cflag) &= ~CSTOPB; return 1; case STOPBITS_2: (*cflag) |= CSTOPB; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_stop_bits", "stop bits" ); return 0; } /*---------------------------------------------------------- translate_parity accept: gnu.io.I2CPort.PARITY_* constant perform: set proper termios c_cflag bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: The CMSPAR bit should be used for 'mark' and 'space' parity, but it's not in glibc's includes. Oh well, rarely used anyway. ----------------------------------------------------------*/ int translate_parity( JNIEnv *env, int *cflag, jint parity ) { (*cflag) &= ~(PARENB | PARODD); switch( parity ) { case PARITY_NONE: return 1; #ifdef CMSPAR case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; case PARITY_MARK: (*cflag) |= PARENB | PARODD | CMSPAR; return 1; case PARITY_SPACE: (*cflag) |= PARENB | CMSPAR; return 1; #else case PARITY_EVEN: (*cflag) |= PARENB; return 1; case PARITY_ODD: (*cflag) |= PARENB | PARODD; return 1; #endif } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_parity", "parity" ); return 0; } /*---------------------------------------------------------- I2CPort.writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_writeByte( JNIEnv *env, jobject jobj, jint ji ) { unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); int result; do { result=write (fd, &byte, sizeof(unsigned char)); } while (result < 0 && errno==EINTR); if(result >= 0) return; throw_java_exception( env, IO_EXCEPTION, "writeByte", strerror( errno ) ); } /*---------------------------------------------------------- I2CPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_writeArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count ) { int fd = get_java_var( env, jobj,"fd","I" ); int result=0,total=0,i; unsigned char *bytes = (unsigned char *)malloc( count ); jbyte *body = (*env)->GetByteArrayElements( env, jbarray, 0 ); for( i = 0; i < count; i++ ) bytes[ i ] = body[ i + offset ]; (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); do { result=write (fd, bytes + total + offset, count - total); /* dima */ if(result >0){ total += result; } } while ((total 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_NativeisReceiveTimeoutEnabled( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; return(ttyset.c_cc[ VTIME ] > 0 ? JNI_TRUE:JNI_FALSE); fail: throw_java_exception( env, IO_EXCEPTION, "isReceiveTimeoutEnabled", strerror( errno ) ); return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isDSR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DSR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isCD( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CD ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isCTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_CTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isRI( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RI ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isRTS( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_RTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setRTS( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- I2CPort.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setDSR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- I2CPort.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL Java_gnu_io_I2CPort_isDTR( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( result & TIOCM_DTR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- I2CPort.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setDTR( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); return; } /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; fd_set rfds; struct timeval sleep; struct timeval *psleep=&sleep; left = length; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); if( timeout != 0 ) { sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); } while( bytes < length ) { /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ do { if( timeout == 0 ) psleep = NULL; ret=select( fd + 1, &rfds, NULL, NULL, psleep ); } while (ret < 0 && errno==EINTR); if( ret == 0 ) break; if( ret < 0 ) return -1; ret = read( fd, buffer + bytes, left ); if( ret == 0 ) break; if( ret < 0 ) return -1; bytes += ret; left -= ret; } return bytes; } /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_NativeEnableReceiveTimeoutThreshold(JNIEnv *env, jobject jobj, jint vtime, jint threshold, jint buffer) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[ VMIN ] = threshold; ttyset.c_cc[ VTIME ] = vtime/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "TimeoutThreshold", strerror( errno ) ); return; } /*---------------------------------------------------------- I2CPort.readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_readByte( JNIEnv *env, jobject jobj ) { int bytes; unsigned char buffer[ 1 ]; int fd = get_java_var( env, jobj,"fd","I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); bytes = read_byte_array( fd, buffer, 1, timeout ); if( bytes < 0 ) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- I2CPort.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_readArray( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { int bytes; jbyte *body; unsigned char *buffer; int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); if( (size_t) length > SSIZE_MAX || length < 0 ) { throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } buffer = (unsigned char *)malloc( sizeof( unsigned char ) * length ); if( buffer == 0 ) { throw_java_exception( env, OUT_OF_MEMORY, "readArray", "Unable to allocate buffer" ); return -1; } bytes = read_byte_array( fd, buffer, length, timeout ); if( bytes < 0 ) { free( buffer ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); memcpy(body + offset, buffer, bytes); (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); free( buffer ); return (bytes ? bytes : -1); } /*---------------------------------------------------------- I2CPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_nativeavailable( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); int result; if( ioctl( fd, FIONREAD, &result ) ) { throw_java_exception( env, IO_EXCEPTION, "nativeavailable", strerror( errno ) ); return -1; } else return (jint)result; } /*---------------------------------------------------------- I2CPort.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: IOException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setflowcontrol( JNIEnv *env, jobject jobj, jint flowmode ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) ttyset.c_iflag |= IXOFF; else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) ttyset.c_iflag |= IXON; else ttyset.c_iflag &= ~IXON; if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } /*---------------------------------------------------------- I2CPort.eventLoop accept: none perform: periodically check for I2CPortEvents return: none exceptions: none comments: FIXME This is probably wrong on bsd. ----------------------------------------------------------*/ JNIEXPORT void JNICALL Java_gnu_io_I2CPort_eventLoop( JNIEnv *env, jobject jobj ) { int fd, ret, change; fd_set rfds; struct timeval tv_sleep; unsigned int mflags; #if defined(TIOCGICOUNT) struct serial_icounter_struct sis, osis; #endif /* TIOCGICOUNT */ unsigned int omflags; jmethodID method, interrupt; jboolean interrupted = 0; jclass jclazz, jthread; jclazz = (*env)->GetObjectClass( env, jobj ); fd = get_java_var(env, jobj, "fd", "I"); method = (*env)->GetMethodID( env, jclazz, "sendEvent", "(IZ)V" ); jthread = (*env)->FindClass( env, "java/lang/Thread" ); interrupt = (*env)->GetStaticMethodID( env, jthread, "interrupted", "()Z" ); /* Some multiport i2c cards do not implement TIOCGICOUNT ... */ #if defined(TIOCGICOUNT) if( ioctl( fd, TIOCGICOUNT, &osis ) < 0 ) { fprintf( stderr, "Port does not support TIOCGICOUNT events\n" ); return; } #else fprintf( stderr, "Port does not support all Hardware events\n" ); #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &omflags) <0 ) { fprintf( stderr, "Port does not support events\n" ); return; } FD_ZERO( &rfds ); while( !interrupted ) { FD_SET( fd, &rfds ); /* Check every 1 second, or on receive data */ tv_sleep.tv_sec = 1; tv_sleep.tv_usec = 0; do { ret=select( fd + 1, &rfds, NULL, NULL, &tv_sleep ); } while (ret < 0 && errno==EINTR); if( ret < 0 ) { fprintf( stderr, "select() Failed\n" ); break; } #if defined TIOCSERGETLSR if( ioctl( fd, TIOCSERGETLSR, &change ) ) { fprintf( stderr, "TIOCSERGETLSR Failed\n" ); break; } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OUTPUT_BUFFER_EMPTY, JNI_TRUE ); } #endif /* TIOCSERGETLSR */ #if defined(TIOCGICOUNT) /* wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); */ if( ioctl( fd, TIOCGICOUNT, &sis ) ) { fprintf( stderr, "TIOCGICOUNT Failed\n" ); break; } while( sis.frame != osis.frame ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_FE, JNI_TRUE ); osis.frame++; } while( sis.overrun != osis.overrun ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_OE, JNI_TRUE ); osis.overrun++; } while( sis.parity != osis.parity ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_PE, JNI_TRUE ); osis.parity++; } while( sis.brk != osis.brk ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_BI, JNI_TRUE ); osis.brk++; } osis = sis; #endif /* TIOCGICOUNT */ if( ioctl( fd, TIOCMGET, &mflags ) ) { fprintf( stderr, "TIOCMGET Failed\n" ); break; } interrupted = (*env)->CallStaticBooleanMethod( env, jthread, interrupt ); /* A Portable implementation */ change = (mflags&TIOCM_CTS) - (omflags&TIOCM_CTS); if( change ) { fprintf(stderr, "Sending SPE_CTS\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CTS, JNI_TRUE ); } change = (mflags&TIOCM_DSR) - (omflags&TIOCM_DSR); if( change ) { fprintf(stderr, "Sending SPE_DSR\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DSR, JNI_TRUE ); } change = (mflags&TIOCM_RNG) - (omflags&TIOCM_RNG); if( change ) { fprintf(stderr, "Sending SPE_RI\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_RI, JNI_TRUE ); } change = (mflags&TIOCM_CD) - (omflags&TIOCM_CD); if( change ) { fprintf(stderr, "Sending SPE_CD\n"); (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_CD, JNI_TRUE ); } omflags = mflags; if( ioctl( fd, FIONREAD, &change ) ) { fprintf( stderr, "FIONREAD Failed\n" ); } else if( change ) { (*env)->CallVoidMethod( env, jobj, method, (jint)SPE_DATA_AVAILABLE, JNI_TRUE ); usleep(1000); /* select wont block */ } } return; } /*---------------------------------------------------------- send_modem_events accept: int event I2CPortEvent constant int change Number of times this event happened int state current state: 0 is false, nonzero is true perform: Send the necessary events return: none exceptions: none comments: Since the interrupt counters tell us how many times the state has changed, we can send a I2CPortEvent for each interrupt (change) that has occured. If we don't do this, we'll miss a whole bunch of events. ----------------------------------------------------------*/ void send_modem_events( JNIEnv *env, jobject jobj, jmethodID method, int event, int change, int state ) { int i, s; jboolean flag; if( state ) s = 1; else s = 0; for( i = 0; i < change; i++ ) { if( ( change + s + i ) % 2 ) flag = JNI_FALSE; else flag = JNI_TRUE; (*env)->CallVoidMethod( env, jobj, method, (jint)event, flag ); } } /*---------------------------------------------------------- get_java_fd accept: env (keyhole to java) jobj (java I2CPort object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { int result = 0; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); if( !jfd ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return result; } result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); /* ct7 & gel * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, jclazz ); return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { char buf[ 60 ]; jclass clazz = (*env)->FindClass( env, exc ); if( !clazz ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ (*env)->ThrowNew( env, clazz, buf ); /* ct7 * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, clazz ); } JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXCommDriver_IsDeviceGood(JNIEnv *env, jobject jobj, jstring tty_name){ jboolean result; static struct stat mystat; char teststring[256]; int fd,i; const char *name = (*env)->GetStringUTFChars(env, tty_name, 0); #if defined(__linux__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s\*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__FreeBSD__) if(!strcmp(name,"tty0")|| !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif #if defined(__NetBSD__) if( !strcmp(name,"ttyd")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"ttyS")|| !strcmp(name,"ttyI")|| !strcmp(name,"ttyW")|| !strcmp(name,"ttyq")|| !strcmp(name,"ttym")|| !strcmp(name,"ttyf")|| !strcmp(name,"cuaa")|| !strcmp(name,"ttyC")|| !strcmp(name,"ttyR")|| !strcmp(name,"ttyM") ) { #ifdef DEBUG fprintf(stderr,"DEBUG: Ignoring Port %s*\n",name); #endif return(JNI_FALSE); } #endif for(i=0;i<64;i++){ sprintf(teststring,"/dev/%s%i",name, i); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; break; } result=JNI_FALSE; } else result=JNI_FALSE; } sprintf(teststring,"/dev/%s",name); stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; } } (*env)->ReleaseStringUTFChars(env, tty_name, name); return(result); } JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setInputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setInputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_getInputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getInputBufferSize is not implemented\n"); #endif return(1); } JNIEXPORT void JNICALL Java_gnu_io_I2CPort_setOutputBufferSize(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG fprintf(stderr,"setOutputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL Java_gnu_io_I2CPort_getOutputBufferSize(JNIEnv *env, jobject jobj) { #ifdef DEBUG fprintf(stderr,"getOutputBufferSize is not implemented\n"); #endif return(1); } void dump_termios(char *foo,struct termios *ttyset) { int i; fprintf(stderr,"%s %o\n",foo,ttyset->c_iflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_lflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_oflag); fprintf(stderr,"%s %o\n",foo,ttyset->c_cflag); for(i=0;ic_cc[i]); } fprintf(stderr,"\n"); } ./rxtx-2.2pre2/src/portmode.c0000644000175000017500000001216210614033756016041 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* OK. Finally found the missing bits to get rxtx lp support up to speed. http://people.redhat.com/twaugh/parport/html/parportguide.html Patches available for linux 2.2 and 2.4. This is just a quick test to see if the stuff is working. */ #include #include #include #include #include #include #include #include int main(int argc, char **args) { int compat=IEEE1284_MODE_COMPAT; int nibble=IEEE1284_MODE_NIBBLE; int byte=IEEE1284_MODE_BYTE; int epp=IEEE1284_MODE_EPP; int ecp=IEEE1284_MODE_ECP; int fd=open("/dev/lp0",O_NONBLOCK); if(!ioctl(fd,PPCLAIM)) printf("PPCLAIM Failed\n"); else printf("PPCLAIM works!\n"); if(!ioctl(fd,PPNEGOT,&compat)) printf("PPNEGOT compat Failed\n"); else printf("PPNEGOT compat works!\n"); if(!ioctl(fd,PPNEGOT,nibble)) printf("PPNEGOT nibble Failed\n"); else printf("PPNEGOT nibble works!\n"); if(!ioctl(fd,PPNEGOT,byte)) printf("PPNEGOT byte Failed\n"); else printf("PPNEGOT byte works!\n"); if(!ioctl(fd,PPNEGOT,epp)) printf("PPNEGOT epp Failed\n"); else printf("PPNEGOT epp works!\n"); if(!ioctl(fd,PPNEGOT,ecp)) printf("PPNEGO ecpT Failed\n"); else printf("PPNEGOT ecp works!\n"); if(!ioctl(fd, PPSETMODE,&compat)) printf("PPSETMODE compat Failed\n"); else printf("PPSETMODE compat works!\n"); if(!ioctl(fd, PPSETMODE,&nibble)) printf("PPSETMODE nibble Failed\n"); else printf("PPSETMODE nibble works!\n"); if(!ioctl(fd, PPSETMODE,&byte)) printf("PPSETMODE byte Failed\n"); else printf("PPSETMODE byte works!\n"); if(!ioctl(fd, PPSETMODE,&epp)) printf("PPSETMODE epp Failed\n"); else printf("PPSETMODE epp works!\n"); if(!ioctl(fd, PPSETMODE,&ecp)) printf("PPSETMODE ecp Failed\n"); else printf("PPSETMODE ecp works!\n"); if(!ioctl(fd,PPRELEASE)) printf("PPRELEASE Failed\n"); else printf("PPRELEASE works!\n"); exit(0); } ./rxtx-2.2pre2/src/gnu/0000755000175000017500000000000011126534472014633 5ustar twernertwerner./rxtx-2.2pre2/src/gnu/io/0000755000175000017500000000000011142410217015226 5ustar twernertwerner./rxtx-2.2pre2/src/gnu/io/RS485PortEventListener.java0000644000175000017500000000676110614033755022260 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface RS485PortEventListener extends EventListener { public abstract void RS485Event( RS485PortEvent ev ); } ./rxtx-2.2pre2/src/gnu/io/RXTXVersion.java0000644000175000017500000000773311142410217020256 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2009 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; /** A class to keep the current version in */ public class RXTXVersion { /*------------------------------------------------------------------------------ RXTXVersion accept: - perform: Set Version. return: - exceptions: Throwable comments: See INSTALL for details. ------------------------------------------------------------------------------*/ private static String Version; static { System.loadLibrary( "rxtxSerial" ); Version = "RXTX-2.2pre2"; } /** * static method to return the current version of RXTX * unique to RXTX. * @return a string representing the version "RXTX-1.4-9" */ public static String getVersion() { return(Version); } public static native String nativeGetVersion(); } ./rxtx-2.2pre2/src/gnu/io/SerialPortEventListener.java0000644000175000017500000000667310614033756022715 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface SerialPortEventListener extends EventListener { public abstract void serialEvent( SerialPortEvent ev ); } ./rxtx-2.2pre2/src/gnu/io/I2CPortEvent.java0000644000175000017500000001056510614033755020337 0ustar twernertwerner/* Non functional contact taj@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class I2CPortEvent extends EventObject { public static final int DATA_AVAILABLE =1; public static final int OUTPUT_BUFFER_EMPTY =2; public static final int CTS =3; public static final int DSR =4; public static final int RI =5; public static final int CD =6; public static final int OE =7; public static final int PE =8; public static final int FE =9; public static final int BI =10; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public I2CPortEvent(I2CPort srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/src/gnu/io/ParallelPort.java0000644000175000017500000001501410614033755020506 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public abstract class ParallelPort extends CommPort { public static final int LPT_MODE_ANY =0; public static final int LPT_MODE_SPP =1; public static final int LPT_MODE_PS2 =2; public static final int LPT_MODE_EPP =3; public static final int LPT_MODE_ECP =4; public static final int LPT_MODE_NIBBLE=5; public abstract int getMode(); public abstract int setMode(int mode) throws UnsupportedCommOperationException; public abstract void restart(); public abstract void suspend(); public abstract boolean isPaperOut(); public abstract boolean isPrinterBusy(); public abstract boolean isPrinterError(); public abstract boolean isPrinterSelected(); public abstract boolean isPrinterTimedOut(); public abstract int getOutputBufferFree(); public abstract void addEventListener( ParallelPortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); public abstract void notifyOnError( boolean enable ); public abstract void notifyOnBuffer( boolean enable ); /* public int PAR_EV_ERROR 1 public int PAR_EV_BUFFER 2 public ParallelPort(){} private native static void Initialize(); public LPRPort( String name ) throws IOException; private native int open( String name ) throws IOException; private int fd; private final ParallelOutputStream out = new ParallelOutputStream(); public OutputStream getOutputStream(); private final ParallelInputStream in = new ParallelInputStream(); public InputStream getInputStream(); private int lprmode=LPT_MODE_ANY; public native boolean setLPRMode(int mode) throws UnsupportedCommOperationException; private int speed; public int getBaudRate(); private int dataBits; public int getDataBits(); private int stopBits; public int getStopBits(); private int parity; public int getParity(); private native void nativeClose(); public void close(); public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException; public void disableReceiveFraming() {} public boolean isReceiveFramingEnabled(); public int getReceiveFramingByte(); private int timeout = 0; public void enableReceiveTimeout( int t ); public void disableReceiveTimeout(); public boolean isReceiveTimeoutEnabled(); public int getReceiveTimeout(); private int threshold = 1; public void enableReceiveThreshold( int t ); public void disableReceiveThreshold(); public int getReceiveThreshold(); public boolean isReceiveThresholdEnabled(); public native void setInputBufferSize( int size ); public native int getInputBufferSize(); public native void setOutputBufferSize( int size ); public Abstract int getOutputBufferSize(); private native void writeByte( int b ) throws IOException; private native void writeArray( byte b[], int off, int len ) throws IOException; private native void drain() throws IOException; private native int nativeavailable() throws IOException; private native int readByte() throws IOException; private native int readArray( byte b[], int off, int len ) throws IOException; private ParallelPortEventListener PPEventListener; private MonitorThread monThread; native void eventLoop(); void sendEvent( int event, boolean state ); protected void finalize(); */ } ./rxtx-2.2pre2/src/gnu/io/UnsupportedCommOperationException.java0000644000175000017500000000754610614033756025025 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * Exception thrown when a method does not support the requested functionality. * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class UnsupportedCommOperationException extends Exception { /** * create an instances with no message about why the Exception was thrown. * @since JDK1.0 */ public UnsupportedCommOperationException() { super(); } /** * create an instance with a message about why the Exception was thrown. * @param str A detailed message explaining the reason for the Exception. * @since JDK1.0 */ public UnsupportedCommOperationException( String str ) { super( str ); } } ./rxtx-2.2pre2/src/gnu/io/ParallelPortEventListener.java0000644000175000017500000000670010614033755023220 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface ParallelPortEventListener extends EventListener { public abstract void parallelEvent(ParallelPortEvent ev ); } ./rxtx-2.2pre2/src/gnu/io/NoSuchPortException.java0000644000175000017500000000700210614033755022026 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * The requested Port does not exist * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class NoSuchPortException extends Exception { NoSuchPortException( String str ) { super( str ); } public NoSuchPortException() { super(); } } ./rxtx-2.2pre2/src/gnu/io/I2CPort.java0000644000175000017500000001355710614033755017341 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ abstract class I2CPort extends CommPort { public static final int DATABITS_5 =5; public static final int DATABITS_6 =6; public static final int DATABITS_7 =7; public static final int DATABITS_8 =8; public static final int PARITY_NONE =0; public static final int PARITY_ODD =1; public static final int PARITY_EVEN =2; public static final int PARITY_MARK =3; public static final int PARITY_SPACE =4; public static final int STOPBITS_1 =1; public static final int STOPBITS_1_5 =0; //wrong public static final int STOPBITS_2 =2; public static final int FLOWCONTROL_NONE =0; public static final int FLOWCONTROL_RTSCTS_IN =1; public static final int FLOWCONTROL_RTSCTS_OUT =2; public static final int FLOWCONTROL_XONXOFF_IN =4; public static final int FLOWCONTROL_XONXOFF_OUT=8; public abstract void setI2CPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException; public abstract int getBaudRate(); public abstract int getDataBits(); public abstract int getStopBits(); public abstract int getParity(); public abstract void setFlowControlMode( int flowcontrol ) throws UnsupportedCommOperationException; public abstract int getFlowControlMode(); public abstract boolean isDTR(); public abstract void setDTR( boolean state ); public abstract void setRTS( boolean state ); public abstract boolean isCTS(); public abstract boolean isDSR(); public abstract boolean isCD(); public abstract boolean isRI(); public abstract boolean isRTS(); public abstract void sendBreak( int duration ); public abstract void addEventListener( I2CPortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); public abstract void notifyOnDataAvailable( boolean enable ); public abstract void notifyOnOutputEmpty( boolean enable ); public abstract void notifyOnCTS( boolean enable ); public abstract void notifyOnDSR( boolean enable ); public abstract void notifyOnRingIndicator( boolean enable ); public abstract void notifyOnCarrierDetect( boolean enable ); public abstract void notifyOnOverrunError( boolean enable ); public abstract void notifyOnParityError( boolean enable ); public abstract void notifyOnFramingError( boolean enable ); public abstract void notifyOnBreakInterrupt( boolean enable ); /* public abstract void setRcvFifoTrigger(int trigger); deprecated */ } ./rxtx-2.2pre2/src/gnu/io/RXTXCommDriver.java0000644000175000017500000006411011107144721020675 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1998 Kevin Hester, kevinh@acm.org | Copyright 2000-2008 Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* Martin Pool added support for explicitly-specified * lists of ports, October 2000. */ /* Joseph Goldstone reorganized to support registered ports, * known ports, and scanned ports, July 2001 */ package gnu.io; import java.lang.*; import java.util.*; import java.io.*; import java.util.StringTokenizer; /** This is the JavaComm for Linux driver. */ public class RXTXCommDriver implements CommDriver { private final static boolean debug = false; private final static boolean devel = false; private final static boolean noVersionOutput = "true".equals( System.getProperty( "gnu.io.rxtx.NoVersionOutput" ) ); static { if(debug ) System.out.println("RXTXCommDriver {}"); System.loadLibrary( "rxtxSerial" ); /* Perform a crude check to make sure people don't mix versions of the Jar and native lib Mixing the libs can create a nightmare. It could be possible to move this over to RXTXVersion but All we want to do is warn people when first loading the Library. */ String JarVersion = RXTXVersion.getVersion(); String LibVersion; try { LibVersion = RXTXVersion.nativeGetVersion(); } catch ( Error UnsatisfiedLinkError ) { // for rxtx prior to 2.1.7 LibVersion = nativeGetVersion(); } if ( devel ) { if ( ! noVersionOutput ) { System.out.println("Stable Library"); System.out.println("========================================="); System.out.println("Native lib Version = " + LibVersion ); System.out.println("Java lib Version = " + JarVersion ); } } if ( ! JarVersion.equals( LibVersion ) ) { System.out.println( "WARNING: RXTX Version mismatch\n\tJar version = " + JarVersion + "\n\tnative lib Version = " + LibVersion ); } else if ( debug ) { System.out.println( "RXTXCommDriver:\n\tJar version = " + JarVersion + "\n\tnative lib Version = " + LibVersion ); } } /** Get the Serial port prefixes for the running OS */ private String deviceDirectory; private String osName; private native boolean registerKnownPorts(int PortType); private native boolean isPortPrefixValid(String dev); private native boolean testRead(String dev, int type); private native String getDeviceDirectory(); // for rxtx prior to 2.1.7 public static native String nativeGetVersion(); private final String[] getValidPortPrefixes(String CandidatePortPrefixes[]) { /* 256 is the number of prefixes ( COM, cua, ttyS, ...) not the number of devices (ttyS0, ttyS1, ttyS2, ...) On a Linux system there are about 400 prefixes in deviceDirectory. registerScannedPorts() assigns CandidatePortPrefixes to something less than 50 prefixes. Trent */ String ValidPortPrefixes[]=new String [256]; if (debug) System.out.println("\nRXTXCommDriver:getValidPortPrefixes()"); if(CandidatePortPrefixes==null) { if (debug) System.out.println("\nRXTXCommDriver:getValidPortPrefixes() No ports prefixes known for this System.\nPlease check the port prefixes listed for " + osName + " in RXTXCommDriver:registerScannedPorts()\n"); } int i=0; for(int j=0;jFrom the NullDriver.java CommAPI sample. * * added printerport stuff * Holger Lehmann * July 12, 1999 * IBM * Added ttyM for Moxa boards * Removed obsolete device cuaa * Peter Bennett * January 02, 2000 * Bencom */ /** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName=System.getProperty("os.name"); deviceDirectory=getDeviceDirectory(); /* First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ for (int PortType=CommPortIdentifier.PORT_SERIAL;PortType<=CommPortIdentifier.PORT_PARALLEL;PortType++) { if (!registerSpecifiedPorts(PortType)) { if (!registerKnownPorts(PortType)) { registerScannedPorts(PortType); } } } } private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (testRead(PortName, PortType)) CommPortIdentifier.addPortName(PortName, PortType, this); } } /* * Register ports specified in the file "gnu.io.rxtx.properties" * Key system properties: * gnu.io.rxtx.SerialPorts * gnu.io.rxtx.ParallelPorts * * Tested only with sun jdk1.3 * The file gnu.io.rxtx.properties must reside in the java extension dir * * Example: /usr/local/java/jre/lib/ext/gnu.io.rxtx.properties * * The file contains the following key properties: * * gnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1: * gnu.io.rxtx.ParallelPorts=/dev/lp0: * */ private boolean registerSpecifiedPorts(int PortType) { String val = null; Properties origp = System.getProperties();//save system properties try { String ext_dir=System.getProperty("java.ext.dirs")+System.getProperty("file.separator"); FileInputStream rxtx_prop=new FileInputStream(ext_dir+"gnu.io.rxtx.properties"); Properties p=new Properties(); p.load(rxtx_prop); System.setProperties(p); for (Iterator it = p.keySet().iterator(); it.hasNext();) { String key = (String) it.next(); System.setProperty(key, p.getProperty(key)); } }catch(Exception e){ if (debug){ System.out.println("The file: gnu.io.rxtx.properties doesn't exists."); System.out.println(e.toString()); }//end if }//end catch if (debug) System.out.println("checking for system-known ports of type "+PortType); if (debug) System.out.println("checking registry for ports of type "+PortType); switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if ((val = System.getProperty("gnu.io.rxtx.SerialPorts")) == null) val = System.getProperty("gnu.io.SerialPorts"); break; case CommPortIdentifier.PORT_PARALLEL: if ((val = System.getProperty("gnu.io.rxtx.ParallelPorts")) == null) val = System.getProperty("gnu.io.ParallelPorts"); break; default: if (debug) System.out.println("unknown port type "+PortType+" passed to RXTXCommDriver.registerSpecifiedPorts()"); } System.setProperties(origp); //recall saved properties if (val != null) { addSpecifiedPorts(val, PortType); return true; } else { return false; } } /* * Look for all entries in deviceDirectory, and if they look like they should * be serial ports on this OS and they can be opened then register * them. * */ private void registerScannedPorts(int PortType) { String[] CandidateDeviceNames; if (debug) System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType); if(osName.equals("Windows CE")) { String[] temp = { "COM1:", "COM2:","COM3:","COM4:", "COM5:", "COM6:", "COM7:", "COM8:" }; CandidateDeviceNames=temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] temp = new String[259]; for( int i = 1; i <= 256; i++ ) { temp[i - 1] = "COM" + i; } for( int i = 1; i <= 3; i++ ) { temp[i + 255] = "LPT" + i; } CandidateDeviceNames=temp; } else if ( osName.equals("Solaris") || osName.equals("SunOS")) { /* Solaris uses a few different ways to identify ports. They could be /dev/term/a /dev/term0 /dev/cua/a /dev/cuaa the /dev/???/a appears to be on more systems. The uucp lock files should not cause problems. */ /* File dev = new File( "/dev/term" ); String deva[] = dev.list(); dev = new File( "/dev/cua" ); String devb[] = dev.list(); String[] temp = new String[ deva.length + devb.length ]; for(int j =0;j 0 ) term[l++] ="term/"; /* dev = new File( "/dev/cua0" ); if( dev.list().length > 0 ) term[l++] = "cua/"; */ String[] temp = new String[l]; for(l--;l >= 0;l--) temp[l] = term[l]; CandidateDeviceNames=temp; } else { File dev = new File( deviceDirectory ); String[] temp = dev.list(); CandidateDeviceNames=temp; } if (CandidateDeviceNames==null) { if (debug) System.out.println("RXTXCommDriver:registerScannedPorts() no Device files to check "); return; } String CandidatePortPrefixes[] = {}; switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if (debug) System.out.println("scanning for serial ports for os "+osName); /* There are _many_ possible ports that can be used on Linux. See below in the fake Linux-all-ports case for a list. You may add additional ports here but be warned that too many will significantly slow down port enumeration. Linux 2.6 has udev support which should be faster as only ports the kernel finds should be exposed in /dev See also how to override port enumeration and specifying port in INSTALL. taj */ if(osName.equals("Linux")) { String[] Temp = { "ttyS", // linux Serial Ports "ttySA", // for the IPAQs "ttyUSB", // for USB frobs "rfcomm", // bluetooth serial device "ttyircomm", // linux IrCommdevices (IrDA serial emu) }; CandidatePortPrefixes=Temp; } else if(osName.equals("Linux-all-ports")) { /* if you want to enumerate all ports ~5000 possible, then replace the above with this */ String[] Temp = { "comx", // linux COMMX synchronous serial card "holter", // custom card for heart monitoring "modem", // linux symbolic link to modem. "rfcomm", // bluetooth serial device "ttyircomm", // linux IrCommdevices (IrDA serial emu) "ttycosa0c", // linux COSA/SRP synchronous serial card "ttycosa1c", // linux COSA/SRP synchronous serial card "ttyACM",// linux CDC ACM devices "ttyC", // linux cyclades cards "ttyCH",// linux Chase Research AT/PCI-Fast serial card "ttyD", // linux Digiboard serial card "ttyE", // linux Stallion serial card "ttyF", // linux Computone IntelliPort serial card "ttyH", // linux Chase serial card "ttyI", // linux virtual modems "ttyL", // linux SDL RISCom serial card "ttyM", // linux PAM Software's multimodem boards // linux ISI serial card "ttyMX",// linux Moxa Smart IO cards "ttyP", // linux Hayes ESP serial card "ttyR", // linux comtrol cards // linux Specialix RIO serial card "ttyS", // linux Serial Ports "ttySI",// linux SmartIO serial card "ttySR",// linux Specialix RIO serial card 257+ "ttyT", // linux Technology Concepts serial card "ttyUSB",//linux USB serial converters "ttyV", // linux Comtrol VS-1000 serial controller "ttyW", // linux specialix cards "ttyX" // linux SpecialX serial card }; CandidatePortPrefixes=Temp; } else if(osName.toLowerCase().indexOf("qnx") != -1 ) { String[] Temp = { "ser" }; CandidatePortPrefixes=Temp; } else if(osName.equals("Irix")) { String[] Temp = { "ttyc", // irix raw character devices "ttyd", // irix basic serial ports "ttyf", // irix serial ports with hardware flow "ttym", // irix modems "ttyq", // irix pseudo ttys "tty4d",// irix RS422 "tty4f",// irix RS422 with HSKo/HSki "midi", // irix serial midi "us" // irix mapped interface }; CandidatePortPrefixes=Temp; } else if(osName.equals("FreeBSD")) //FIXME this is probably wrong { String[] Temp = { "ttyd", //general purpose serial ports "cuaa", //dialout serial ports "ttyA", //Specialix SI/XIO dialin ports "cuaA", //Specialix SI/XIO dialout ports "ttyD", //Digiboard - 16 dialin ports "cuaD", //Digiboard - 16 dialout ports "ttyE", //Stallion EasyIO (stl) dialin ports "cuaE", //Stallion EasyIO (stl) dialout ports "ttyF", //Stallion Brumby (stli) dialin ports "cuaF", //Stallion Brumby (stli) dialout ports "ttyR", //Rocketport dialin ports "cuaR", //Rocketport dialout ports "stl" //Stallion EasyIO board or Brumby N }; CandidatePortPrefixes=Temp; } else if(osName.equals("NetBSD")) // FIXME this is probably wrong { String[] Temp = { "tty0" // netbsd serial ports }; CandidatePortPrefixes=Temp; } else if ( osName.equals("Solaris") || osName.equals("SunOS")) { String[] Temp = { "term/", "cua/" }; CandidatePortPrefixes=Temp; } else if(osName.equals("HP-UX")) { String[] Temp = { "tty0p",// HP-UX serial ports "tty1p" // HP-UX serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("UnixWare") || osName.equals("OpenUNIX")) { String[] Temp = { "tty00s", // UW7/OU8 serial ports "tty01s", "tty02s", "tty03s" }; CandidatePortPrefixes=Temp; } else if (osName.equals("OpenServer")) { String[] Temp = { "tty1A", // OSR5 serial ports "tty2A", "tty3A", "tty4A", "tty5A", "tty6A", "tty7A", "tty8A", "tty9A", "tty10A", "tty11A", "tty12A", "tty13A", "tty14A", "tty15A", "tty16A", "ttyu1A", // OSR5 USB-serial ports "ttyu2A", "ttyu3A", "ttyu4A", "ttyu5A", "ttyu6A", "ttyu7A", "ttyu8A", "ttyu9A", "ttyu10A", "ttyu11A", "ttyu12A", "ttyu13A", "ttyu14A", "ttyu15A", "ttyu16A" }; CandidatePortPrefixes=Temp; } else if (osName.equals("Compaq's Digital UNIX") || osName.equals("OSF1")) { String[] Temp = { "tty0" // Digital Unix serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("BeOS")) { String[] Temp = { "serial" // BeOS serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; CandidatePortPrefixes=Temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] Temp = { "COM" // win32 serial ports //"//./COM" // win32 serial ports }; CandidatePortPrefixes=Temp; } else { if (debug) System.out.println("No valid prefixes for serial ports have been entered for "+osName + " in RXTXCommDriver.java. This may just be a typo in the method registerScanPorts()."); } break; case CommPortIdentifier.PORT_PARALLEL: if (debug) System.out.println("scanning for parallel ports for os "+osName); /** Get the Parallel port prefixes for the running os * Holger Lehmann * July 12, 1999 * IBM */ if(osName.equals("Linux") /* || osName.equals("NetBSD") FIXME || osName.equals("HP-UX") FIXME || osName.equals("Irix") FIXME || osName.equals("BeOS") FIXME || osName.equals("Compaq's Digital UNIX") FIXME */ ) { String[] temp={ "lp" // linux printer port }; CandidatePortPrefixes=temp; } else if(osName.equals("FreeBSD")) { String[] temp={ "lpt" }; CandidatePortPrefixes=temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] temp={ "LPT" }; CandidatePortPrefixes=temp; } else /* printer support is green */ { String [] temp={}; CandidatePortPrefixes=temp; } break; default: if (debug) System.out.println("Unknown PortType "+PortType+" passed to RXTXCommDriver.registerScannedPorts()"); } registerValidPorts(CandidateDeviceNames, CandidatePortPrefixes, PortType); } /* *

From the NullDriver.java CommAPI sample. */ /** * @param PortName The name of the port the OS recognizes * @param PortType CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL * @return CommPort * getCommPort() will be called by CommPortIdentifier from its * openPort() method. PortName is a string that was registered earlier * using the CommPortIdentifier.addPortName() method. getCommPort() * returns an object that extends either SerialPort or ParallelPort. */ public CommPort getCommPort( String PortName, int PortType ) { if (debug) System.out.println("RXTXCommDriver:getCommPort(" +PortName+","+PortType+")"); try { switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if(osName.toLowerCase().indexOf("windows") == -1 ) { return new RXTXPort( PortName ); } else { return new RXTXPort( deviceDirectory + PortName ); } case CommPortIdentifier.PORT_PARALLEL: return new LPRPort( PortName ); default: if (debug) System.out.println("unknown PortType "+PortType+" passed to RXTXCommDriver.getCommPort()"); } } catch( PortInUseException e ) { if (debug) System.out.println( "Port "+PortName+" in use by another application"); } return null; } /* Yikes. Trying to call println from C for odd reasons */ public void Report( String arg ) { System.out.println(arg); } } ./rxtx-2.2pre2/src/gnu/io/SerialPortEvent.java0000644000175000017500000001050610614033756021175 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class SerialPortEvent extends EventObject { public static final int DATA_AVAILABLE =1; public static final int OUTPUT_BUFFER_EMPTY =2; public static final int CTS =3; public static final int DSR =4; public static final int RI =5; public static final int CD =6; public static final int OE =7; public static final int PE =8; public static final int FE =9; public static final int BI =10; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public SerialPortEvent(SerialPort srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/src/gnu/io/CommDriver.java0000644000175000017500000000671110614033754020157 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface CommDriver { public abstract CommPort getCommPort(String portName,int portType); public abstract void initialize(); } ./rxtx-2.2pre2/src/gnu/io/I2CPortEventListener.java0000644000175000017500000000675110614033755022047 0ustar twernertwerner/* Non functional contact tjarvi@qbang for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface I2CPortEventListener extends EventListener { public abstract void I2CEvent( I2CPortEvent ev ); } ./rxtx-2.2pre2/src/gnu/io/RawPortEventListener.java0000644000175000017500000000675310614033755022225 0ustar twernertwerner/* Non functional contact tjavi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface RawPortEventListener extends EventListener { public abstract void RawEvent( RawPortEvent ev ); } ./rxtx-2.2pre2/src/gnu/io/RS485Port.java0000644000175000017500000001356510614033755017550 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ abstract class RS485Port extends CommPort { public static final int DATABITS_5 =5; public static final int DATABITS_6 =6; public static final int DATABITS_7 =7; public static final int DATABITS_8 =8; public static final int PARITY_NONE =0; public static final int PARITY_ODD =1; public static final int PARITY_EVEN =2; public static final int PARITY_MARK =3; public static final int PARITY_SPACE =4; public static final int STOPBITS_1 =1; public static final int STOPBITS_1_5 =0; //wrong public static final int STOPBITS_2 =2; public static final int FLOWCONTROL_NONE =0; public static final int FLOWCONTROL_RTSCTS_IN =1; public static final int FLOWCONTROL_RTSCTS_OUT =2; public static final int FLOWCONTROL_XONXOFF_IN =4; public static final int FLOWCONTROL_XONXOFF_OUT=8; public abstract void setRS485PortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException; public abstract int getBaudRate(); public abstract int getDataBits(); public abstract int getStopBits(); public abstract int getParity(); public abstract void setFlowControlMode( int flowcontrol ) throws UnsupportedCommOperationException; public abstract int getFlowControlMode(); public abstract boolean isDTR(); public abstract void setDTR( boolean state ); public abstract void setRTS( boolean state ); public abstract boolean isCTS(); public abstract boolean isDSR(); public abstract boolean isCD(); public abstract boolean isRI(); public abstract boolean isRTS(); public abstract void sendBreak( int duration ); public abstract void addEventListener( RS485PortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); public abstract void notifyOnDataAvailable( boolean enable ); public abstract void notifyOnOutputEmpty( boolean enable ); public abstract void notifyOnCTS( boolean enable ); public abstract void notifyOnDSR( boolean enable ); public abstract void notifyOnRingIndicator( boolean enable ); public abstract void notifyOnCarrierDetect( boolean enable ); public abstract void notifyOnOverrunError( boolean enable ); public abstract void notifyOnParityError( boolean enable ); public abstract void notifyOnFramingError( boolean enable ); public abstract void notifyOnBreakInterrupt( boolean enable ); /* public abstract void setRcvFifoTrigger(int trigger); deprecated */ } ./rxtx-2.2pre2/src/gnu/io/Raw.java0000644000175000017500000003332611063310112016624 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; import java.lang.Math; /** * @author Trent Jarvi * @version $Id: Raw.java,v 1.1.2.17 2008-09-14 22:29:30 jarvi Exp $ * @since JDK1.0 */ final class Raw extends RawPort { static { System.loadLibrary( "rxtxRaw" ); Initialize(); } /** Initialize the native library */ private native static void Initialize(); /** Actual RawPort wrapper class */ /** Open the named port */ public Raw( String name ) throws PortInUseException { ciAddress=Integer.parseInt(name); open( ciAddress ); } private native int open( int ciAddress ) throws PortInUseException; /** File descriptor */ private int ciAddress; /** DSR flag **/ static boolean dsrFlag = false; /** Output stream */ private final RawOutputStream out = new RawOutputStream(); public OutputStream getOutputStream() { return out; } /** Input stream */ private final RawInputStream in = new RawInputStream(); public InputStream getInputStream() { return in; } /** Set the RawPort parameters */ public void setRawPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { nativeSetRawPortParams( b, d, s, p ); speed = b; dataBits = d; stopBits = s; parity = p; } /** Set the native Raw port parameters */ private native void nativeSetRawPortParams( int speed, int dataBits, int stopBits, int parity ) throws UnsupportedCommOperationException; /** Line speed in bits-per-second */ private int speed=9600; public int getBaudRate() { return speed; } /** Data bits port parameter */ private int dataBits=DATABITS_8; public int getDataBits() { return dataBits; } /** Stop bits port parameter */ private int stopBits=RawPort.STOPBITS_1; public int getStopBits() { return stopBits; } /** Parity port parameter */ private int parity= RawPort.PARITY_NONE; public int getParity() { return parity; } /** Flow control */ private int flowmode = RawPort.FLOWCONTROL_NONE; public void setFlowControlMode( int flowcontrol ) { try { setflowcontrol( flowcontrol ); } catch( IOException e ) { e.printStackTrace(); return; } flowmode=flowcontrol; } public int getFlowControlMode() { return flowmode; } native void setflowcontrol( int flowcontrol ) throws IOException; /* linux/drivers/char/n_hdlc.c? FIXME taj@www.linux.org.uk */ /** Receive framing control */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { throw new UnsupportedCommOperationException( "Not supported" ); } public void disableReceiveFraming() {} public boolean isReceiveFramingEnabled() { return false; } public int getReceiveFramingByte() { return 0; } /** Receive timeout control */ private int timeout = 0; public native int NativegetReceiveTimeout(); public native boolean NativeisReceiveTimeoutEnabled(); public native void NativeEnableReceiveTimeoutThreshold(int time, int threshold,int InputBuffer); public void disableReceiveTimeout(){ enableReceiveTimeout(0); } public void enableReceiveTimeout( int time ){ if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { System.out.println("Invalid timeout"); } } public boolean isReceiveTimeoutEnabled(){ return(NativeisReceiveTimeoutEnabled()); } public int getReceiveTimeout(){ return(NativegetReceiveTimeout( )); } /** Receive threshold control */ private int threshold = 0; public void enableReceiveThreshold( int thresh ){ if(thresh >=0) { threshold=thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { System.out.println("Invalid Threshold"); } } public void disableReceiveThreshold() { enableReceiveThreshold(0); } public int getReceiveThreshold(){ return threshold; } public boolean isReceiveThresholdEnabled(){ return(threshold>0); } /** Input/output buffers */ /** FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... */ private int InputBuffer=0; private int OutputBuffer=0; public void setInputBufferSize( int size ) { InputBuffer=size; } public int getInputBufferSize() { return(InputBuffer); } public void setOutputBufferSize( int size ) { OutputBuffer=size; } public int getOutputBufferSize() { return(OutputBuffer); } /** Line status methods */ public native boolean isDTR(); public native void setDTR( boolean state ); public native void setRTS( boolean state ); private native void setDSR( boolean state ); public native boolean isCTS(); public native boolean isDSR(); public native boolean isCD(); public native boolean isRI(); public native boolean isRTS(); /** Write to the port */ public native void sendBreak( int duration ); private native void writeByte( int b ) throws IOException; private native void writeArray( byte b[], int off, int len ) throws IOException; private native void drain() throws IOException; /** Raw read methods */ private native int nativeavailable() throws IOException; private native int readByte() throws IOException; private native int readArray( byte b[], int off, int len ) throws IOException; /** Raw Port Event listener */ private RawPortEventListener SPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process RawPortEvents */ native void eventLoop(); private int dataAvailable=0; public void sendEvent( int event, boolean state ) { switch( event ) { case RawPortEvent.DATA_AVAILABLE: dataAvailable=1; if( monThread.Data ) break; return; case RawPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return; /* if( monThread.DSR ) break; return; if (isDSR()) { if (!dsrFlag) { dsrFlag = true; RawPortEvent e = new RawPortEvent(this, RawPortEvent.DSR, !dsrFlag, dsrFlag ); } } else if (dsrFlag) { dsrFlag = false; RawPortEvent e = new RawPortEvent(this, RawPortEvent.DSR, !dsrFlag, dsrFlag ); } */ case RawPortEvent.CTS: if( monThread.CTS ) break; return; case RawPortEvent.DSR: if( monThread.DSR ) break; return; case RawPortEvent.RI: if( monThread.RI ) break; return; case RawPortEvent.CD: if( monThread.CD ) break; return; case RawPortEvent.OE: if( monThread.OE ) break; return; case RawPortEvent.PE: if( monThread.PE ) break; return; case RawPortEvent.FE: if( monThread.FE ) break; return; case RawPortEvent.BI: if( monThread.BI ) break; return; default: System.err.println("unknown event:"+event); return; } RawPortEvent e = new RawPortEvent(this, event, !state, state ); if( SPEventListener != null ) SPEventListener.RawEvent( e ); } /** Add an event listener */ public void addEventListener( RawPortEventListener lsnr ) throws TooManyListenersException { if( SPEventListener != null ) throw new TooManyListenersException(); SPEventListener = lsnr; monThread = new MonitorThread(); monThread.start(); } /** Remove the Raw port event listener */ public void removeEventListener() { SPEventListener = null; if( monThread != null ) { monThread.interrupt(); monThread = null; } } public void notifyOnDataAvailable( boolean enable ) { monThread.Data = enable; } public void notifyOnOutputEmpty( boolean enable ) { monThread.Output = enable; } public void notifyOnCTS( boolean enable ) { monThread.CTS = enable; } public void notifyOnDSR( boolean enable ) { monThread.DSR = enable; } public void notifyOnRingIndicator( boolean enable ) { monThread.RI = enable; } public void notifyOnCarrierDetect( boolean enable ) { monThread.CD = enable; } public void notifyOnOverrunError( boolean enable ) { monThread.OE = enable; } public void notifyOnParityError( boolean enable ) { monThread.PE = enable; } public void notifyOnFramingError( boolean enable ) { monThread.FE = enable; } public void notifyOnBreakInterrupt( boolean enable ) { monThread.BI = enable; } /** Close the port */ private native int nativeClose(); public void close() { setDTR(false); setDSR(false); nativeClose(); super.close(); ciAddress = 0; } /** Finalize the port */ protected void finalize() { close(); } /** Inner class for RawOutputStream */ class RawOutputStream extends OutputStream { public void write( int b ) throws IOException { writeByte( b ); } public void write( byte b[] ) throws IOException { writeArray( b, 0, b.length ); } public void write( byte b[], int off, int len ) throws IOException { writeArray( b, off, len ); } public void flush() throws IOException { drain(); } } /** Inner class for RawInputStream */ class RawInputStream extends InputStream { public int read() throws IOException { dataAvailable=0; return readByte(); } public int read( byte b[] ) throws IOException { return read ( b, 0, b.length); } public int read( byte b[], int off, int len ) throws IOException { dataAvailable=0; int i=0, Minimum=0; int intArray[] = { b.length, InputBuffer, len }; /* find the lowest nonzero value timeout and threshold are handled on the native side see NativeEnableReceiveTimeoutThreshold in RawImp.c */ while(intArray[i]==0 && i < intArray.length) i++; Minimum=intArray[i]; while( i < intArray.length ) { if(intArray[i] > 0 ) { Minimum=Math.min(Minimum,intArray[i]); } i++; } Minimum=Math.min(Minimum,threshold); if(Minimum == 0) Minimum=1; int Available=available(); int Ret = readArray( b, off, Minimum); return Ret; } public int available() throws IOException { return nativeavailable(); } } class MonitorThread extends Thread { /** Note: these have to be separate boolean flags because the RawPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ private boolean CTS=false; private boolean DSR=false; private boolean RI=false; private boolean CD=false; private boolean OE=false; private boolean PE=false; private boolean FE=false; private boolean BI=false; private boolean Data=false; private boolean Output=false; MonitorThread() { } public void run() { eventLoop(); } } public String getVersion() { String Version="$Id: Raw.java,v 1.1.2.17 2008-09-14 22:29:30 jarvi Exp $"; return(Version); } } ./rxtx-2.2pre2/src/gnu/io/CommPortEnumerator.java0000644000175000017500000001130410614033755021705 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.Enumeration; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ class CommPortEnumerator implements Enumeration { private CommPortIdentifier index; private final static boolean debug = false; static { if (debug) System.out.println("CommPortEnumerator:{}"); } CommPortEnumerator() { } /*------------------------------------------------------------------------------ nextElement() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public Object nextElement() { if(debug) System.out.println("CommPortEnumerator:nextElement()"); synchronized (CommPortIdentifier.Sync) { if(index != null) index = index.next; else index=CommPortIdentifier.CommPortIndex; return(index); } } /*------------------------------------------------------------------------------ hasMoreElements() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public boolean hasMoreElements() { if(debug) System.out.println("CommPortEnumerator:hasMoreElements() " + CommPortIdentifier.CommPortIndex == null ? false : true ); synchronized (CommPortIdentifier.Sync) { if(index != null) return index.next == null ? false : true; else return CommPortIdentifier.CommPortIndex == null ? false : true; } } } ./rxtx-2.2pre2/src/gnu/io/CommPort.java0000644000175000017500000001204710614033755017650 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ /** * CommPort */ public abstract class CommPort extends Object { protected String name; private final static boolean debug = false; public abstract void enableReceiveFraming( int f ) throws UnsupportedCommOperationException; public abstract void disableReceiveFraming(); public abstract boolean isReceiveFramingEnabled(); public abstract int getReceiveFramingByte(); public abstract void disableReceiveTimeout(); public abstract void enableReceiveTimeout( int time ) throws UnsupportedCommOperationException; public abstract boolean isReceiveTimeoutEnabled(); public abstract int getReceiveTimeout(); public abstract void enableReceiveThreshold( int thresh ) throws UnsupportedCommOperationException; public abstract void disableReceiveThreshold(); public abstract int getReceiveThreshold(); public abstract boolean isReceiveThresholdEnabled(); public abstract void setInputBufferSize( int size ); public abstract int getInputBufferSize(); public abstract void setOutputBufferSize( int size ); public abstract int getOutputBufferSize(); public void close() { if (debug) System.out.println("CommPort:close()"); try { CommPortIdentifier cp = CommPortIdentifier.getPortIdentifier(this); if ( cp != null ) cp.getPortIdentifier(this).internalClosePort(); } catch (NoSuchPortException e) { } }; public abstract InputStream getInputStream() throws IOException; public abstract OutputStream getOutputStream() throws IOException; public String getName() { if (debug) System.out.println("CommPort:getName()"); return( name ); } public String toString() { if (debug) System.out.println("CommPort:toString()"); return( name ); } } ./rxtx-2.2pre2/src/gnu/io/Configure.java0000644000175000017500000001600010720136611020013 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.awt.*; import java.awt.event.*; import java.io.*; class Configure extends Frame { Checkbox cb[]; Panel p1; static final int PORT_SERIAL = 1; static final int PORT_PARALLEL = 2; int PortType = PORT_SERIAL; private void saveSpecifiedPorts() { String filename; String javaHome= System.getProperty( "java.home" ); String pathSep = System.getProperty( "path.separator", ":" ); String fileSep = System.getProperty( "file.separator", "/" ); String lineSep = System.getProperty( "line.separator" ); String output; if( PortType == PORT_SERIAL ) filename = javaHome + fileSep + "lib" + fileSep + "gnu.io.rxtx.SerialPorts"; else if ( PortType == PORT_PARALLEL ) filename = javaHome + "gnu.io.rxtx.ParallelPorts"; else { System.out.println( "Bad Port Type!" ); return; } System.out.println(filename); try { FileOutputStream out = new FileOutputStream( filename ); for( int i = 0; i < 128; i++) { if( cb[i].getState() ) { output = cb[i].getLabel() + pathSep; out.write( output.getBytes() ); } } out.write(lineSep.getBytes()); out.close(); } catch ( IOException e ) { System.out.println("IOException!"); } } void addCheckBoxes( String PortName ) { for ( int i = 0; i < 128 ; i++ ) if( cb[i] != null ) p1.remove( cb[i] ); for (int i=1;i<129;i++) { cb[i-1]=new Checkbox(PortName+i); p1.add( "NORTH", cb[i-1] ); } } public Configure() { int Width= 640; int Height= 480; cb = new Checkbox[128]; final Frame f = new Frame( "Configure gnu.io.rxtx.properties"); String fileSep = System.getProperty( "file.separator", "/" ); String devPath; if( fileSep.compareTo( "/" ) != 0 ) devPath="COM"; else devPath="/dev/"; f.setBounds(100,50,Width,Height); f.setLayout(new BorderLayout()); p1 = new Panel(); p1.setLayout(new GridLayout(16,4)); ActionListener l = new ActionListener() { public void actionPerformed( ActionEvent e ) { { String res = e.getActionCommand(); if ( res.equals( "Save" ) ) saveSpecifiedPorts(); } } }; addCheckBoxes( devPath ); TextArea t = new TextArea( EnumMessage, 5, 50, TextArea.SCROLLBARS_NONE ); t.setSize(50,Width); t.setEditable(false); final Panel p2 = new Panel(); p2.add(new Label("Port Name:")); TextField tf = new TextField(devPath, 8); tf.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { addCheckBoxes(e.getActionCommand()); f.setVisible(true); } }); p2.add(tf); Checkbox Keep = new Checkbox("Keep Ports"); p2.add(Keep); Button b[] = new Button[6]; for(int j=0, i = 4;i<129;i*=2, j++) { b[j] = new Button("1-" + i); b[j].addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { int k = Integer.parseInt( e.getActionCommand().substring(2)); for(int x = 0; x < k; x++) { cb[x].setState( !cb[x].getState()); f.setVisible(true); } } }); p2.add(b[j]); } Button b1 = new Button("More"); Button b2 = new Button("Save"); b1.addActionListener(l); b2.addActionListener(l); p2.add(b1); p2.add(b2); f.add("South", p2); f.add("Center", p1); f.add("North", t); f.addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent e ) { System.exit( 0 ); } } ); f.setVisible(true); } public static void main (String[] args) { new Configure(); } String EnumMessage = "gnu.io.rxtx.properties has not been detected.\n\nThere is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save"; } ./rxtx-2.2pre2/src/gnu/io/UnSupportedLoggerException.java0000644000175000017500000000752110614033756023421 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * Exception thrown when a method does not support the requested functionality. * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class UnSupportedLoggerException extends Exception { /** * create an instances with no message about why the Exception was thrown. * @since JDK1.0 */ public UnSupportedLoggerException() { super(); } /** * create an instance with a message about why the Exception was thrown. * @param str A detailed message explaining the reason for the Exception. * @since JDK1.0 */ public UnSupportedLoggerException( String str ) { super( str ); } } ./rxtx-2.2pre2/src/gnu/io/SerialPort.java0000644000175000017500000001670310614033756020200 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public abstract class SerialPort extends CommPort { public static final int DATABITS_5 =5; public static final int DATABITS_6 =6; public static final int DATABITS_7 =7; public static final int DATABITS_8 =8; public static final int PARITY_NONE =0; public static final int PARITY_ODD =1; public static final int PARITY_EVEN =2; public static final int PARITY_MARK =3; public static final int PARITY_SPACE =4; public static final int STOPBITS_1 =1; public static final int STOPBITS_2 =2; public static final int STOPBITS_1_5 =3; public static final int FLOWCONTROL_NONE =0; public static final int FLOWCONTROL_RTSCTS_IN =1; public static final int FLOWCONTROL_RTSCTS_OUT =2; public static final int FLOWCONTROL_XONXOFF_IN =4; public static final int FLOWCONTROL_XONXOFF_OUT=8; public abstract void setSerialPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException; public abstract int getBaudRate(); public abstract int getDataBits(); public abstract int getStopBits(); public abstract int getParity(); public abstract void setFlowControlMode( int flowcontrol ) throws UnsupportedCommOperationException; public abstract int getFlowControlMode(); public abstract boolean isDTR(); public abstract void setDTR( boolean state ); public abstract void setRTS( boolean state ); public abstract boolean isCTS(); public abstract boolean isDSR(); public abstract boolean isCD(); public abstract boolean isRI(); public abstract boolean isRTS(); public abstract void sendBreak( int duration ); public abstract void addEventListener( SerialPortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); public abstract void notifyOnDataAvailable( boolean enable ); public abstract void notifyOnOutputEmpty( boolean enable ); public abstract void notifyOnCTS( boolean enable ); public abstract void notifyOnDSR( boolean enable ); public abstract void notifyOnRingIndicator( boolean enable ); public abstract void notifyOnCarrierDetect( boolean enable ); public abstract void notifyOnOverrunError( boolean enable ); public abstract void notifyOnParityError( boolean enable ); public abstract void notifyOnFramingError( boolean enable ); public abstract void notifyOnBreakInterrupt( boolean enable ); /* public abstract void setRcvFifoTrigger(int trigger); deprecated */ /* ---------------------- end of commapi ------------------------ */ /* can't have static abstract? public abstract static boolean staticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException; public abstract static boolean staticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException; */ public abstract byte getParityErrorChar( ) throws UnsupportedCommOperationException; public abstract boolean setParityErrorChar( byte b ) throws UnsupportedCommOperationException; public abstract byte getEndOfInputChar( ) throws UnsupportedCommOperationException; public abstract boolean setEndOfInputChar( byte b ) throws UnsupportedCommOperationException; public abstract boolean setUARTType(String type, boolean test) throws UnsupportedCommOperationException; public abstract String getUARTType() throws UnsupportedCommOperationException; public abstract boolean setBaudBase(int BaudBase) throws UnsupportedCommOperationException, IOException; public abstract int getBaudBase() throws UnsupportedCommOperationException, IOException; public abstract boolean setDivisor(int Divisor) throws UnsupportedCommOperationException, IOException; public abstract int getDivisor() throws UnsupportedCommOperationException, IOException; public abstract boolean setLowLatency() throws UnsupportedCommOperationException; public abstract boolean getLowLatency() throws UnsupportedCommOperationException; public abstract boolean setCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException; public abstract boolean getCallOutHangup() throws UnsupportedCommOperationException; } ./rxtx-2.2pre2/src/gnu/io/RS485.java0000644000175000017500000003313510614033755016676 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; import java.lang.Math; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ final class RS485 extends RS485Port { static { System.loadLibrary( "rxtxRS485" ); Initialize(); } /** Initialize the native library */ private native static void Initialize(); /** Actual RS485Port wrapper class */ /** Open the named port */ public RS485( String name ) throws PortInUseException { fd = open( name ); } private native int open( String name ) throws PortInUseException; /** File descriptor */ private int fd; /** DSR flag **/ static boolean dsrFlag = false; /** Output stream */ private final RS485OutputStream out = new RS485OutputStream(); public OutputStream getOutputStream() { return out; } /** Input stream */ private final RS485InputStream in = new RS485InputStream(); public InputStream getInputStream() { return in; } /** Set the RS485Port parameters */ public void setRS485PortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { nativeSetRS485PortParams( b, d, s, p ); speed = b; dataBits = d; stopBits = s; parity = p; } /** Set the native RS485 port parameters */ private native void nativeSetRS485PortParams( int speed, int dataBits, int stopBits, int parity ) throws UnsupportedCommOperationException; /** Line speed in bits-per-second */ private int speed=9600; public int getBaudRate() { return speed; } /** Data bits port parameter */ private int dataBits=DATABITS_8; public int getDataBits() { return dataBits; } /** Stop bits port parameter */ private int stopBits=RS485Port.STOPBITS_1; public int getStopBits() { return stopBits; } /** Parity port parameter */ private int parity= RS485Port.PARITY_NONE; public int getParity() { return parity; } /** Flow control */ private int flowmode = RS485Port.FLOWCONTROL_NONE; public void setFlowControlMode( int flowcontrol ) { try { setflowcontrol( flowcontrol ); } catch( IOException e ) { e.printStackTrace(); return; } flowmode=flowcontrol; } public int getFlowControlMode() { return flowmode; } native void setflowcontrol( int flowcontrol ) throws IOException; /* linux/drivers/char/n_hdlc.c? FIXME taj@www.linux.org.uk */ /** Receive framing control */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { throw new UnsupportedCommOperationException( "Not supported" ); } public void disableReceiveFraming() {} public boolean isReceiveFramingEnabled() { return false; } public int getReceiveFramingByte() { return 0; } /** Receive timeout control */ private int timeout = 0; public native int NativegetReceiveTimeout(); public native boolean NativeisReceiveTimeoutEnabled(); public native void NativeEnableReceiveTimeoutThreshold(int time, int threshold,int InputBuffer); public void disableReceiveTimeout(){ enableReceiveTimeout(0); } public void enableReceiveTimeout( int time ){ if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { System.out.println("Invalid timeout"); } } public boolean isReceiveTimeoutEnabled(){ return(NativeisReceiveTimeoutEnabled()); } public int getReceiveTimeout(){ return(NativegetReceiveTimeout( )); } /** Receive threshold control */ private int threshold = 0; public void enableReceiveThreshold( int thresh ){ if(thresh >=0) { threshold=thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { System.out.println("Invalid Threshold"); } } public void disableReceiveThreshold() { enableReceiveThreshold(0); } public int getReceiveThreshold(){ return threshold; } public boolean isReceiveThresholdEnabled(){ return(threshold>0); } /** Input/output buffers */ /** FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... */ private int InputBuffer=0; private int OutputBuffer=0; public void setInputBufferSize( int size ) { InputBuffer=size; } public int getInputBufferSize() { return(InputBuffer); } public void setOutputBufferSize( int size ) { OutputBuffer=size; } public int getOutputBufferSize() { return(OutputBuffer); } /** Line status methods */ public native boolean isDTR(); public native void setDTR( boolean state ); public native void setRTS( boolean state ); private native void setDSR( boolean state ); public native boolean isCTS(); public native boolean isDSR(); public native boolean isCD(); public native boolean isRI(); public native boolean isRTS(); /** Write to the port */ public native void sendBreak( int duration ); private native void writeByte( int b ) throws IOException; private native void writeArray( byte b[], int off, int len ) throws IOException; private native void drain() throws IOException; /** RS485 read methods */ private native int nativeavailable() throws IOException; private native int readByte() throws IOException; private native int readArray( byte b[], int off, int len ) throws IOException; /** RS485 Port Event listener */ private RS485PortEventListener SPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process RS485PortEvents */ native void eventLoop(); private int dataAvailable=0; public void sendEvent( int event, boolean state ) { switch( event ) { case RS485PortEvent.DATA_AVAILABLE: dataAvailable=1; if( monThread.Data ) break; return; case RS485PortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return; /* if( monThread.DSR ) break; return; if (isDSR()) { if (!dsrFlag) { dsrFlag = true; RS485PortEvent e = new RS485PortEvent(this, RS485PortEvent.DSR, !dsrFlag, dsrFlag ); } } else if (dsrFlag) { dsrFlag = false; RS485PortEvent e = new RS485PortEvent(this, RS485PortEvent.DSR, !dsrFlag, dsrFlag ); } */ case RS485PortEvent.CTS: if( monThread.CTS ) break; return; case RS485PortEvent.DSR: if( monThread.DSR ) break; return; case RS485PortEvent.RI: if( monThread.RI ) break; return; case RS485PortEvent.CD: if( monThread.CD ) break; return; case RS485PortEvent.OE: if( monThread.OE ) break; return; case RS485PortEvent.PE: if( monThread.PE ) break; return; case RS485PortEvent.FE: if( monThread.FE ) break; return; case RS485PortEvent.BI: if( monThread.BI ) break; return; default: System.err.println("unknown event:"+event); return; } RS485PortEvent e = new RS485PortEvent(this, event, !state, state ); if( SPEventListener != null ) SPEventListener.RS485Event( e ); } /** Add an event listener */ public void addEventListener( RS485PortEventListener lsnr ) throws TooManyListenersException { if( SPEventListener != null ) throw new TooManyListenersException(); SPEventListener = lsnr; monThread = new MonitorThread(); monThread.start(); } /** Remove the RS485 port event listener */ public void removeEventListener() { SPEventListener = null; if( monThread != null ) { monThread.interrupt(); monThread = null; } } public void notifyOnDataAvailable( boolean enable ) { monThread.Data = enable; } public void notifyOnOutputEmpty( boolean enable ) { monThread.Output = enable; } public void notifyOnCTS( boolean enable ) { monThread.CTS = enable; } public void notifyOnDSR( boolean enable ) { monThread.DSR = enable; } public void notifyOnRingIndicator( boolean enable ) { monThread.RI = enable; } public void notifyOnCarrierDetect( boolean enable ) { monThread.CD = enable; } public void notifyOnOverrunError( boolean enable ) { monThread.OE = enable; } public void notifyOnParityError( boolean enable ) { monThread.PE = enable; } public void notifyOnFramingError( boolean enable ) { monThread.FE = enable; } public void notifyOnBreakInterrupt( boolean enable ) { monThread.BI = enable; } /** Close the port */ private native void nativeClose(); public void close() { setDTR(false); setDSR(false); nativeClose(); super.close(); fd = 0; } /** Finalize the port */ protected void finalize() { if( fd > 0 ) close(); } /** Inner class for RS485OutputStream */ class RS485OutputStream extends OutputStream { public void write( int b ) throws IOException { writeByte( b ); } public void write( byte b[] ) throws IOException { writeArray( b, 0, b.length ); } public void write( byte b[], int off, int len ) throws IOException { writeArray( b, off, len ); } public void flush() throws IOException { drain(); } } /** Inner class for RS485InputStream */ class RS485InputStream extends InputStream { public int read() throws IOException { dataAvailable=0; return readByte(); } public int read( byte b[] ) throws IOException { return read ( b, 0, b.length); } public int read( byte b[], int off, int len ) throws IOException { dataAvailable=0; int i=0, Minimum=0; int intArray[] = { b.length, InputBuffer, len }; /* find the lowest nonzero value timeout and threshold are handled on the native side see NativeEnableReceiveTimeoutThreshold in RS485Imp.c */ while(intArray[i]==0 && i < intArray.length) i++; Minimum=intArray[i]; while( i < intArray.length ) { if(intArray[i] > 0 ) { Minimum=Math.min(Minimum,intArray[i]); } i++; } Minimum=Math.min(Minimum,threshold); if(Minimum == 0) Minimum=1; int Available=available(); int Ret = readArray( b, off, Minimum); return Ret; } public int available() throws IOException { return nativeavailable(); } } class MonitorThread extends Thread { /** Note: these have to be separate boolean flags because the RS485PortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ private boolean CTS=false; private boolean DSR=false; private boolean RI=false; private boolean CD=false; private boolean OE=false; private boolean PE=false; private boolean FE=false; private boolean BI=false; private boolean Data=false; private boolean Output=false; MonitorThread() { } public void run() { eventLoop(); } } } ./rxtx-2.2pre2/src/gnu/io/CommPortIdentifier.java0000644000175000017500000004212111113576332021645 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.FileDescriptor; import java.util.HashMap; import java.util.Vector; import java.util.Enumeration; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class CommPortIdentifier extends Object /* extends Vector? */ { public static final int PORT_SERIAL = 1; // rs232 Port public static final int PORT_PARALLEL = 2; // Parallel Port public static final int PORT_I2C = 3; // i2c Port public static final int PORT_RS485 = 4; // rs485 Port public static final int PORT_RAW = 5; // Raw Port private String PortName; private boolean Available = true; private String Owner; private CommPort commport; private CommDriver RXTXDriver; static CommPortIdentifier CommPortIndex; CommPortIdentifier next; private int PortType; private final static boolean debug = false; static Object Sync; Vector ownershipListener; /*------------------------------------------------------------------------------ static {} aka initialization accept: - perform: load the rxtx driver return: - exceptions: Throwable comments: static block to initialize the class ------------------------------------------------------------------------------*/ // initialization only done once.... static { if(debug) System.out.println("CommPortIdentifier:static initialization()"); Sync = new Object(); try { CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance(); RXTXDriver.initialize(); } catch (Throwable e) { System.err.println(e + " thrown while loading " + "gnu.io.RXTXCommDriver"); } String OS; OS = System.getProperty("os.name"); if(OS.toLowerCase().indexOf("linux") == -1) { if (debug) System.out.println("Have not implemented native_psmisc_report_owner(PortName)); in CommPortIdentifier"); } System.loadLibrary( "rxtxSerial" ); } CommPortIdentifier ( String pn, CommPort cp, int pt, CommDriver driver) { PortName = pn; commport = cp; PortType = pt; next = null; RXTXDriver = driver; } /*------------------------------------------------------------------------------ addPortName() accept: Name of the port s, Port type, reverence to RXTXCommDriver. perform: place a new CommPortIdentifier in the linked list return: none. exceptions: none. comments: ------------------------------------------------------------------------------*/ public static void addPortName(String s, int type, CommDriver c) { if(debug) System.out.println("CommPortIdentifier:addPortName("+s+")"); AddIdentifierToList(new CommPortIdentifier(s, null, type, c)); } /*------------------------------------------------------------------------------ AddIdentifierToList() accept: The cpi to add to the list. perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ private static void AddIdentifierToList( CommPortIdentifier cpi) { if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList()"); synchronized (Sync) { if (CommPortIndex == null) { CommPortIndex = cpi; if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() null"); } else { CommPortIdentifier index = CommPortIndex; while (index.next != null) { index = index.next; if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() index.next"); } index.next = cpi; } } } /*------------------------------------------------------------------------------ addPortOwnershipListener() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public void addPortOwnershipListener(CommPortOwnershipListener c) { if(debug) System.out.println("CommPortIdentifier:addPortOwnershipListener()"); /* is the Vector instantiated? */ if( ownershipListener == null ) { ownershipListener = new Vector(); } /* is the ownership listener already in the list? */ if ( ownershipListener.contains(c) == false) { ownershipListener.addElement(c); } } /*------------------------------------------------------------------------------ getCurrentOwner() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public String getCurrentOwner() { if(debug) System.out.println("CommPortIdentifier:getCurrentOwner()"); return( Owner ); } /*------------------------------------------------------------------------------ getName() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public String getName() { if(debug) System.out.println("CommPortIdentifier:getName()"); return( PortName ); } /*------------------------------------------------------------------------------ getPortIdentifier() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index; synchronized (Sync) { index = CommPortIndex; while (index != null && !index.PortName.equals(s)) { index = index.next; } if (index == null) { /* This may slow things down but if you pass the string for the port after a device is plugged in, you can find it now. http://bugzilla.qbang.org/show_bug.cgi?id=48 */ getPortIdentifiers(); index = CommPortIndex; while (index != null && !index.PortName.equals(s)) { index = index.next; } } } if (index != null) return index; else { if ( debug ) System.out.println("not found!" + s); throw new NoSuchPortException(); } } /*------------------------------------------------------------------------------ getPortIdentifier() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException { if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(CommPort)"); CommPortIdentifier c; synchronized( Sync ) { c = CommPortIndex; while ( c != null && c.commport != p ) c = c.next; } if ( c != null ) return (c); if ( debug ) System.out.println("not found!" + p.getName()); throw new NoSuchPortException(); } /*------------------------------------------------------------------------------ getPortIdentifiers() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public Enumeration getPortIdentifiers() { if(debug) System.out.println("static CommPortIdentifier:getPortIdentifiers()"); //Do not allow anybody get any ports while we are re-initializing //because the CommPortIndex points to invalid instances during that time synchronized(Sync) { //Remember old ports in order to restore them for ownership events later HashMap oldPorts = new HashMap(); CommPortIdentifier p = CommPortIndex; while(p!=null) { oldPorts.put(p.PortName, p); p = p.next; } CommPortIndex = null; try { //Initialize RXTX: This leads to detecting all ports //and writing them into our CommPortIndex through our method //{@link #addPortName(java.lang.String, int, gnu.io.CommDriver)} //This works while lock on Sync is held CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance(); RXTXDriver.initialize(); //Restore old CommPortIdentifier objects where possible, //in order to support proper ownership event handling. //Clients might still have references to old identifiers! CommPortIdentifier curPort = CommPortIndex; CommPortIdentifier prevPort = null; while(curPort!=null) { CommPortIdentifier matchingOldPort = (CommPortIdentifier)oldPorts.get(curPort.PortName); if(matchingOldPort!=null && matchingOldPort.PortType == curPort.PortType) { //replace new port by old one matchingOldPort.RXTXDriver = curPort.RXTXDriver; matchingOldPort.next = curPort.next; if(prevPort==null) { CommPortIndex = matchingOldPort; } else { prevPort.next = matchingOldPort; } prevPort = matchingOldPort; } else { prevPort = curPort; } curPort = curPort.next; } } catch (Throwable e) { System.err.println(e + " thrown while loading " + "gnu.io.RXTXCommDriver"); System.err.flush(); } } return new CommPortEnumerator(); } /*------------------------------------------------------------------------------ getPortType() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public int getPortType() { if(debug) System.out.println("CommPortIdentifier:getPortType()"); return( PortType ); } /*------------------------------------------------------------------------------ isCurrentlyOwned() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public synchronized boolean isCurrentlyOwned() { if(debug) System.out.println("CommPortIdentifier:isCurrentlyOwned()"); return(!Available); } /*------------------------------------------------------------------------------ open() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public synchronized CommPort open(FileDescriptor f) throws UnsupportedCommOperationException { if(debug) System.out.println("CommPortIdentifier:open(FileDescriptor)"); throw new UnsupportedCommOperationException(); } private native String native_psmisc_report_owner(String PortName); /*------------------------------------------------------------------------------ open() accept: application making the call and milliseconds to block during open. perform: open the port if possible return: CommPort if successful exceptions: PortInUseException if in use. comments: ------------------------------------------------------------------------------*/ private boolean HideOwnerEvents; public CommPort open(String TheOwner, int i) throws gnu.io.PortInUseException { if(debug) System.out.println("CommPortIdentifier:open("+TheOwner + ", " +i+")"); boolean isAvailable; synchronized(this) { isAvailable = this.Available; if (isAvailable) { //assume ownership inside the synchronized block this.Available = false; this.Owner = TheOwner; } } if (!isAvailable) { long waitTimeEnd = System.currentTimeMillis() + i; //fire the ownership event outside the synchronized block fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED); long waitTimeCurr; synchronized(this) { while(!Available && (waitTimeCurr=System.currentTimeMillis()) < waitTimeEnd) { try { wait(waitTimeEnd - waitTimeCurr); } catch ( InterruptedException e ) { Thread.currentThread().interrupt(); break; } } isAvailable = this.Available; if (isAvailable) { //assume ownership inside the synchronized block this.Available = false; this.Owner = TheOwner; } } } if (!isAvailable) { throw new gnu.io.PortInUseException(getCurrentOwner()); } //At this point, the CommPortIdentifier is owned by us. try { if(commport == null) { commport = RXTXDriver.getCommPort(PortName,PortType); } if(commport != null) { fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNED); return commport; } else { throw new gnu.io.PortInUseException( native_psmisc_report_owner(PortName)); } } finally { if(commport == null) { //something went wrong reserving the commport -> unown the port synchronized(this) { this.Available = true; this.Owner = null; } } } } /*------------------------------------------------------------------------------ removePortOwnership() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public void removePortOwnershipListener(CommPortOwnershipListener c) { if(debug) System.out.println("CommPortIdentifier:removePortOwnershipListener()"); /* why is this called twice? */ if(ownershipListener != null) ownershipListener.removeElement(c); } /*------------------------------------------------------------------------------ internalClosePort() accept: None perform: clean up the Ownership information and send the event return: None exceptions: None comments: None ------------------------------------------------------------------------------*/ void internalClosePort() { synchronized(this) { if(debug) System.out.println("CommPortIdentifier:internalClosePort()"); Owner = null; Available = true; commport = null; /* this tosses null pointer?? */ notifyAll(); } fireOwnershipEvent(CommPortOwnershipListener.PORT_UNOWNED); } /*------------------------------------------------------------------------------ fireOwnershipEvent() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ void fireOwnershipEvent(int eventType) { if(debug) System.out.println("CommPortIdentifier:fireOwnershipEvent( " + eventType + " )"); if (ownershipListener != null) { CommPortOwnershipListener c; for ( Enumeration e = ownershipListener.elements(); e.hasMoreElements(); c.ownershipChange(eventType)) c = (CommPortOwnershipListener) e.nextElement(); } } } ./rxtx-2.2pre2/src/gnu/io/RS485PortEvent.java0000644000175000017500000001057610614033755020551 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class RS485PortEvent extends EventObject { public static final int DATA_AVAILABLE =1; public static final int OUTPUT_BUFFER_EMPTY =2; public static final int CTS =3; public static final int DSR =4; public static final int RI =5; public static final int CD =6; public static final int OE =7; public static final int PE =8; public static final int FE =9; public static final int BI =10; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public RS485PortEvent(RS485Port srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/src/gnu/io/RawPortEvent.java0000644000175000017500000001057010614033755020507 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class RawPortEvent extends EventObject { public static final int DATA_AVAILABLE =1; public static final int OUTPUT_BUFFER_EMPTY =2; public static final int CTS =3; public static final int DSR =4; public static final int RI =5; public static final int CD =6; public static final int OE =7; public static final int PE =8; public static final int FE =9; public static final int BI =10; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public RawPortEvent(RawPort srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/src/gnu/io/Zystem.java0000755000175000017500000002043710720136613017403 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.RandomAccessFile; public class Zystem { public static final int SILENT_MODE = 0; public static final int FILE_MODE = 1; public static final int NET_MODE = 2; public static final int MEX_MODE = 3; public static final int PRINT_MODE = 4; public static final int J2EE_MSG_MODE = 5; public static final int J2SE_LOG_MODE = 6; static int mode; static { /* The rxtxZystem library uses Python code and is not included with RXTX. A seperate library will be released to avoid potential license conflicts. Trent Jarvi taj@www.linux.org.uk */ //System.loadLibrary( "rxtxZystem" ); mode = SILENT_MODE; } private static String target; public Zystem( int m ) throws UnSupportedLoggerException { mode = m; startLogger( "asdf" ); } /** * Constructor. * Mode is taken from the java system property "gnu.io.log.mode". The available values are :

    *
  • SILENT_MODE No logging *
  • FILE_MODE log to file *
  • NET_MODE *
  • MEX_MODE *
  • PRINT_MODE *
  • J2EE_MSG_MODE *
  • J2SE_LOG_MODE log to java.util.logging *
*/ public Zystem () throws UnSupportedLoggerException { String s = System.getProperty ("gnu.io.log.mode"); if (s != null) { if ("SILENT_MODE".equals (s)) { mode = SILENT_MODE; } else if ("FILE_MODE".equals (s)) { mode = FILE_MODE; } else if ("NET_MODE".equals (s)) { mode = NET_MODE; } else if ("MEX_MODE".equals (s)) { mode = MEX_MODE; } else if ("PRINT_MODE".equals (s)) { mode = PRINT_MODE; } else if ("J2EE_MSG_MODE".equals (s)) { mode = J2EE_MSG_MODE; } else if ("J2SE_LOG_MODE".equals (s)) { mode = J2SE_LOG_MODE; } else { try { mode = Integer.parseInt (s); } catch (NumberFormatException e) { mode = SILENT_MODE; } } } else { mode = SILENT_MODE; } startLogger ("asdf"); } public void startLogger( ) throws UnSupportedLoggerException { if ( mode == SILENT_MODE || mode == PRINT_MODE ) { //nativeNetInit( ); return; } throw new UnSupportedLoggerException( "Target Not Allowed" ); } /* accept the host or file to log to. */ public void startLogger( String t ) throws UnSupportedLoggerException { target = t; /* if ( mode == NET_MODE ) { nativeNetInit( ); } if ( nativeInit( ) ) { throw new UnSupportedLoggerException( "Port initializion failed" ); } */ return; } public void finalize() { /* if ( mode == NET_MODE ) { nativeNetFinalize( ); } nativeFinalize(); */ mode = SILENT_MODE; target = null; } public void filewrite( String s ) { try { RandomAccessFile w = new RandomAccessFile( target, "rw" ); w.seek( w.length() ); w.writeBytes( s ); w.close(); } catch ( Exception e ) { System.out.println("Debug output file write failed"); } } public boolean report( String s) { if ( mode == NET_MODE ) { // return( nativeNetReportln( s ) ); } else if ( mode == PRINT_MODE ) { System.out.println( s ); return( true ); } else if ( mode == MEX_MODE ) { // return( nativeMexReport( s ) ); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( s ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } else if (mode == J2SE_LOG_MODE) { java.util.logging.Logger.getLogger ("gnu.io").fine (s); return (true); } return( false ); } public boolean reportln( ) { boolean b; if ( mode == NET_MODE ) { // b= nativeNetReportln( "\n" ); // return(b); } else if ( mode == PRINT_MODE ) { System.out.println( ); return( true ); } else if ( mode == MEX_MODE ) { // b = nativeMexReportln( "\n" ); // return(b); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( "\n" ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } return( false ); } public boolean reportln( String s) { boolean b; if ( mode == NET_MODE ) { // b= nativeNetReportln( s + "\n" ); // return(b); } else if ( mode == PRINT_MODE ) { System.out.println( s ); return( true ); } else if ( mode == MEX_MODE ) { // b = nativeMexReportln( s + "\n" ); // return(b); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( s + "\n" ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } else if (mode == J2SE_LOG_MODE) { return (true); } return( false ); } /* private native boolean nativeInit( ); private native void nativeFinalize(); */ /* open and close the socket */ /* private native boolean nativeNetInit( ); private native void nativeNetFinalize(); */ /* dumping to a remote machine */ /* public native boolean nativeNetReport( String s ); public native boolean nativeNetReportln( String s ); */ /* specific to Matlab */ /* public native boolean nativeMexReport( String s ); public native boolean nativeMexReportln( String s ); */ } ./rxtx-2.2pre2/src/gnu/io/LPRPort.java0000644000175000017500000002621310614033755017412 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; import java.util.TooManyListenersException; import java.lang.Math; /** * LPRPort */ final class LPRPort extends ParallelPort { static { System.loadLibrary( "rxtxParallel" ); Initialize(); } /** Initialize the native library */ private native static void Initialize(); private final static boolean debug = false; /** Open the named port */ public LPRPort( String name ) throws PortInUseException { if (debug) System.out.println("LPRPort:LPRPort("+name+")"); /* commapi/javadocs/API_users_guide.html specifies that whenever an application tries to open a port in use by another application the PortInUseException will be thrown I know some didnt like it this way but I'm not sure how to avoid it. We will just be writing to a bogus fd if we catch the exeption Trent */ // try { fd = open( name ); this.name = name; // } catch ( PortInUseException e ){} if (debug) System.out.println("LPRPort:LPRPort("+name+") fd = " + fd); } private synchronized native int open( String name ) throws PortInUseException; /** File descriptor */ private int fd; /** Output stream */ private final ParallelOutputStream out = new ParallelOutputStream(); public OutputStream getOutputStream() { return out; } /** Input stream */ private final ParallelInputStream in = new ParallelInputStream(); public InputStream getInputStream() { return in; } /** return current mode LPT_MODE_SPP, LPT_MODE_PS2, LPT_MODE_EPP, or LPT_MODE_ECP */ private int lprmode=LPT_MODE_ANY; public int getMode() { return lprmode; } public int setMode(int mode) throws UnsupportedCommOperationException { try { setLPRMode(mode); } catch(UnsupportedCommOperationException e) { e.printStackTrace(); return -1; } lprmode = mode; return(0); } public void restart() { System.out.println("restart() is not implemented"); } public void suspend() { System.out.println("suspend() is not implemented"); } public native boolean setLPRMode(int mode) throws UnsupportedCommOperationException; public native boolean isPaperOut(); public native boolean isPrinterBusy(); public native boolean isPrinterError(); public native boolean isPrinterSelected(); public native boolean isPrinterTimedOut(); /** Close the port */ private native void nativeClose(); public synchronized void close() { if( fd < 0 ) return; nativeClose(); super.close(); removeEventListener(); fd = 0; Runtime.getRuntime().gc(); } /** Receive framing control */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { throw new UnsupportedCommOperationException( "Not supported" ); } public void disableReceiveFraming() {} public boolean isReceiveFramingEnabled() { return false; } public int getReceiveFramingByte() { return 0; } /** Receive timeout control */ private int timeout = 0; public void enableReceiveTimeout( int t ) { if( t > 0 ) timeout = t; else timeout = 0; } public void disableReceiveTimeout() { timeout = 0; } public boolean isReceiveTimeoutEnabled() { return timeout > 0; } public int getReceiveTimeout() { return timeout; } /** Receive threshold control */ private int threshold = 1; public void enableReceiveThreshold( int t ) { if( t > 1 ) threshold = t; else threshold = 1; } public void disableReceiveThreshold() { threshold = 1; } public int getReceiveThreshold() { return threshold; } public boolean isReceiveThresholdEnabled() { return threshold > 1; }; /** Input/output buffers These are native stubs... */ public native void setInputBufferSize( int size ); public native int getInputBufferSize(); public native void setOutputBufferSize( int size ); public native int getOutputBufferSize(); public native int getOutputBufferFree(); /** Write to the port */ protected native void writeByte( int b ) throws IOException; protected native void writeArray( byte b[], int off, int len ) throws IOException; protected native void drain() throws IOException; /** LPRPort read methods */ protected native int nativeavailable() throws IOException; protected native int readByte() throws IOException; protected native int readArray( byte b[], int off, int len ) throws IOException; /** Parallel Port Event listener */ private ParallelPortEventListener PPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process ParallelPortEvents */ native void eventLoop(); public boolean checkMonitorThread() { if(monThread != null) return monThread.isInterrupted(); return(true); } public synchronized boolean sendEvent( int event, boolean state ) { /* Let the native side know its time to die */ if ( fd == 0 || PPEventListener == null || monThread == null ) { return(true); } switch( event ) { case ParallelPortEvent.PAR_EV_BUFFER: if( monThread.monBuffer ) break; return(false); case ParallelPortEvent.PAR_EV_ERROR: if( monThread.monError ) break; return(false); default: System.err.println("unknown event:"+event); return(false); } ParallelPortEvent e = new ParallelPortEvent(this, event, !state, state ); if( PPEventListener != null ) PPEventListener.parallelEvent( e ); if ( fd == 0 || PPEventListener == null || monThread == null ) { return(true); } else { try{Thread.sleep(50);} catch(Exception exc){} return(false); } } /** Add an event listener */ public synchronized void addEventListener( ParallelPortEventListener lsnr ) throws TooManyListenersException { if( PPEventListener != null ) throw new TooManyListenersException(); PPEventListener = lsnr; monThread = new MonitorThread(); monThread.start(); } /** Remove the parallel port event listener */ public synchronized void removeEventListener() { PPEventListener = null; if( monThread != null ) { monThread.interrupt(); monThread = null; } } /** Note: these have to be separate boolean flags because the ParallelPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ public synchronized void notifyOnError( boolean enable ) { System.out.println("notifyOnError is not implemented yet"); monThread.monError = enable; } public synchronized void notifyOnBuffer( boolean enable ) { System.out.println("notifyOnBuffer is not implemented yet"); monThread.monBuffer = enable; } /** Finalize the port */ protected void finalize() { if ( fd > 0 ) close(); } /** Inner class for ParallelOutputStream */ class ParallelOutputStream extends OutputStream { public synchronized void write( int b ) throws IOException { if ( fd == 0 ) throw new IOException(); writeByte( b ); } public synchronized void write( byte b[] ) throws IOException { if ( fd == 0 ) throw new IOException(); writeArray( b, 0, b.length ); } public synchronized void write( byte b[], int off, int len ) throws IOException { if ( fd == 0 ) throw new IOException(); writeArray( b, off, len ); } public synchronized void flush() throws IOException { if ( fd == 0 ) throw new IOException(); //drain(); } } /** Inner class for ParallelInputStream */ class ParallelInputStream extends InputStream { public int read() throws IOException { if ( fd == 0 ) throw new IOException(); return readByte(); } public int read( byte b[] ) throws IOException { if ( fd == 0 ) throw new IOException(); return readArray( b, 0, b.length ); } public int read( byte b[], int off, int len ) throws IOException { if ( fd == 0 ) throw new IOException(); return readArray( b, off, len ); } public int available() throws IOException { if ( fd == 0 ) throw new IOException(); return nativeavailable(); } } class MonitorThread extends Thread { private boolean monError = false; private boolean monBuffer = false; MonitorThread() { } public void run() { eventLoop(); yield(); } } } ./rxtx-2.2pre2/src/gnu/io/I2C.java0000644000175000017500000003300610614033755016463 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; import java.lang.Math; /** * @author Trent Jarvi * @version, * @since JDK1.0 */ /** * I2C */ final class I2C extends I2CPort { static { System.loadLibrary( "rxtxI2C" ); Initialize(); } /** Initialize the native library */ private native static void Initialize(); /** Actual I2CPort wrapper class */ /** Open the named port */ public I2C( String name ) throws PortInUseException { fd = open( name ); } private native int open( String name ) throws PortInUseException; /** File descriptor */ private int fd; /** DSR flag **/ static boolean dsrFlag = false; /** Output stream */ private final I2COutputStream out = new I2COutputStream(); public OutputStream getOutputStream() { return out; } /** Input stream */ private final I2CInputStream in = new I2CInputStream(); public InputStream getInputStream() { return in; } /** Set the I2CPort parameters */ public void setI2CPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { nativeSetI2CPortParams( b, d, s, p ); speed = b; dataBits = d; stopBits = s; parity = p; } /** Set the native I2C port parameters */ private native void nativeSetI2CPortParams( int speed, int dataBits, int stopBits, int parity ) throws UnsupportedCommOperationException; /** Line speed in bits-per-second */ private int speed=9600; public int getBaudRate() { return speed; } /** Data bits port parameter */ private int dataBits=DATABITS_8; public int getDataBits() { return dataBits; } /** Stop bits port parameter */ private int stopBits=I2CPort.STOPBITS_1; public int getStopBits() { return stopBits; } /** Parity port parameter */ private int parity= I2CPort.PARITY_NONE; public int getParity() { return parity; } /** Flow control */ private int flowmode = I2CPort.FLOWCONTROL_NONE; public void setFlowControlMode( int flowcontrol ) { try { setflowcontrol( flowcontrol ); } catch( IOException e ) { e.printStackTrace(); return; } flowmode=flowcontrol; } public int getFlowControlMode() { return flowmode; } native void setflowcontrol( int flowcontrol ) throws IOException; /* linux/drivers/char/n_hdlc.c? FIXME taj@www.linux.org.uk */ /** Receive framing control */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { throw new UnsupportedCommOperationException( "Not supported" ); } public void disableReceiveFraming() {} public boolean isReceiveFramingEnabled() { return false; } public int getReceiveFramingByte() { return 0; } /** Receive timeout control */ private int timeout = 0; public native int NativegetReceiveTimeout(); public native boolean NativeisReceiveTimeoutEnabled(); public native void NativeEnableReceiveTimeoutThreshold(int time, int threshold,int InputBuffer); public void disableReceiveTimeout(){ enableReceiveTimeout(0); } public void enableReceiveTimeout( int time ){ if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { System.out.println("Invalid timeout"); } } public boolean isReceiveTimeoutEnabled(){ return(NativeisReceiveTimeoutEnabled()); } public int getReceiveTimeout(){ return(NativegetReceiveTimeout( )); } /** Receive threshold control */ private int threshold = 0; public void enableReceiveThreshold( int thresh ){ if(thresh >=0) { threshold=thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { System.out.println("Invalid Threshold"); } } public void disableReceiveThreshold() { enableReceiveThreshold(0); } public int getReceiveThreshold(){ return threshold; } public boolean isReceiveThresholdEnabled(){ return(threshold>0); } /** Input/output buffers */ /** FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... */ private int InputBuffer=0; private int OutputBuffer=0; public void setInputBufferSize( int size ) { InputBuffer=size; } public int getInputBufferSize() { return(InputBuffer); } public void setOutputBufferSize( int size ) { OutputBuffer=size; } public int getOutputBufferSize() { return(OutputBuffer); } /** Line status methods */ public native boolean isDTR(); public native void setDTR( boolean state ); public native void setRTS( boolean state ); private native void setDSR( boolean state ); public native boolean isCTS(); public native boolean isDSR(); public native boolean isCD(); public native boolean isRI(); public native boolean isRTS(); /** Write to the port */ public native void sendBreak( int duration ); private native void writeByte( int b ) throws IOException; private native void writeArray( byte b[], int off, int len ) throws IOException; private native void drain() throws IOException; /** I2C read methods */ private native int nativeavailable() throws IOException; private native int readByte() throws IOException; private native int readArray( byte b[], int off, int len ) throws IOException; /** I2C Port Event listener */ private I2CPortEventListener SPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process I2CPortEvents */ native void eventLoop(); private int dataAvailable=0; public void sendEvent( int event, boolean state ) { switch( event ) { case I2CPortEvent.DATA_AVAILABLE: dataAvailable=1; if( monThread.Data ) break; return; case I2CPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return; /* if( monThread.DSR ) break; return; if (isDSR()) { if (!dsrFlag) { dsrFlag = true; I2CPortEvent e = new I2CPortEvent(this, I2CPortEvent.DSR, !dsrFlag, dsrFlag ); } } else if (dsrFlag) { dsrFlag = false; I2CPortEvent e = new I2CPortEvent(this, I2CPortEvent.DSR, !dsrFlag, dsrFlag ); } */ case I2CPortEvent.CTS: if( monThread.CTS ) break; return; case I2CPortEvent.DSR: if( monThread.DSR ) break; return; case I2CPortEvent.RI: if( monThread.RI ) break; return; case I2CPortEvent.CD: if( monThread.CD ) break; return; case I2CPortEvent.OE: if( monThread.OE ) break; return; case I2CPortEvent.PE: if( monThread.PE ) break; return; case I2CPortEvent.FE: if( monThread.FE ) break; return; case I2CPortEvent.BI: if( monThread.BI ) break; return; default: System.err.println("unknown event:"+event); return; } I2CPortEvent e = new I2CPortEvent(this, event, !state, state ); if( SPEventListener != null ) SPEventListener.I2CEvent( e ); } /** Add an event listener */ public void addEventListener( I2CPortEventListener lsnr ) throws TooManyListenersException { if( SPEventListener != null ) throw new TooManyListenersException(); SPEventListener = lsnr; monThread = new MonitorThread(); monThread.start(); } /** Remove the I2C port event listener */ public void removeEventListener() { SPEventListener = null; if( monThread != null ) { monThread.interrupt(); monThread = null; } } public void notifyOnDataAvailable( boolean enable ) { monThread.Data = enable; } public void notifyOnOutputEmpty( boolean enable ) { monThread.Output = enable; } public void notifyOnCTS( boolean enable ) { monThread.CTS = enable; } public void notifyOnDSR( boolean enable ) { monThread.DSR = enable; } public void notifyOnRingIndicator( boolean enable ) { monThread.RI = enable; } public void notifyOnCarrierDetect( boolean enable ) { monThread.CD = enable; } public void notifyOnOverrunError( boolean enable ) { monThread.OE = enable; } public void notifyOnParityError( boolean enable ) { monThread.PE = enable; } public void notifyOnFramingError( boolean enable ) { monThread.FE = enable; } public void notifyOnBreakInterrupt( boolean enable ) { monThread.BI = enable; } /** Close the port */ private native void nativeClose(); public void close() { setDTR(false); setDSR(false); nativeClose(); super.close(); fd = 0; } /** Finalize the port */ protected void finalize() { if( fd > 0 ) close(); } /** Inner class for I2COutputStream */ class I2COutputStream extends OutputStream { public void write( int b ) throws IOException { writeByte( b ); } public void write( byte b[] ) throws IOException { writeArray( b, 0, b.length ); } public void write( byte b[], int off, int len ) throws IOException { writeArray( b, off, len ); } public void flush() throws IOException { drain(); } } /** Inner class for I2CInputStream */ class I2CInputStream extends InputStream { public int read() throws IOException { dataAvailable=0; return readByte(); } public int read( byte b[] ) throws IOException { return read ( b, 0, b.length); } public int read( byte b[], int off, int len ) throws IOException { dataAvailable=0; int i=0, Minimum=0; int intArray[] = { b.length, InputBuffer, len }; /* find the lowest nonzero value timeout and threshold are handled on the native side see NativeEnableReceiveTimeoutThreshold in I2CImp.c */ while(intArray[i]==0 && i < intArray.length) i++; Minimum=intArray[i]; while( i < intArray.length ) { if(intArray[i] > 0 ) { Minimum=Math.min(Minimum,intArray[i]); } i++; } Minimum=Math.min(Minimum,threshold); if(Minimum == 0) Minimum=1; int Available=available(); int Ret = readArray( b, off, Minimum); return Ret; } public int available() throws IOException { return nativeavailable(); } } class MonitorThread extends Thread { /** Note: these have to be separate boolean flags because the I2CPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ private boolean CTS=false; private boolean DSR=false; private boolean RI=false; private boolean CD=false; private boolean OE=false; private boolean PE=false; private boolean FE=false; private boolean BI=false; private boolean Data=false; private boolean Output=false; MonitorThread() { } public void run() { eventLoop(); } } } ./rxtx-2.2pre2/src/gnu/io/PortInUseException.java0000644000175000017500000000734210614033755021661 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * The port requested is currently in use * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class PortInUseException extends Exception { /** the owner of the port requested. */ public String currentOwner; /** * create a instance of the Exception and store the current owner * * @param str detailed information about the current owner */ PortInUseException( String str ) { super( str ); currentOwner=str; } public PortInUseException() { super(); } } ./rxtx-2.2pre2/src/gnu/io/RawPort.java0000644000175000017500000001126510614033755017507 0ustar twernertwerner/* Non functional contact tjarvi@qbang.org for details */ /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ abstract class RawPort extends CommPort { public static final int DATABITS_5 =5; public static final int DATABITS_6 =6; public static final int DATABITS_7 =7; public static final int DATABITS_8 =8; public static final int PARITY_NONE =0; public static final int PARITY_ODD =1; public static final int PARITY_EVEN =2; public static final int PARITY_MARK =3; public static final int PARITY_SPACE =4; public static final int STOPBITS_1 =1; public static final int STOPBITS_1_5 =0; //wrong public static final int STOPBITS_2 =2; public static final int FLOWCONTROL_NONE =0; public static final int FLOWCONTROL_RTSCTS_IN =1; public static final int FLOWCONTROL_RTSCTS_OUT =2; public static final int FLOWCONTROL_XONXOFF_IN =4; public static final int FLOWCONTROL_XONXOFF_OUT=8; public static final int WRITE_SIZE =8; public static final int IO_PORT =0x378; public abstract void setRawPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException; public abstract void addEventListener( RawPortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); } ./rxtx-2.2pre2/src/gnu/io/ParallelPortEvent.java0000644000175000017500000000770010614033755021513 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class ParallelPortEvent extends EventObject { static public final int PAR_EV_ERROR =1; static public final int PAR_EV_BUFFER =2; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public ParallelPortEvent(ParallelPort srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/src/gnu/io/CVS/0000755000175000017500000000000011142441020015655 5ustar twernertwerner./rxtx-2.2pre2/src/gnu/io/CVS/Tag0000644000175000017500000000001711126534474016333 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/src/gnu/io/CVS/Root0000644000175000017500000000007511126534472016545 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/src/gnu/io/CVS/Entries0000644000175000017500000000443111142441020017213 0ustar twernertwerner/CommDriver.java/1.2.2.7/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommPort.java/1.3.2.10/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /CommPortEnumerator.java/1.3.2.15/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /CommPortIdentifier.java/1.7.2.29/Thu Nov 27 20:02:34 2008//Tcommapi-0-0-1 /CommPortOwnershipListener.java/1.3.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /Configure.java/1.1.2.7/Sun Nov 18 22:32:41 2007//Tcommapi-0-0-1 /I2C.java/1.1.2.11/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /I2CPort.java/1.3.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /I2CPortEvent.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /I2CPortEventListener.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /LPRPort.java/1.10.2.19/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /NoSuchPortException.java/1.2.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /ParallelPort.java/1.2.2.9/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /ParallelPortEvent.java/1.3.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /ParallelPortEventListener.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /PortInUseException.java/1.2.2.9/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485.java/1.1.2.9/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485Port.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485PortEvent.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485PortEventListener.java/1.3.2.7/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RXTXCommDriver.java/1.16.2.61/Fri Nov 14 00:44:01 2008//Tcommapi-0-0-1 /RXTXPort.java/1.27.2.76/Thu Nov 13 23:37:45 2008//Tcommapi-0-0-1 /Raw.java/1.1.2.17/Sun Sep 14 22:29:30 2008//Tcommapi-0-0-1 /RawPort.java/1.1.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RawPortEvent.java/1.1.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RawPortEventListener.java/1.1.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /SerialPort.java/1.3.2.11/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /SerialPortEvent.java/1.3.2.7/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /SerialPortEventListener.java/1.2.2.7/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /UnSupportedLoggerException.java/1.1.2.3/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /UnsupportedCommOperationException.java/1.2.2.7/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /Zystem.java/1.1.2.4/Sun Nov 18 22:32:43 2007//Tcommapi-0-0-1 /RXTXVersion.java/1.2.2.37/Wed Feb 4 22:02:55 2009//Tcommapi-0-0-1 D ./rxtx-2.2pre2/src/gnu/io/CVS/Repository0000644000175000017500000000002611126534472017775 0ustar twernertwernerrxtx-devel/src/gnu/io ./rxtx-2.2pre2/src/gnu/io/RXTXPort.java0000644000175000017500000016315311107135111017552 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2008 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; import java.util.TooManyListenersException; import java.lang.Math; /** * An extension of gnu.io.SerialPort * @see gnu.io.SerialPort */ final public class RXTXPort extends SerialPort { /* I had a report that some JRE's complain when MonitorThread tries to access private variables */ protected final static boolean debug = false; protected final static boolean debug_read = false; protected final static boolean debug_read_results = false; protected final static boolean debug_write = false; protected final static boolean debug_events = false; protected final static boolean debug_verbose = false; private static Zystem z; static { try { z = new Zystem(); } catch ( Exception e ) {} if(debug ) z.reportln( "RXTXPort {}"); System.loadLibrary( "rxtxSerial" ); Initialize(); } /** Initialize the native library */ private native static void Initialize(); boolean MonitorThreadAlive=false; /** * Open the named port * @param name the name of the device to open * @throws PortInUseException * @see gnu.io.SerialPort */ public RXTXPort( String name ) throws PortInUseException { if (debug) z.reportln( "RXTXPort:RXTXPort("+name+") called"); /* commapi/javadocs/API_users_guide.html specifies that whenever an application tries to open a port in use by another application the PortInUseException will be thrown I know some didnt like it this way but I'm not sure how to avoid it. We will just be writing to a bogus fd if we catch the exeption Trent */ // try { fd = open( name ); this.name = name; MonitorThreadLock = true; monThread = new MonitorThread(); monThread.start(); waitForTheNativeCodeSilly(); MonitorThreadAlive=true; // } catch ( PortInUseException e ){} timeout = -1; /* default disabled timeout */ if (debug) z.reportln( "RXTXPort:RXTXPort("+name+") returns with fd = " + fd); } private native synchronized int open( String name ) throws PortInUseException; /* dont close the file while accessing the fd */ int IOLocked = 0; Object IOLockedMutex = new Object(); /** File descriptor */ private int fd = 0; /** a pointer to the event info structure used to share information between threads so write threads can send output buffer empty from a pthread if need be. long for 64 bit pointers. */ long eis = 0; /** pid for lock files */ int pid = 0; /** DSR flag **/ static boolean dsrFlag = false; /** Output stream */ private final SerialOutputStream out = new SerialOutputStream(); /** * get the OutputStream * @return OutputStream */ public OutputStream getOutputStream() { if (debug) z.reportln( "RXTXPort:getOutputStream() called and returning"); return out; } /** Input stream */ private final SerialInputStream in = new SerialInputStream(); /** * get the InputStream * @return InputStream * @see java.io.InputStream */ public InputStream getInputStream() { if (debug) z.reportln( "RXTXPort:getInputStream() called and returning"); return in; } /** * Set the SerialPort parameters * 1.5 stop bits requires 5 databits * @param b baudrate * @param d databits * @param s stopbits * @param p parity * @throws UnsupportedCommOperationException * @see gnu.io.UnsupportedCommOperationException * If speed is not a predifined speed it is assumed to be * the actual speed desired. */ private native int nativeGetParity( int fd ); private native int nativeGetFlowControlMode( int fd ); public synchronized void setSerialPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { if (debug) z.reportln( "RXTXPort:setSerialPortParams(" + b + " " + d + " " + s + " " + p + ") called"); if ( nativeSetSerialPortParams( b, d, s, p ) ) throw new UnsupportedCommOperationException( "Invalid Parameter" ); speed = b; if( s== STOPBITS_1_5 ) dataBits = DATABITS_5; else dataBits = d; stopBits = s; parity = p; z.reportln( "RXTXPort:setSerialPortParams(" + b + " " + d + " " + s + " " + p + ") returning"); } /** * Set the native serial port parameters * If speed is not a predifined speed it is assumed to be * the actual speed desired. */ private native boolean nativeSetSerialPortParams( int speed, int dataBits, int stopBits, int parity ) throws UnsupportedCommOperationException; /** Line speed in bits-per-second */ private int speed=9600; /** * @return int representing the baudrate * This will not behave as expected with custom speeds */ public int getBaudRate() { if (debug) z.reportln( "RXTXPort:getBaudRate() called and returning " + speed); return speed; } /** Data bits port parameter */ private int dataBits=DATABITS_8; /** * @return int representing the databits */ public int getDataBits() { if (debug) z.reportln( "RXTXPort:getDataBits() called and returning " + dataBits); return dataBits; } /** Stop bits port parameter */ private int stopBits=SerialPort.STOPBITS_1; /** * @return int representing the stopbits */ public int getStopBits() { if (debug) z.reportln( "RXTXPort:getStopBits() called and returning " + stopBits); return stopBits; } /** Parity port parameter */ private int parity= SerialPort.PARITY_NONE; /** * @return int representing the parity */ public int getParity() { if (debug) z.reportln( "RXTXPort:getParity() called and returning " + parity ); return parity; } /** Flow control */ private int flowmode = SerialPort.FLOWCONTROL_NONE; /** * @param flowcontrol FLOWCONTROL_NONE is default * @see gnu.io.SerialPort#FLOWCONTROL_NONE */ public void setFlowControlMode( int flowcontrol ) { if (debug) z.reportln( "RXTXPort:setFlowControlMode( " + flowcontrol + " ) called"); if(monThreadisInterrupted) { if( debug_events ) z.reportln( "RXTXPort:setFlowControlMode MonThread is Interrupeted returning" ); return; } try { setflowcontrol( flowcontrol ); } catch( IOException e ) { e.printStackTrace(); return; } flowmode=flowcontrol; if (debug) z.reportln( "RXTXPort:setFlowControlMode( " + flowcontrol + " ) returning"); } /** * @return int representing the flowmode */ public int getFlowControlMode() { if (debug) z.reportln( "RXTXPort:getFlowControlMode() returning " + flowmode ); return flowmode; } native void setflowcontrol( int flowcontrol ) throws IOException; /* linux/drivers/char/n_hdlc.c? FIXME taj@www.linux.org.uk */ /** * Receive framing control * @param f framming * @throws UnsupportedCommOperationException */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { if (debug) z.reportln( "RXTXPort:enableReceiveFramming() throwing exception"); throw new UnsupportedCommOperationException( "Not supported" ); } /** */ public void disableReceiveFraming() { if (debug) z.reportln( "RXTXPort:disableReceiveFramming() called and returning (noop)"); } /** * @return true if framing is enabled */ public boolean isReceiveFramingEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveFrammingEnabled() called and returning " + false ); return false; } /** * @return int representing the framing byte */ public int getReceiveFramingByte() { if (debug) z.reportln( "RXTXPort:getReceiveFrammingByte() called and returning " + 0 ); return 0; } /** Receive timeout control */ private int timeout; /** * @return int the timeout */ public native int NativegetReceiveTimeout(); /** * @return bloolean true if recieve timeout is enabled */ private native boolean NativeisReceiveTimeoutEnabled(); /** * @param time * @param threshold * @param InputBuffer */ private native void NativeEnableReceiveTimeoutThreshold(int time, int threshold,int InputBuffer); /** */ public void disableReceiveTimeout() { if (debug) z.reportln( "RXTXPort:disableReceiveTimeout() called"); timeout = -1; NativeEnableReceiveTimeoutThreshold( timeout , threshold, InputBuffer ); if (debug) z.reportln( "RXTXPort:disableReceiveTimeout() returning"); } /** * @param time */ public void enableReceiveTimeout( int time ) { if (debug) z.reportln( "RXTXPort:enableReceiveTimeout() called"); if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { throw new IllegalArgumentException ( "Unexpected negative timeout value" ); } if (debug) z.reportln( "RXTXPort:enableReceiveTimeout() returning"); } /** * @return boolean true if recieve timeout is enabled */ public boolean isReceiveTimeoutEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveTimeoutEnabled() called and returning " + NativeisReceiveTimeoutEnabled() ); return( NativeisReceiveTimeoutEnabled() ); } /** * @return int the timeout */ public int getReceiveTimeout() { if (debug) z.reportln( "RXTXPort:getReceiveTimeout() called and returning " + NativegetReceiveTimeout() ); return(NativegetReceiveTimeout( )); } /** Receive threshold control */ private int threshold = 0; /** * @param thresh threshold */ public void enableReceiveThreshold( int thresh ) { if (debug) z.reportln( "RXTXPort:enableReceiveThreshold( " + thresh + " ) called"); if(thresh >=0) { threshold=thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { throw new IllegalArgumentException ( "Unexpected negative threshold value" ); } if (debug) z.reportln( "RXTXPort:enableReceiveThreshold( " + thresh + " ) returned"); } /** */ public void disableReceiveThreshold() { if (debug) z.reportln( "RXTXPort:disableReceiveThreshold() called and returning"); enableReceiveThreshold(0); } /** * @return int the recieve threshold */ public int getReceiveThreshold() { if (debug) z.reportln( "RXTXPort:getReceiveThreshold() called and returning " + threshold); return threshold; } /** * @return boolean true if receive threshold is enabled */ public boolean isReceiveThresholdEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveThresholdEnable() called and returning" + (threshold > 0) ); return(threshold>0); } /** Input/output buffers */ /** FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... */ private int InputBuffer=0; private int OutputBuffer=0; /** * @param size */ public void setInputBufferSize( int size ) { if (debug) z.reportln( "RXTXPort:setInputBufferSize( " + size + ") called"); if( size < 0 ) throw new IllegalArgumentException ( "Unexpected negative buffer size value" ); else InputBuffer=size; if (debug) z.reportln( "RXTXPort:setInputBufferSize( " + size + ") returning"); } /** */ public int getInputBufferSize() { if (debug) z.reportln( "RXTXPort:getInputBufferSize() called and returning " + InputBuffer ); return(InputBuffer); } /** * @param size */ public void setOutputBufferSize( int size ) { if (debug) z.reportln( "RXTXPort:setOutputBufferSize( " + size + ") called"); if( size < 0 ) throw new IllegalArgumentException ( "Unexpected negative buffer size value" ); else OutputBuffer=size; if (debug) z.reportln( "RXTXPort:setOutputBufferSize( " + size + ") returned"); } /** * @return in the output buffer size */ public int getOutputBufferSize() { if (debug) z.reportln( "RXTXPort:getOutputBufferSize() called and returning " + OutputBuffer ); return(OutputBuffer); } /* =================== cleaned messages to here */ /** * Line status methods */ /** * @return true if DTR is set */ public native boolean isDTR(); /** * @param state */ public native void setDTR( boolean state ); /** * @param state */ public native void setRTS( boolean state ); private native void setDSR( boolean state ); /** * @return boolean true if CTS is set */ public native boolean isCTS(); /** * @return boolean true if DSR is set */ public native boolean isDSR(); /** * @return boolean true if CD is set */ public native boolean isCD(); /** * @return boolean true if RI is set */ public native boolean isRI(); /** * @return boolean true if RTS is set */ public native boolean isRTS(); /** * Write to the port * @param duration */ public native void sendBreak( int duration ); protected native void writeByte( int b, boolean i ) throws IOException; protected native void writeArray( byte b[], int off, int len, boolean i ) throws IOException; protected native boolean nativeDrain( boolean i ) throws IOException; /** RXTXPort read methods */ protected native int nativeavailable() throws IOException; protected native int readByte() throws IOException; protected native int readArray( byte b[], int off, int len ) throws IOException; protected native int readTerminatedArray( byte b[], int off, int len, byte t[] ) throws IOException; /** Serial Port Event listener */ private SerialPortEventListener SPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process SerialPortEvents */ native void eventLoop(); /** * @return boolean true if monitor thread is interrupted */ boolean monThreadisInterrupted=true; private native void interruptEventLoop( ); public boolean checkMonitorThread() { if (debug) z.reportln( "RXTXPort:checkMonitorThread()"); if(monThread != null) { if ( debug ) z.reportln( "monThreadisInterrupted = " + monThreadisInterrupted ); return monThreadisInterrupted; } if ( debug ) z.reportln( "monThread is null " ); return(true); } /** * @param event * @param state * @return boolean true if the port is closing */ public boolean sendEvent( int event, boolean state ) { if (debug_events) z.report( "RXTXPort:sendEvent("); /* Let the native side know its time to die */ if ( fd == 0 || SPEventListener == null || monThread == null) { return(true); } switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( debug_events ) z.reportln( "DATA_AVAILABLE " + monThread.Data + ")" ); break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( debug_events ) z.reportln( "OUTPUT_BUFFER_EMPTY " + monThread.Output + ")" ); break; case SerialPortEvent.CTS: if( debug_events ) z.reportln( "CTS " + monThread.CTS + ")" ); break; case SerialPortEvent.DSR: if( debug_events ) z.reportln( "DSR " + monThread.Output + ")" ); break; case SerialPortEvent.RI: if( debug_events ) z.reportln( "RI " + monThread.RI + ")" ); break; case SerialPortEvent.CD: if( debug_events ) z.reportln( "CD " + monThread.CD + ")" ); break; case SerialPortEvent.OE: if( debug_events ) z.reportln( "OE " + monThread.OE + ")" ); break; case SerialPortEvent.PE: if( debug_events ) z.reportln( "PE " + monThread.PE + ")" ); break; case SerialPortEvent.FE: if( debug_events ) z.reportln( "FE " + monThread.FE + ")" ); break; case SerialPortEvent.BI: if( debug_events ) z.reportln( "BI " + monThread.BI + ")" ); break; default: if( debug_events ) z.reportln( "XXXXXXXXXXXXXX " + event + ")" ); break; } if( debug_events && debug_verbose ) z.reportln( " checking flags " ); switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( monThread.Data ) break; return(false); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return(false); case SerialPortEvent.CTS: if( monThread.CTS ) break; return(false); case SerialPortEvent.DSR: if( monThread.DSR ) break; return(false); case SerialPortEvent.RI: if( monThread.RI ) break; return(false); case SerialPortEvent.CD: if( monThread.CD ) break; return(false); case SerialPortEvent.OE: if( monThread.OE ) break; return(false); case SerialPortEvent.PE: if( monThread.PE ) break; return(false); case SerialPortEvent.FE: if( monThread.FE ) break; return(false); case SerialPortEvent.BI: if( monThread.BI ) break; return(false); default: System.err.println( "unknown event: " + event); return(false); } if( debug_events && debug_verbose ) z.reportln( " getting event" ); SerialPortEvent e = new SerialPortEvent(this, event, !state, state ); if( debug_events && debug_verbose ) z.reportln( " sending event" ); if(monThreadisInterrupted) { if( debug_events ) z.reportln( " sendEvent return" ); return(true); } if( SPEventListener != null ) { SPEventListener.serialEvent( e ); } if( debug_events && debug_verbose ) z.reportln( " sendEvent return" ); if (fd == 0 || SPEventListener == null || monThread == null) { return(true); } else { return(false); } } /** * Add an event listener * @param lsnr SerialPortEventListener * @throws TooManyListenersException */ boolean MonitorThreadLock = true; public void addEventListener( SerialPortEventListener lsnr ) throws TooManyListenersException { /* Don't let and notification requests happen until the Eventloop is ready */ if (debug) z.reportln( "RXTXPort:addEventListener()"); if( SPEventListener != null ) { throw new TooManyListenersException(); } SPEventListener = lsnr; if( !MonitorThreadAlive ) { MonitorThreadLock = true; monThread = new MonitorThread(); monThread.start(); waitForTheNativeCodeSilly(); MonitorThreadAlive=true; } if (debug) z.reportln( "RXTXPort:Interrupt=false"); } /** * Remove the serial port event listener */ public void removeEventListener() { if (debug) z.reportln( "RXTXPort:removeEventListener() called"); waitForTheNativeCodeSilly(); //if( monThread != null && monThread.isAlive() ) if( monThreadisInterrupted == true ) { z.reportln( " RXTXPort:removeEventListener() already interrupted"); monThread = null; SPEventListener = null; return; } else if( monThread != null && monThread.isAlive() ) { if (debug) z.reportln( " RXTXPort:Interrupt=true"); monThreadisInterrupted=true; /* Notify all threads in this PID that something is up They will call back to see if its their thread using isInterrupted(). */ if (debug) z.reportln( " RXTXPort:calling interruptEventLoop"); interruptEventLoop( ); if (debug) z.reportln( " RXTXPort:calling monThread.join()"); try { // wait a reasonable moment for the death of the monitor thread monThread.join(3000); } catch (InterruptedException ex) { // somebody called interrupt() on us (ie wants us to abort) // we dont propagate InterruptedExceptions so lets re-set the flag Thread.currentThread().interrupt(); return; } if ( debug && monThread.isAlive() ) { z.reportln( " MonThread is still alive!"); } } monThread = null; SPEventListener = null; MonitorThreadLock = false; MonitorThreadAlive=false; monThreadisInterrupted=true; z.reportln( "RXTXPort:removeEventListener() returning"); } /** * Give the native code a chance to start listening to the hardware * or should we say give the native code control of the issue. * * This is important for applications that flicker the Monitor * thread while keeping the port open. * In worst case test cases this loops once or twice every time. */ protected void waitForTheNativeCodeSilly() { while( MonitorThreadLock ) { try { Thread.sleep(5); } catch( Exception e ) {} } } /** * @param enable */ private native void nativeSetEventFlag( int fd, int event, boolean flag ); public void notifyOnDataAvailable( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnDataAvailable( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.DATA_AVAILABLE, enable ); monThread.Data = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnOutputEmpty( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnOutputEmpty( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.OUTPUT_BUFFER_EMPTY, enable ); monThread.Output = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnCTS( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnCTS( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.CTS, enable ); monThread.CTS = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnDSR( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnDSR( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.DSR, enable ); monThread.DSR = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnRingIndicator( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnRingIndicator( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.RI, enable ); monThread.RI = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnCarrierDetect( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnCarrierDetect( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.CD, enable ); monThread.CD = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnOverrunError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnOverrunError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.OE, enable ); monThread.OE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnParityError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnParityError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.PE, enable ); monThread.PE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnFramingError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnFramingError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.FE, enable ); monThread.FE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnBreakInterrupt( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnBreakInterrupt( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.BI, enable ); monThread.BI = enable; MonitorThreadLock = false; } /** Close the port */ private native void nativeClose( String name ); /** */ boolean closeLock = false; public void close() { synchronized (this) { if (debug) z.reportln( "RXTXPort:close( " + this.name + " )"); while( IOLocked > 0 ) { if( debug ) z.reportln("IO is locked " + IOLocked); try { this.wait(500); } catch( InterruptedException ie ) { // somebody called interrupt() on us // we obbey and return without without closing the socket Thread.currentThread().interrupt(); return; } } // we set the closeLock after the above check because we might // have returned without proceeding if( closeLock ) return; closeLock = true; } if ( fd <= 0 ) { z.reportln( "RXTXPort:close detected bad File Descriptor" ); return; } setDTR(false); setDSR(false); if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) setting monThreadisInterrupted"); if ( ! monThreadisInterrupted ) { removeEventListener(); } if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) calling nativeClose"); nativeClose( this.name ); if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) calling super.close"); super.close(); fd = 0; closeLock = false; if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) leaving"); } /** Finalize the port */ protected void finalize() { if (debug) z.reportln( "RXTXPort:finalize()"); if( fd > 0 ) { if (debug) z.reportln( "RXTXPort:calling close()"); close(); } z.finalize(); } /** Inner class for SerialOutputStream */ class SerialOutputStream extends OutputStream { /** * @param b * @throws IOException */ public void write( int b ) throws IOException { if (debug_write) z.reportln( "RXTXPort:SerialOutputStream:write(int)"); if( speed == 0 ) return; if ( monThreadisInterrupted == true ) { return; } synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); if ( fd == 0 ) { throw new IOException(); } writeByte( b, monThreadisInterrupted ); if (debug_write) z.reportln( "Leaving RXTXPort:SerialOutputStream:write( int )"); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /** * @param b[] * @throws IOException */ public void write( byte b[] ) throws IOException { if (debug_write) { z.reportln( "Entering RXTXPort:SerialOutputStream:write(" + b.length + ") "/* + new String(b)*/ ); } if( speed == 0 ) return; if ( monThreadisInterrupted == true ) { return; } if ( fd == 0 ) throw new IOException(); synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); writeArray( b, 0, b.length, monThreadisInterrupted ); if (debug_write) z.reportln( "Leaving RXTXPort:SerialOutputStream:write(" +b.length +")"); } finally { synchronized(IOLockedMutex) { IOLocked--; } } } /** * @param b[] * @param off * @param len * @throws IOException */ public void write( byte b[], int off, int len ) throws IOException { if( speed == 0 ) return; if( off + len > b.length ) { throw new IndexOutOfBoundsException( "Invalid offset/length passed to read" ); } byte send[] = new byte[len]; System.arraycopy( b, off, send, 0, len ); if (debug_write) { z.reportln( "Entering RXTXPort:SerialOutputStream:write(" + send.length + " " + off + " " + len + " " +") " /*+ new String(send) */ ); } if ( fd == 0 ) throw new IOException(); if ( monThreadisInterrupted == true ) { return; } synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); writeArray( send, 0, len, monThreadisInterrupted ); if( debug_write ) z.reportln( "Leaving RXTXPort:SerialOutputStream:write(" + send.length + " " + off + " " + len + " " +") " /*+ new String(send)*/ ); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /** */ public void flush() throws IOException { if (debug) z.reportln( "RXTXPort:SerialOutputStream:flush() enter"); if( speed == 0 ) return; if ( fd == 0 ) throw new IOException(); if ( monThreadisInterrupted == true ) { if (debug) z.reportln( "RXTXPort:SerialOutputStream:flush() Leaving Interrupted"); return; } synchronized(IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); /* this is probably good on all OS's but for now just sendEvent from java on Sol */ if ( nativeDrain( monThreadisInterrupted ) ) sendEvent( SerialPortEvent.OUTPUT_BUFFER_EMPTY, true ); if (debug) z.reportln( "RXTXPort:SerialOutputStream:flush() leave"); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } } /** Inner class for SerialInputStream */ class SerialInputStream extends InputStream { /** * @return int the int read * @throws IOException * @see java.io.InputStream * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available timeout > 0, * threshold = 0, blocks until timeout occurs, returns -1 * on timeout *>0 >0 blocks until timeout, returns - 1 on timeout, magnitude * of threshold doesn't play a role. *0 >0 Blocks until 1 byte, magnitude of threshold doesn't * play a role */ public synchronized int read() throws IOException { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() called"); if ( fd == 0 ) throw new IOException(); if ( monThreadisInterrupted ) { z.reportln( "+++++++++ read() monThreadisInterrupted" ); } synchronized (IOLockedMutex) { IOLocked++; } try { if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read() L" ); waitForTheNativeCodeSilly(); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read() N" ); int result = readByte(); if (debug_read_results) //z.reportln( "RXTXPort:SerialInputStream:read() returns byte = " + result ); z.reportln( "RXTXPort:SerialInputStream:read() returns" ); return( result ); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /** * @param b[] * @return int number of bytes read * @throws IOException * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available *>0 0 blocks until timeout occurs, returns 0 on timeout *>0 >0 blocks until timeout or reads threshold bytes, returns 0 on timeout *0 >0 blocks until reads threshold bytes */ public synchronized int read( byte b[] ) throws IOException { int result; if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + ") called"); if ( monThreadisInterrupted == true ) { return(0); } synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); result = read( b, 0, b.length); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read() returned " + result + " bytes" ); return( result ); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /* read(byte b[], int, int) Documentation is at http://java.sun.com/products/jdk/1.2/docs/api/java/io/InputStream.html#read(byte[], int, int) */ /** * @param b[] * @param off * @param len * @return int number of bytes read * @throws IOException * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available *>0 0 blocks until timeout occurs, returns 0 on timeout *>0 >0 blocks until timeout or reads threshold bytes, returns 0 on timeout *0 >0 blocks until either threshold # of bytes or len bytes, whichever was lower. */ public synchronized int read( byte b[], int off, int len ) throws IOException { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") called" /*+ new String(b) */ ); int result; /* * Some sanity checks */ if ( fd == 0 ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() fd == 0"); z.reportln("+++++++ IOException()\n"); throw new IOException(); } if( b==null ) { z.reportln("+++++++ NullPointerException()\n"); if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() b == 0"); throw new NullPointerException(); } if( (off < 0) || (len < 0) || (off+len > b.length)) { z.reportln("+++++++ IndexOutOfBoundsException()\n"); if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() off < 0 .."); throw new IndexOutOfBoundsException(); } /* * Return immediately if len==0 */ if( len==0 ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() off < 0 .."); return 0; } /* * See how many bytes we should read */ int Minimum = len; if( threshold==0 ) { /* * If threshold is disabled, read should return as soon * as data are available (up to the amount of available * bytes in order to avoid blocking) * Read may return earlier depending of the receive time * out. */ int a = nativeavailable(); if( a == 0 ) Minimum = 1; else Minimum = Math.min( Minimum, a ); } else { /* * Threshold is enabled. Read should return when * 'threshold' bytes have been received (or when the * receive timeout expired) */ Minimum = Math.min(Minimum, threshold); } if ( monThreadisInterrupted == true ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() Interrupted"); return(0); } synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); result = readArray( b, off, Minimum); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") returned " + result + " bytes" /*+ new String(b) */); return( result ); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /** * @param b[] * @param off * @param len * @param t[] * @return int number of bytes read * @throws IOException We are trying to catch the terminator in the native code Right now it is assumed that t[] is an array of 2 bytes. if the read encounters the two bytes, it will return and the array will contain the terminator. Otherwise read behavior should be the same as read( b[], off, len ). Timeouts have not been well tested. */ public synchronized int read( byte b[], int off, int len, byte t[] ) throws IOException { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") called" /*+ new String(b) */ ); int result; /* * Some sanity checks */ if ( fd == 0 ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() fd == 0"); z.reportln("+++++++ IOException()\n"); throw new IOException(); } if( b==null ) { z.reportln("+++++++ NullPointerException()\n"); if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() b == 0"); throw new NullPointerException(); } if( (off < 0) || (len < 0) || (off+len > b.length)) { z.reportln("+++++++ IndexOutOfBoundsException()\n"); if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() off < 0 .."); throw new IndexOutOfBoundsException(); } /* * Return immediately if len==0 */ if( len==0 ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() off < 0 .."); return 0; } /* * See how many bytes we should read */ int Minimum = len; if( threshold==0 ) { /* * If threshold is disabled, read should return as soon * as data are available (up to the amount of available * bytes in order to avoid blocking) * Read may return earlier depending of the receive time * out. */ int a = nativeavailable(); if( a == 0 ) Minimum = 1; else Minimum = Math.min( Minimum, a ); } else { /* * Threshold is enabled. Read should return when * 'threshold' bytes have been received (or when the * receive timeout expired) */ Minimum = Math.min(Minimum, threshold); } if ( monThreadisInterrupted == true ) { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() Interrupted"); return(0); } synchronized (IOLockedMutex) { IOLocked++; } try { waitForTheNativeCodeSilly(); result = readTerminatedArray( b, off, Minimum, t ); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") returned " + result + " bytes" /*+ new String(b) */); return( result ); } finally { synchronized (IOLockedMutex) { IOLocked--; } } } /** * @return int bytes available * @throws IOException */ public synchronized int available() throws IOException { if ( monThreadisInterrupted == true ) { return(0); } if ( debug_verbose ) z.reportln( "RXTXPort:available() called" ); synchronized (IOLockedMutex) { IOLocked++; } try { int r = nativeavailable(); if ( debug_verbose ) z.reportln( "RXTXPort:available() returning " + r ); return r; } finally { synchronized (IOLockedMutex) { IOLocked--; } } } } /** */ class MonitorThread extends Thread { /** Note: these have to be separate boolean flags because the SerialPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ private volatile boolean CTS=false; private volatile boolean DSR=false; private volatile boolean RI=false; private volatile boolean CD=false; private volatile boolean OE=false; private volatile boolean PE=false; private volatile boolean FE=false; private volatile boolean BI=false; private volatile boolean Data=false; private volatile boolean Output=false; MonitorThread() { if (debug) z.reportln( "RXTXPort:MontitorThread:MonitorThread()"); } /** * run the thread and call the event loop. */ public void run() { if (debug) z.reportln( "RXTXPort:MontitorThread:run()"); monThreadisInterrupted=false; eventLoop(); if (debug) z.reportln( "eventLoop() returned"); } protected void finalize() throws Throwable { if (debug) z.reportln( "RXTXPort:MonitorThread exiting"); } } /** * A dummy method added so RXTX compiles on Kaffee * @deprecated deprecated but used in Kaffe */ public void setRcvFifoTrigger(int trigger){}; /*------------------------ END OF CommAPI -----------------------------*/ private native static void nativeStaticSetSerialPortParams( String f, int b, int d, int s, int p ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetDSR( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsDSR( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsDTR( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsRTS( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsCTS( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsCD( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsRI( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetBaudRate( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetDataBits( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetParity( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetStopBits( String port ) throws UnsupportedCommOperationException; private native byte nativeGetParityErrorChar( ) throws UnsupportedCommOperationException; private native boolean nativeSetParityErrorChar( byte b ) throws UnsupportedCommOperationException; private native byte nativeGetEndOfInputChar( ) throws UnsupportedCommOperationException; private native boolean nativeSetEndOfInputChar( byte b ) throws UnsupportedCommOperationException; private native boolean nativeSetUartType(String type, boolean test) throws UnsupportedCommOperationException; native String nativeGetUartType() throws UnsupportedCommOperationException; private native boolean nativeSetBaudBase(int BaudBase) throws UnsupportedCommOperationException; private native int nativeGetBaudBase() throws UnsupportedCommOperationException; private native boolean nativeSetDivisor(int Divisor) throws UnsupportedCommOperationException; private native int nativeGetDivisor() throws UnsupportedCommOperationException; private native boolean nativeSetLowLatency() throws UnsupportedCommOperationException; private native boolean nativeGetLowLatency() throws UnsupportedCommOperationException; private native boolean nativeSetCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException; private native boolean nativeGetCallOutHangup() throws UnsupportedCommOperationException; private native boolean nativeClearCommInput() throws UnsupportedCommOperationException; /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * This is only accurate up to 38600 baud currently. * * @param port the name of the port thats been preopened * @return BaudRate on success * @throws UnsupportedCommOperationException; * This will not behave as expected with custom speeds * */ public static int staticGetBaudRate( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetBaudRate( " + port + " )"); return(nativeStaticGetBaudRate( port )); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return DataBits on success * @throws UnsupportedCommOperationException; * */ public static int staticGetDataBits( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetDataBits( " + port + " )"); return(nativeStaticGetDataBits( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return Parity on success * @throws UnsupportedCommOperationException; * */ public static int staticGetParity( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetParity( " + port + " )"); return( nativeStaticGetParity( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return StopBits on success * @throws UnsupportedCommOperationException; * */ public static int staticGetStopBits( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetStopBits( " + port + " )"); return(nativeStaticGetStopBits( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Set the SerialPort parameters * 1.5 stop bits requires 5 databits * @param f filename * @param b baudrate * @param d databits * @param s stopbits * @param p parity * * @throws UnsupportedCommOperationException * @see gnu.io.UnsupportedCommOperationException */ public static void staticSetSerialPortParams( String f, int b, int d, int s, int p ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetSerialPortParams( " + f + " " + b + " " + d + " " + s + " " + p ); nativeStaticSetSerialPortParams( f, b, d, s, p ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set DSR. remove lockfile and do not close * This is so some software can appear to set the DSR before 'opening' * the port a second time later on. * * @return true on success * @throws UnsupportedCommOperationException; * */ public static boolean staticSetDSR( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetDSR( " + port + " " + flag ); return( nativeStaticSetDSR( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set DTR. remove lockfile and do not close * This is so some software can appear to set the DTR before 'opening' * the port a second time later on. * * @return true on success * @throws UnsupportedCommOperationException; * */ public static boolean staticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetDTR( " + port + " " + flag ); return( nativeStaticSetDTR( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set RTS. remove lockfile and do not close * This is so some software can appear to set the RTS before 'opening' * the port a second time later on. * * @return none * @throws UnsupportedCommOperationException; * */ public static boolean staticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetRTS( " + port + " " + flag ); return( nativeStaticSetRTS( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return RTS without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsRTS( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsRTS( " + port + " )" ); return( nativeStaticIsRTS( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return CD without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsCD( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsCD( " + port + " )" ); return( nativeStaticIsCD( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return CTS without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsCTS( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsCTS( " + port + " )" ); return( nativeStaticIsCTS( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return DSR without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsDSR( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsDSR( " + port + " )" ); return( nativeStaticIsDSR( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return DTR without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsDTR( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsDTR( " + port + " )" ); return( nativeStaticIsDTR( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return RI without using a Java open() call * * @param port * @return true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsRI( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsRI( " + port + " )" ); return( nativeStaticIsRI( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return int the Parity Error Character * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public byte getParityErrorChar( ) throws UnsupportedCommOperationException { byte ret; if ( debug ) z.reportln( "getParityErrorChar()" ); ret = nativeGetParityErrorChar(); if ( debug ) z.reportln( "getParityErrorChar() returns " + ret ); return( ret ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param b Parity Error Character * @return boolean true on success * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public boolean setParityErrorChar( byte b ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "setParityErrorChar(" + b + ")" ); return( nativeSetParityErrorChar( b ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return int the End of Input Character * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public byte getEndOfInputChar( ) throws UnsupportedCommOperationException { byte ret; if ( debug ) z.reportln( "getEndOfInputChar()" ); ret = nativeGetEndOfInputChar(); if ( debug ) z.reportln( "getEndOfInputChar() returns " + ret ); return( ret ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param b End Of Input Character * @return boolean true on success * @throws UnsupportedCommOperationException; */ public boolean setEndOfInputChar( byte b ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "setEndOfInputChar(" + b + ")" ); return( nativeSetEndOfInputChar( b ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param type String representation of the UART type which mayb * be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" * or "16750". * @param test boolean flag to determin if the UART should be tested. * @return boolean true on success * @throws UnsupportedCommOperationException; */ public boolean setUARTType(String type, boolean test) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setUARTType()"); return nativeSetUartType(type, test); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return type String representation of the UART type which mayb * be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" * or "16750". * @throws UnsupportedCommOperationException; */ public String getUARTType() throws UnsupportedCommOperationException { return nativeGetUartType(); } /** * Extension to CommAPI. Set Baud Base to 38600 on Linux and W32 * before using. * @param BaudBase The clock frequency divided by 16. Default * BaudBase is 115200. * @return true on success * @throws UnsupportedCommOperationException, IOException */ public boolean setBaudBase(int BaudBase) throws UnsupportedCommOperationException, IOException { if ( debug ) z.reportln( "RXTXPort:setBaudBase()"); return nativeSetBaudBase(BaudBase); } /** * Extension to CommAPI * @return BaudBase * @throws UnsupportedCommOperationException, IOException */ public int getBaudBase() throws UnsupportedCommOperationException, IOException { if ( debug ) z.reportln( "RXTXPort:getBaudBase()"); return nativeGetBaudBase(); } /** * Extension to CommAPI. Set Baud Base to 38600 on Linux and W32 * before using. * @param Divisor * @throws UnsupportedCommOperationException, IOException */ public boolean setDivisor(int Divisor) throws UnsupportedCommOperationException, IOException { if ( debug ) z.reportln( "RXTXPort:setDivisor()"); return nativeSetDivisor(Divisor); } /** * Extension to CommAPI * @return Divisor; * @throws UnsupportedCommOperationException, IOException */ public int getDivisor() throws UnsupportedCommOperationException, IOException { if ( debug ) z.reportln( "RXTXPort:getDivisor()"); return nativeGetDivisor(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean setLowLatency() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setLowLatency()"); return nativeSetLowLatency(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean getLowLatency() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getLowLatency()"); return nativeGetLowLatency(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean setCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setCallOutHangup()"); return nativeSetCallOutHangup(NoHup); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean getCallOutHangup() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getCallOutHangup()"); return nativeGetCallOutHangup(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean clearCommInput() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:clearCommInput()"); return nativeClearCommInput(); } /*------------------------ END OF CommAPI Extensions -----------------------*/ } ./rxtx-2.2pre2/src/gnu/io/CommPortOwnershipListener.java0000644000175000017500000000713110614033755023253 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface CommPortOwnershipListener extends EventListener { public static final int PORT_OWNED =1; public static final int PORT_UNOWNED =2; public static final int PORT_OWNERSHIP_REQUESTED =3; public abstract void ownershipChange( int type ); } ./rxtx-2.2pre2/src/gnu/CVS/0000755000175000017500000000000011142410104015245 5ustar twernertwerner./rxtx-2.2pre2/src/gnu/CVS/Tag0000644000175000017500000000001711126534472015722 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/src/gnu/CVS/Root0000644000175000017500000000007511126534472016136 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/src/gnu/CVS/Entries0000644000175000017500000000001111126534475016615 0ustar twernertwernerD/io//// ./rxtx-2.2pre2/src/gnu/CVS/Repository0000644000175000017500000000002311126534472017363 0ustar twernertwernerrxtx-devel/src/gnu ./rxtx-2.2pre2/src/lfd/0000755000175000017500000000000011126534474014611 5ustar twernertwerner./rxtx-2.2pre2/src/lfd/lockdaemon.c0000644000175000017500000005361310614033757017100 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define FHS #define LOCKFILEPREFIX "LCK.." #define LOCK fhs_lock #define UNLOCK fhs_unlock #define LOCKDIR "/var/lock" char hostname[256]; #define M200 "200 Command okay.\n" #define M202 "202 Command not implemented\n" #define M220 "220 %s Lock File Server (Version rxtx-1.5-9) ready\n", hostname #define M221 "221 Thank you for using the Lock File service on %s\n", hostname #define M450 "450 : File busy.\n" #define M500 "500 '%s': command not understood\n", str #define M550 "550 : Permission denied.\n" int is_device_locked( const char * ); int check_group_uucp(); int check_lock_status( const char * ); int check_lock_pid( const char *, int ); #define UNEXPECTED_LOCK_FILE "RXTX Error: Unexpected lock file: %s\n Please report to the RXTX developers\n" #define UUCP_ERROR "\n\n\nRXTX WARNING: This library requires the user running applications to be in\ngroup uucp. Please consult the INSTALL documentation. More information is\navaiable under the topic 'How can I use Lock Files with rxtx?'\n" extern int errno; /*---------------------------------------------------------- fhs_lock accept: The name of the device to try to lock termios struct perform: Create a lock file if there is not one already. return: 1 on failure 0 on success exceptions: none comments: This is for linux and freebsd only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard more reading: ----------------------------------------------------------*/ int fhs_lock( const char *filename, int pid ) { /* * There is a zoo of lockdir possibilities * Its possible to check for stale processes with most of them. * for now we will just check for the lockfile on most * Problem lockfiles will be dealt with. Some may not even be in use. * */ int fd,j; char lockinfo[12], message[80]; char file[80], *p; j = strlen( filename ); p = ( char * ) filename + j; /* FIXME need to handle subdirectories /dev/cua/... SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if ( check_lock_status( filename ) ) { /* syslog( LOG_INFO, "fhs_lock() lockstatus fail\n" ); */ return 1; } fd = open( file, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX fhs_lock() Error: creating lock file: %s: %s\n", file, strerror(errno) ); syslog( LOG_INFO, message ); return 1; } sprintf( lockinfo, "%10d\n", pid ); sprintf( message, "fhs_lock: creating lockfile: %s\n", lockinfo ); //syslog( LOG_INFO, message ); write( fd, lockinfo, 11 ); close( fd ); return 0; } /*---------------------------------------------------------- uucp_lock accept: char * filename. Device to be locked perform: Try to get a uucp_lock return: int 0 on success exceptions: none comments: The File System Hierarchy Standard http://www.pathname.com/fhs/ UUCP Lock Files http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. There is much to do here. 1) UUCP style locks (done) /var/spool/uucp 2) SVR4 locks /var/spool/locks 3) FSSTND locks (done) /var/lock 4) handle stale locks (done except kermit locks) 5) handle minicom lockfile contents (FSSTND?) " 16929 minicom root\n" (done) 6) there are other Lock conventions that use Major and Minor numbers... 7) Stevens recommends LCK.. most are caught above. If they turn out to be problematic rather than an exercise, we will handle them. ----------------------------------------------------------*/ int uucp_lock( const char *filename, int pid ) { char lockfilename[80], lockinfo[12], message[80]; char name[80]; int fd; struct stat buf; sprintf( message, "uucp_lock( %s );\n", filename ); syslog( LOG_INFO, message ); if ( check_lock_status( filename ) ) { syslog( LOG_INFO, "RXTX uucp check_lock_status true\n" ); return 1; } if ( stat( LOCKDIR, &buf ) != 0 ) { syslog( LOG_INFO, "RXTX uucp_lock() could not find lock directory.\n" ); return 1; } if ( stat( filename, &buf ) != 0 ) { syslog( LOG_INFO, "RXTX uucp_lock() could not find device.\n" ); sprintf( message, "uucp_lock: device was %s\n", name ); syslog( LOG_INFO, message ); sprintf( message, "Filename is : %s \n", filename ); syslog( LOG_INFO, message ); return 1; } sprintf( lockfilename, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); sprintf( lockinfo, "%10d\n", pid ); if ( stat( lockfilename, &buf ) == 0 ) { sprintf( message, "RXTX uucp_lock() %s is there\n", lockfilename ); syslog( LOG_INFO, message ); syslog( LOG_INFO, message ); return 1; } fd = open( lockfilename, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX uucp_lock() Error: creating lock file: %s\n", lockfilename ); syslog( LOG_INFO, message ); return 1; } write( fd, lockinfo,11 ); close( fd ); /* setgid( nobody ); setuid( nobody ); */ return 0; } /*---------------------------------------------------------- check_lock_status accept: the lock name in question perform: Make sure everything is sane return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_status( const char *filename ) { struct stat buf; /* First, can we find the directory? */ if ( stat( LOCKDIR, &buf ) != 0 ) { syslog( LOG_INFO, "check_lock_status: could not find lock directory.\n" ); return 1; } /* OK. Are we able to write to it? If not lets bail */ if ( check_group_uucp() ) { syslog( LOG_INFO, "check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL\n" ); return 1; } /* is the device alread locked */ if ( is_device_locked( filename ) ) { /* syslog( LOG_INFO, "check_lock_status: device is locked by another application\n" ); */ return 1; } return 0; } /*---------------------------------------------------------- fhs_unlock accept: The name of the device to unlock perform: delete the lock file return: none exceptions: none comments: This is for linux only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard ----------------------------------------------------------*/ int fhs_unlock( const char *filename, int openpid ) { char file[80],*p, msg[80]; struct stat buf; int i; i = strlen( filename ); p = ( char * ) filename + i; sprintf( msg, "fhs_unlock %s\n", filename ); /* syslog( LOG_INFO, msg ); */ /* FIXME need to handle subdirectories /dev/cua/... */ while( *( p - 1 ) != '/' && i-- != 1 ) p--; sprintf( file, "%s/LCK..%s", LOCKDIR, p ); #ifdef asdf if ( ! check_lock_status( p ) ) { sprintf( msg, "fhs_unlock %s check_lock_status\n", filename ); syslog( LOG_INFO, msg ); return 0; } #endif if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock() no such device\n" ); return(0); } if( !check_lock_pid( file, openpid ) ) { unlink(file); //syslog( LOG_INFO,"fhs_unlock: Removing LockFile\n"); return( 0 ); } else { syslog( LOG_INFO,"fhs_unlock: Unable to remove LockFile\n"); return( 1 ); } } /*---------------------------------------------------------- uucp_unlock accept: char *filename the device that is locked perform: remove the uucp lockfile if it exists return: none exceptions: none comments: http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html ----------------------------------------------------------*/ void uucp_unlock( const char *filename, int openpid ) { struct stat buf; char file[80], message[80]; /* FIXME */ sprintf( message, "uucp_unlock( %s );\n", filename ); syslog( LOG_INFO, message ); if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock() no such device\n" ); return; } sprintf( file, LOCKDIR"/LK.%03d.%03d.%03d", (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if ( stat( file, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock no such lockfile\n" ); return; } if( !check_lock_pid( file, openpid ) ) { sprintf( message, "uucp_unlock: unlinking %s\n", file ); syslog( LOG_INFO, message ); unlink(file); } else { sprintf( message, "uucp_unlock: unlinking failed %s\n", file ); syslog( LOG_INFO, message ); } } /*---------------------------------------------------------- check_lock_pid accept: the name of the lockfile perform: make sure the lock file is ours. return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_pid( const char *file, int openpid ) { int fd, lockpid; char pid_buffer[12]; char message[80]; fd=open( file, O_RDONLY ); if ( fd < 0 ) { return( 1 ); } if ( read( fd, pid_buffer, 11 ) < 0 ) { close( fd ); return( 1 ); } close( fd ); pid_buffer[11] = '\0'; lockpid = atol( pid_buffer ); if ( lockpid != openpid ) { if( kill( (pid_t) lockpid, 0 ) && errno==ESRCH ) { return( 0 ); } sprintf(message, "check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i\n", pid_buffer, (int) getpid(), (int) getppid(), openpid ); syslog( LOG_INFO, message ); return( 1 ); } return( 0 ); } /*---------------------------------------------------------- check_group_uucp accept: none perform: check if the user is root or in group uucp return: 0 on success exceptions: none comments: This checks if the effective user is in group uucp so we can create lock files. If not we give them a warning and bail. If its root we just skip the test. if someone really wants to override this they can use the USER_LOCK_DIRECTORY --not recommended. In a recent change RedHat 7.2 decided to use group lock. In order to get around this we just check the group id of the lock directory. ----------------------------------------------------------*/ int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY int group_count; struct passwd *user = getpwuid( geteuid() ); struct stat buf; char msg[80]; gid_t list[ NGROUPS_MAX ]; if( stat( LOCKDIR, &buf) ) { sprintf( msg, "check_group_uucp: Can not find Lock Directory: %s\n", LOCKDIR ); syslog( LOG_INFO, msg ); return( 1 ); } group_count = getgroups( NGROUPS_MAX, list ); list[ group_count ] = geteuid(); if( user->pw_gid ) { while( group_count >= 0 && buf.st_gid != list[ group_count ] ) { group_count--; } if( buf.st_gid == list[ group_count ] ) return 0; sprintf( msg, "%i %i\n", buf.st_gid, list[ group_count ] ); syslog( LOG_INFO, msg ); syslog( LOG_INFO, UUCP_ERROR ); return 1; } return 0; /* if( strcmp( user->pw_name, "root" ) ) { while( *g->gr_mem ) { if( !strcmp( *g->gr_mem, user->pw_name ) ) { break; } (void) *g->gr_mem++; } if( !*g->gr_mem ) { syslog( LOG_INFO, UUCP_ERROR ); return 1; } } */ #endif /* USER_LOCK_DIRECTORY */ return 0; } /*---------------------------------------------------------- The following should be able to follow symbolic links. I think the stat method used below will work on more systems. This was found while looking for information. * realpath() doesn't exist on all of the systems my code has to run on (HP-UX 9.x, specifically) ---------------------------------------------------------- int different_from_LOCKDIR(const char* ld) { char real_ld[MAXPATHLEN]; char real_LOCKDIR[MAXPATHLEN]; if (strncmp(ld, LOCKDIR, strlen(ld)) == 0) return 0; if (realpath(ld, real_ld) == NULL) return 1; if (realpath(LOCKDIR, real_LOCKDIR) == NULL) return 1; if (strncmp(real_ld, real_LOCKDIR, strlen(real_ld)) == 0) return 0; else return 1; } */ /*---------------------------------------------------------- is_device_locked accept: char * filename. The device in question including the path. perform: see if one of the many possible lock files is aready there if there is a stale lock, remove it. return: 1 if the device is locked or somethings wrong. 0 if its possible to create our own lock file. exceptions: none comments: check if the device is already locked ----------------------------------------------------------*/ int is_device_locked( const char *port_filename ) { const char *lockdirs[] = { "/etc/locks", "/usr/spool/kermit", "/usr/spool/locks", "/usr/spool/uucp", "/usr/spool/uucp/", "/usr/spool/uucp/LCK", "/var/lock", "/var/lock/modem", "/var/spool/lock", "/var/spool/locks", "/var/spool/uucp", LOCKDIR, NULL }; const char *lockprefixes[] = { "LCK..", "lk..", "LK.", NULL }; char *p, file[80], pid_buffer[20], message[80]; int i = 0, j, k, fd , pid; struct stat buf; struct stat buf2; j = strlen( port_filename ); p = ( char * ) port_filename+j; while( *( p-1 ) != '/' && j-- !=1 ) p--; while( lockdirs[i] ) { /* Look for lockfiles in all known places other than the defined lock directory for this system report any unexpected lockfiles. Is the suspect lockdir there? if it is there is it not the expected lock dir? */ if( !stat( lockdirs[i], &buf2 ) && strncmp( lockdirs[i], LOCKDIR, strlen( lockdirs[i] ) ) ) { j = strlen( port_filename ); p = ( char * ) port_filename + j; /* SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } k=0; while ( lockprefixes[k] ) { /* FHS style */ sprintf( file, "%s/%s%s", lockdirs[i], lockprefixes[k], p ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); syslog( LOG_INFO, message ); return 1; } /* UUCP style */ stat(port_filename , &buf ); sprintf( file, "%s/%s%03d.%03d.%03d", lockdirs[i], lockprefixes[k], (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); syslog( LOG_INFO, message ); return 1; } k++; } } i++; } /* OK. We think there are no unexpect lock files for this device Lets see if there any stale lock files that need to be removed. */ #ifdef FHS /* FHS standard locks */ i = strlen( port_filename ); p = ( char * ) port_filename + i; while( *(p-1) != '/' && i-- != 1) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/%s%s", LOCKDIR, LOCKFILEPREFIX, p ); #else /* UUCP standard locks */ sprintf( file, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); #endif /* FHS */ if( stat( file, &buf ) == 0 ) { /* check if its a stale lock */ fd=open( file, O_RDONLY ); read( fd, pid_buffer, 11 ); /* FIXME null terminiate pid_buffer? need to check in Solaris */ close( fd ); sscanf( pid_buffer, "%d", &pid ); sprintf( message, "found lock for %s with pid %i\n", file, pid ); /* syslog( LOG_INFO, message ); */ if( kill( (pid_t) pid, 0 ) && errno==ESRCH ) { sprintf( message, "RXTX Warning: Removing stale lock file. %s\n", file ); syslog( LOG_INFO, message ); if( unlink( file ) != 0 ) { snprintf( message, 80, "RXTX Error: Unable to \ remove stale lock file: %s\n", file ); syslog( LOG_INFO, message ); return 0; } } else { sprintf( message, "could not kill %i\n", pid ); /* syslog( LOG_INFO, message ); */ return 1; } } return 0; } int init( void ) { pid_t pid; if( ( pid = fork() ) < 0 ) { return(-1); } else if ( pid != 0 ) { exit( 0 ); } setsid(); chdir("/"); umask( 0 ); return( 0 ); } int process_requests( ) { for(;;) { char str[80]; char str2[80]; char *p; int ret; ret = read( 1, str, 80 ); if( ret < 80 && ret > 1 ) str[ret] = '\0'; else str[79] = '\0'; if ( !strncasecmp( str, "quit", 4 ) ) { sprintf( str, M221 ); write( 0, str, strlen( str ) ); return( 1 ); } else if( !strncasecmp( str, "lock ", 4 ) ) { char *q,*r; p = str + 5; q=p; while( *q != ' ' && *q != '\0' ) q++; if ( *q == '\0' ) { write( 0, M450, strlen( M450 ) ); return(0); } *q = '\0'; q++; r=q; while( *r != '\n' && *r != '\0' ) r++; if( *r == '\n' ) *r = '\0'; if ( LOCK( p, atoi( q ) ) ) { write( 0, M450, strlen( M450 ) ); } else { write( 0, M200, strlen( M200 ) ); } } else if( !strncasecmp( str, "unlock ", 6 ) ) { char *q,*r; p = str + 7; q=p; while( *q != ' ' && *q != '\0' ) q++; if ( *q == '\0' ) { write( 0, "q=0\n", strlen( "q=0\n" ) ); write( 0, M450, strlen( M450 ) ); return(0); } *q = '\0'; q++; r=q; while( *r != '\n' && *r != '\0' ) r++; if( *r == '\n' ) *r = '\0'; if ( UNLOCK( (const char *) p, atoi( q ) ) ) { write( 0, M450, strlen( M450 ) ); } else { write( 0, M200, strlen( M200 ) ); } } else { str[ret-2]='\0'; sprintf( str2, M500 ); write( 0, str2, strlen(str2)); } return( 0 ); } } int main( int argc, char **argv ) { char str[128]; char portstr[7]; struct sockaddr *cliaddr; struct sockaddr_in *sin; socklen_t len; openlog( argv[0], LOG_PID, 0 ); cliaddr= malloc( 128 ); len = 128; sin = ( struct sockaddr_in * ) cliaddr; cliaddr= malloc( 128 ); gethostname( hostname, 255 ); if ( !inet_ntop( AF_INET, &(sin->sin_addr), str, sizeof(str) ) ) str[0] = '\0'; if ( !ntohs( sin->sin_port ) ) { snprintf( portstr, sizeof( portstr ), ".%d", ntohs( sin->sin_port) ); strcat( str, portstr); } sprintf( str, M220 ); //syslog( LOG_INFO, str ); write( 0, str, strlen(str) ); for(;;) { if (process_requests( )) { goto exit; } } syslog( LOG_INFO, "Lock Daemon Shutting down" ); exit: closelog(); exit(0); } ./rxtx-2.2pre2/src/lfd/LockFileServer.rfc0000644000175000017500000001235507416410454020170 0ustar twernertwerner LOCK FILE PROTOCOL (LFP) Status of this Memo This memo is a proposed specification for the Lock File Protocol (LPF). Distribution of this memo is currently limited. The following commands are currently in this edition of this specification. LOCK (lock a resource), UNLOCK (unlock a resource), QUIT (disconnect) 1. INTRODUCTION The objectives of LPF are 1) to make administration of machines with a large number of users easier 2) to encourage a common mechanism for applications to share resources 3) to provide a platform neutral interface for applications. This specification tries to outline the minimal required features for a LPF. 2. OVERVIEW Lock files can be located in as many as 10 different directories depending on the OS. Writing applications that handle all of the lock directories is redundant and error prone. By enabling three commands much of the redundant work can be eliminated and a common locking scheme can be used. The end result is a consistant easy to use interface. 2.1. HISTORY Lock files have been used for a long time. For more information on lock files see: The File System Hierarchy Standard http://www.pathname.com/fhs/ UUCP Lock Files http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. 2.2 TERMINOLOGY lock file lock directory uucp lock fhs lock 2.3 THE LFP MODEL lock directory<----->Server<-----Client<---->User 3. LOCKFILE FUNCTIONS 4. LFP FUNCTIONS 4.1 LFP COMMANDS 4.1.1 ACCEESS CONTROL COMMANDS QUIT The session is ended. 4.1.2 LOCK FILE CONTROL COMMANDS LOCK If the device that is trying to be locked and the pid of the requesting application are passed, an attempt will be made to lock the device. UNLOCK If the pid of the application requesting to unlock a device is passed an attempt will be made to unlock the device. Lock File Protocol January 2001 4.2 LFP REPLIES The following replies exist and try to follow the same format as FTP reply commands (rfc 959) 200 Command okay. 202 Command not implemented 220 hostname Lock File Server (Version rxtx-1.5-9) ready 221 Thank you for using the Lock File service on hostname 450 : File busy 500 'command': command not understood 550 : Permission denied. 5. DECLARATIVE SPECIFICATIONS 5.1 Minimum IMPLEMENTATION The following commands must be in a minimum implementation QUIT, LOCK, UNLOCK. 5.2 CONNECTIONS Currently on connections assisted by inetd are supported. Though not official, LFP currently listens on port 50001. Only connections from localhost should be allowed. 5.3 COMMANDS 5.3.1 LFP COMMANDS The following are the LFP COMMANDS QUIT LOCK UNLOCK 5.3.2 LFP COMMAND ARGUMENTS ::= ::= any decimal integer 5.4. SEQUENCING OF COMMANDS AND REPLIES Connection Establisment LOCK UNLOCK QUIT 6. STATE DIAGRAMS [ from rfc 959 ] Here we present state diagrams for a very simple minded LFP implementation. Only the first digit of the reply codes is used. There is one state diagram for each group of LFP commands or command sequences. The command groupings were determined by constructing a model for each command then collecting together the commands with structurally identical models. For each command or command sequence there are three possible outcomes: success (S), failure (F), and error (E). In the state diagrams below we use the symbol B for "begin", and the symbol W for "wait for reply". Lock File Protocol January 2001 We present the diagram that represents the largest group of LFP commands: 1,3 +---+ ----------->| E | | +---+ | +---+ cmd +---+ 2 +---+ | B |---------->| W |---------->| S | +---+ +---+ +---+ | | 4,5 +---+ ----------->| F | +---+ This diagram models the commands: QUIT, LOCK, UNLOCK. 7. TYPICAL LFP SCENARIO $ telnet 127.0.0.1 50001 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. lock /dev/ttyS1 1234 200 Command okay. unlock /dev/ttyS1 1234 200 Command okay. quit 221 Thank you for using the Lock File Service on servertrent.korpivaara.org. Connection closed by foreign host. $ ./rxtx-2.2pre2/src/lfd/lockdaemon.c.noinetd0000644000175000017500000005657010614033757020544 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define LOCK fhs_lock #define UNLOCK fhs_unlock #define LOCKDIR "/var/lock" char hostname[256]; #define M200 "200 Command okay.\n" #define M202 "202 Command not implemented\n" #define M220 "220 %s Lock File Server (Version rxtx-1.5-9) ready\n", hostname #define M221 "221 Thank you for using the Lock File service on %s\n", hostname #define M450 "450 : File busy.\n" #define M500 "500 '%s': command not understood\n", str #define M550 "550 : Permission denied.\n" int is_device_locked( const char * ); int check_group_uucp(); int check_lock_status( const char * ); int check_lock_pid( const char *, int ); #define UNEXPECTED_LOCK_FILE "RXTX Error: Unexpected lock file: %s\n Please report to the RXTX developers\n" #define UUCP_ERROR "\n\n\nRXTX WARNING: This library requires the user running applications to be in\ngroup uucp. Please consult the INSTALL documentation. More information is\navaiable under the topic 'How can I use Lock Files with rxtx?'\n" extern int errno; /*---------------------------------------------------------- fhs_lock accept: The name of the device to try to lock termios struct perform: Create a lock file if there is not one already. return: 1 on failure 0 on success exceptions: none comments: This is for linux and freebsd only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard more reading: ----------------------------------------------------------*/ int fhs_lock( const char *filename, int pid ) { /* * There is a zoo of lockdir possibilities * Its possible to check for stale processes with most of them. * for now we will just check for the lockfile on most * Problem lockfiles will be dealt with. Some may not even be in use. * */ int fd,j; char lockinfo[12], message[80]; char file[80], *p; j = strlen( filename ); p = ( char * ) filename + j; /* FIXME need to handle subdirectories /dev/cua/... SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if ( check_lock_status( filename ) ) { syslog( LOG_INFO, "fhs_lock() lockstatus fail\n" ); return 1; } fd = open( file, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX fhs_lock() Error: creating lock file: %s: %s\n", file, strerror(errno) ); syslog( LOG_INFO, message ); return 1; } sprintf( lockinfo, "%10d\n", pid ); sprintf( message, "fhs_lock: creating lockfile: %s\n", lockinfo ); syslog( LOG_INFO, message ); write( fd, lockinfo, 11 ); close( fd ); return 0; } /*---------------------------------------------------------- uucp_lock accept: char * filename. Device to be locked perform: Try to get a uucp_lock return: int 0 on success exceptions: none comments: The File System Hierarchy Standard http://www.pathname.com/fhs/ UUCP Lock Files http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. There is much to do here. 1) UUCP style locks (done) /var/spool/uucp 2) SVR4 locks /var/spool/locks 3) FSSTND locks (done) /var/lock 4) handle stale locks (done except kermit locks) 5) handle minicom lockfile contents (FSSTND?) " 16929 minicom root\n" (done) 6) there are other Lock conventions that use Major and Minor numbers... 7) Stevens recommends LCK.. most are caught above. If they turn out to be problematic rather than an exercise, we will handle them. ----------------------------------------------------------*/ int uucp_lock( const char *filename, int pid ) { char lockfilename[80], lockinfo[12], message[80]; char name[80]; int fd; struct stat buf; sprintf( message, "uucp_lock( %s );\n", filename ); syslog( LOG_INFO, message ); if ( check_lock_status( filename ) ) { syslog( LOG_INFO, "RXTX uucp check_lock_status true\n" ); return 1; } if ( stat( LOCKDIR, &buf ) != 0 ) { syslog( LOG_INFO, "RXTX uucp_lock() could not find lock directory.\n" ); return 1; } if ( stat( filename, &buf ) != 0 ) { syslog( LOG_INFO, "RXTX uucp_lock() could not find device.\n" ); sprintf( message, "uucp_lock: device was %s\n", name ); syslog( LOG_INFO, message ); sprintf( message, "Filename is : %s \n", filename ); syslog( LOG_INFO, message ); return 1; } sprintf( lockfilename, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); sprintf( lockinfo, "%10d\n", pid ); if ( stat( lockfilename, &buf ) == 0 ) { sprintf( message, "RXTX uucp_lock() %s is there\n", lockfilename ); syslog( LOG_INFO, message ); syslog( LOG_INFO, message ); return 1; } fd = open( lockfilename, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX uucp_lock() Error: creating lock file: %s\n", lockfilename ); syslog( LOG_INFO, message ); return 1; } write( fd, lockinfo,11 ); close( fd ); /* setgid( nobody ); setuid( nobody ); */ return 0; } /*---------------------------------------------------------- check_lock_status accept: the lock name in question perform: Make sure everything is sane return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_status( const char *filename ) { struct stat buf; /* First, can we find the directory? */ if ( stat( LOCKDIR, &buf ) != 0 ) { syslog( LOG_INFO, "check_lock_status: could not find lock directory.\n" ); return 1; } /* OK. Are we able to write to it? If not lets bail */ if ( check_group_uucp() ) { syslog( LOG_INFO, "check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL\n" ); return 1; } /* is the device alread locked */ if ( is_device_locked( filename ) ) { syslog( LOG_INFO, "check_lock_status: device is locked by another application\n" ); return 1; } return 0; } /*---------------------------------------------------------- fhs_unlock accept: The name of the device to unlock perform: delete the lock file return: none exceptions: none comments: This is for linux only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard ----------------------------------------------------------*/ int fhs_unlock( const char *filename, int openpid ) { char file[80],*p; struct stat buf; int i; i = strlen( filename ); p = ( char * ) filename + i; /* FIXME need to handle subdirectories /dev/cua/... */ while( *( p - 1 ) != '/' && i-- != 1 ) p--; sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if ( ! check_lock_status( p ) ) { return 0; } if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock() no such device\n" ); return(0); } if( !check_lock_pid( file, openpid ) ) { unlink(file); syslog( LOG_INFO,"fhs_unlock: Removing LockFile\n"); return( 0 ); } else { syslog( LOG_INFO,"fhs_unlock: Unable to remove LockFile\n"); return( 1 ); } } /*---------------------------------------------------------- uucp_unlock accept: char *filename the device that is locked perform: remove the uucp lockfile if it exists return: none exceptions: none comments: http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html ----------------------------------------------------------*/ void uucp_unlock( const char *filename, int openpid ) { struct stat buf; char file[80], message[80]; /* FIXME */ sprintf( message, "uucp_unlock( %s );\n", filename ); syslog( LOG_INFO, message ); if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock() no such device\n" ); return; } sprintf( file, LOCKDIR"/LK.%03d.%03d.%03d", (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if ( stat( file, &buf ) != 0 ) { /* hmm the file is not there? */ syslog( LOG_INFO, "uucp_unlock no such lockfile\n" ); return; } if( !check_lock_pid( file, openpid ) ) { sprintf( message, "uucp_unlock: unlinking %s\n", file ); syslog( LOG_INFO, message ); unlink(file); } else { sprintf( message, "uucp_unlock: unlinking failed %s\n", file ); syslog( LOG_INFO, message ); } } /*---------------------------------------------------------- check_lock_pid accept: the name of the lockfile perform: make sure the lock file is ours. return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_pid( const char *file, int openpid ) { int fd, lockpid; char pid_buffer[12]; char message[80]; fd=open( file, O_RDONLY ); if ( fd < 0 ) { return( 1 ); } if ( read( fd, pid_buffer, 11 ) < 0 ) { close( fd ); return( 1 ); } close( fd ); pid_buffer[11] = '\0'; lockpid = atol( pid_buffer ); if ( lockpid != openpid ) { if( kill( (pid_t) lockpid, 0 ) && errno==ESRCH ) { return( 0 ); } sprintf(message, "check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i\n", pid_buffer, (int) getpid(), (int) getppid(), openpid ); syslog( LOG_INFO, message ); return( 1 ); } return( 0 ); } /*---------------------------------------------------------- check_group_uucp accept: none perform: check if the user is root or in group uucp return: 0 on success exceptions: none comments: This checks if the effective user is in group uucp so we can create lock files. If not we give them a warning and bail. If its root we just skip the test. if someone really wants to override this they can use the USER_LOCK_DIRECTORY --not recommended. In a recent change RedHat 7.2 decided to use group lock. In order to get around this we just check the group id of the lock directory. ----------------------------------------------------------*/ int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY int group_count; struct passwd *user = getpwuid( geteuid() ); struct stat buf; char msg[80]; gid_t list[ NGROUPS_MAX ]; if( stat( LOCKDIR, &buf) ) { sprintf( msg, "check_group_uucp: Can not find Lock Directory: %s\n", LOCKDIR ); syslog( LOG_INFO, msg ); return( 1 ); } group_count = getgroups( NGROUPS_MAX, list ); list[ group_count ] = geteuid(); if( user->pw_gid ) { while( group_count >= 0 && buf.st_gid != list[ group_count ] ) { group_count--; } if( buf.st_gid == list[ group_count ] ) return 0; sprintf( msg, "%i %i\n", buf.st_gid, list[ group_count ] ); syslog( LOG_INFO, msg ); syslog( LOG_INFO, UUCP_ERROR ); return 1; } return 0; /* if( strcmp( user->pw_name, "root" ) ) { while( *g->gr_mem ) { if( !strcmp( *g->gr_mem, user->pw_name ) ) { break; } (void) *g->gr_mem++; } if( !*g->gr_mem ) { syslog( LOG_INFO, UUCP_ERROR ); return 1; } } */ #endif /* USER_LOCK_DIRECTORY */ return 0; } /*---------------------------------------------------------- The following should be able to follow symbolic links. I think the stat method used below will work on more systems. This was found while looking for information. * realpath() doesn't exist on all of the systems my code has to run on (HP-UX 9.x, specifically) ---------------------------------------------------------- int different_from_LOCKDIR(const char* ld) { char real_ld[MAXPATHLEN]; char real_LOCKDIR[MAXPATHLEN]; if (strncmp(ld, LOCKDIR, strlen(ld)) == 0) return 0; if (realpath(ld, real_ld) == NULL) return 1; if (realpath(LOCKDIR, real_LOCKDIR) == NULL) return 1; if (strncmp(real_ld, real_LOCKDIR, strlen(real_ld)) == 0) return 0; else return 1; } */ /*---------------------------------------------------------- is_device_locked accept: char * filename. The device in question including the path. perform: see if one of the many possible lock files is aready there if there is a stale lock, remove it. return: 1 if the device is locked or somethings wrong. 0 if its possible to create our own lock file. exceptions: none comments: check if the device is already locked ----------------------------------------------------------*/ int is_device_locked( const char *port_filename ) { const char *lockdirs[] = { "/etc/locks", "/usr/spool/kermit", "/usr/spool/locks", "/usr/spool/uucp", "/usr/spool/uucp/", "/usr/spool/uucp/LCK", "/var/lock", "/var/lock/modem", "/var/spool/lock", "/var/spool/locks", "/var/spool/uucp", LOCKDIR, NULL }; const char *lockprefixes[] = { "LCK..", "lk..", "LK.", NULL }; char *p, file[80], pid_buffer[20], message[80]; int i = 0, j, k, fd , pid; struct stat buf; struct stat buf2; j = strlen( port_filename ); p = ( char * ) port_filename+j; while( *( p-1 ) != '/' && j-- !=1 ) p--; while( lockdirs[i] ) { /* Look for lockfiles in all known places other than the defined lock directory for this system report any unexpected lockfiles. Is the suspect lockdir there? if it is there is it not the expected lock dir? */ if( !stat( lockdirs[i], &buf2 ) && strncmp( lockdirs[i], LOCKDIR, strlen( lockdirs[i] ) ) ) { j = strlen( port_filename ); p = ( char * ) port_filename + j; /* SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } k=0; while ( lockprefixes[k] ) { /* FHS style */ sprintf( file, "%s/%s%s", lockdirs[i], lockprefixes[k], p ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); syslog( LOG_INFO, message ); return 1; } /* UUCP style */ stat(port_filename , &buf ); sprintf( file, "%s/%s%03d.%03d.%03d", lockdirs[i], lockprefixes[k], (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); syslog( LOG_INFO, message ); return 1; } k++; } } i++; } /* OK. We think there are no unexpect lock files for this device Lets see if there any stale lock files that need to be removed. */ #ifdef FHS /* FHS standard locks */ i = strlen( port_filename ); p = ( char * ) port_filename + i; while( *(p-1) != '/' && i-- != 1) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/%s%s", LOCKDIR, LOCKFILEPREFIX, p ); #else /* UUCP standard locks */ if ( stat( port_filename, &buf ) != 0 ) { syslog( LOG_INFO, "RXTX is_device_locked() could not find device.\n" ); sprintf( message, "Filename is : %s \n", port_filename ); syslog( LOG_INFO, message ); sprintf( message, "Filename is : %s \n", port_filename ); syslog( LOG_INFO, message ); return 1; } sprintf( file, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); #endif /* FHS */ if( stat( file, &buf ) == 0 ) { /* check if its a stale lock */ fd=open( file, O_RDONLY ); read( fd, pid_buffer, 11 ); /* FIXME null terminiate pid_buffer? need to check in Solaris */ close( fd ); sscanf( pid_buffer, "%d", &pid ); if( kill( (pid_t) pid, 0 ) && errno==ESRCH ) { sprintf( message, "RXTX Warning: Removing stale lock file. %s\n", file ); syslog( LOG_INFO, message ); if( unlink( file ) != 0 ) { snprintf( message, 80, "RXTX Error: Unable to \ remove stale lock file: %s\n", file ); syslog( LOG_INFO, message ); return 1; } } } return 0; } int init( void ) { pid_t pid; if( ( pid = fork() ) < 0 ) { return(-1); } else if ( pid != 0 ) { exit( 0 ); } setsid(); chdir("/"); umask( 0 ); return( 0 ); } int process_requests( int cfd ) { for(;;) { char str[80]; char str2[80]; char *p; int ret; ret = read( cfd, str, 80 ); if( ret < 80 && ret > 1 ) str[ret] = '\0'; else str[79] = '\0'; if ( !strncasecmp( str, "quit", 4 ) ) { write( cfd, "Exit\n", strlen( "Exit\n" ) ); //sprintf( str, M220 ); //write( cfd, str, strlen( str ) ); sprintf( str, "221 Thank you for using the Lock File service on %s.\n", hostname ); write( cfd, str, strlen( str ) ); return( 1 ); } else if( !strncasecmp( str, "lock ", 4 ) ) { char *q,*r; p = str + 5; q=p; while( *q != ' ' && *q != '\0' ) q++; if ( *q == '\0' ) { write( cfd, M450, strlen( M450 ) ); return(0); } *q = '\0'; q++; r=q; while( *r != '\n' && *r != '\0' ) r++; if( *r == '\n' ) *r = '\0'; if ( LOCK( p, atoi( q ) ) ) write( cfd, M450, strlen( M450 ) ); write( cfd, M200, strlen( M200 ) ); } else if( !strncasecmp( str, "unlock ", 6 ) ) { char *q,*r; p = str + 7; q=p; while( *q != ' ' && *q != '\0' ) q++; if ( *q == '\0' ) { write( cfd, "q=0\n", strlen( "q=0\n" ) ); write( cfd, M450, strlen( M450 ) ); return(0); } *q = '\0'; q++; r=q; while( *r != '\n' && *r != '\0' ) r++; if( *r == '\n' ) *r = '\0'; if ( UNLOCK( (const char *) p, atoi( q ) ) ) { write( cfd, M450, strlen( M450 ) ); } write( cfd, M200, strlen( M200 ) ); } else { str[ret-2]='\0'; sprintf( str2, M500 ); write( cfd, str2, strlen(str2)); } //sprintf( str2, "%i\n", strlen(str) ); //write( cfd, str2, strlen(str2) ); //sprintf( str2, "%i\n", ret ); //write( cfd, str2, strlen(str2) ); //write( cfd, str, strlen(str) ); } } int main( int argc, char **argv ) { char *ptr; char str[128]; char portstr[7]; int fd, cfd; struct sockaddr *cliaddr; socklen_t len, addrlen; struct sockaddr_in *sin; struct addrinfo a_info, *results, *backup; const int on = -1; /* become a daemon */ if( argc != 3 ) { fprintf( stderr, "usage: %s host port\n", argv[0] ); exit(1); } init(); gethostname( hostname, 255 ); hostname[256]='\0'; openlog( "rxtx", LOG_PID, LOG_UUCP ); syslog( LOG_INFO, "Lock Daemon Initialized" ); bzero( &a_info, sizeof( struct addrinfo ) ); a_info.ai_flags = AI_PASSIVE; a_info.ai_family = AF_UNSPEC; a_info.ai_socktype = SOCK_STREAM; if( getaddrinfo( argv[1], argv[2], &a_info, &results )) { syslog( LOG_INFO, "Lock Daemon failed" ); goto exit; } backup = results; do { fd = socket( results->ai_family, results->ai_socktype, results->ai_protocol ); if ( fd < 0 ) continue; setsockopt( fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on) ); if ( bind( fd, results->ai_addr, results->ai_addrlen ) == 0 ) break; if ( results == NULL ) { printf( "results is null\n" ); goto exit; } close( fd ); } while ( ( results = results->ai_next) != NULL ); if( fd < 0 ) { } if ( ( ptr = getenv( "LISTENQ" ) ) != NULL ) addrlen = atoi(ptr); if( listen( fd, 1024 ) < 0 ) { perror( strerror(errno)); printf( "fd is %i is another daemon running?\n", fd ); goto exit; } if ( &len ) len = results->ai_addrlen; freeaddrinfo( backup ); cliaddr= malloc( addrlen ); len = addrlen; cfd = accept( fd, cliaddr, &len ); sin = ( struct sockaddr_in * ) cliaddr; if ( !inet_ntop( AF_INET, &(sin->sin_addr), str, sizeof(str) ) ) str[0] = '\0'; if ( !ntohs( sin->sin_port ) ) { snprintf( portstr, sizeof( portstr ), ".%d", ntohs( sin->sin_port) ); strcat( str, portstr); } fprintf( stderr, "connected from %s\n", str ); sprintf( str, M220 ); write( cfd, str, strlen( str ) ); for(;;) { if (process_requests( cfd )) { close( cfd ); goto exit; } } syslog( LOG_INFO, "Lock Daemon Shutting down" ); exit: closelog(); exit(0); } ./rxtx-2.2pre2/src/lfd/INSTALL0000644000175000017500000001102010614033757015633 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2002-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ 1. BUILDING LFD In the src/lfd directory edit lockdaemon.c and specify the following defines: #define LOCK fhs_lock #define UNLOCK fhs_unlock #define LOCKDIR "/var/lock" LOCK may be fhs_lock (linux) or uucp_lock (Solaris) UNLOCK may be fhs_unlock (Linux) or fhs_unlock (Solaris) LOCkDIR may be /var/lock (Linux) or /var/spool/lock (Solaris) After setting up the defines type make to build lfd. 2. INSTALLING. daemons are usually placed in the /usr/sbin directory. in.lfd will need to be setup for inetd or xinetd support. 2.1 xinetd support on RedHat Linux: edit /etc/services and add the following lines: lockfiled 50001/tcp # lock file daemon lockfiled 50001/ucp # lock file daemon create a file /etc/xinetd.d/lfd with the folowing contents: # default: on # description: The lockfiled server serves lockfiles; it uses \ # service lfd { flags = REUSE socket_type = stream wait = no user = uucp server = /usr/sbin/in.lfd log_on_failure += USERID disable = no } 2.2 inetd support on Solaris: edit /etc/services and add the following lines: lfd 50001/tcp # lock file daemon lfd 50001/ucp # lock file daemon add the following line to /etc/inetd.conf lockfiled stream tcp nowait uucp /usr/sbin/in.lfd lfd ./rxtx-2.2pre2/src/lfd/Makefile0000644000175000017500000000015007416410454016243 0ustar twernertwernerCC=gcc CFLAGS= -Wall -g all: $(CC) $(CFLAGS) lockdaemon.c -o lfd chown root:uucp lfd chmod 2755 lfd ./rxtx-2.2pre2/src/lfd/CVS/0000755000175000017500000000000011142410104015221 5ustar twernertwerner./rxtx-2.2pre2/src/lfd/CVS/Tag0000644000175000017500000000001711126534474015700 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/src/lfd/CVS/Root0000644000175000017500000000007511126534474016114 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/src/lfd/CVS/Entries0000644000175000017500000000050211126534474016575 0ustar twernertwerner/INSTALL/1.1.2.2/Thu Apr 26 05:26:07 2007//Tcommapi-0-0-1 /LockFileServer.rfc/1.1.2.1/Mon Jan 7 21:20:44 2002//Tcommapi-0-0-1 /Makefile/1.1.2.1/Mon Jan 7 21:20:44 2002//Tcommapi-0-0-1 /lockdaemon.c/1.1.2.3/Thu Apr 26 05:26:07 2007//Tcommapi-0-0-1 /lockdaemon.c.noinetd/1.1.2.5/Thu Apr 26 05:26:07 2007//Tcommapi-0-0-1 D ./rxtx-2.2pre2/src/lfd/CVS/Repository0000644000175000017500000000002311126534474017341 0ustar twernertwernerrxtx-devel/src/lfd ./rxtx-2.2pre2/src/.cvsignore0000755000175000017500000000011006673735645016055 0ustar twernertwernerwin32s.h fixup.cc new.c init.cc typedefs_md.h.diff Serial.def termios.c ./rxtx-2.2pre2/src/fixup.c0000644000175000017500000000641410614033756015346 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ asm(".section .idata$3\n" ".long 0,0,0,0, 0,0,0,0"); ./rxtx-2.2pre2/src/init.c0000644000175000017500000000141510362605474015154 0ustar twernertwerner /* init.c is used for compiling dll's with lcc. More info in Makefile.lcc */ #ifdef _WIN32 #include #include /** * Lcc requuires that there should be LibraryMain function and seeks * by default for LibMain. This might be someway not usefull for jni * interface it satisfies lcc linker. */ BOOL WINAPI __declspec(dllexport) LibMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved) { return TRUE; } /** * This is the standart implementation of Java 2 OnLoad and OnUnload native * library calls. This template defines them empty functions * * Now in SerialImp.c */ /* JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { return JNI_VERSION_1_2; } JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved) {} */ #endif ./rxtx-2.2pre2/src/termios.c0000644000175000017500000023007611142410104015657 0ustar twernertwerner#ifdef TRENT_IS_HERE #define TRACE #define DEBUG #define DEBUG_MW #ifdef DEBUG_MW extern void mexWarMsgTxt( const char * ); extern void mexPrintf( const char *, ... ); #endif /* DEBUG_MW */ #endif /* TRENT_IS_HERE */ extern void report( char * ); extern void report_warning( char * ); extern void report_error( char * ); /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1998-2002 by Wayne roberts wroberts1@home.com | Copyright 1997-2009 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include #include #include #include #include "win32termios.h" /* * odd malloc.h error with lcc compiler * winsock has FIONREAD with lcc */ #ifdef __LCC__ # include #else # include #endif /* __LCC__ */ #define SIGIO 0 int my_errno; extern int errno; struct termios_list { char filename[80]; int my_errno; int interrupt; int event_flag; int tx_happened; unsigned long *hComm; struct termios *ttyset; struct serial_struct *sstruct; /* for DTR DSR */ unsigned char MSR; struct async_struct *astruct; struct serial_icounter_struct *sis; int open_flags; OVERLAPPED rol; OVERLAPPED wol; OVERLAPPED sol; int fd; struct termios_list *next; struct termios_list *prev; }; struct termios_list *first_tl = NULL; /*---------------------------------------------------------- serial_test accept: filename to test perform: return: 1 on success 0 on failure exceptions: win32api: CreateFile CloseHandle comments: if the file opens it should be ok. ----------------------------------------------------------*/ int serial_test( char * filename ) { unsigned long *hcomm; int ret; hcomm = CreateFile( filename, GENERIC_READ |GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0 ); if ( hcomm == INVALID_HANDLE_VALUE ) { if (GetLastError() == ERROR_ACCESS_DENIED) { ret = 1; } else { ret = 0; } } else { ret = 1; } CloseHandle( hcomm ); return(ret); } void termios_setflags( int fd, int termios_flags[] ) { struct termios_list *index = find_port( fd ); int i, result; int windows_flags[11] = { 0, EV_RXCHAR, EV_TXEMPTY, EV_CTS, EV_DSR, EV_RING|0x2000, EV_RLSD, EV_ERR, EV_ERR, EV_ERR, EV_BREAK }; if( !index ) { LEAVE( "termios_setflags" ); return; } index->event_flag = 0; for(i=0;i<11;i++) if( termios_flags[i] ) index->event_flag |= windows_flags[i]; result = SetCommMask( index->hComm, index->event_flag ); /* This is rank. 0x2000 was used to detect the trailing edge of ring. The leading edge is detedted by EV_RING. The trailing edge is reliable. The leading edge is not. Softie no longer allows the trailing edge to be detected in NTsp2 and beyond. So... Try the reliable option above and if it fails, use the less reliable means. The screams for a giveio solution that bypasses the kernel. */ if( index->event_flag & 0x2000 && result == 0 ) { index->event_flag &= ~0x2000; SetCommMask( index->hComm, index->event_flag ); } } /*---------------------------------------------------------- get_fd() accept: filename perform: find the file descriptor associated with the filename return: fd exceptions: win32api: None comments: This is not currently called by anything ----------------------------------------------------------*/ int get_fd( char *filename ) { struct termios_list *index = first_tl; ENTER( "get_fd" ); if( !index ) { return -1; } while( strcmp( index->filename, filename ) ) { index = index->next; if( !index->next ) return( -1 ); } LEAVE( "get_fd" ); return( index->fd ); } /*---------------------------------------------------------- get_filename() accept: file descriptor perform: find the filename associated with the file descriptor return: the filename associated with the fd exceptions: None win32api: None comments: This is not currently called by anything ----------------------------------------------------------*/ char *get_filename( int fd ) { struct termios_list *index = first_tl; ENTER( "get_filename" ); if( !index ) return( "bad" ); while( index->fd != fd ) { if( index->next == NULL ) return( "bad" ); index = index->next; } LEAVE( "get_filename" ); return( index->filename ); } /*---------------------------------------------------------- dump_termios_list() accept: string to print out. perform: return: exceptions: win32api: None comments: used only for debugging eg serial_close() ----------------------------------------------------------*/ void dump_termios_list( char *foo ) { #ifdef DEBUG struct termios_list *index = first_tl; printf( "============== %s start ===============\n", foo ); if ( index ) { printf( "%i filename | %s\n", index->fd, index->filename ); } /* if ( index->next ) { printf( "%i filename | %s\n", index->fd, index->filename ); } */ printf( "============== %s end ===============\n", foo ); #endif } /*---------------------------------------------------------- set_errno() accept: perform: return: exceptions: win32api: None comments: FIXME ----------------------------------------------------------*/ void set_errno( int error ) { my_errno = error; } /*---------------------------------------------------------- usleep() accept: perform: return: exceptions: win32api: Sleep() comments: ----------------------------------------------------------*/ void usleep( unsigned long usec ) { Sleep( usec/1000 ); } /*---------------------------------------------------------- CBR_toB() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int CBR_to_B( int Baud ) { ENTER( "CBR_to_B" ); switch ( Baud ) { case 0: return( B0 ); case 50: return( B50 ); case 75: return( B75 ); case CBR_110: return( B110 ); case 134: return( B134 ); case 150: return( B150 ); case 200: return( B200 ); case CBR_300: return( B300 ); case CBR_600: return( B600 ); case CBR_1200: return( B1200 ); case 1800: return( B1800 ); case CBR_2400: return( B2400 ); case CBR_4800: return( B4800 ); case CBR_9600: return( B9600 ); case CBR_14400: return( B14400 ); case CBR_19200: return( B19200 ); case CBR_28800: return( B28800 ); case CBR_38400: return( B38400 ); case CBR_57600: return( B57600 ); case CBR_115200: return( B115200 ); case CBR_128000: return( B128000 ); case CBR_230400: return( B230400 ); case CBR_256000: return( B256000 ); case CBR_460800: return( B460800 ); case CBR_500000: return( B500000 ); case CBR_576000: return( B576000 ); case CBR_921600: return( B921600 ); case CBR_1000000: return( B1000000 ); case CBR_1152000: return( B1152000 ); case CBR_1500000: return( B1500000 ); case CBR_2000000: return( B2000000 ); case CBR_2500000: return( B2500000 ); case CBR_3000000: return( B3000000 ); case CBR_3500000: return( B3500000 ); case CBR_4000000: return( B4000000 ); default: /* assume custom baudrate */ return( Baud ); } } /*---------------------------------------------------------- B_to_CBR() accept: perform: return: exceptions: win32api: comments: None ----------------------------------------------------------*/ int B_to_CBR( int Baud ) { int ret; ENTER( "B_to_CBR" ); switch ( Baud ) { case 0: ret = 0; break; case B50: ret = 50; break; case B75: ret = 75; break; case B110: ret = CBR_110; break; case B134: ret = 134; break; case B150: ret = 150; break; case B200: ret = 200; break; case B300: ret = CBR_300; break; case B600: ret = CBR_600; break; case B1200: ret = CBR_1200; break; case B1800: ret = 1800; break; case B2400: ret = CBR_2400; break; case B4800: ret = CBR_4800; break; case B9600: ret = CBR_9600; break; case B14400: ret = CBR_14400; break; case B19200: ret = CBR_19200; break; case B28800: ret = CBR_28800; break; case B38400: ret = CBR_38400; break; case B57600: ret = CBR_57600; break; case B115200: ret = CBR_115200; break; case B128000: ret = CBR_128000; break; case B230400: ret = CBR_230400; break; case B256000: ret = CBR_256000; break; case B460800: ret = CBR_460800; break; case B500000: ret = CBR_500000; break; case B576000: ret = CBR_576000; break; case B921600: ret = CBR_921600; break; case B1000000: ret = CBR_1000000; break; case B1152000: ret = CBR_1152000; break; case B1500000: ret = CBR_1500000; break; case B2000000: ret = CBR_2000000; break; case B2500000: ret = CBR_2500000; break; case B3000000: ret = CBR_3000000; break; case B3500000: ret = CBR_3500000; break; case B4000000: ret = CBR_4000000; break; default: /* assume custom baudrate */ return Baud; } LEAVE( "B_to_CBR" ); return ret; } /*---------------------------------------------------------- bytesize_to_termios() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int bytesize_to_termios( int ByteSize ) { ENTER( "bytesize_to_termios" ); switch ( ByteSize ) { case 5: return( CS5 ); case 6: return( CS6 ); case 7: return( CS7 ); case 8: default: return( CS8 ); } } /*---------------------------------------------------------- termios_to_bytesize() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int termios_to_bytesize( int cflag ) { ENTER( "termios_to_bytesize" ); switch ( cflag & CSIZE ) { case CS5: return( 5 ); case CS6: return( 6 ); case CS7: return( 7 ); case CS8: default: return( 8 ); } } /*---------------------------------------------------------- get_dos_port() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ const char *get_dos_port( char const *name ) { ENTER( "get_dos_port" ); if ( !strcmp( name, "/dev/cua0" ) ) return( "COM1" ); if ( !strcmp( name, "/dev/cua1" ) ) return( "COM2" ); if ( !strcmp( name, "/dev/cua2" ) ) return( "COM3" ); if ( !strcmp( name, "/dev/cua3" ) ) return( "COM4" ); LEAVE( "get_dos_port" ); return( ( const char * ) name ); } /*---------------------------------------------------------- ClearErrors() accept: perform: keep track of errors for the eventLoop() (SerialImp.c) return: the return value of ClearCommError() exceptions: win32api: ClearCommError() comments: ----------------------------------------------------------*/ int ClearErrors( struct termios_list *index, COMSTAT *Stat ) { unsigned long ErrCode; int ret; ret = ClearCommError( index->hComm, &ErrCode, Stat ); if ( ret == 0 ) { YACK(); return( ret ); } #ifdef DEBUG_ERRORS if ( ErrCode ) { printf("%i frame %i %i overrun %i %i parity %u %i brk %i %i\n", (int) ErrCode, (int) ErrCode & CE_FRAME, index->sis->frame, (int) (ErrCode & CE_OVERRUN) | ( ErrCode & CE_RXOVER ), index->sis->overrun, (int) ErrCode & CE_RXPARITY, index->sis->parity, (int) ErrCode & CE_BREAK, index->sis->brk ); } #endif /* DEBUG_ERRORS */ if( ErrCode & CE_FRAME ) { index->sis->frame++; ErrCode &= ~CE_FRAME; } #ifdef LIFE_IS_GOOD FIXME OVERRUN is spewing if( ErrCode & CE_OVERRUN ) { index->sis->overrun++; ErrCode &= ~CE_OVERRUN; } /* should this be here? */ else if( ErrCode & CE_RXOVER ) { index->sis->overrun++; ErrCode &= ~CE_OVERRUN; } #endif /* LIFE_IS_GOOD */ if( ErrCode & CE_RXPARITY ) { index->sis->parity++; ErrCode &= ~CE_RXPARITY; } if( ErrCode & CE_BREAK ) { index->sis->brk++; ErrCode &= ~CE_BREAK; } return( ret ); } /*---------------------------------------------------------- FillDCB() accept: perform: return: exceptions: win32api: GetCommState(), SetCommState(), SetCommTimeouts() comments: ----------------------------------------------------------*/ BOOL FillDCB( DCB *dcb, unsigned long *hCommPort, COMMTIMEOUTS Timeout ) { ENTER( "FillDCB" ); dcb->DCBlength = sizeof( dcb ); if ( !GetCommState( hCommPort, dcb ) ) { report( "GetCommState\n" ); return( -1 ); } dcb->BaudRate = CBR_9600 ; dcb->ByteSize = 8; dcb->Parity = NOPARITY; dcb->StopBits = ONESTOPBIT; dcb->fDtrControl = DTR_CONTROL_ENABLE; dcb->fRtsControl = RTS_CONTROL_ENABLE; dcb->fOutxCtsFlow = FALSE; dcb->fOutxDsrFlow = FALSE; dcb->fDsrSensitivity = FALSE; dcb->fOutX = FALSE; dcb->fInX = FALSE; dcb->fTXContinueOnXoff = FALSE; dcb->XonChar = 0x11; dcb->XoffChar = 0x13; dcb->XonLim = 0; dcb->XoffLim = 0; dcb->fParity = TRUE; if ( EV_BREAK|EV_CTS|EV_DSR|EV_ERR|EV_RING|( EV_RLSD & EV_RXFLAG ) ) dcb->EvtChar = '\n'; else dcb->EvtChar = '\0'; if ( !SetCommState( hCommPort, dcb ) ) { report( "SetCommState\n" ); YACK(); return( -1 ); } if ( !SetCommTimeouts( hCommPort, &Timeout ) ) { YACK(); report( "SetCommTimeouts\n" ); return( -1 ); } LEAVE( "FillDCB" ); return ( TRUE ) ; } /*---------------------------------------------------------- serial_close() accept: perform: return: exceptions: win32api: SetCommMask(), CloseHandle() comments: ----------------------------------------------------------*/ int serial_close( int fd ) { struct termios_list *index; /* char message[80]; */ ENTER( "serial_close" ); if( !first_tl || !first_tl->hComm ) { report( "gotit!" ); return( 0 ); } index = find_port( fd ); if ( !index ) { LEAVE( "serial_close" ); return -1; } /* WaitForSingleObject( index->wol.hEvent, INFINITE ); */ /* if ( index->hComm != INVALID_HANDLE_VALUE ) { if ( !SetCommMask( index->hComm, EV_RXCHAR ) ) { YACK(); report( "eventLoop hung\n" ); } CloseHandle( index->hComm ); } else { sprintf( message, "serial_ close(): Invalid Port Reference for %s\n", index->filename ); report( message ); } */ if ( index->next && index->prev ) { index->next->prev = index->prev; index->prev->next = index->next; } else if ( index->prev ) { index->prev->next = NULL; } else if ( index->next ) { index->next->prev = NULL; first_tl = index->next; } else first_tl = NULL; if ( index ) { if ( index->rol.hEvent ) CloseHandle( index->rol.hEvent ); if ( index->wol.hEvent ) CloseHandle( index->wol.hEvent ); if ( index->sol.hEvent ) CloseHandle( index->sol.hEvent ); if ( index->hComm ) CloseHandle( index->hComm ); if ( index->ttyset ) free( index->ttyset ); if ( index->astruct ) free( index->astruct ); if ( index->sstruct ) free( index->sstruct ); if ( index->sis ) free( index->sis ); /* had problems with strdup if ( index->filename ) free( index->filename ); */ free( index ); } LEAVE( "serial_close" ); return 0; } /*---------------------------------------------------------- cfmakeraw() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ void cfmakeraw( struct termios *s_termios ) { ENTER( "cfmakeraw" ); s_termios->c_iflag &= ~( IGNBRK|BRKINT|PARMRK|ISTRIP |INLCR|IGNCR|ICRNL|IXON ); s_termios->c_oflag &= ~OPOST; s_termios->c_lflag &= ~( ECHO|ECHONL|ICANON|ISIG|IEXTEN ); s_termios->c_cflag &= ~( CSIZE|PARENB ); s_termios->c_cflag |= CS8; LEAVE( "cfmakeraw" ); } /*---------------------------------------------------------- init_termios() accept: perform: return: exceptions: win32api: comments: ----------------------------------------------------------*/ BOOL init_serial_struct( struct serial_struct *sstruct ) { ENTER( "init_serial_struct" ); /* use of custom_divisor and baud_base requires access to kernel space. The kernel does try its best if you just toss a baud rate at it though. */ sstruct->custom_divisor = 0; sstruct->baud_base = 115200; /* not currently used check values before using */ /* unsigned short */ sstruct->close_delay = 0; sstruct->closing_wait = 0; sstruct->iomem_reg_shift = 0; /* int */ sstruct->type = 0; sstruct->line = 0; sstruct->irq = 0; sstruct->flags = 0; sstruct->xmit_fifo_size = 0; sstruct->hub6 = 0; /* unsigned int */ sstruct->port = 0; sstruct->port_high = 0; /* char */ sstruct->io_type = 0; /* unsigned char * */ sstruct->iomem_base = NULL; LEAVE( "init_serial_struct" ); return TRUE; } /*---------------------------------------------------------- init_termios() accept: perform: return: exceptions: win32api: comments: ----------------------------------------------------------*/ BOOL init_termios(struct termios *ttyset ) { ENTER( "init_termios" ); if ( !ttyset ) return FALSE; memset( ttyset, 0, sizeof( struct termios ) ); cfsetospeed( ttyset, B9600 ); cfmakeraw( ttyset ); ttyset->c_cc[VINTR] = 0x03; /* 0: C-c */ ttyset->c_cc[VQUIT] = 0x1c; /* 1: C-\ */ ttyset->c_cc[VERASE] = 0x7f; /* 2: */ ttyset->c_cc[VKILL] = 0x15; /* 3: C-u */ ttyset->c_cc[VEOF] = 0x04; /* 4: C-d */ ttyset->c_cc[VTIME] = 0; /* 5: read timeout */ ttyset->c_cc[VMIN] = 1; /* 6: read returns after this many bytes */ ttyset->c_cc[VSUSP] = 0x1a; /* 10: C-z */ ttyset->c_cc[VEOL] = '\r'; /* 11: */ ttyset->c_cc[VREPRINT] = 0x12; /* 12: C-r */ /* ttyset->c_cc[VDISCARD] = 0x; 13: IEXTEN only */ ttyset->c_cc[VWERASE] = 0x17; /* 14: C-w */ ttyset->c_cc[VLNEXT] = 0x16; /* 15: C-w */ ttyset->c_cc[VEOL2] = '\n'; /* 16: */ LEAVE( "init_termios" ); return TRUE; /* default VTIME = 0, VMIN = 1: read blocks forever until one byte */ } /*---------------------------------------------------------- port_opened() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int port_opened( const char *filename ) { struct termios_list *index = first_tl; ENTER( "port_opened" ); if ( ! index ) return 0; if( !strcmp( index->filename, filename ) ) return index->fd; while ( index->next ) { index = index->next; if( !strcmp( index->filename, filename ) ) return index->fd; } LEAVE( "port_opened" ); return 0; } /*---------------------------------------------------------- open_port() accept: perform: return: exceptions: win32api: CreateFile(), SetupComm(), CreateEvent() comments: FILE_FLAG_OVERLAPPED allows one to break out the select() so RXTXPort.close() does not hang. The setDTR() and setDSR() are the functions that noticed to be blocked in the java close. Basically ioctl(TIOCM[GS]ET) are where it hangs. FILE_FLAG_OVERLAPPED also means we need to create valid OVERLAPPED structure in Serial_select. ----------------------------------------------------------*/ int open_port( struct termios_list *port ) { ENTER( "open_port" ); port->hComm = CreateFile( port->filename, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0 ); if ( port->hComm == INVALID_HANDLE_VALUE ) { YACK(); set_errno( EINVAL ); /* printf( "serial_open failed %s\n", port->filename ); */ return -1; } if( !SetupComm( port->hComm, 2048, 1024 ) ) { YACK(); return -1; } memset( &port->rol, 0, sizeof( OVERLAPPED ) ); memset( &port->wol, 0, sizeof( OVERLAPPED ) ); memset( &port->sol, 0, sizeof( OVERLAPPED ) ); port->rol.hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); if ( !port->rol.hEvent ) { YACK(); report( "Could not create read overlapped\n" ); goto fail; } port->sol.hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); if ( !port->sol.hEvent ) { YACK(); report( "Could not create select overlapped\n" ); goto fail; } port->wol.hEvent = CreateEvent( NULL, TRUE, FALSE, NULL ); if ( !port->wol.hEvent ) { YACK(); report( "Could not create write overlapped\n" ); goto fail; } LEAVE( "open_port" ); return( 0 ); fail: return( -1 ); } /*---------------------------------------------------------- termios_list() accept: fd which is a fake # for the port assigned when the port is opened perform: walk through a double linked list to see if the given fd is in any of the termios_list members. return: the termios_list if it is found. NULL if no matches are found. exceptions: None win32api: None comments: ----------------------------------------------------------*/ struct termios_list *find_port( int fd ) { char message[80]; struct termios_list *index = first_tl; ENTER( "find_port" ); if ( fd <= 0 || !first_tl ) goto fail; while( index->fd ) { if ( index->fd == fd ) { LEAVE( "find_port" ); return index; } if ( !index->next ) break; index = index->next; } fail: sprintf( message, "No info known about the port. %i\n", fd ); report( message ); set_errno( EBADF ); LEAVE( "find_port" ); return NULL; } /*---------------------------------------------------------- get_free_fd() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int get_free_fd() { int next, last; struct termios_list *index = first_tl; ENTER( "get_free_fd" ); if ( !index ) { return( 1 ); } if ( !index->fd ) { report( "!index->fd\n" ); return( 1 ); } if ( index->fd > 1) { first_tl = index; return ( 1 ); } last = index->fd; while( index->next ) { next = index->next->fd; if ( next != last + 1 ) { return( last + 1 ); } index = index->next; last = next; } LEAVE( "get_free_fd" ); return( index->fd + 1 ); } /*---------------------------------------------------------- add_port() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ struct termios_list *add_port( const char *filename ) { struct termios_list *index = first_tl; struct termios_list *port; ENTER( "add_port" ); port = malloc( sizeof( struct termios_list ) ); if( !port ) goto fail; memset( port, 0, sizeof( struct termios_list ) ); port->ttyset = malloc( sizeof( struct termios ) ); if( ! port->ttyset ) goto fail; memset( port->ttyset, 0, sizeof( struct termios ) ); port->sstruct = malloc( sizeof( struct serial_struct ) ); if( ! port->sstruct ) goto fail; memset( port->sstruct, 0, sizeof( struct serial_struct ) ); port->sis = malloc( sizeof( struct serial_icounter_struct ) ); if( ! port->sis ) goto fail; memset( port->sis, 0, sizeof( struct serial_icounter_struct ) ); /* FIXME the async_struct is being defined by mingw32 headers? port->astruct = malloc( sizeof( struct async_struct ) ); if( ! port->astruct ) goto fail; memset( port->astruct, 0, sizeof( struct async_struct ) ); */ port->MSR = 0; strcpy(port->filename, filename ); /* didnt free well? strdup( filename ); */ if( ! port->filename ) goto fail; port->fd = get_free_fd(); if ( !first_tl ) { port->prev = NULL; port->next = NULL; first_tl = port; } else { while ( ( index->fd < port->fd ) && index->next ) index = index->next; if ( index->fd > port->fd ) { /* inserting previously closed fd */ port->prev = index->prev; port->next=index; index->prev->next = port; index->prev = port; } else { /* adding to end of list */ port->prev = index; port->next = NULL; index->next = port; } } LEAVE( "add_port" ); return port; fail: report( "add_port: Out Of Memory\n"); if ( port->ttyset ) free( port->ttyset ); if ( port->astruct ) free( port->astruct ); if ( port->sstruct ) free( port->sstruct ); if ( port->sis ) free( port->sis ); /* had problems with strdup if ( port->filename ) free( port->filename ); */ if ( port ) free( port ); return port; } /*---------------------------------------------------------- check_port_capabilities() accept: perform: return: exceptions: win32api: GetCommProperties(), GetCommState() comments: ----------------------------------------------------------*/ int check_port_capabilities( struct termios_list *index ) { COMMPROP cp; DCB dcb; char message[80]; ENTER( "check_port_capabilities" ); /* check for capabilities */ GetCommProperties( index->hComm, &cp ); if ( !( cp.dwProvCapabilities & PCF_DTRDSR ) ) { sprintf( message, "%s: no DTR & DSR support\n", index->filename ); report( message ); } if ( !( cp.dwProvCapabilities & PCF_RLSD ) ) { sprintf( message, "%s: no carrier detect (RLSD) support\n", index->filename ); report( message ); } if ( !( cp.dwProvCapabilities & PCF_RTSCTS ) ) { sprintf( message, "%s: no RTS & CTS support\n", index->filename ); report( message ); } if ( !( cp.dwProvCapabilities & PCF_TOTALTIMEOUTS ) ) { sprintf( message, "%s: no timeout support\n", index->filename ); report( message ); } if ( !GetCommState( index->hComm, &dcb ) ) { YACK(); report( "GetCommState\n" ); return -1; } LEAVE( "check_port_capabilities" ); return 0; } /*---------------------------------------------------------- serial_open() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int serial_open( const char *filename, int flags, ... ) { struct termios_list *index; char message[80]; ENTER( "serial_open" ); if ( port_opened( filename ) ) { report( "Port is already opened\n" ); return( -1 ); } index = add_port( filename ); if( !index ) { report( "serial_open !index\n" ); return( -1 ); } index->interrupt = 0; index->tx_happened = 0; if ( open_port( index ) ) { sprintf( message, "serial_open(): Invalid Port Reference for %s\n", filename ); report( message ); serial_close( index->fd ); return -1; } if( check_port_capabilities( index ) ) { report( "check_port_capabilites!" ); serial_close( index->fd ); return -1; } init_termios( index->ttyset ); init_serial_struct( index->sstruct ); /* set default condition */ tcsetattr( index->fd, 0, index->ttyset ); /* if opened with non-blocking, then operating non-blocking */ if ( flags & O_NONBLOCK ) index->open_flags = O_NONBLOCK; else index->open_flags = 0; if( !first_tl->hComm ) { sprintf( message, "open(): Invalid Port Reference for %s\n", index->filename ); report( message ); } if ( first_tl->hComm == INVALID_HANDLE_VALUE ) report( "serial_open: test\n" ); LEAVE( "serial_open" ); return( index->fd ); } /*---------------------------------------------------------- serial_write() accept: perform: return: exceptions: win32api: WriteFile(), GetLastError(), WaitForSingleObject(), GetOverlappedResult(), FlushFileBuffers(), Sleep() comments: ----------------------------------------------------------*/ int serial_write( int fd, char *Str, int length ) { unsigned long nBytes; struct termios_list *index; /* COMSTAT Stat; */ int old_flag; ENTER( "serial_write" ); if ( fd <= 0 ) { return 0; } index = find_port( fd ); if ( !index ) { LEAVE( "serial_write"); return -1; } old_flag = index->event_flag; /* index->event_flag &= ~EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->tx_happened = 1; */ index->wol.Offset = index->wol.OffsetHigh = 0; ResetEvent( index->wol.hEvent ); if ( !WriteFile( index->hComm, Str, length, &nBytes, &index->wol ) ) { WaitForSingleObject( index->wol.hEvent,100 ); if ( GetLastError() != ERROR_IO_PENDING ) { /* ClearErrors( index, &Stat ); */ report( "serial_write error\n" ); /* report("Condition 1 Detected in write()\n"); */ YACK(); errno = EIO; nBytes=-1; goto end; } /* This is breaking on Win2K, WinXP for some reason */ else while( !GetOverlappedResult( index->hComm, &index->wol, &nBytes, TRUE ) ) { if ( GetLastError() != ERROR_IO_INCOMPLETE ) { /* report("Condition 2 Detected in write()\n"); */ YACK(); errno = EIO; nBytes = -1; goto end; /* ClearErrors( index, &Stat ); */ } } } else { /* Write finished synchronously. That is ok! * I have seen this with USB to Serial * devices like TI's. */ } end: /* FlushFileBuffers( index->hComm ); */ index->event_flag |= EV_TXEMPTY; /* ClearErrors( index, &Stat ); */ SetCommMask( index->hComm, index->event_flag ); /* ClearErrors( index, &Stat ); */ index->event_flag = old_flag; index->tx_happened = 1; LEAVE( "serial_write" ); return nBytes; } /*---------------------------------------------------------- serial_read() accept: perform: return: exceptions: win32api: ReadFile(), GetLastError(), WaitForSingleObject() GetOverLappedResult() comments: If setting errno make sure not to use EWOULDBLOCK In that case use EAGAIN. See SerialImp.c:testRead() ----------------------------------------------------------*/ int serial_read( int fd, void *vb, int size ) { long start, now; unsigned long nBytes = 0, total = 0, error; /* unsigned long waiting = 0; */ int err, vmin; struct termios_list *index; char message[80]; COMSTAT stat; clock_t c; unsigned char *dest = vb; start = GetTickCount(); ENTER( "serial_read" ); if ( fd <= 0 ) { return 0; } index = find_port( fd ); if ( !index ) { LEAVE( "serial_read" ); return -1; } /* FIXME: CREAD: without this, data cannot be read FIXME: PARMRK: mark framing & parity errors FIXME: IGNCR: ignore \r FIXME: ICRNL: convert \r to \n FIXME: INLCR: convert \n to \r */ if ( index->open_flags & O_NONBLOCK ) { int ret; vmin = 0; /* pull mucho-cpu here? */ do { #ifdef DEBUG_VERBOSE report( "vmin=0\n" ); #endif /* DEBUG_VERBOSE */ ret = ClearErrors( index, &stat); /* we should use -1 instead of 0 for disabled timeout */ now = GetTickCount(); if ( index->ttyset->c_cc[VTIME] && now-start >= (index->ttyset->c_cc[VTIME]*100)) { /* sprintf( message, "now = %i start = %i time = %i total =%i\n", now, start, index->ttyset->c_cc[VTIME]*100, total); report( message ); */ return total; /* read timeout */ } } while( stat.cbInQue < size && size > 1 ); } else { /* VTIME is in units of 0.1 seconds */ #ifdef DEBUG_VERBOSE report( "vmin!=0\n" ); #endif /* DEBUG_VERBOSE */ vmin = index->ttyset->c_cc[VMIN]; c = clock() + index->ttyset->c_cc[VTIME] * CLOCKS_PER_SEC / 10; do { error = ClearErrors( index, &stat); usleep(1000); } while ( c > clock() ); } total = 0; while ( size > 0 ) { nBytes = 0; /* ret = ClearErrors( index, &stat); */ index->rol.Offset = index->rol.OffsetHigh = 0; ResetEvent( index->rol.hEvent ); err = ReadFile( index->hComm, dest + total, size, &nBytes, &index->rol ); #ifdef DEBUG_VERBOSE /* warning Roy Rogers! */ sprintf(message, " ========== ReadFile = %i %s\n", ( int ) nBytes, (char *) dest + total ); report( message ); #endif /* DEBUG_VERBOSE */ size -= nBytes; total += nBytes; if ( !err ) { switch ( GetLastError() ) { case ERROR_BROKEN_PIPE: report( "ERROR_BROKEN_PIPE\n "); nBytes = 0; break; case ERROR_MORE_DATA: report( "ERROR_MORE_DATA\n" ); break; case ERROR_IO_PENDING: while( ! GetOverlappedResult( index->hComm, &index->rol, &nBytes, TRUE ) ) { if( GetLastError() != ERROR_IO_INCOMPLETE ) { ClearErrors( index, &stat); return( total ); } } size -= nBytes; total += nBytes; if (size > 0) { now = GetTickCount(); sprintf(message, "size > 0: spent=%ld have=%d\n", now-start, index->ttyset->c_cc[VTIME]*100); report( message ); /* we should use -1 for disabled timouts */ if ( index->ttyset->c_cc[VTIME] && now-start >= (index->ttyset->c_cc[VTIME]*100)) { report( "TO " ); /* read timeout */ return total; } } sprintf(message, "end nBytes=%ld] ", nBytes); report( message ); report( "ERROR_IO_PENDING\n" ); break; default: YACK(); return -1; } } else { ClearErrors( index, &stat); return( total ); } } LEAVE( "serial_read" ); return total; } #ifdef asdf int serial_read( int fd, void *vb, int size ) { long start, now; unsigned long nBytes = 0, total = 0, error; /* unsigned long waiting = 0; */ int err, vmin; struct termios_list *index; char message[80]; COMSTAT Stat; clock_t c; unsigned char *dest = vb; start = GetTickCount(); ENTER( "serial_read" ); if ( fd <= 0 ) { printf("1\n"); return 0; } index = find_port( fd ); if ( !index ) { LEAVE( "serial_read 7" ); errno = EIO; printf("2\n"); return -1; } /* FIXME: CREAD: without this, data cannot be read FIXME: PARMRK: mark framing & parity errors FIXME: IGNCR: ignore \r FIXME: ICRNL: convert \r to \n FIXME: INLCR: convert \n to \r */ ClearErrors( index, &Stat ); if ( index->open_flags & O_NONBLOCK ) { int ret; vmin = 0; /* pull mucho-cpu here? */ do { #ifdef DEBUG_VERBOSE report( "vmin=0\n" ); #endif /* DEBUG_VERBOSE */ ret = ClearErrors( index, &Stat); /* we should use -1 instead of 0 for disabled timeout */ now = GetTickCount(); if ( index->ttyset->c_cc[VTIME] && now-start >= (index->ttyset->c_cc[VTIME]*100)) { /* sprintf( message, "now = %i start = %i time = %i total =%i\n", now, start, index->ttyset->c_cc[VTIME]*100, total); report( message ); */ errno = EAGAIN; printf("3\n"); return -1; /* read timeout */ } } while( Stat.cbInQue < size && size > 1 ); } else { /* VTIME is in units of 0.1 seconds */ #ifdef DEBUG_VERBOSE report( "vmin!=0\n" ); #endif /* DEBUG_VERBOSE */ vmin = index->ttyset->c_cc[VMIN]; c = clock() + index->ttyset->c_cc[VTIME] * CLOCKS_PER_SEC / 10; do { error = ClearErrors( index, &Stat); usleep(1000); } while ( c > clock() ); } total = 0; while ( size > 0 ) { nBytes = 0; /* ret = ClearErrors( index, &Stat); */ index->rol.Offset = index->rol.OffsetHigh = 0; ResetEvent( index->rol.hEvent ); err = ReadFile( index->hComm, dest + total, size, &nBytes, &index->rol ); #ifdef DEBUG_VERBOSE /* warning Roy Rogers! */ sprintf(message, " ========== ReadFile = %i %s\n", ( int ) nBytes, (char *) dest + total ); report( message ); #endif /* DEBUG_VERBOSE */ size -= nBytes; total += nBytes; if ( !err ) { switch ( GetLastError() ) { case ERROR_BROKEN_PIPE: report( "ERROR_BROKEN_PIPE\n "); nBytes = 0; break; case ERROR_MORE_DATA: report( "ERROR_MORE_DATA\n" ); break; case ERROR_IO_PENDING: while( ! GetOverlappedResult( index->hComm, &index->rol, &nBytes, TRUE ) ) { if( GetLastError() != ERROR_IO_INCOMPLETE ) { ClearErrors( index, &Stat); printf("4\n"); return( total ); } } size -= nBytes; total += nBytes; if (size > 0) { now = GetTickCount(); sprintf(message, "size > 0: spent=%ld have=%d\n", now-start, index->ttyset->c_cc[VTIME]*100); report( message ); /* we should use -1 for disabled timouts */ if ( index->ttyset->c_cc[VTIME] && now-start >= (index->ttyset->c_cc[VTIME]*100)) { report( "TO " ); /* read timeout */ printf("5\n"); return total; } } sprintf(message, "end nBytes=%ld] ", nBytes); report( message ); report( "ERROR_IO_PENDING\n" ); break; default: YACK(); errno = EIO; printf("6\n"); return -1; } } else { ClearErrors( index, &Stat); printf("7\n"); return( total ); } } LEAVE( "serial_read" ); ClearErrors( index, &Stat); return total; } #endif /* asdf */ /*---------------------------------------------------------- cfsetospeed() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int cfsetospeed( struct termios *s_termios, speed_t speed ) { char message[80]; ENTER( "cfsetospeed" ); /* clear baudrate */ s_termios->c_cflag &= ~CBAUD; if ( speed & ~CBAUD ) { sprintf( message, "cfsetospeed: not speed: %#o\n", speed ); report( message ); /* continue assuming its a custom baudrate */ s_termios->c_cflag |= B38400; /* use 38400 during custom */ s_termios->c_cflag |= CBAUDEX; /* use CBAUDEX for custom */ } else if( speed ) { s_termios->c_cflag |= speed; } else { /* PC blows up with speed 0 handled in Java */ s_termios->c_cflag |= B9600; } s_termios->c_ispeed = s_termios->c_ospeed = speed; LEAVE( "cfsetospeed" ); return 1; } /*---------------------------------------------------------- cfsetispeed() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int cfsetispeed( struct termios *s_termios, speed_t speed ) { return cfsetospeed( s_termios, speed ); } /*---------------------------------------------------------- cfsetspeed() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int cfsetspeed( struct termios *s_termios, speed_t speed ) { return cfsetospeed( s_termios, speed ); } /*---------------------------------------------------------- cfgetospeed() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ speed_t cfgetospeed( struct termios *s_termios ) { ENTER( "cfgetospeed" ); return s_termios->c_ospeed; } /*---------------------------------------------------------- cfgetispeed() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ speed_t cfgetispeed( struct termios *s_termios ) { ENTER( "cfgetospeed" ); return s_termios->c_ispeed; } /*---------------------------------------------------------- termios_to_DCB() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int termios_to_DCB( struct termios *s_termios, DCB *dcb ) { ENTER( "termios_to_DCB" ); if ( !(s_termios->c_cflag & CBAUDEX) ) s_termios->c_ispeed = s_termios->c_ospeed = s_termios->c_cflag & CBAUD; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); dcb->ByteSize = termios_to_bytesize( s_termios->c_cflag ); if ( s_termios->c_cflag & PARENB ) { if ( s_termios->c_cflag & PARODD && s_termios->c_cflag & CMSPAR ) { dcb->Parity = MARKPARITY; } else if ( s_termios->c_cflag & PARODD ) { dcb->Parity = ODDPARITY; } else if ( s_termios->c_cflag & CMSPAR ) { dcb->Parity = SPACEPARITY; } else { dcb->Parity = EVENPARITY; } } else { dcb->Parity = NOPARITY; } if ( s_termios->c_cflag & CSTOPB ) { if (dcb->ByteSize == 5) { dcb->StopBits = ONE5STOPBITS; } else dcb->StopBits = TWOSTOPBITS; } else { dcb->StopBits = ONESTOPBIT; } if ( s_termios->c_cflag & HARDWARE_FLOW_CONTROL ) { dcb->fRtsControl = RTS_CONTROL_HANDSHAKE; dcb->fOutxCtsFlow = TRUE; } else { dcb->fRtsControl = RTS_CONTROL_DISABLE; dcb->fOutxCtsFlow = FALSE; } LEAVE( "termios_to_DCB" ); return 0; } /*---------------------------------------------------------- DCB_to_serial_struct() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ int DCB_to_serial_struct( DCB *dcb, struct serial_struct *sstruct ) { return( 0 ); } /*---------------------------------------------------------- DCB_to_termios() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ void DCB_to_termios( DCB *dcb, struct termios *s_termios ) { ENTER( "DCB_to_termios" ); s_termios->c_ispeed = CBR_to_B( dcb->BaudRate ); s_termios->c_ospeed = s_termios->c_ispeed; s_termios->c_cflag |= s_termios->c_ispeed & CBAUD; LEAVE( "DCB_to_termios" ); } /*---------------------------------------------------------- show_DCB() accept: perform: return: exceptions: win32api: None comments: ----------------------------------------------------------*/ void show_DCB( myDCB ) { #ifdef DEBUG_HOSED char message[80]; sprintf( message, "DCBlength: %ld\n", myDCB.DCBlength ); report( message ); sprintf( "BaudRate: %ld\n", myDCB.BaudRate ); report( message ); if ( myDCB.fBinary ) report( "fBinary\n" ); if ( myDCB.fParity ) { report( "fParity: " ); if ( myDCB.fErrorChar ) { sprintf( message, "fErrorChar: %#x\n", myDCB.ErrorChar ); report( message ); } else { report( "fErrorChar == false\n" ); } } if ( myDCB.fOutxCtsFlow ) report( "fOutxCtsFlow\n" ); if ( myDCB.fOutxDsrFlow ) report( "fOutxDsrFlow\n" ); if ( myDCB.fDtrControl & DTR_CONTROL_HANDSHAKE ); report( "DTR_CONTROL_HANDSHAKE\n" ); if ( myDCB.fDtrControl & DTR_CONTROL_ENABLE ); report( "DTR_CONTROL_ENABLE\n" ); if ( myDCB.fDtrControl & DTR_CONTROL_DISABLE ); report( "DTR_CONTROL_DISABLE\n" ); if ( myDCB.fDsrSensitivity ) report( "fDsrSensitivity\n" ); if ( myDCB.fTXContinueOnXoff ) report( "fTXContinueOnXoff\n" ); if ( myDCB.fOutX ) report( "fOutX\n" ); if ( myDCB.fInX ) report( "fInX\n" ); if ( myDCB.fNull ) report( "fNull\n" ); if ( myDCB.fRtsControl & RTS_CONTROL_TOGGLE ) report( "RTS_CONTROL_TOGGLE\n" ); if ( myDCB.fRtsControl == 0 ) report( "RTS_CONTROL_HANDSHAKE ( fRtsControl==0 )\n" ); if ( myDCB.fRtsControl & RTS_CONTROL_HANDSHAKE ) report( "RTS_CONTROL_HANDSHAKE\n" ); if ( myDCB.fRtsControl & RTS_CONTROL_ENABLE ) report( "RTS_CONTROL_ENABLE\n" ); if ( myDCB.fRtsControl & RTS_CONTROL_DISABLE ) report( "RTS_CONTROL_DISABLE\n" ); if ( myDCB.fAbortOnError ) report( "fAbortOnError\n" ); sprintf( message, "XonLim: %d\n", myDCB.XonLim ); report( message ); sprintf( message, "XoffLim: %d\n", myDCB.XoffLim ); report( message ); sprintf( message, "ByteSize: %d\n", myDCB.ByteSize ); report( message ); switch ( myDCB.Parity ) { case EVENPARITY: report( "EVENPARITY" ); break; case MARKPARITY: report( "MARKPARITY" ); break; case NOPARITY: report( "NOPARITY" ); break; case ODDPARITY: report( "ODDPARITY" ); break; default: sprintf( message, "unknown Parity (%#x ):", myDCB.Parity ); report( message ); break; } report( "\n" ); switch( myDCB.StopBits ) { case ONESTOPBIT: report( "ONESTOPBIT" ); break; case ONE5STOPBITS: report( "ONE5STOPBITS" ); break; case TWOSTOPBITS: report( "TWOSTOPBITS" ); break; default: report( "unknown StopBits (%#x ):", myDCB.StopBits ); break; } report( "\n" ); sprintf( message, "XonChar: %#x\n", myDCB.XonChar ); report( message ); sprintf( message, "XoffChar: %#x\n", myDCB.XoffChar ); report( message ); sprintf( message, "EofChar: %#x\n", myDCB.EofChar ); report( message ); sprintf( message, "EvtChar: %#x\n", myDCB.EvtChar ); report( message ); report( "\n" ); #endif /* DEBUG_HOSED */ } /*---------------------------------------------------------- tcgetattr() accept: perform: return: exceptions: win32api: GetCommState(), GetCommTimeouts() comments: ----------------------------------------------------------*/ int tcgetattr( int fd, struct termios *s_termios ) { DCB myDCB; COMMTIMEOUTS timeouts; struct termios_list *index; char message[80]; ENTER( "tcgetattr" ); if ( fd <= 0 ) return 0; index = find_port( fd ); if ( !index ) { LEAVE( "tcgetattr" ); return -1; } if ( !GetCommState( index->hComm, &myDCB ) ) { sprintf( message, "GetCommState failed\n" ); report( message ); return -1; } memcpy( s_termios, index->ttyset, sizeof( struct termios ) ); show_DCB( myDCB ); /***** input mode flags (c_iflag ) ****/ /* parity check enable */ if ( myDCB.fParity ) { s_termios->c_iflag |= INPCK; s_termios->c_iflag &= ~IGNPAR; } else { s_termios->c_iflag &= ~INPCK; s_termios->c_iflag |= IGNPAR; } /* FIXME: IGNBRK: ignore break */ /* FIXME: BRKINT: interrupt on break */ if ( myDCB.fOutX ) { s_termios->c_iflag |= IXON; } else { /* IXON: output start/stop control */ s_termios->c_iflag &= ~IXON; } if ( myDCB.fInX ) { s_termios->c_iflag |= IXOFF; } else { /* IXOFF: input start/stop control */ s_termios->c_iflag &= ~IXOFF; } if ( myDCB.fTXContinueOnXoff ) { s_termios->c_iflag |= IXANY; } else { /* IXANY: any char restarts output */ s_termios->c_iflag &= ~IXANY; } /* FIXME: IMAXBEL: if input buffer full, send bell */ /***** control mode flags (c_cflag ) *****/ /* FIXME: CLOCAL: DONT send SIGHUP on modem disconnect */ /* FIXME: HUPCL: generate modem disconnect when all has closed or exited */ /* CSTOPB two stop bits ( otherwise one) */ if ( myDCB.StopBits == TWOSTOPBITS ) { s_termios->c_cflag |= CSTOPB; } else if ( myDCB.StopBits == ONE5STOPBITS ) { s_termios->c_cflag |= CSTOPB; s_termios->c_cflag |= CS5; } else if ( myDCB.StopBits == ONESTOPBIT ) { s_termios->c_cflag &= ~CSTOPB; } /* PARENB enable parity bit */ s_termios->c_cflag &= ~( PARENB | PARODD | CMSPAR ); myDCB.fParity = 1; if( myDCB.fParity ) { report( "tcgetattr getting parity\n" ); s_termios->c_cflag |= PARENB; if ( myDCB.Parity == MARKPARITY ) { s_termios->c_cflag |= ( PARODD | CMSPAR ); } else if ( myDCB.Parity == SPACEPARITY ) { s_termios->c_cflag |= CMSPAR; } else if ( myDCB.Parity == ODDPARITY ) { report( "ODDPARITY\n" ); s_termios->c_cflag |= PARODD; } else if ( myDCB.Parity == EVENPARITY ) { report( "EVENPARITY\n" ); s_termios->c_cflag &= ~PARODD; } else if ( myDCB.Parity == NOPARITY ) { s_termios->c_cflag &= ~(PARODD | CMSPAR | PARENB); } } else { s_termios->c_cflag &= ~PARENB; } /* CSIZE */ s_termios->c_cflag |= bytesize_to_termios( myDCB.ByteSize ); /* HARDWARE_FLOW_CONTROL: hardware flow control */ if (( myDCB.fOutxCtsFlow == TRUE ) || ( myDCB.fRtsControl == RTS_CONTROL_HANDSHAKE)) { s_termios->c_cflag |= HARDWARE_FLOW_CONTROL; } else { s_termios->c_cflag &= ~HARDWARE_FLOW_CONTROL; } /* MDMBUF: carrier based flow control of output */ /* CIGNORE: tcsetattr will ignore control modes & baudrate */ /***** NOT SUPPORTED: local mode flags (c_lflag) *****/ /* ICANON: canonical (not raw) mode */ /* ECHO: echo back to terminal */ /* ECHOE: echo erase */ /* ECHOPRT: hardcopy echo erase */ /* ECHOK: show KILL char */ /* ECHOKE: BSD ECHOK */ /* ECHONL: ICANON only: echo newline even with no ECHO */ /* ECHOCTL: if ECHO, then control-A are printed as '^A' */ /* ISIG: recognize INTR, QUIT & SUSP */ /* IEXTEN: implmentation defined */ /* NOFLSH: dont clear i/o queues on INTR, QUIT or SUSP */ /* TOSTOP: background process generate SIGTTOU */ /* ALTWERASE: alt-w erase distance */ /* FLUSHO: user DISCARD char */ /* NOKERNINFO: disable STATUS char */ /* PENDIN: input line needsd reprinting, set by REPRINT char */ /***** END - NOT SUPPORTED *****/ /***** control characters (c_cc[NCCS] ) *****/ if ( !GetCommTimeouts( index->hComm, &timeouts ) ) { YACK(); report( "GetCommTimeouts\n" ); return -1; } s_termios->c_cc[VTIME] = timeouts.ReadTotalTimeoutConstant/100; /* handled in SerialImp.c? s_termios->c_cc[VMIN] = ? */ s_termios->c_cc[VSTART] = myDCB.XonChar; s_termios->c_cc[VSTOP] = myDCB.XoffChar; s_termios->c_cc[VEOF] = myDCB.EofChar; #ifdef DEBUG_VERBOSE sprintf( message, "tcgetattr: VTIME:%d, VMIN:%d\n", s_termios->c_cc[VTIME], s_termios->c_cc[VMIN] ); report( message ); #endif /* DEBUG_VERBOSE */ /***** line discipline ( c_line ) ( == c_cc[33] ) *****/ DCB_to_termios( &myDCB, s_termios ); /* baudrate */ LEAVE( "tcgetattr" ); return 0; } /* `TCSANOW' Make the change immediately. `TCSADRAIN' Make the change after waiting until all queued output has been written. You should usually use this option when changing parameters that affect output. `TCSAFLUSH' This is like `TCSADRAIN', but also discards any queued input. `TCSASOFT' This is a flag bit that you can add to any of the above alternatives. Its meaning is to inhibit alteration of the state of the terminal hardware. It is a BSD extension; it is only supported on BSD systems and the GNU system. Using `TCSASOFT' is exactly the same as setting the `CIGNORE' bit in the `c_cflag' member of the structure TERMIOS-P points to. *Note Control Modes::, for a description of `CIGNORE'. */ /*---------------------------------------------------------- tcsetattr() accept: perform: return: exceptions: win32api: GetCommState(), GetCommTimeouts(), SetCommState(), SetCommTimeouts() comments: ----------------------------------------------------------*/ int tcsetattr( int fd, int when, struct termios *s_termios ) { int vtime; DCB dcb; COMMTIMEOUTS timeouts; struct termios_list *index; ENTER( "tcsetattr" ); if ( fd <= 0 ) return 0; index = find_port( fd ); if ( !index ) { LEAVE( "tcsetattr" ); return -1; } fflush( stdout ); if ( s_termios->c_lflag & ICANON ) { report( "tcsetattr: no canonical mode support\n" ); /* and all other c_lflags too */ return -1; } if ( !GetCommState( index->hComm, &dcb ) ) { YACK(); report( "tcsetattr:GetCommState\n" ); return -1; } if ( !GetCommTimeouts( index->hComm, &timeouts ) ) { YACK(); report( "tcsetattr:GetCommTimeouts\n" ); return -1; } /*** control flags, c_cflag **/ if ( !( s_termios->c_cflag & CIGNORE ) ) { dcb.fParity=1; /* CIGNORE: ignore control modes and baudrate */ /* baudrate */ if ( termios_to_DCB( s_termios, &dcb ) < 0 ) return -1; } else { } /*** input flags, c_iflag **/ /* This is wrong. It disables Parity FIXME if( ( s_termios->c_iflag & INPCK ) && !( s_termios->c_iflag & IGNPAR ) ) { dcb.fParity = TRUE; } else { dcb.fParity = FALSE; } */ /* not in win95? Some years later... eww.. FIXME This is used for changing the Parity error character I think this code is hosed. See VEOF below Trent */ if ( s_termios->c_iflag & ISTRIP ) dcb.fBinary = FALSE; /* ISTRIP: strip to seven bits */ else dcb.fBinary = TRUE; /* FIXME: IGNBRK: ignore break */ /* FIXME: BRKINT: interrupt on break */ if ( s_termios->c_iflag & IXON ) { dcb.fOutX = TRUE; } else { dcb.fOutX = FALSE; } if ( s_termios->c_iflag & IXOFF ) { dcb.fInX = TRUE; } else { dcb.fInX = FALSE; } dcb.fTXContinueOnXoff = ( s_termios->c_iflag & IXANY ) ? TRUE : FALSE; /* FIXME: IMAXBEL: if input buffer full, send bell */ /* no DTR control in termios? */ dcb.fDtrControl = DTR_CONTROL_DISABLE; /* no DSR control in termios? */ dcb.fOutxDsrFlow = FALSE; /* DONT ignore rx bytes when DSR is OFF */ dcb.fDsrSensitivity = FALSE; dcb.XonChar = s_termios->c_cc[VSTART]; dcb.XoffChar = s_termios->c_cc[VSTOP]; dcb.XonLim = 0; /* ? */ dcb.XoffLim = 0; /* ? */ dcb.EofChar = s_termios->c_cc[VEOF]; if( dcb.EofChar != '\0' ) { dcb.fBinary = 0; } else { dcb.fBinary = 1; } if ( EV_BREAK|EV_CTS|EV_DSR|EV_ERR|EV_RING | ( EV_RLSD & EV_RXFLAG ) ) dcb.EvtChar = '\n'; else dcb.EvtChar = '\0'; if ( !SetCommState( index->hComm, &dcb ) ) { report( "SetCommState error\n" ); YACK(); return -1; } #ifdef DEBUG_VERBOSE sprintf( message, "VTIME:%d, VMIN:%d\n", s_termios->c_cc[VTIME], s_termios->c_cc[VMIN] ); report( message ); #endif /* DEBUG_VERBOSE */ vtime = s_termios->c_cc[VTIME] * 100; timeouts.ReadTotalTimeoutConstant = vtime; timeouts.ReadIntervalTimeout = 0; timeouts.ReadTotalTimeoutMultiplier = 0; timeouts.WriteTotalTimeoutConstant = vtime; timeouts.WriteTotalTimeoutMultiplier = 0; /* max between bytes */ if ( s_termios->c_cc[VMIN] > 0 && vtime > 0 ) { /* read blocks forever on VMIN chars */ } else if ( s_termios->c_cc[VMIN] == 0 && vtime == 0 ) { /* read returns immediately */ timeouts.ReadIntervalTimeout = MAXDWORD; timeouts.ReadTotalTimeoutConstant = 0; timeouts.ReadTotalTimeoutMultiplier = 0; } #ifdef DEBUG_VERBOSE sprintf( message, "ReadIntervalTimeout=%ld\n", timeouts.ReadIntervalTimeout ); report( message ); sprintf( message, "c_cc[VTIME] = %d, c_cc[VMIN] = %d\n", s_termios->c_cc[VTIME], s_termios->c_cc[VMIN] ); report( message ); sprintf( message, "ReadTotalTimeoutConstant: %ld\n", timeouts.ReadTotalTimeoutConstant ); report( message ); sprintf( message, "ReadIntervalTimeout : %ld\n", timeouts.ReadIntervalTimeout ); report( message ); sprintf( message, "ReadTotalTimeoutMultiplier: %ld\n", timeouts.ReadTotalTimeoutMultiplier ); report( message ); #endif /* DEBUG_VERBOSE */ if ( !SetCommTimeouts( index->hComm, &timeouts ) ) { YACK(); report( "SetCommTimeouts\n" ); return -1; } memcpy( index->ttyset, s_termios, sizeof( struct termios ) ); LEAVE( "tcsetattr" ); return 0; } /*---------------------------------------------------------- tcsendbreak() accept: perform: return: exceptions: win32api: None comments: break for duration*0.25 seconds or 0.25 seconds if duration = 0. ----------------------------------------------------------*/ int tcsendbreak( int fd, int duration ) { struct termios_list *index; COMSTAT Stat; ENTER( "tcsendbreak" ); index = find_port( fd ); if ( !index ) { LEAVE( "tcdrain" ); return -1; } if ( duration <= 0 ) duration = 1; if( !SetCommBreak( index->hComm ) ) ClearErrors( index, &Stat ); /* 0.25 seconds == 250000 usec */ usleep( duration * 250000 ); if( !ClearCommBreak( index->hComm ) ) ClearErrors( index, &Stat ); LEAVE( "tcsendbreak" ); return 1; } /*---------------------------------------------------------- tcdrain() accept: file descriptor perform: wait for ouput to be written. return: 0 on success, -1 otherwise exceptions: None win32api: FlushFileBuffers comments: ----------------------------------------------------------*/ int tcdrain ( int fd ) { struct termios_list *index; char message[80]; int old_flag; ENTER( "tcdrain" ); index = find_port( fd ); if ( !index ) { LEAVE( "tcdrain" ); return -1; } old_flag = index->event_flag; /* index->event_flag &= ~EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->tx_happened = 1; */ if ( !FlushFileBuffers( index->hComm ) ) { /* FIXME Need to figure out what the various errors are in windows. YACK() should report them and we can handle them as we find them Something funky is happening on NT. GetLastError = 0. */ sprintf( message, "FlushFileBuffers() %i\n", (int) GetLastError() ); report( message ); if( GetLastError() == 0 ) { set_errno( 0 ); return(0); } set_errno( EAGAIN ); YACK(); LEAVE( "tcdrain" ); return -1; } /* sprintf( message, "FlushFileBuffers() %i\n", (int) GetLastError() ); report( message ); */ LEAVE( "tcdrain success" ); index->event_flag |= EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->event_flag = old_flag; /* index->tx_happened = 1; */ return 0; } /*---------------------------------------------------------- tcflush() accept: file descriptor, queue_selector perform: discard data not transmitted or read TCIFLUSH: flush data not read TCOFLUSH: flush data not transmitted TCIOFLUSH: flush both return: 0 on success, -1 on error exceptions: none win32api: PurgeComm comments: ----------------------------------------------------------*/ int tcflush( int fd, int queue_selector ) { struct termios_list *index; int old_flag; index = find_port( fd ); if( !index) { LEAVE( "tclflush" ); return(-1); } old_flag = index->event_flag; /* index->event_flag &= ~EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->tx_happened = 1; */ ENTER( "tcflush" ); if ( !index ) { LEAVE( "tcflush" ); return -1; } index->tx_happened = 1; switch( queue_selector ) { case TCIFLUSH: if ( !PurgeComm( index->hComm, PURGE_RXABORT ) ) { goto fail; } break; case TCOFLUSH: if ( !PurgeComm( index->hComm, PURGE_TXABORT ) ) { goto fail; } break; case TCIOFLUSH: if ( !PurgeComm( index->hComm, PURGE_TXABORT ) ) { goto fail; } if ( !PurgeComm( index->hComm, PURGE_RXABORT ) ) { goto fail; } break; default: /* set_errno( ENOTSUP ); */ report( "tcflush: Unknown queue_selector\n" ); LEAVE( "tcflush" ); return -1; } index->event_flag |= EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->event_flag = old_flag; index->tx_happened = 1; LEAVE( "tcflush" ); return( 0 ); /* FIXME Need to figure out what the various errors are in windows. YACK() should report them and we can handle them as we find them */ fail: LEAVE( "tcflush" ); set_errno( EAGAIN ); YACK(); return -1; } /*---------------------------------------------------------- tcflow() accept: perform: return: exceptions: win32api: None comments: FIXME ----------------------------------------------------------*/ int tcflow( int fd, int action ) { ENTER( "tcflow" ); switch ( action ) { /* Suspend transmission of output */ case TCOOFF: break; /* Restart transmission of output */ case TCOON: break; /* Transmit a STOP character */ case TCIOFF: break; /* Transmit a START character */ case TCION: break; default: return -1; } LEAVE( "tcflow" ); return 1; } /*---------------------------------------------------------- fstat() accept: perform: return: exceptions: win32api: comments: this is just to keep the eventLoop happy. ----------------------------------------------------------*/ int fstat( int fd, ... ) { return( 0 ); } /*---------------------------------------------------------- ioctl() accept: perform: return: exceptions: win32api: GetCommError(), GetCommModemStatus, EscapeCommFunction() comments: FIXME the DCB struct is: typedef struct _DCB { unsigned long DCBlength, BaudRate, fBinary:1, fParity:1; unsigned long fOutxCtsFlow:1, fOutxDsrFlow:1, fDtrControl:2; unsigned long fDsrSensitivity:1, fTXContinueOnXoff:1; unsigned long fOutX:1, fInX:1, fErrorChar:1, fNull:1; unsigned long fRtsControl:2, fAbortOnError:1, fDummy2:17; WORD wReserved, XonLim, XoffLim; BYTE ByteSize, Parity, StopBits; char XonChar, XoffChar, ErrorChar, EofChar, EvtChar; WORD wReserved1; } DCB; ----------------------------------------------------------*/ int ioctl( int fd, int request, ... ) { unsigned long dwStatus = 0; va_list ap; int *arg, ret, result, old_flag; char message[80]; #ifdef TIOCGSERIAL DCB *dcb; struct serial_struct *sstruct; #endif /* TIOCGSERIAL */ COMSTAT Stat; struct termios_list *index; struct async_struct *astruct; struct serial_multiport_struct *mstruct; #ifdef TIOCGICOUNT struct serial_icounter_struct *sistruct; #endif /* TIOCGICOUNT */ ENTER( "ioctl" ); if ( fd <= 0 ) return 0; index = find_port( fd ); if ( !index ) { LEAVE( "ioctl" ); return -1; } va_start( ap, request ); ret = ClearErrors( index, &Stat ); if (ret == 0) { set_errno( EBADFD ); YACK(); report( "ClearError Failed! ernno EBADFD" ); arg = va_arg( ap, int * ); va_end( ap ); return -1; } switch( request ) { case TCSBRK: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TCSBRKP: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCGSOFTCAR: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCSSOFTCAR: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCMGET: arg = va_arg( ap, int * ); /* DORITOS */ if ( !GetCommModemStatus( index->hComm, &dwStatus ) ) report_error( "GetCommMOdemStatus failed!\n" ); if ( dwStatus & MS_RLSD_ON ) *arg |= TIOCM_CAR; else *arg &= ~TIOCM_CAR; if ( dwStatus & MS_RING_ON ) *arg |= TIOCM_RNG; else *arg &= ~TIOCM_RNG; if ( dwStatus & MS_DSR_ON ) *arg |= TIOCM_DSR; else *arg &= ~TIOCM_DSR; if ( dwStatus & MS_CTS_ON ) *arg |= TIOCM_CTS; else *arg &= ~TIOCM_CTS; /* I'm not seeing a way to read the MSR directly we store the state using TIOCM_* Trent */ if ( index->MSR & TIOCM_DTR ) *arg |= TIOCM_DTR; else *arg &= ~TIOCM_DTR; if ( index->MSR & TIOCM_RTS ) *arg |= TIOCM_RTS; else *arg &= ~TIOCM_RTS; /* TIOCM_LE TIOCM_ST TIOCM_SR */ va_end( ap ); return( 0 ); /* TIOCMIS, TIOCMBIC and TIOCMSET all do the same thing... */ case TIOCMBIS: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCMBIC: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCMSET: arg = va_arg( ap, int * ); if (( *arg & TIOCM_DTR) == (index->MSR & TIOCM_DTR) ) { report( "DTR is unchanged\n" ); } sprintf(message, "DTR %i %i\n", *arg&TIOCM_DTR, index->MSR & TIOCM_DTR ); report( message ); if ( *arg & TIOCM_DTR ) { index->MSR |= TIOCM_DTR; } else { index->MSR &= ~TIOCM_DTR; } if ( EscapeCommFunction( index->hComm, ( *arg & TIOCM_DTR ) ? SETDTR : CLRDTR ) ) report( "EscapeCommFunction: True\n" ); else report( "EscapeCommFunction: False\n" ); if ( (*arg & TIOCM_RTS) == ( index->MSR & TIOCM_RTS) ) { report( "RTS is unchanged\n" ); } sprintf( message, "RTS %i %i\n", *arg&TIOCM_RTS, index->MSR & TIOCM_RTS ); report( message ); if ( *arg & TIOCM_RTS ) { index->MSR |= TIOCM_RTS; result &= SETRTS; } else { index->MSR &= ~TIOCM_RTS; result &= CLRRTS; } if( EscapeCommFunction( index->hComm, ( *arg & TIOCM_RTS ) ? SETRTS : CLRRTS ) ) report( "EscapeCommFunction: True\n" ); else report( "EscapeCommFunction: False\n" ); break; #ifdef TIOCGSERIAL case TIOCGSERIAL: report( "TIOCGSERIAL\n" ); dcb = malloc( sizeof( DCB ) ); if( !dcb ) { va_end( ap ); return -1; } memset( dcb, 0, sizeof( DCB ) ); GetCommState( index->hComm, dcb ); sstruct = va_arg( ap, struct serial_struct * ); if ( DCB_to_serial_struct( dcb, sstruct ) < 0 ) { va_end( ap ); return -1; } index->sstruct = sstruct; report( "TIOCGSERIAL\n" ); free(dcb); break; #endif /* TIOCGSERIAL */ #ifdef TIOCSSERIAL case TIOCSSERIAL: report( "TIOCSSERIAL\n" ); dcb = malloc( sizeof( DCB ) ); if( !dcb ) { va_end( ap ); return -1; } memset( dcb, 0, sizeof( DCB ) ); GetCommState( index->hComm, dcb ); index->sstruct = va_arg( ap, struct serial_struct * ); report( "TIOCSSERIAL\n" ); free(dcb); break; #endif /* TIOCSSERIAL */ case TIOCSERCONFIG: case TIOCSERGETLSR: arg = va_arg( ap, int * ); /* do { wait = WaitForSingleObject( index->sol.hEvent, 5000 ); } while ( wait == WAIT_TIMEOUT ); */ ret = ClearErrors( index, &Stat ); if ( ret == 0 ) { /* FIXME ? */ set_errno( EBADFD ); YACK(); report( "TIOCSERGETLSR EBADFD" ); va_end( ap ); return -1; } if ( (int ) Stat.cbOutQue == 0 ) { /* output is empty */ if( index->tx_happened == 1 ) { old_flag = index->event_flag; index->event_flag &= ~EV_TXEMPTY; SetCommMask( index->hComm, index->event_flag ); index->event_flag = old_flag; *arg = 1; index->tx_happened = 0; report( "ioctl: ouput empty\n" ); } else { *arg = 0; } ret = 0; } else { /* still data out there */ *arg = 0; ret = 0; } va_end( ap ); return(0); break; case TIOCSERGSTRUCT: astruct = va_arg( ap, struct async_struct * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCSERGETMULTI: mstruct = va_arg( ap, struct serial_multiport_struct * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCSERSETMULTI: mstruct = va_arg( ap, struct serial_multiport_struct * ); va_end( ap ); return -ENOIOCTLCMD; case TIOCMIWAIT: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; /* On linux this fills a struct with all the line info (data available, bytes sent, ... */ #ifdef TIOCGICOUNT case TIOCGICOUNT: sistruct= va_arg( ap, struct serial_icounter_struct * ); ret = ClearErrors( index, &Stat ); if ( ret == 0 ) { /* FIXME ? */ report( "TIOCGICOUNT failed\n" ); set_errno( EBADFD ); va_end( ap ); return -1; } if( sistruct->frame != index->sis->frame ) { sistruct->frame = index->sis->frame; /* printf( "---------------frame = %i\n", sistruct->frame++ ); */ } if( sistruct->overrun != index->sis->overrun ) { /* printf( "---------------overrun\n" ); */ sistruct->overrun = index->sis->overrun; /* ErrCode &= ~CE_OVERRUN; */ } if( sistruct->parity != index->sis->parity ) { /* printf( "---------------parity\n" ); */ sistruct->parity = index->sis->parity; } if( sistruct->brk != index->sis->brk ) { /* printf( "---------------brk\n" ); */ sistruct->brk = index->sis->brk; } va_end( ap ); return 0; /* abolete ioctls */ #endif /* TIOCGICOUNT */ case TIOCSERGWILD: case TIOCSERSWILD: report( "TIOCSER[GS]WILD absolete\n" ); va_end( ap ); return 0; /* number of bytes available for reading */ case FIONREAD: arg = va_arg( ap, int * ); ret = ClearErrors( index, &Stat ); if ( ret == 0 ) { /* FIXME ? */ report( "FIONREAD failed\n" ); set_errno( EBADFD ); va_end( ap ); return -1; } *arg = ( int ) Stat.cbInQue; #ifdef DEBUG_VERBOSE sprintf( message, "FIONREAD: %i bytes available\n", (int) Stat.cbInQue ); report( message ); if( *arg ) { sprintf( message, "FIONREAD: %i\n", *arg ); report( message ); } #endif /* DEBUG_VERBOSE */ ret = 0; break; /* pending bytes to be sent */ case TIOCOUTQ: arg = va_arg( ap, int * ); va_end( ap ); return -ENOIOCTLCMD; default: sprintf( message, "FIXME: ioctl: unknown request: %#x\n", request ); report( message ); va_end( ap ); return -ENOIOCTLCMD; } va_end( ap ); LEAVE( "ioctl" ); return 0; } /*---------------------------------------------------------- fcntl() accept: perform: return: exceptions: win32api: None comments: FIXME ----------------------------------------------------------*/ int fcntl( int fd, int command, ... ) { int arg, ret = 0; va_list ap; struct termios_list *index; char message[80]; ENTER( "fcntl" ); if ( fd <= 0 ) return 0; index = find_port( fd ); if ( !index ) { LEAVE( "fcntl" ); return -1; } va_start( ap, command ); arg = va_arg( ap, int ); switch ( command ) { case F_SETOWN: /* set ownership of fd */ break; case F_SETFL: /* set operating flags */ #ifdef DEBUG sprintf( message, "F_SETFL fd=%d flags=%d\n", fd, arg ); report( message ); #endif index->open_flags = arg; break; case F_GETFL: /* get operating flags */ ret = index->open_flags; break; default: sprintf( message, "unknown fcntl command %#x\n", command ); report( message ); break; } va_end( ap ); LEAVE( "fcntl" ); return ret; } /*---------------------------------------------------------- termios_interrupt_event_loop() accept: perform: return: let Serial_select break out so the thread can die exceptions: win32api: comments: ----------------------------------------------------------*/ void termios_interrupt_event_loop( int fd, int flag ) { struct termios_list * index = find_port( fd ); if ( !index ) { LEAVE( "termios_interrupt_event_loop" ); return; } /* index->event_flag = 0; TRENT SetCommMask( index->hComm, index->event_flag ); usleep(2000); tcdrain( index->fd ); SetEvent( index->sol.hEvent ); */ index->interrupt = flag; return; } /*---------------------------------------------------------- Serial_select() accept: perform: return: number of fd's changed on success or -1 on error. exceptions: win32api: SetCommMask(), GetCommEvent(), WaitSingleObject() comments: ----------------------------------------------------------*/ #ifndef __LCC__ int serial_select( int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout ) { unsigned long dwCommEvent, wait = WAIT_TIMEOUT; int fd = n-1; struct termios_list *index; char message[80]; COMSTAT Stat; int ret; ENTER( "serial_select" ); if ( fd <= 0 ) { /* Baby did a bad baad thing */ goto fail; } index = find_port( fd ); if ( !index || !index->event_flag ) { /* still setting up the port? hold off for a Sec so things can fire up this does happen. loops ~twice on a 350 Mzh with usleep(1000000) */ usleep(10000); return(0); } ResetEvent( index->wol.hEvent ); ResetEvent( index->sol.hEvent ); ResetEvent( index->rol.hEvent ); ret = ClearErrors( index, &Stat ); if (ret == 0) goto fail; while ( wait == WAIT_TIMEOUT && index->sol.hEvent ) { if( index->interrupt == 1 ) { goto fail; } SetCommMask( index->hComm, index->event_flag ); ClearErrors( index, &Stat ); if ( !WaitCommEvent( index->hComm, &dwCommEvent, &index->sol ) ) { /* WaitCommEvent failed probably overlapped though */ if ( GetLastError() != ERROR_IO_PENDING ) { ClearErrors( index, &Stat ); goto fail; } /* thought so... */ } /* could use the select timeout here but it should not be needed */ ClearErrors( index, &Stat ); wait = WaitForSingleObject( index->sol.hEvent, 100 ); switch ( wait ) { case WAIT_OBJECT_0: goto end; case WAIT_TIMEOUT: goto timeout; case WAIT_ABANDONED: default: goto fail; } } end: /* You may want to chop this out for lower latency */ usleep(1000); LEAVE( "serial_select" ); return( 1 ); timeout: LEAVE( "serial_select" ); return( 0 ); fail: YACK(); sprintf( message, "< select called error %i\n", n ); report( message ); errno = EBADFD; LEAVE( "serial_select" ); return( 1 ); } #ifdef asdf int serial_select( int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout ) { unsigned long nBytes, dwCommEvent, wait = WAIT_TIMEOUT; int fd = n-1; struct termios_list *index; char message[80]; ENTER( "serial_select" ); if ( fd <= 0 ) { usleep(1000); return 1; } index = find_port( fd ); if ( !index ) { LEAVE( "serial_select" ); return -1; } if( index->interrupt == 1 ) { goto end; } while(!index->event_flag ) { usleep(1000); return -1; } while ( wait == WAIT_TIMEOUT && index->sol.hEvent ) { if( index->interrupt == 1 ) { goto end; } if( !index->sol.hEvent ) { return 1; } if ( !WaitCommEvent( index->hComm, &dwCommEvent, &index->sol ) ) { /* WaitCommEvent failed */ if( index->interrupt == 1 ) { goto end; } if ( GetLastError() != ERROR_IO_PENDING ) { sprintf( message, "WaitCommEvent filename = %s\n", index->filename); report( message ); return(1); /* goto fail; */ } return(1); } if( index->interrupt == 1 ) { goto end; } wait = WaitForSingleObject( index->sol.hEvent, 1000 ); switch ( wait ) { case WAIT_OBJECT_0: if( index->interrupt == 1 ) { goto end; } if( !index->sol.hEvent ) return(1); if (!GetOverlappedResult( index->hComm, &index->sol, &nBytes, TRUE )) { goto end; } else if( index->tx_happened == 1 ) { goto end; } else goto end; break; case WAIT_TIMEOUT: default: return(1); /* WaitFor error */ } } end: LEAVE( "serial_select" ); return( 1 ); #ifdef asdf /* FIXME this needs to be cleaned up... */ fail: sprintf( message, "< select called error %i\n", n ); YACK(); report( message ); set_errno( EBADFD ); LEAVE( "serial_select" ); return( 1 ); #endif /* asdf */ } #endif /* asdf */ #endif /* __LCC__ */ /*---------------------------------------------------------- termiosSetParityError() accept: fd The device opened perform: Get the Parity Error Char return: the Parity Error Char exceptions: none win32api: GetCommState() comments: No idea how to do this in Unix (handle in read?) ----------------------------------------------------------*/ int termiosGetParityErrorChar( int fd ) { struct termios_list *index; DCB dcb; ENTER( "termiosGetParityErrorChar" ); index = find_port( fd ); if( !index ) { LEAVE( "termiosGetParityErrorChar" ); return(-1); } GetCommState( index->hComm, &dcb ); LEAVE( "termiosGetParityErrorChar" ); return( dcb.ErrorChar ); } /*---------------------------------------------------------- termiosSetParityError() accept: fd The device opened, value the new Parity Error Char perform: Set the Parity Error Char return: void exceptions: none win32api: GetCommState(), SetCommState() comments: No idea how to do this in Unix (handle in read?) ----------------------------------------------------------*/ void termiosSetParityError( int fd, char value ) { DCB dcb; struct termios_list *index; ENTER( "termiosGetParityErrorChar" ); index = find_port( fd ); if ( !index ) { LEAVE( "termiosSetParityError" ); return; } GetCommState( index->hComm, &dcb ); dcb.ErrorChar = value; SetCommState( index->hComm, &dcb ); LEAVE( "termiosGetParityErrorChar" ); } /*----------------------- END OF LIBRARY -----------------*/ #ifdef PLAYING_AROUND static inline int inportb( int index ) { unsigned char value; __asm__ volatile ( "inb %1,%0" : "=a" (value) : "d" ((unsigned short)index) ); return value; } static inline void outportb(unsigned char val, unsigned short int index) { __asm__ volatile ( "outb %0,%1\n" : : "a" (val), "d" (index) ); } #endif /* PLAYING_AROUND */ ./rxtx-2.2pre2/src/I2CImp.h0000644000175000017500000001245510614033755015244 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.SerialPort constants */ #ifndef WIN32 #define DATABITS_5 5 #define DATABITS_6 6 #define DATABITS_7 7 #define DATABITS_8 8 #define PARITY_NONE 0 #define PARITY_ODD 1 #define PARITY_EVEN 2 #define PARITY_MARK 3 #define PARITY_SPACE 4 #endif #define STOPBITS_1 1 #define STOPBITS_2 2 #define FLOWCONTROL_NONE 0 #define FLOWCONTROL_RTSCTS_IN 1 #define FLOWCONTROL_RTSCTS_OUT 2 #define FLOWCONTROL_XONXOFF_IN 4 #define FLOWCONTROL_XONXOFF_OUT 8 /* gnu.io.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 /* java exception class names */ #define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ #ifdef CRTSCTS #define HARDWARE_FLOW_CONTROL CRTSCTS #else # ifdef CCTS_OFLOW # define HARDWARE_FLOW_CONTROL CCTS_OFLOW|CRST_IFLOW # else # ifdef RTSFLOW # define HARDWARE_FLOW_CONTROL RTSFLOW|CTSFLOW # else # ifdef CRTSFL # define HARDWARE_FLOW_CONTROL CRTSFL # else # ifdef CTSCD # define HARDWARE_FLOW_CONTROL CTSCD # else # define HARDWARE_FLOW_CONTROL 0 # endif # endif # endif # endif #endif /* PROTOTYPES */ int translate_speed( JNIEnv *, jint ); int translate_data_bits( JNIEnv *, int *, jint ); int translate_stop_bits( JNIEnv *, int *, jint ); int translate_parity( JNIEnv *, int *, jint ); int read_byte_array( int, unsigned char *, int, int ); int get_java_var( JNIEnv *, jobject, char *, char * ); int get_java_fd( JNIEnv *, jobject ); void send_modem_events( JNIEnv *, jobject, jmethodID, int, int, int ); void throw_java_exception( JNIEnv *, char *, char *, char * ); ./rxtx-2.2pre2/src/SerialImp.cpp0000644000175000017500000015637210614033756016451 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include "config.h" #include "gnu_io_RXTXPort.h" #include #include #include //#include // !!! //#include // !!! #include // !!! //#include //#include // !!! #include #include #include #include #ifndef WIN32 #include #include #include #ifdef HAVE_TERMIOS_H # include #endif #ifdef HAVE_SYS_SIGNAL_H # include #endif #else # include #endif #include #include #include #ifdef HAVE_SYS_FCNTL_H # include #endif #ifdef HAVE_SYS_FILE_H # include #endif extern int errno; #include "SerialImp.h" /* #define DEBUG */ /* this is so diff will not generate noise when merging 1.4 and 1.5 changes * It will eventually be removed. * */ #define RXTXPort(foo) Java_gnu_io_RXTXPort_ ## foo #define RXTXCommDriver(foo) Java_gnu_io_RXTXCommDriver_ ## foo //#define MAX_PORT_NUM 65; BSerialPort *PortArray[65]; // !!! BSerialPort *port; // !!! FILE *fp; // !!! /*---------------------------------------------------------- RXTXPort.Initialize accept: none perform: Initialize the native library return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.Initialize\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// #ifndef WIN32 #ifndef __BEOS__ #ifdef DEBUG struct utsname name; #endif /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(__FreeBSD___) struct sigaction handler; sigaction( SIGIO, NULL, &handler ); if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); #endif /* !__FreeBSD__ */ #ifdef DEBUG /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { report("RXTX WARNING: cannot get system name\n"); return; } if(!strcmp(name.release,UTS_RELEASE)) { fprintf(stderr, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE, name.release); getchar(); } #endif /* DEBUG */ #endif /* __BEOS__ */ #endif /* WIN32 */ } /*---------------------------------------------------------- RXTXPort.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOException comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(open)( JNIEnv *env, jobject jobj, jstring jstr ) { int i = 1; int fd = -1; for (i = 1; i < 65; i++) // we start at 1 because fd = 0 is invalid to RXTXPort.java { if (!PortArray[i]) // Here, we are finding the first non-null index into PortArray. { fd = i; // fd is no longer a "file descriptor" but an index // into an array of pointers to BSerialPort Objects. break; // got a good one. } } if (fd < 1) // if no good fd found, throw exception. { throw_java_exception( env, PORT_IN_USE_EXCEPTION, "open", strerror( errno ) ); return -1; } // retrieve the serial port filename, strip off extra goo to leave just serial1, serial2, etc. const char *filename = env->GetStringUTFChars(jstr, 0); // retrieve filename from JAVAland. char devName[B_OS_NAME_LENGTH]; const char *newDevName = strstr(filename, "serial"); strncpy(&devName[0], &newDevName[0], (strlen(newDevName) + 1)); // Instantiate the BSerialPort associated with devName (serial1, serial2, etc). PortArray[fd] = new BSerialPort(); // Actually open serial port here: //do //{ status_t results = PortArray[fd]->Open(&devName[0]); //} while (errno==EINTR); if (results < 1) // throw exception if can't open port. { throw_java_exception( env, PORT_IN_USE_EXCEPTION, "open", strerror( errno ) ); return -1; } // Set initial port parameters PortArray[fd]->SetFlowControl(0); PortArray[fd]->SetBlocking(false); if (PortArray[fd]->SetDataRate(B_9600_BPS) != B_OK) { throw_java_exception( env, PORT_IN_USE_EXCEPTION, "open", strerror( errno ) ); return -1; } env->ReleaseStringUTFChars(jstr, NULL); // releasing filename for JAVAland. // Open Debug Error log file fp = fopen("RXTXOut.log", "a"); fprintf(fp, "inside RXTXPort.Open fd for BSerialPort is %i.\n",fd); fprintf(fp, "inside RXTXPort.Open devName for BSerialPort is %s.\n", devName); fprintf(fp, "inside RXTXPort.Open results of open is %i.\n", (int)results); fclose(fp); // Close Log File return (jint)fd; // returning the "fd" (the index into array of BSerialPort pointers). } /*---------------------------------------------------------- RXTXPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(nativeClose)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside nativeClose\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// delete PortArray[fd]; return; } /*---------------------------------------------------------- RXTXPort.nativeSetSerialPortParams accept: speed, data bits, stop bits, parity perform: set the serial port parameters return: void exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(nativeSetSerialPortParams)( JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity ) { int fd = get_java_var( env, jobj,"fd","I" ); data_rate cspeed = translate_speed( env, speed ); data_bits numofdatabits; stop_bits numofstopbits; parity_mode whichparitymode; if( !cspeed ) return; if( !translate_data_bits( env, &(numofdatabits), dataBits ) ) return; if( !translate_stop_bits( env, &(numofstopbits), stopBits ) ) return; if( !translate_parity( env, &(whichparitymode), parity ) ) return; PortArray[fd]->SetDataBits(numofdatabits); PortArray[fd]->SetStopBits(numofstopbits); PortArray[fd]->SetParityMode(whichparitymode); if (PortArray[fd]->SetDataRate(cspeed) != B_OK) { throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetSerialPortParams", strerror( errno ) ); } ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.nativeSetSerialPortParams\n"); fprintf(fp, "speed = %i\n", speed); fprintf(fp, "fd = %i\n", fd); fprintf(fp, "RXTXPort:nativeSetSerialPortParams right before return\n"); fclose(fp); ////////////////// Close Log File ///////////////////// return; } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: UnsupportedCommOperationException comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ data_rate translate_speed( JNIEnv *env, jint speed ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside translate_speed\n"); fclose(fp); ////////////////// Close Log File //////////////////// switch( speed ) { case 0: return B_0_BPS; case 50: return B_50_BPS; case 75: return B_75_BPS; case 110: return B_110_BPS; case 134: return B_134_BPS; case 150: return B_150_BPS; case 200: return B_200_BPS; case 300: return B_300_BPS; case 600: return B_600_BPS; case 1200: return B_1200_BPS; case 1800: return B_1800_BPS; case 2400: return B_2400_BPS; case 4800: return B_4800_BPS; case 9600: return B_9600_BPS; case 19200: return B_19200_BPS; case 38400: return B_38400_BPS; case 57600: return B_57600_BPS; case 115200: return B_115200_BPS; case 230400: return B_230400_BPS; case 31250: return B_31250_BPS; // this one was in BeOS's SerialPort.h, but I am // skeptical that this setting will work... } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_speed", "speed" ); return B_0_BPS; } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.SerialPort.DATABITS_* constant perform: convert to BeOS eqivalent bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( JNIEnv *env, data_bits *dbits, jint dataBits ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside translate_data_bits\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// switch( dataBits ) { case DATABITS_7: (*dbits) = B_DATA_BITS_7; return 1; case DATABITS_8: (*dbits) = B_DATA_BITS_8; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_data_bits", "data bits" ); return 0; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.SerialPort.STOPBITS_* constant perform: convert to BeOS eqivalent bits return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: You now can't specify anything but 1 or 2 stop bits. ----------------------------------------------------------*/ int translate_stop_bits( JNIEnv *env, stop_bits *sbits, jint stopBits ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside translate_stop_bits\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// switch( stopBits ) { case STOPBITS_1: (*sbits) = B_STOP_BITS_1; return 1; case STOPBITS_2: (*sbits) = B_STOP_BITS_2; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_stop_bits", "stop bits" ); return 0; } /*---------------------------------------------------------- translate_parity accept: gnu.io.SerialPort.PARITY_* constant perform: convert parity parameters to BeOS specific ones. return: 1 if successful 0 if an exception is thrown exceptions: UnsupportedCommOperationException comments: The CMSPAR bit not there??? ----------------------------------------------------------*/ int translate_parity( JNIEnv *env, parity_mode *parmode, jint parity ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside translate_parity\n"); fclose(fp); ////////////////// Close Log File //////////////////// switch( parity ) { case PARITY_NONE: (*parmode) = B_NO_PARITY; return 1; case PARITY_EVEN: (*parmode) = B_EVEN_PARITY; return 1; case PARITY_ODD: (*parmode) = B_ODD_PARITY; return 1; } throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "translate_parity", "parity" ); return 0; } /*---------------------------------------------------------- RXTXPort.writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(writeByte)( JNIEnv *env, jobject jobj, jint ji ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.writeByte\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); //fprintf(fp, "RXTXPort.writeByte fd = %i\n", fd); ssize_t result; do { result = PortArray[fd]->Write(&byte, sizeof(unsigned char)); } while ((result < (ssize_t) 0) && (errno==EINTR)); //fclose(fp); //return; //do { // result=write (14, &byte, sizeof(unsigned char)); //} while (result < 0 && errno==EINTR); if(result >= (ssize_t)0) return; throw_java_exception( env, IO_EXCEPTION, "writeByte", strerror( errno ) ); } /*---------------------------------------------------------- RXTXPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(writeArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.writeArray\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); int total=0,i; size_t result = 0; unsigned char *bytes = (unsigned char *)malloc( count ); jbyte *body = env->GetByteArrayElements(jbarray, 0); for( i = 0; i < count; i++ ) bytes[ i ] = body[ i + offset ]; env->ReleaseByteArrayElements(jbarray, body, 0); do { //result=write (fd, bytes + total, count - total); result = PortArray[fd]->Write(bytes + total, count - total); if(result >0){ total += result; } } while ((totalClearOutput(); count++; } while (errno==EINTR && count <5); //if( result ) throw_java_exception( env, IO_EXCEPTION, "drain", // strerror( errno ) ); } /*---------------------------------------------------------- RXTXPort.sendBreak accept: duration in milliseconds. perform: send break for actual time. not less than 0.25 seconds. exceptions: none comments: not very precise ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(sendBreak)( JNIEnv *env, jobject jobj, jint duration ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.sendBreak\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); tcsendbreak( fd, (int)( duration / 250 ) ); } /*---------------------------------------------------------- RXTXPort.NativegetReceiveTimeout accept: none perform: get termios.c_cc[VTIME] return: VTIME comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(NativegetReceiveTimeout)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.NativeReceiveTimeout\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; return(ttyset.c_cc[ VTIME ] * 100); fail: throw_java_exception( env, IO_EXCEPTION, "getReceiveTimeout", strerror( errno ) ); return -1; } /*---------------------------------------------------------- RXTXPort.NativeisReceiveTimeoutEnabled accept: none perform: determine if VTIME is none 0 return: JNI_TRUE if VTIME > 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(NativeisReceiveTimeoutEnabled)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.NativeisReceiveTimeoutEnabled\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; return(ttyset.c_cc[ VTIME ] > 0 ? JNI_TRUE:JNI_FALSE); fail: throw_java_exception( env, IO_EXCEPTION, "isReceiveTimeoutEnabled", strerror( errno ) ); return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isDSR)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isDSR\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsDSR()) { return JNI_TRUE; } else { return JNI_FALSE; } } /*---------------------------------------------------------- RXTXPort.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isCD)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isCD\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsDCD()) { return JNI_TRUE; } else { return JNI_FALSE; } } /*---------------------------------------------------------- RXTXPort.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isCTS)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isCTS\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsCTS()) { return JNI_TRUE; } else { return JNI_FALSE; } } /*---------------------------------------------------------- RXTXPort.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isRI)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isRI\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsRI()) { return JNI_TRUE; } else { return JNI_FALSE; } } #ifndef __BEOS__ /*---------------------------------------------------------- RXTXPort.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isRTS)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isRTS\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsRTS()) { return JNI_TRUE; } else { return JNI_FALSE; } } #endif /* __BEOS__ */ /*---------------------------------------------------------- RXTXPort.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setRTS)( JNIEnv *env, jobject jobj, jboolean state ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.setRTS\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (state == JNI_TRUE) { PortArray[fd]->SetRTS(true); } else { PortArray[fd]->SetRTS(false); } return; } #ifndef __BEOS__ /*---------------------------------------------------------- RXTXPort.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setDSR)( JNIEnv *env, jobject jobj, jboolean state ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.setDSR\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (state == JNI_TRUE) { PortArray[fd]->SetDSR(true); } else { PortArray[fd]->SetDSR(false); } return; } /*---------------------------------------------------------- RXTXPort.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isDTR)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.isDTR\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (PortArray[fd]->IsDTR()) { return JNI_TRUE; } else { return JNI_FALSE; } } #endif /* __BEOS__ */ /*---------------------------------------------------------- RXTXPort.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setDTR)( JNIEnv *env, jobject jobj, jboolean state ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.setDTR\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); if (state == JNI_TRUE) { PortArray[fd]->SetDTR(true); } else { PortArray[fd]->SetDTR(false); } return; } /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int timeout ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside read_byte_array\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int ret, left, bytes = 0; struct timeval sleep; struct timeval *psleep=&sleep; #ifndef __BEOS__ fd_set rfds; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); if( timeout != 0 ) { sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); } #endif __BEOS__ left = length; while( bytes < length ) { #ifndef __BEOS__ /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ do { if( timeout == 0 ) psleep = NULL; ret=select( fd + 1, &rfds, NULL, NULL, psleep ); } while (ret < 0 && errno==EINTR); if( ret == 0 ) break; if( ret < 0 ) return -1; #endif __BEOS__ ret = read( fd, buffer + bytes, left ); if( ret == 0 ) break; if( ret < 0 ) return -1; bytes += ret; left -= ret; } return bytes; } /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(NativeEnableReceiveTimeoutThreshold)( JNIEnv *env, jobject jobj, jint vtime, jint threshold, jint buffer) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside NativeEnableReceiveTimeoutThreshold\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[ VMIN ] = threshold; ttyset.c_cc[ VTIME ] = vtime/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "TimeoutThreshold", strerror( errno ) ); return; } /*---------------------------------------------------------- RXTXPort.readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(readByte)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.readByte\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// //status_t SetTimeout(bigtime_t timeout) //int bytes; unsigned char buffer[ 1 ]; int fd = get_java_var( env, jobj,"fd","I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); if (PortArray[fd]->SetTimeout((bigtime_t) timeout) != B_OK) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } if (PortArray[fd]->Read(&buffer[0], sizeof(unsigned char)) != 1) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } return (jint)buffer[0]; /* bytes = read_byte_array( fd, buffer, 1, timeout ); if( bytes < 0 ) { throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } return (bytes ? (jint)buffer[ 0 ] : -1); */ } /*---------------------------------------------------------- RXTXPort.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(readArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.readArray\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int bytes; jbyte *body; unsigned char *buffer; int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); if( length > SSIZE_MAX || length < 0 ) { throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } buffer = (unsigned char *)malloc( sizeof( unsigned char ) * length ); if( buffer == 0 ) { throw_java_exception( env, OUT_OF_MEMORY, "readArray", "Unable to allocate buffer" ); return -1; } bytes = read_byte_array( fd, buffer, length, timeout ); if( bytes < 0 ) { free( buffer ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } //body = (*env)->GetByteArrayElements( env, jbarray, 0 ); body = env->GetByteArrayElements( jbarray, 0 ); // !!! memcpy(body + offset, buffer, bytes); //(*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); env->ReleaseByteArrayElements( jbarray, body, 0 ); // !!! free( buffer ); return (bytes ? bytes : -1); } /*---------------------------------------------------------- RXTXPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeavailable)( JNIEnv *env, jobject jobj ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.nativeavailable\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// //#ifndef __BEOS__ int fd = get_java_var( env, jobj,"fd","I" ); //int result; ssize_t result = 0; result = PortArray[fd]->WaitForInput(); // WaitForInput() not the best choice, but all I could find. return (jint)result; /* if( ioctl( fd, FIONREAD, &result ) ) { throw_java_exception( env, IO_EXCEPTION, "nativeavailable", strerror( errno ) ); return -1; } else return (jint)result; */ //#endif //return (-1); } /*---------------------------------------------------------- RXTXPort.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: IOException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setflowcontrol)( JNIEnv *env, jobject jobj, jint flowmode ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.setflowcontrol\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd = get_java_var( env, jobj,"fd","I" ); switch( flowmode ) { case FLOWCONTROL_NONE: PortArray[fd]->SetFlowControl(B_NOFLOW_CONTROL); if (PortArray[fd]->FlowControl() != B_NOFLOW_CONTROL) { throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } break; case FLOWCONTROL_RTSCTS_IN: PortArray[fd]->SetFlowControl(B_HARDWARE_CONTROL); if (PortArray[fd]->FlowControl() != B_HARDWARE_CONTROL) { throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } break; case FLOWCONTROL_RTSCTS_OUT: PortArray[fd]->SetFlowControl(B_HARDWARE_CONTROL); if (PortArray[fd]->FlowControl() != B_HARDWARE_CONTROL) { throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } break; case FLOWCONTROL_XONXOFF_IN: PortArray[fd]->SetFlowControl(B_SOFTWARE_CONTROL); if (PortArray[fd]->FlowControl() != B_SOFTWARE_CONTROL) { throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } break; case FLOWCONTROL_XONXOFF_OUT: PortArray[fd]->SetFlowControl(B_SOFTWARE_CONTROL); if (PortArray[fd]->FlowControl() != B_SOFTWARE_CONTROL) { throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; } break; } return; /* if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) ttyset.c_iflag |= IXOFF; else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) ttyset.c_iflag |= IXON; else ttyset.c_iflag &= ~IXON; if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; return; fail: throw_java_exception( env, IO_EXCEPTION, "setHWFC", strerror( errno ) ); return; */ } #ifdef __BEOS__ /*---------------------------------------------------------- RXTXPort.eventLoop accept: none perform: periodically check for SerialPortEvents return: none exceptions: none comments: ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { printf("BeOS eventLoop not Implemented\n"); #else /* __BEOS__ */ ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside RXTXPort.eventLoop\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int fd, ret, change; fd_set rfds; struct timeval tv_sleep; unsigned int mflags, omflags; jboolean interrupted = 0; #if defined TIOCSERGETLSR struct stat fstatbuf; #endif /* TIOCSERGETLSR */ #if defined(TIOCGICOUNT) struct serial_icounter_struct sis, osis; /* JK00: flag if this can be used on this port */ int has_tiocgicount = 1; #endif /* TIOCGICOUNT */ #if defined(TIOCSERGETLSR) int has_tiocsergetlsr = 1; #endif /* TIOCSERGETLSR */ fd = get_java_var(env, jobj, "fd", "I"); #if defined(TIOCGICOUNT) /* Some multiport serial cards do not implement TIOCGICOUNT ... */ /* So use the 'dumb' mode to enable using them after all! JK00 */ if( ioctl( fd, TIOCGICOUNT, &osis ) < 0 ) { report("Port does not support TIOCGICOUNT events\n" ); has_tiocgicount = 0; } #endif /* TIOCGICOUNT */ #if defined(TIOCSERGETLSR) /* JK00: work around for multiport cards without TIOCSERGETLSR */ /* Cyclades is one of those :-( */ if( ioctl( fd, TIOCSERGETLSR, &change ) ) { report("Port does not support TIOCSERGETLSR\n" ); has_tiocsergetlsr = 0; } #endif /* TIOCSERGETLSR */ if( ioctl( fd, TIOCMGET, &omflags) <0 ) { report("Port does not support events\n" ); return; } FD_ZERO( &rfds ); while( !interrupted ) { FD_SET( fd, &rfds ); tv_sleep.tv_sec = 0; tv_sleep.tv_usec = 100000; do { ret=select( fd + 1, &rfds, NULL, NULL, &tv_sleep ); } while (ret < 0 && errno==EINTR); if( ret < 0 ) break; interrupted = is_interrupted(env, jobj); if(interrupted) return; #if defined TIOCSERGETLSR /* JK00: work around for Multi IO cards without TIOCSERGETLSR */ if( has_tiocsergetlsr ) { if (fstat(fd, &fstatbuf)) break; if( ioctl( fd, TIOCSERGETLSR, &change ) ) break; else if( change ) send_event( env, jobj, SPE_OUTPUT_BUFFER_EMPTY, 1 ); } #endif /* TIOCSERGETLSR */ #if defined(TIOCGICOUNT) /* wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); */ /* JK00: only use it if supported by this port */ if (has_tiocgicount) { if( ioctl( fd, TIOCGICOUNT, &sis ) ) break; while( sis.frame != osis.frame ) { send_event( env, jobj, SPE_FE, 1); osis.frame++; } while( sis.overrun != osis.overrun ) { send_event( env, jobj, SPE_OE, 1); osis.overrun++; } while( sis.parity != osis.parity ) { send_event( env, jobj, SPE_PE, 1); osis.parity++; } while( sis.brk != osis.brk ) { send_event( env, jobj, SPE_BI, 1); osis.brk++; } osis = sis; } #endif /* TIOCGICOUNT */ /* A Portable implementation */ if( ioctl( fd, TIOCMGET, &mflags ) ) break; change = (mflags&TIOCM_CTS) - (omflags&TIOCM_CTS); if( change ) send_event( env, jobj, SPE_CTS, change ); change = (mflags&TIOCM_DSR) - (omflags&TIOCM_DSR); if( change ) send_event( env, jobj, SPE_DSR, change ); change = (mflags&TIOCM_RNG) - (omflags&TIOCM_RNG); if( change ) send_event( env, jobj, SPE_RI, change ); change = (mflags&TIOCM_CD) - (omflags&TIOCM_CD); if( change ) send_event( env, jobj, SPE_CD, change ); omflags = mflags; ioctl( fd, FIONREAD, &change ); if( change ) { if(!send_event( env, jobj, SPE_DATA_AVAILABLE, 1 )) usleep(100000); /* select wont block */ } } return; #endif /* __BEOS__ */ } /*---------------------------------------------------------- isDeviceGood accept: a port name perform: see if the port is valid on this OS. return: JNI_TRUE if it exhists otherwise JNI_FALSE exceptions: none comments: ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXCommDriver(isDeviceGood)(JNIEnv *env, jobject jobj, jstring tty_name) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside isDeviceGood\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// jboolean result; static struct stat mystat; char teststring[256]; int fd, i; const char *name = env->GetStringUTFChars(tty_name, 0); // !!! printf("inside RXTXCommDriver:isDeviceGood() deviceName is %s. ",name); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //Let's try to enumerate the ports /* int32 portcount = 0; int32 n = 0; port = new BSerialPort(); char devName[B_OS_NAME_LENGTH]; portcount = port->CountDevices(); for (n = portcount - 1; n >= 0; n--) { port->GetDeviceName(n, devName); printf("inside RXTXCommDriver:isDeviceGood() deviceName is %s. ",devName); } */ for(i=0;i<64;i++){ #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s%i",DEVICEDIR,name, i); #else sprintf(teststring,"%s%s%i",DEVICEDIR,name, i); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ printf("inside RXTXCommDriver:isDeviceGood() trying to open %s. ",teststring); fd=open(teststring,O_RDONLY|O_NONBLOCK); printf("got %i\n",fd); if (fd>0){ printf("inside RXTXCommDriver:isDeviceGood() %s is valid on this system.\n",teststring); close(fd); result=JNI_TRUE; break; } } result=JNI_FALSE; } #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s",DEVICEDIR,name); #else sprintf(teststring,"%s%s",DEVICEDIR,name); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=open(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ close(fd); result=JNI_TRUE; } } printf("result is %i for %s\n",result, name); env->ReleaseStringUTFChars(tty_name, name); // !!! return(result); } /*---------------------------------------------------------- getDeviceDirectory accept: perform: return: the directory containing the device files exceptions: comments: use this to avoid hard coded "/dev/" values are in SerialImp.h ----------------------------------------------------------*/ /* JNIEXPORT jstring JNICALL Java_gnu_io_RXTXCommDriver_getDeviceDirectory(JNIEnv*, jobject); */ JNIEXPORT jstring JNICALL RXTXCommDriver(getDeviceDirectory)(JNIEnv *env, jobject jobj, int test) { return env->NewStringUTF(DEVICEDIR); } /*---------------------------------------------------------- setInputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setInputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { report("setInputBufferSize is not implemented\n"); } /*---------------------------------------------------------- getIputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(getInputBufferSize)(JNIEnv *env, jobject jobj) { report("getInputBufferSize is not implemented\n"); return(1); } /*---------------------------------------------------------- setOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setOutputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { report("setOutputBufferSize is not implemented\n"); } /*---------------------------------------------------------- getOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(getOutputBufferSize)(JNIEnv *env, jobject jobj) { report("getOutputBufferSize is not implemented\n"); return(1); } /*---------------------------------------------------------- is_interrupted accept: perform: see if the port is being closed. return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ jboolean is_interrupted(JNIEnv *env, jobject jobj) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is is_interrupted\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// jmethodID foo; jclass jclazz; int result; //(*env)->ExceptionClear(env); env->ExceptionClear(); // !!! //jclazz = (*env)->GetObjectClass( env, jobj ); jclazz = env->GetObjectClass( jobj ); // !!! if(jclazz == NULL) return JNI_TRUE; //foo = (*env)->GetMethodID( env, jclazz, "checkMonitorThread", "()Z"); foo = env->GetMethodID( jclazz, "checkMonitorThread", "()Z"); // !!! if(foo == NULL) return JNI_TRUE; //result = (*env)->CallBooleanMethod( env, jobj, foo ); result = env->CallBooleanMethod( jobj, foo ); // !!! #ifdef DEBUG //if((*env)->ExceptionOccurred(env)) { if(env->ExceptionOccurred()) { // !!! report ("an error occured calling sendEvent()\n"); //(*env)->ExceptionDescribe(env); env->ExceptionDescribe(); // !!! //(*env)->ExceptionClear(env); env->ExceptionClear(); // !!! } #endif /* DEBUG */ //(*env)->DeleteLocalRef( env, jclazz ); env->DeleteLocalRef( jclazz ); // !!! return(result); } /*---------------------------------------------------------- send_event accept: The event type and the event state perform: if state is > 0 send a JNI_TRUE event otherwise send JNI_FALSE return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ int send_event(JNIEnv *env, jobject jobj, jint type, int flag) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside send_event\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int result; jmethodID foo; //jclass jclazz = (*env)->GetObjectClass( env, jobj ); jclass jclazz = env->GetObjectClass( jobj ); // !!! if(jclazz == NULL) return JNI_TRUE; //foo = (*env)->GetMethodID( env, jclazz, "sendEvent", "(IZ)Z" ); foo = env->GetMethodID( jclazz, "sendEvent", "(IZ)Z" ); // !!! //(*env)->ExceptionClear(env); env->ExceptionClear(); // !!! //result = (*env)->CallBooleanMethod( env, jobj, foo, type, result = env->CallBooleanMethod( jobj, foo, type, // !!! flag > 0 ? JNI_TRUE : JNI_FALSE ); #ifdef DEBUG //if((*env)->ExceptionOccurred(env)) { if(env->ExceptionOccurred()) { // !!! report ("an error occured calling sendEvent()\n"); //(*env)->ExceptionDescribe(env); env->ExceptionDescribe(); // !!! //(*env)->ExceptionClear(env); env->ExceptionClear(); // !!! } #endif /* DEBUG */ //(*env)->DeleteLocalRef( env, jclazz ); env->DeleteLocalRef( jclazz ); // !!! return(result); } /*---------------------------------------------------------- get_java_var accept: env (keyhole to java) jobj (java RXTXPort object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside get_java_var\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int result = 0; //jclass jclazz = (*env)->GetObjectClass( env, jobj ); jclass jclazz = env->GetObjectClass( jobj ); // !!! //jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); jfieldID jfd = env->GetFieldID( jclazz, id, type ); // !!! if( !jfd ) { //(*env)->ExceptionDescribe( env ); env->ExceptionDescribe(); // !!! //(*env)->ExceptionClear( env ); env->ExceptionClear(); // !!! return result; } //result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); result = (int)( env->GetIntField( jobj, jfd ) ); // !!! /* ct7 & gel * Added DeleteLocalRef */ //(*env)->DeleteLocalRef( env, jclazz ); env->DeleteLocalRef( jclazz ); // !!! #ifdef DEBUG if(!strncmp("fd",id,2) && result == 0) report("invalid file descriptor\n"); #endif return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside throw_java_exception\n\n"); // !!! fprintf(fp, "%s in %s\n", msg, foo ); // !!! fclose(fp); ////////////////// Close Log File //////////////////// char buf[ 60 ]; //jclass clazz = (*env)->FindClass( env, exc ); jclass clazz = env->FindClass( exc ); // !!! if( !clazz ) { //(*env)->ExceptionDescribe( env ); env->ExceptionDescribe(); // !!! //(*env)->ExceptionClear( env ); env->ExceptionClear(); // !!! return; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ //(*env)->ThrowNew( env, clazz, buf ); env->ThrowNew( clazz, buf ); // !!! /* ct7 * Added DeleteLocalRef */ //(*env)->DeleteLocalRef( env, clazz ); env->DeleteLocalRef( clazz ); // !!! } /*---------------------------------------------------------- report accept: string to send to stderr perform: if DEBUG is defined send the string to stderr. return: none exceptions: none comments: ----------------------------------------------------------*/ void report(char *msg) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside report\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// #ifdef DEBUG fprintf(stderr, msg); #endif } /*---------------------------------------------------------- dump_termios accept: string to indicate where this was called. termios struct perform: print the termios struct to stderr. return: none exceptions: none comments: used to debug the termios struct. ----------------------------------------------------------*/ void dump_termios(char *foo,struct termios *ttyset) { ////////////////// Open Log File ///////////////////// fp = fopen("RXTXOut.log", "a"); fprintf(fp, "Brian is inside dump_termios\n"); // !!! fclose(fp); ////////////////// Close Log File //////////////////// int i; //fprintf(stderr,"%s %o\n",foo,ttyset->c_iflag); //fprintf(stderr,"%s %o\n",foo,ttyset->c_lflag); //fprintf(stderr,"%s %o\n",foo,ttyset->c_oflag); //fprintf(stderr,"%s %o\n",foo,ttyset->c_cflag); for(i=0;ic_cc[i]); } fprintf(stderr,"\n"); } ./rxtx-2.2pre2/src/SerialImp.c0000644000175000017500000052111411142410530016061 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2009 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #if defined(__MWERKS__) /* dima */ #include "RXTXPort.h" /* dima */ #else /* dima */ #ifndef WIN32 # include "config.h" #endif #include "gnu_io_RXTXPort.h" #endif /* dima */ #ifdef __LCC__ /* windows lcc compiler for fd_set. probably wrong */ # include #endif /* __LCC__ */ #include #include #include #include #include #include #include #ifndef WIN32 #include #include #include #include #include #else # include "win32termios.h" /* FIXME returns 0 in all cases on win32 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) */ # if !defined(S_ISCHR) # define S_ISCHR(m) (1) # endif /* S_ISCHR(m) */ #endif /* WIN32 */ #ifdef HAVE_TERMIOS_H # include #endif /* HAVE_TERMIOS_H */ # include #ifdef HAVE_SIGNAL_H # include #endif /* HAVE_SIGNAL_H */ #ifdef HAVE_SYS_SIGNAL_H # include #endif /* HAVE_SYS_SIGNAL_H */ #include #ifdef HAVE_SYS_TIME_H # include #endif /* HAVE_SYS_TIME_H */ # include #ifdef HAVE_SYS_FCNTL_H # include #endif /* HAVE_SYS_FCNTL_H */ #ifdef HAVE_SYS_FILE_H # include #endif /* HAVE_SYS_FILE_H */ #ifdef LFS /* File Lock Server */ # include # include # include #endif /* FLS */ #if defined(__linux__) # include /* fix for linux-2.3.4? kernels */ # include # include #endif /* __linux__ */ #if defined(__sun__) # include # include #endif /* __sun__ */ #if defined(__hpux__) # include #endif /* __hpux__ */ /* FIXME -- new file */ #if defined(__APPLE__) # include # include # include # include #endif /* __APPLE__ */ #ifdef __unixware__ # include #endif /* __unixware__ */ #ifdef HAVE_PWD_H #include #endif /* HAVE_PWD_H */ #ifdef HAVE_GRP_H #include #endif /* HAVE_GRP_H */ #include #ifdef LIBLOCKDEV #include #endif /* LIBLOCKDEV */ extern int errno; #include "SerialImp.h" JavaVM *javaVM = NULL; struct preopened *preopened_port = NULL; /* this is so diff will not generate noise when merging 1.4 and 1.5 changes * It will eventually be removed. * */ #define RXTXPort(foo) Java_gnu_io_RXTXPort_ ## foo #define RXTXVersion(foo) Java_gnu_io_RXTXVersion_ ## foo #define RXTXCommDriver(foo) Java_gnu_io_RXTXCommDriver_ ## foo #if defined(__sun__) || defined(__hpux__) /*---------------------------------------------------------- cfmakeraw accept: termios to be set to raw perform: initializes the termios structure. return: int 0 on success exceptions: none comments: this is how linux cfmakeraw works. termios(3) manpage ----------------------------------------------------------*/ int cfmakeraw ( struct termios *term ) { ENTER( "cfmakeraw" ); term->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); term->c_oflag &= ~OPOST; term->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); term->c_cflag &= ~(CSIZE|PARENB); term->c_cflag |= CS8; LEAVE( "cfmakeraw" ); return( 0 ); } #endif /* __sun__ || __hpux__ */ #ifdef DEBUG_TIMING struct timeval snow, enow, seloop, eeloop; #define report_time_eventLoop( ) { \ if ( seloop.tv_sec == eeloop.tv_sec && seloop.tv_usec == eeloop.tv_usec ) \ { \ gettimeofday(&eeloop, NULL); \ seloop.tv_sec = eeloop.tv_sec; \ seloop.tv_usec = eeloop.tv_usec; \ printf("%8i sec : %8i usec\n", eeloop.tv_sec - seloop.tv_sec, eeloop.tv_usec - seloop.tv_usec); \ } \ } #define report_time( ) \ { \ struct timeval now; \ gettimeofday(&now, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec\n", __TIME__, __LINE__, now.tv_sec, now.tv_usec); \ } #define report_time_start( ) \ { \ gettimeofday(&snow, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec", __TIME__, __LINE__, snow.tv_sec, snow.tv_usec); \ } #define report_time_end( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #else #define report_time_eventLoop( ){}; #define report_time( ) {} #define report_time_start( ) {} #define report_time_end( ) {} #endif /* DEBUG_TIMING */ struct event_info_struct *master_index = NULL; /*---------------------------------------------------------- RXTXPort.Initialize accept: The JNIEnv and jobj of the thread, the original eis. perform: fill in the needed variables with this threads values return: none exceptions: none comments: java variables (especially JNIEnv) should not be shared between threads. Right now we build a local struct with the thread's info before using the variabls. This is especially true for send_event. See also JNI_OnLoad() if the thread does not have the values ----------------------------------------------------------*/ struct event_info_struct build_threadsafe_eis( JNIEnv *env, jobject *jobj, struct event_info_struct *eis ) { struct event_info_struct myeis = *eis; myeis.env = env; myeis.jclazz = (*env)->GetObjectClass( env, *jobj ); myeis.jobj = jobj; myeis.fd = get_java_var( env, *jobj, "fd", "I" ); myeis.send_event = (*env)->GetMethodID( env, myeis.jclazz, "sendEvent", "(IZ)Z" ); return( myeis ); } /*---------------------------------------------------------- RXTXPort.Initialize accept: none perform: Initialize the native library return: none exceptions: none comments: Basically this just causes rxtx to ignore signals. signal handlers where tried but the VM (circa 1.1) did not like it. It also allows for some sanity checks on linux boxes if DEBUG is enabled. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(Initialize)( JNIEnv *env, jclass jclazz ) { #if defined DEBUG && defined(__linux__) struct utsname name; char message[80]; #endif /* DEBUG && __linux__ */ /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(WIN32) struct sigaction old_action; sigaction(SIGIO, NULL, &old_action); /* green threads already has handler, no touch */ if (old_action.sa_handler == NULL) { /* no handler when using native threads, set to ignore */ struct sigaction new_action; sigset_t block_mask; sigemptyset(&block_mask); new_action.sa_handler = SIG_IGN; #ifdef SA_RESTART new_action.sa_flags = SA_RESTART; #endif /* SA_RESTART */ new_action.sa_mask = block_mask; sigaction(SIGIO, &new_action, NULL); } #endif /* !WIN32 */ ENTER( "RXTXPort:Initialize" ); #ifdef PRERELEASE /* this is just for avoiding confusion while testing new libraries */ #ifdef DEBUG_MW mexPrintf("RXTX Prerelease for testing Tue Feb 19 18:00:27 EST 2002\n"); #else printf("RXTX Prerelease for testing Thu Feb 21 19:31:38\n"); #endif /* DEBUG_MW */ #endif /* PRERELEASE */ #if DEBUG_TIMING gettimeofday(&seloop, NULL); #endif /* DEBUG_TIMING */ #if defined(DEBUG) && defined(__linux__) /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { report( "RXTX WARNING: cannot get system name\n" ); LEAVE( "RXTXPort:Initialize" ); return; } if(strcmp(name.release,UTS_RELEASE)!=0) { sprintf( message, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE, name.release ); report( message ); getchar(); } LEAVE( "RXTXPort:Initialize" ); #endif /* DEBUG && __linux__ */ } /*---------------------------------------------------------- RXTXPort.find_preopened_ports accept: The device to find if preopened. ie "/dev/ttyS0" perform: find the filedescriptor if preopened return: fd exceptions: none comments: see RXTXPort.nativeStaticSetDSR RXTXPort.nativeStaticSetDTR RXTXPort.nativeStaticSetRTS RXTXPort.nativeStaticSetSerialPortParams This is used so people can setDTR low before calling the Java open(). ----------------------------------------------------------*/ int find_preopened_ports( const char *filename ) { int fd; struct preopened *p = preopened_port; if( !p ) { return(0); } for(;;) { if( !strcmp( p->filename, filename) ) { fd = p->fd; if( p->prev && p->next ) { p->prev->next = p->next; p->next->prev = p->prev; } else if ( p->prev ) { p->prev->next = NULL; } else if ( p->next ) { p->next->prev = NULL; } else { free( p ); preopened_port = NULL; return( fd ); } free( p ); return( fd ); } if( p->next ) { p = p->next; } else { return(0); } } } /*---------------------------------------------------------- configure_port accept: env, file descriptor perform: set the termios struct to sane settings and return: 0 on success exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ int configure_port( int fd ) { struct termios ttyset; if( fd < 0 ) goto fail; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_iflag = INPCK; ttyset.c_lflag = 0; ttyset.c_oflag = 0; ttyset.c_cflag = CREAD | CS8 | CLOCAL; ttyset.c_cc[ VMIN ] = 0; ttyset.c_cc[ VTIME ] = 0; #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, B9600 ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, B9600 ) < 0 ) goto fail; if( cfsetospeed( &ttyset, B9600 ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; #ifndef WIN32 fcntl( fd, F_SETOWN, getpid() ); #endif /* WIN32 */ #ifdef FASYNC fcntl( fd, F_SETFL, FASYNC ); #endif /* FASYNC */ return 0; fail: return 1; } /*---------------------------------------------------------- get_java_baudrate accept: the native speed setting perform: translate the native speed to a Java speed return: the Java speed exceptions: none comments: This is used by open() (indirectly) and nativeStaticGetBaudRate() ----------------------------------------------------------*/ int get_java_baudrate( int native_speed ) { switch( native_speed ) { case B0: return 0; case B50: return 50; case B75: return 75; case B110: return 110; case B134: return 134; case B150: return 150; case B200: return 200; case B300: return 300; case B600: return 600; case B1200: return 1200; case B1800: return 1800; case B2400: return 2400; case B4800: return 4800; case B9600: return 9600; #ifdef B14400 case B14400: return 14400; #endif /* B14400 */ case B19200: return 19200; #ifdef B28800 case B28800: return 28800; #endif /* B28800 */ case B38400: return 38400; case B57600: return 57600; /* I don't think this is universal.. older UARTs never did these. taj */ #ifdef B115200 case B115200: return 115200; #endif /* B115200 */ #ifdef B128000 /* dima */ case B128000: return 128000; #endif /* dima */ #ifdef B230400 case B230400: return 230400; #endif /* B230400 */ #ifdef B256000 /* dima */ case B256000: return 256000; #endif /* dima */ #ifdef B460800 case B460800: return 460800; #endif /* B460800 */ #ifdef B500000 case B500000: return 500000; #endif /* B500000 */ #ifdef B576000 case B576000: return 576000; #endif /* B576000 */ #ifdef B921600 case B921600: return 921600; #endif /* B921600 */ #ifdef B1000000 case B1000000: return 1000000; #endif /* B1000000 */ #ifdef B1152000 case B1152000: return 1152000; #endif /* B1152000 */ #ifdef B1500000 case B1500000: return 1500000; #endif /* B1500000 */ #ifdef B2000000 case B2000000: return 2000000; #endif /* B2000000 */ #ifdef B2500000 case B2500000: return 2500000; #endif /* B2500000 */ #ifdef B3000000 case B3000000: return 3000000; #endif /* B3000000 */ #ifdef B3500000 case B3500000: return 3500000; #endif /* B3500000 */ #ifdef B4000000 case B4000000: return 4000000; #endif /* B4000000 */ default: return -1; } } /*---------------------------------------------------------- set_java_vars accept: fd of the preopened device perform: Now that the object is instatiated, set the Java variables to the preopened states. return: none exceptions: none comments: preopened refers to the fact that the serial port has been configured before the Java open() has been called. ----------------------------------------------------------*/ void set_java_vars( JNIEnv *env, jobject jobj, int fd ) { struct termios ttyset; int databits = -1; int jparity = -1; int stop_bits = STOPBITS_1_5; int baudrate; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfspeed = (*env)->GetFieldID( env, jclazz, "speed", "I" ); jfieldID jfdataBits = (*env)->GetFieldID( env, jclazz, "dataBits", "I" ); jfieldID jfstopBits = (*env)->GetFieldID( env, jclazz, "stopBits", "I" ); jfieldID jfparity = (*env)->GetFieldID( env, jclazz, "parity", "I" ); (*env)->DeleteLocalRef( env, jclazz ); if( tcgetattr( fd, &ttyset ) < 0 ) { report( "Cannot Get Serial Port Settings\n" ); (*env)->DeleteLocalRef( env, jclazz ); return; } switch( ttyset.c_cflag&CSIZE ) { case CS5: databits = JDATABITS_5; break; case CS6: databits = JDATABITS_6; break; case CS7: databits = JDATABITS_7; break; case CS8: databits = JDATABITS_8; break; } #ifdef CMSPAR switch( ttyset.c_cflag&(PARENB|PARODD|CMSPAR ) ) { #else switch( ttyset.c_cflag&(PARENB|PARODD) ) { #endif /* CMSPAR */ case 0: jparity = JPARITY_NONE; break; case PARENB: jparity = JPARITY_EVEN; break; case PARENB | PARODD: jparity = JPARITY_ODD; break; #ifdef CMSPAR case PARENB | PARODD | CMSPAR: jparity = JPARITY_MARK; break; case PARENB | CMSPAR: jparity = JPARITY_SPACE; break; #endif /* CMSPAR */ } switch( ttyset.c_cflag&(CSTOPB) ) { case 0: stop_bits = STOPBITS_1; break; case CSTOPB: if ( (ttyset.c_cflag & CSIZE) == CS5 ) { stop_bits = STOPBITS_1_5; } else { stop_bits = STOPBITS_2; } break; } /* dima writes: Trent, here is something I found with google: (freebsd list freebsd-current@freebsd.org) Andrzej Bialecki asked: I tried to compile a piece of software, probably for Linux, and I noticed that we don't define CBAUD constant. I'm not sure, but I think POSIX defines and uses it. Should(n't) we? Bruce Evans answered: CBAUD is for SYSV compatibility. It is considerably inferior to POSIX's cf{get,set}{i,o}speed and shouldn't be provided or used. */ #if defined(CBAUD)/* dima */ baudrate = ttyset.c_cflag&CBAUD; #else baudrate = cfgetispeed(&ttyset); #endif (*env)->SetIntField(env, jobj, jfspeed, ( jint ) get_java_baudrate(baudrate) ); (*env)->SetIntField(env, jobj, jfdataBits, ( jint ) databits ); (*env)->SetIntField(env, jobj, jfstopBits, ( jint ) stop_bits ); (*env)->SetIntField(env, jobj, jfparity, ( jint ) jparity ); } /*---------------------------------------------------------- RXTXPort.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(open)( JNIEnv *env, jobject jobj, jstring jstr ) { int fd; int pid = -1; char message[80]; const char *filename; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfid = (*env)->GetFieldID( env, jclazz, "pid", "I" ); report_time_start( ); if( !jfid ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); (*env)->DeleteLocalRef( env, jclazz ); return -1; } #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ (*env)->SetIntField(env, jobj, jfid, ( jint ) pid ); (*env)->DeleteLocalRef( env, jclazz ); filename = (*env)->GetStringUTFChars( env, jstr, 0 ); /* LOCK is one of three functions defined in SerialImp.h uucp_lock Solaris fhs_lock Linux system_does_not_lock Win32 */ ENTER( "RXTXPort:open" ); if ( LOCK( filename, pid ) ) { sprintf( message, "open: locking has failed for %s\n", filename ); report( message ); goto fail; } else { sprintf( message, "open: locking worked for %s\n", filename ); report( message ); } /* This is used so DTR can remain low on 'open()' */ fd = find_preopened_ports( filename ); if( fd ) { set_java_vars( env, jobj, fd ); (*env)->ReleaseStringUTFChars( env, jstr, filename ); return (jint)fd; } do { fd=OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); #ifdef OPEN_EXCL /* Note that open() follows POSIX semantics: multiple open() calls to the same file will succeed unless the TIOCEXCL ioctl is issued. This will prevent additional opens except by root-owned processes. See tty(4) ("man 4 tty") and ioctl(2) ("man 2 ioctl") for details. */ if (fd >= 0 && (ioctl(fd, TIOCEXCL) == -1)) { sprintf( message, "open: exclusive access denied for %s\n", filename ); report( message ); report_error( message ); close(fd); goto fail; } #endif /* OPEN_EXCL */ if( configure_port( fd ) ) goto fail; (*env)->ReleaseStringUTFChars( env, jstr, filename ); sprintf( message, "open: fd returned is %i\n", fd ); report( message ); LEAVE( "RXTXPort:open" ); report_time_end( ); return (jint)fd; fail: (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:open" ); throw_java_exception( env, PORT_IN_USE_EXCEPTION, "open", strerror( errno ) ); return -1; } /*---------------------------------------------------------- RXTXPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(nativeClose)( JNIEnv *env, jobject jobj,jstring jstr ) { int result, pid; int fd = get_java_var( env, jobj,"fd","I" ); const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); jclass jclazz = (*env)->GetObjectClass( env, jobj ); report_time_start( ); pid = get_java_var( env, jobj,"pid","I" ); report(">nativeClose pid\n"); /* usleep(10000); */ if( !pid ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); (*env)->DeleteLocalRef( env, jclazz ); report("nativeClose: Close not detecting thread pid"); return; } report(" 0) { report("nativeClose: discarding remaining data (tcflush)\n"); /* discard any incoming+outgoing data not yet read/sent */ tcflush(fd, TCIOFLUSH); do { report("nativeClose: calling close\n"); result=CLOSE (fd); } while ( result < 0 && errno == EINTR ); UNLOCK( filename, pid ); } report("nativeClose: Delete jclazz\n"); (*env)->DeleteLocalRef( env, jclazz ); report("nativeClose: release filename\n"); (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeClose" ); report_time_end( ); return; } /*---------------------------------------------------------- RXTXPort.set_port_params accept: env, fd, speed, data bits, stop bits, parity perform: set the serial port parameters return: 1 on error exceptions: UnsupportedCommOperationException comments: There is a static method and an instance method that use this function. The static method gets a fd first. The instance method can get the fd from the object. see: nativeSetSerialPortParams & nativeStaticSerialPortParams ----------------------------------------------------------*/ int set_port_params( JNIEnv *env, int fd, int cspeed, int dataBits, int stopBits, int parity ) { struct termios ttyset; int result = 0; #if defined(TIOCGSERIAL) struct serial_struct sstruct; #endif /* TIOCGSERIAL */ if( tcgetattr( fd, &ttyset ) < 0 ) { report( "set_port_params: Cannot Get Serial Port Settings\n" ); return(1); } if( translate_data_bits( env, &(ttyset.c_cflag), dataBits ) ) { report( "set_port_params: Invalid Data Bits Selected\n" ); return(1); } if( translate_stop_bits( env, &(ttyset.c_cflag), stopBits ) ) { report( "set_port_params: Invalid Stop Bits Selected\n" ); return(1); } if( translate_parity( env, &(ttyset.c_cflag), parity ) ) { report( "set_port_params: Invalid Parity Selected\n" ); return(1); } #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, cspeed ) < 0 ) { report( "set_port_params: Cannot Set Speed\n" ); return( 1 ); } #endif /* __FreeBSD__ */ if( !cspeed ) { /* hang up the modem aka drop DTR */ /* Unix should handle this */ /* mexPrintf("dropping DTR\n"); printf("dropping DTR\n"); */ ioctl( fd, TIOCMGET, &result ); result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); } /* B38400 is a special case in Linux for custom baud rates. We just treat this as a custom speed for now. If you take this ifdef out and select baud rates 38400 then 28800 then 38400, you will get a final baud rate of 28800 because you did not update the divisor. See the next ifdef below for the divisor. */ #if defined(TIOCGSERIAL) if ( cspeed == B38400 ) cspeed = 38400; #endif /* TIOCGSERIAL */ if( cfsetispeed( &ttyset, cspeed ) < 0 || cfsetospeed( &ttyset, cspeed ) < 0 ) { /* Some people need to set the baud rate to ones not defined in termios.h This includes some baud rates which are supported by CommAPI in Unix ( 14400, 28800, 128000, 256000 ) If the above fails, we assume this is not a defined baud rate on Unix. With Win32, It is assumed the kernel will do this for us. The baud_base and desired speed are used to calculate a custom divisor. On linux the setserial man page covers this. */ #if defined(TIOCGSERIAL) if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { report( "set_port_params: Cannot Get Serial Port Settings\n" ); return(1); } sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); cspeed = B38400; #endif /* TIOCGSERIAL */ if( cfsetispeed( &ttyset, cspeed ) < 0 || cfsetospeed( &ttyset, cspeed ) < 0 ) { /* OK, we tried everything */ report( "nativeSetSerialPortParams: Cannot Set Speed\n" ); return( 1 ); } #if defined(TIOCSSERIAL) /* It is assumed Win32 does this for us */ if ( sstruct.baud_base < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { return( 1 ); } #endif /* TIOCSSERIAL */ } if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) { report("tcsetattr returns nonzero value!\n"); return( 1 ); } return(0); } /*---------------------------------------------------------- RXTXPort.nativeSetSerialPortParams accept: speed, data bits, stop bits, parity perform: set the serial port parameters return: jboolean 1 on error exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeSetSerialPortParams)( JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity ) { int fd = get_java_var( env, jobj,"fd","I" ); int cspeed = translate_speed( env, speed ); ENTER( "RXTXPort:nativeSetSerialPortParams" ); report_time_start( ); if (cspeed < 0 ) { report(" invalid cspeed\n"); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "BaudRate could not be set to the specified value" ); */ return(1); } if( set_port_params( env, fd, cspeed, dataBits, stopBits, parity ) ) { report("set_port_params failed\n"); LEAVE( "RXTXPort:nativeSetSerialPortParams" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetSerialPortParams", strerror( errno ) ); */ return(1); } LEAVE( "RXTXPort:nativeSetSerialPortParams" ); report_time_end( ); return(0); } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: returns -1 and the calling method throws the exception so it may be caught in java. comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ int translate_speed( JNIEnv *env, jint speed ) { LEAVE( "RXTXPort:translate_speed" ); switch( speed ) { case 0: return B0; case 50: return B50; case 75: return B75; case 110: return B110; case 134: return B134; case 150: return B150; case 200: return B200; case 300: return B300; case 600: return B600; case 1200: return B1200; case 1800: return B1800; case 2400: return B2400; case 4800: return B4800; case 9600: return B9600; #ifdef B14400 case 14400: return B14400; #endif /* B14400 */ case 19200: return B19200; #ifdef B28800 case 28800: return B28800; #endif /* B28800 */ case 38400: return B38400; case 57600: return B57600; /* I don't think this is universal.. older UARTs never did these. taj */ #ifdef B115200 case 115200: return B115200; #endif /* B115200 */ #ifdef B128000 /* dima */ case 128000: return B128000; #endif /* dima */ #ifdef B230400 case 230400: return B230400; #endif /* B230400 */ #ifdef B256000 /* dima */ case 256000: return B256000; #endif /* dima */ #ifdef B460800 case 460800: return B460800; #endif /* B460800 */ #ifdef B500000 case 500000: return B500000; #endif /* B500000 */ #ifdef B576000 case 576000: return B576000; #endif /* B57600 */ #ifdef B921600 case 921600: return B921600; #endif /* B921600 */ #ifdef B1000000 case 1000000: return B1000000; #endif /* B1000000 */ #ifdef B1152000 case 1152000: return B1152000; #endif /* B1152000 */ #ifdef B1500000 case 1500000: return B1500000; #endif /* B1500000 */ #ifdef B2000000 case 2000000: return B2000000; #endif /* B2000000 */ #ifdef B2500000 case 2500000: return B2500000; #endif /* B2500000 */ #ifdef B3000000 case 3000000: return B3000000; #endif /* B3000000 */ #ifdef B3500000 case 3500000: return B3500000; #endif /* B3500000 */ #ifdef B4000000 case 4000000: return B4000000; #endif /* B4000000 */ } /* Handle custom speeds */ if( speed >= 0 ) return speed; else { LEAVE( "RXTXPort:translate_speed: Error condition" ); return -1; } } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.SerialPort.DATABITS_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( JNIEnv *env, tcflag_t *cflag, jint dataBits ) { int temp = (*cflag) & ~CSIZE; ENTER( "translate_date_bits" ); switch( dataBits ) { case JDATABITS_5: (*cflag) = temp | CS5; return 0; case JDATABITS_6: (*cflag) = temp | CS6; return 0; case JDATABITS_7: (*cflag) = temp | CS7; return 0; case JDATABITS_8: (*cflag) = temp | CS8; return 0; } LEAVE( "RXTXPort:translate_date_bits" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "databit value not supported" ); */ return 1; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.SerialPort.STOPBITS_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException comments: If you specify 5 data bits and 2 stop bits, the port will allegedly use 1.5 stop bits. Does anyone care? ----------------------------------------------------------*/ int translate_stop_bits( JNIEnv *env, tcflag_t *cflag, jint stopBits ) { ENTER( "translate_stop_bits" ); switch( stopBits ) { case STOPBITS_1: (*cflag) &= ~CSTOPB; LEAVE( "RXTXPort:translate_stop_bits" ); return 0; /* ok.. lets try putting it in and see if anyone notices */ case STOPBITS_1_5: (*cflag) |= CSTOPB; if ( translate_data_bits( env, cflag, JDATABITS_5 ) ) return( 1 ); return 0; case STOPBITS_2: (*cflag) |= CSTOPB; LEAVE( "RXTXPort:translate_stop_bits" ); return 0; } LEAVE( "RXTXPort:translate_stop_bits" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "stopbit value not supported" ); */ return 1; } JNIEXPORT jint JNICALL RXTXPort(nativeGetFlowControlMode)(JNIEnv *env, jobject jobj, jint fd) { struct termios ttyset; int ret = 0; tcgetattr( fd, &ttyset ); if( ttyset.c_cflag & HARDWARE_FLOW_CONTROL ) { ret |= ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ); } if ( ttyset.c_iflag & IXOFF ) { ret |= FLOWCONTROL_XONXOFF_IN; } if ( ttyset.c_iflag & IXON ) { ret |= FLOWCONTROL_XONXOFF_OUT; } return( (jint) ret ); } JNIEXPORT jint JNICALL RXTXPort(nativeGetParity)(JNIEnv *env, jobject jobj, jint fd) { struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) { report("nativeGetParity: tcgetattr failed\n"); return( -1 ); } #ifdef CMSPAR if ( ( ttyset.c_cflag & PARENB ) && ( ttyset.c_cflag & PARODD ) && ( ttyset.c_cflag & CMSPAR ) ) { return( JPARITY_MARK ); } else if ( ttyset.c_cflag & ( PARENB && ttyset.c_cflag & CMSPAR ) ) { return( JPARITY_SPACE ); } #endif /* CMSPAR */ if ( ttyset.c_cflag & PARENB && ttyset.c_cflag & PARODD ) { return( JPARITY_ODD ); } else if ( ttyset.c_cflag & PARENB ) { return( JPARITY_EVEN ); } else { return( JPARITY_NONE ); } } /*---------------------------------------------------------- translate_parity accept: javax.comm.SerialPort.PARITY_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException comments: The CMSPAR bit should be used for 'mark' and 'space' parity, but it's not in glibc's includes. Oh well, rarely used anyway. ----------------------------------------------------------*/ int translate_parity( JNIEnv *env, tcflag_t *cflag, jint parity ) { ENTER( "translate_parity" ); #ifdef CMSPAR (*cflag) &= ~(PARENB | PARODD | CMSPAR ); #endif /* CMSPAR */ switch( parity ) { case JPARITY_NONE: LEAVE( "translate_parity" ); return 0; case JPARITY_EVEN: (*cflag) |= PARENB; LEAVE( "translate_parity" ); return 0; case JPARITY_ODD: (*cflag) |= PARENB | PARODD; LEAVE( "translate_parity" ); return 0; #ifdef CMSPAR case JPARITY_MARK: (*cflag) |= PARENB | PARODD | CMSPAR; LEAVE( "translate_parity" ); return 0; case JPARITY_SPACE: (*cflag) |= PARENB | CMSPAR; LEAVE( "translate_parity" ); return 0; #endif /* CMSPAR */ default: printf("Parity missed %i\n", (int) parity ); } LEAVE( "translate_parity" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "parity value not supported" ); */ return 1; } #if !defined(TIOCSERGETLSR) && !defined(WIN32) /*---------------------------------------------------------- drain_loop() accept: perform: call tcdrain() and report an event when it succeds return: none exceptions: comments: ----------------------------------------------------------*/ void *drain_loop( void *arg ) { struct event_info_struct *eis = ( struct event_info_struct * ) arg; /* char msg[80]; */ int i; pthread_detach( pthread_self() ); for(i=0;;i++) { report_verbose("drain_loop: looping\n"); if( eis->eventloop_interrupted ) { goto end; } #if defined(__sun__) /* FIXME: No time to test on all OS's for production */ if (usleep(5000)) { report("drain_loop: received EINTR"); } #else if (usleep(1000000)) { report("drain_loop: received EINTR"); } #endif /* __sun__ */ /* system_wait(); */ if( eis->eventloop_interrupted ) { goto end; } if( tcdrain( eis->fd ) == 0 ) { if( eis && eis->writing ) { /* sprintf(msg, "drain_loop: setting OUTPUT_BUFFER_EMPTY\n" ); report( msg ); */ eis->output_buffer_empty_flag = 1; eis->writing=JNI_FALSE; } else { if( !eis ) { goto end; } report_verbose("drain_loop: writing not set\n"); } } else if (errno != EINTR) { report("drain_loop: tcdrain bad fd\n"); goto end; } else { report("drain_loop: received EINTR in tcdrain\n"); } } end: report("------------------ drain_loop exiting ---------------------\n"); eis->closing = 1; pthread_exit( NULL ); return( NULL ); } #endif /* !defined(TIOCSERGETLSR) && !defined(WIN32) */ /*---------------------------------------------------------- finalize_threads( ) accept: event_info_struct used to access java and communicate with eventLoop(). perform: see comments return: none exceptions: none comments: The is the pthread spawned on systems that can't access the LSR (Line Status Register). Without access to the LSR rxtx cannot detect when the output buffer is empty in the Monitor Thread. The solution is to return the value of write's return but hang around in this thread waiting for tcdrain to finish. once the drain has finished, we let the eventLoop know that the output buffer is empty and the Signal is sent. ----------------------------------------------------------*/ void finalize_threads( struct event_info_struct *eis ) { #if !defined(TIOCSERGETLSR) && !defined( WIN32 ) /* used to shut down any remaining write threads */ eis->output_buffer_empty_flag = 0; ENTER("finalize_threads\n"); /* need to clean up again after working events */ LEAVE("---------------- finalize_threads ---------------"); #endif /* TIOCSERGETLSR & !WIN32 */ } #if !defined(TIOCSERGETLSR) && !defined( WIN32 ) static void warn_sig_abort( int signo ) { /* char msg[80]; sprintf( msg, "RXTX Recieved Signal %i\n", signo ); report_error( msg ); */ } #endif /* TIOCSERGETLSR */ /*---------------------------------------------------------- init_threads( ) accept: none perform: return: none exceptions: none comments: this function is called from the event_loop or in other words from the monitor thread. On systems !WIN32 and without TIOCSERGETLSR it will create a new thread looping a call to tcdrain. ----------------------------------------------------------*/ int init_threads( struct event_info_struct *eis ) { jfieldID jeis; #if !defined(TIOCSERGETLSR) & !defined(WIN32) sigset_t newmask, oldmask; struct sigaction newaction, oldaction; pthread_t tid; report_time_start( ); report("init_threads: start\n"); /* ignore child thread status changes */ sigemptyset(&newmask); sigaddset(&newmask, SIGCHLD); /* install our own signal hander */ newaction.sa_handler = warn_sig_abort; sigemptyset( &newaction.sa_mask ); #ifdef SA_INTERRUPT newaction.sa_flags = SA_INTERRUPT; #endif /* SA_INTERRUPT */ #ifdef SA_RESTART /* JOE: do not demand restart! we are handling EINTR */ /* newaction.sa_flags = SA_RESTART;*/ #endif /* SA_RESTART */ sigaction(SIGABRT, &newaction, &oldaction); sigaction(SIGCHLD, &newaction, &oldaction); sigaction(SIGALRM, &newaction, &oldaction); sigaction(SIGCONT, &newaction, &oldaction); /* sigaction(SIGPOLL, &newaction, &oldaction); sigaction(SIGTRAP, &newaction, &oldaction); sigaction(SIGBUS, &newaction, &oldaction); sigaction(SIGSEGV, &newaction, &oldaction); sigaction(SIGFPE, &newaction, &oldaction); sigaction(SIGILL, &newaction, &oldaction); sigfillset(&newmask); sigprocmask( SIG_SETMASK, &newmask, &oldmask ); pthread_sigmask( SIG_BLOCK, &newmask, &oldmask ); */ sigprocmask( SIG_SETMASK, &newmask, &oldmask ); report("init_threads: creating drain_loop\n"); pthread_create( &tid, NULL, drain_loop, (void *) eis ); pthread_detach( tid ); eis->drain_tid = tid; #endif /* TIOCSERGETLSR */ report("init_threads: get eis\n"); jeis = (*eis->env)->GetFieldID( eis->env, eis->jclazz, "eis", "J" ); report("init_threads: set eis\n"); (*eis->env)->SetLongField(eis->env, *eis->jobj, jeis, ( size_t ) eis ); report("init_threads: stop\n"); report_time_end( ); return( 1 ); } /*---------------------------------------------------------- RXTXPort.writeByte accept: byte to write (passed as int) jboolean interrupted (no events if true) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(writeByte)( JNIEnv *env, jobject jobj, jint ji, jboolean interrupted ) { #ifndef TIOCSERGETLSR struct event_info_struct *index = master_index; #endif unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); int result; char msg[80]; #if defined ( __sun__ ) int count; #endif /* __sun__ */ report_time_start(); ENTER( "RXTXPort:writeByte" ); do { sprintf( msg, "writeByte %c>>\n", byte ); report( msg ); result=WRITE (fd, (void * ) &byte, sizeof(unsigned char)); } while (result < 0 && errno==EINTR); if( result < 0 ) { /* mexPrintf("GOT IT!!!\n"); */ goto fail; } /* This makes write for win32, glinux and Sol behave the same #if defined ( __sun__ ) do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); count++; } while (result && errno==EINTR && count <3); #endif */ /* __sun __ */ #ifndef TIOCSERGETLSR if( ! interrupted ) { index = master_index; if( index ) { while( index->fd != fd && index->next ) index = index->next; } index->writing = 1; report( "writeByte: index->writing = 1" ); } #endif sprintf( msg, "RXTXPort:writeByte %i\n", result ); report( msg ); LEAVE( "RXTXPort:writeByte" ); if(result >= 0) { report_time_end(); return; } fail: throw_java_exception( env, IO_EXCEPTION, "writeByte", strerror( errno ) ); } /*---------------------------------------------------------- RXTXPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write jboolean interrupted (no events if true) perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(writeArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count, jboolean interrupted ) { #ifndef TIOCSERGETLSR struct event_info_struct *index = master_index; #endif /* TIOCSERGETLSR */ int fd; int result=0,total=0; jbyte *body; #if defined ( __sun__ ) int icount; #endif /* __sun__ */ /* char message[1000]; */ #if defined ( __sun__ ) struct timespec retspec; retspec.tv_sec = 0; retspec.tv_nsec = 50000; #endif /* __sun__ */ fd = get_java_var( env, jobj,"fd","I" ); body = (*env)->GetByteArrayElements( env, jbarray, 0 ); /* result=WRITE (fd, body + total + offset, count - total); (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); */ /* return; OH CRAP */ report_time_start(); ENTER( "writeArray" ); /* warning Roy Rogers */ /* sprintf( message, "::::RXTXPort:writeArray(%s);\n", (char *) body ); report_verbose( message ); */ do { result=WRITE (fd, (void * ) ((char *) body + total + offset), count - total); /* dima */ if(result >0){ total += result; } report("writeArray()\n"); } while ( ( total < count ) && (result < 0 && errno==EINTR ) ); if( result < 0 ) { /* mexPrintf("GOT IT!!!\n"); */ goto fail; } /* This makes write for win32, glinux and Sol behave the same #if defined ( __sun__ ) do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); icount++; } while (result && errno==EINTR && icount <3); #endif */ /* __sun__ */ (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); #ifndef TIOCSERGETLSR if( !interrupted ) { if( index ) { while( index->fd != fd && index->next ) index = index->next; } index->writing = 1; report( "writeArray: index->writing = 1" ); } #endif /* TIOCSERGETLSR */ /* 50 ms sleep to make sure read can get in what I think is happening here is the data writen is causing signals, the event loop can't select with data available I think things like BlackBox with 2 ports open are getting signals for both the reciever and transmitter since they are the same PID. Things just start spinning out of control after that. */ LEAVE( "RXTXPort:writeArray" ); report_time_end(); fail: if( result < 0 ) throw_java_exception( env, IO_EXCEPTION, "writeArray", strerror( errno ) ); } /*---------------------------------------------------------- RXTXPort.nativeDrain accept: jboolean interrupted (no events if true) perform: wait until all data is transmitted return: none exceptions: IOException comments: java.io.OutputStream.flush() is equivalent to tcdrain, not tcflush, which throws away unsent bytes count logic added to avoid infinite loops when EINTR is true... Thread.yeild() was suggested. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeDrain)( JNIEnv *env, jobject jobj, jboolean interrupted ) { int fd = get_java_var( env, jobj,"fd","I" ); struct event_info_struct *eis = ( struct event_info_struct * ) get_java_var_long( env, jobj, "eis", "J" ); int result, count=0; char message[80]; ENTER( "SerialImp.c:drain()" ); report_time_start( ); do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); count++; } while (result && errno==EINTR && count <3); sprintf( message, "RXTXPort:drain() returns: %i\n", result ); report_verbose( message ); #if defined(__sun__) /* FIXME: No time to test on all OS's for production */ return( JNI_TRUE ); #endif /* __sun__ */ LEAVE( "RXTXPort:drain()" ); if( result ) throw_java_exception( env, IO_EXCEPTION, "nativeDrain", strerror( errno ) ); if( interrupted ) return( JNI_FALSE ); #if !defined(TIOCSERGETLSR) && !defined(WIN32) if( eis && eis->writing ) { eis->writing=JNI_FALSE; eis->output_buffer_empty_flag = 0; } #endif /* !TIOCSERGETLSR !WIN32 */ if( eis && eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { struct event_info_struct myeis = build_threadsafe_eis( env, &jobj, eis ); send_event( &myeis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); } report_time_end( ); return( JNI_FALSE ); } /*---------------------------------------------------------- RXTXPort.sendBreak accept: duration in milliseconds. perform: send break for actual time. not less than 0.25 seconds. exceptions: none comments: not very precise ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(sendBreak)( JNIEnv *env, jobject jobj, jint duration ) { int fd = get_java_var( env, jobj,"fd","I" ); report_time_start( ); ENTER( "RXTXPort:sendBreak()" ); tcsendbreak( fd, (int)( duration / 250 ) ); report_time_end( ); LEAVE( "RXTXPort:sendBreak()" ); } /*---------------------------------------------------------- RXTXPort.NativegetReceiveTimeout accept: none perform: get termios.c_cc[VTIME] return: VTIME comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(NativegetReceiveTimeout)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; ENTER( "RXTXPort:nativegetRecieveTimeout()" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:nativegetRecieveTimeout()" ); return(ttyset.c_cc[ VTIME ] * 100); fail: LEAVE( "RXTXPort:nativegetRecieveTimeout()" ); throw_java_exception( env, IO_EXCEPTION, "getReceiveTimeout", strerror( errno ) ); return -1; } /*---------------------------------------------------------- RXTXPort.NativeisReceiveTimeoutEnabled accept: none perform: determine if VTIME is none 0 return: JNI_TRUE if VTIME > 0 else JNI_FALSE comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(NativeisReceiveTimeoutEnabled)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; ENTER( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); return(ttyset.c_cc[ VTIME ] > 0 ? JNI_TRUE:JNI_FALSE); fail: LEAVE( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); throw_java_exception( env, IO_EXCEPTION, "isReceiveTimeoutEnabled", strerror( errno ) ); return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isDSR)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isDSR" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isDSR returns %i\n", result & TIOCM_DSR ); report( message ); LEAVE( "RXTXPort:isDSR" ); if( result & TIOCM_DSR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isCD)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isCD" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isCD returns %i\n", result & TIOCM_CD ); LEAVE( "RXTXPort:isCD" ); if( result & TIOCM_CD ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isCTS)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isCTS" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isCTS returns %i\n", result & TIOCM_CTS ); report( message ); LEAVE( "RXTXPort:isCTS" ); if( result & TIOCM_CTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isRI)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isRI" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isRI returns %i\n", result & TIOCM_RI ); report( message ); LEAVE( "RXTXPort:isRI" ); if( result & TIOCM_RI ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isRTS)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isRTS" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isRTS returns %i\n", result & TIOCM_RTS ); report( message ); LEAVE( "RXTXPort:isRTS" ); if( result & TIOCM_RTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setRTS)( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:setRTS" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setRTS( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setRTS" ); return; } /*---------------------------------------------------------- RXTXPort.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setDSR)( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:setDSR()" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "setDSR( %i )\n", state ); if( state == JNI_TRUE ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setDSR( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setDSR()" ); return; } /*---------------------------------------------------------- RXTXPort.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(isDTR)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:isDTR" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "isDTR( ) returns %i\n", result& TIOCM_DTR ); report( message ); LEAVE( "RXTXPort:isDTR" ); if( result & TIOCM_DTR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setDTR)( JNIEnv *env, jobject jobj, jboolean state ) { unsigned int result = 0; int fd = get_java_var( env, jobj,"fd","I" ); char message[80]; ENTER( "RXTXPort:setDTR" ); ioctl( fd, TIOCMGET, &result ); if( state == JNI_TRUE ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setDTR( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setDTR" ); return; } /*---------------------------------------------------------- RXTXPort.static_add_filename accept: filename and fd to save perform: add a struct holding the info to a linked list return: none exceptions: none comments: the info is checked on open() if its in the list no changes are performed on the file on open() comments: see RXTXPort.nativeStaticSetDSR RXTXPort.nativeStaticSetDTR RXTXPort.nativeStaticSetRTS RXTXPort.nativeStaticSetSerialPortParams This is used so people can setDTR low before calling the -----------------------------------------------------------*/ void static_add_filename( const char *filename, int fd) { struct preopened *newp, *p = preopened_port; newp = malloc( sizeof( struct preopened ) ); strcpy( newp->filename, filename ); newp->fd = fd; if( !p ) { newp->next = NULL; newp->prev = NULL; preopened_port = newp; return; } for(;;) { if( !strcmp( p->filename, filename) ) { /* already open */ return; } if( p->next ) { p = p->next; } else { /* end of list */ newp->next = NULL; newp->prev = p; p->next = newp; preopened_port = p; return; } } } /*---------------------------------------------------------- RXTXPort.nativeSetBaudBase accept: The Baud Base for custom speeds perform: set the Baud Base return: 0 on success exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: Set baud rate to 38400 before using this First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeSetBaudBase)( JNIEnv *env, jobject jobj, jint BaudBase ) { #if defined(TIOCGSERIAL) int fd = get_java_var( env, jobj,"fd","I" ); struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { goto fail; } sstruct.baud_base = (int) BaudBase; if ( sstruct.baud_base < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { goto fail; } return( ( jboolean ) 0 ); fail: throw_java_exception( env, IO_EXCEPTION, "nativeSetBaudBase", strerror( errno ) ); return( ( jboolean ) 1 ); #else throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetBaudBase", strerror( errno ) ); return( ( jboolean ) 1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeGetBaudBase accept: the Baud Base used for custom speeds perform: return: Baud Base exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeGetBaudBase)( JNIEnv *env, jobject jobj ) { #if defined(TIOCGSERIAL) int fd = get_java_var( env, jobj,"fd","I" ); struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { goto fail; } return( ( jint ) ( sstruct.baud_base ) ); fail: throw_java_exception( env, IO_EXCEPTION, "nativeGetBaudBase", strerror( errno ) ); return( ( jint ) -1 ); #else throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeGetBaudBase", strerror( errno ) ); return( ( jint ) -1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeSetDivisor accept: Divisor for custom speeds perform: set the Divisor for custom speeds return: 0 on success exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: Set baud rate to 38400 before using this First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeSetDivisor)( JNIEnv *env, jobject jobj, jint Divisor ) { #if defined(TIOCGSERIAL) int fd = get_java_var( env, jobj,"fd","I" ); struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { goto fail; } if ( sstruct.custom_divisor < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { goto fail; } return( ( jboolean ) 0 ); fail: throw_java_exception( env, IO_EXCEPTION, "nativeSetDivisor", strerror( errno ) ); return( ( jboolean ) 1 ); #else throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetDivisor", strerror( errno ) ); return( ( jboolean ) 1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeGetDivisor accept: none perform: Find the Divisor used for custom speeds return: Divisor negative value on error. exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeGetDivisor)( JNIEnv *env, jobject jobj ) { #if defined(TIOCGSERIAL) int fd = get_java_var( env, jobj,"fd","I" ); struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { goto fail; } return( ( jint ) sstruct.custom_divisor ); fail: throw_java_exception( env, IO_EXCEPTION, "nativeGetDivisor", strerror( errno ) ); return( ( jint ) -1 ); #else throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeGetDivisor", strerror( errno ) ); return( ( jint ) -1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeStaticSetDSR accept: new RTS state perform: if flag is true, TIOCM_DSR is set if flag is false, TIOCM_DSR is unset return: none exceptions: none comments: Set the DSR so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDSR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticSetDSR) (JNIEnv *env, jclass jclazz, jstring jstr, jboolean flag) { int fd; int pid = -1; int result; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); ENTER( "RXTXPort:nativeStaticSetDSR" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the DSR */ ioctl( fd, TIOCMGET, &result ); if( flag == JNI_TRUE ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the DSR would remain high */ (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetDSR" ); return( JNI_TRUE ); fail: (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetDSR" ); return( JNI_FALSE ); } /*---------------------------------------------------------- RXTXPort.nativeStaticSetRTS accept: new RTS state perform: if flag is true, TIOCM_RTS is set if flag is false, TIOCM_RTS is unset return: none exceptions: none comments: Set the RTS so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticSetRTS) (JNIEnv *env, jclass jclazz, jstring jstr, jboolean flag) { int fd; int pid = -1; int result; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); ENTER( "RXTXPort:nativeStaticSetRTS" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail;; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the RTS */ ioctl( fd, TIOCMGET, &result ); if( flag == JNI_TRUE ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the RTS would remain high */ (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetRTS" ); return( JNI_TRUE ); fail: (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetRTS" ); return( JNI_FALSE ); } /*---------------------------------------------------------- RXTXPort.nativeStaticSetSerialPortParams accept: string for the filename, int baudrate, int databits, int stopbits, int parity perform: set the serial port, set the params, save the fd in a linked list. return: none exceptions: none comments: Not set the speed on the next 'open' This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(nativeStaticSetSerialPortParams) (JNIEnv *env, jclass jclazz, jstring jstr, jint baudrate, jint dataBits, jint stopBits, jint parity ) { int fd; int pid = -1; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int cspeed = translate_speed( env, baudrate ); ENTER( "RXTXPort:nativeStaticSetSerialPortParams" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) { (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeStaticSetSerialPortParams", strerror( errno ) ); return; } if (cspeed == -1) { (*env)->ReleaseStringUTFChars( env, jstr, filename ); throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "BaudRate could not be set to the specified value" ); return; } if( set_port_params( env, fd, cspeed, dataBits, stopBits, parity ) ) { (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStatic SetSerialPortParams" ); throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeStaticSetSerialPortParams", strerror( errno ) ); return; } /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. */ (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); return; fail: (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); return; } /*---------------------------------------------------------- RXTXPort.nativeStaticSetDTR accept: new DTR state perform: if flag is true, TIOCM_DTR is set if flag is false, TIOCM_DTR is unset return: none exceptions: none comments: Set the DTR so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticSetDTR) (JNIEnv *env, jclass jclazz, jstring jstr, jboolean flag) { int fd; int pid = -1; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int result; ENTER( "RXTXPort:nativeStaticSetDTR" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail;; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the DTR */ ioctl( fd, TIOCMGET, &result ); if( flag == JNI_TRUE ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the DTR would remain high */ (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetDTR" ); return( JNI_TRUE ); fail: (*env)->ReleaseStringUTFChars( env, jstr, filename ); LEAVE( "RXTXPort:nativeStaticSetDTR" ); return( JNI_FALSE ); } /*---------------------------------------------------------- RXTXPort.nativeStaticIsRTS accept: filename perform: check status of RTS of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: RTS stands for Request to Send ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsRTS)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsRTS" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsRTS( ) returns %i\n", result& TIOCM_RTS ); report( message ); LEAVE( "RXTXPort:nativeStaticIsRTS" ); if( result & TIOCM_RTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsDSR accept: filename perform: check status of DSR of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsDSR)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsDSR" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsDSR( ) returns %i\n", result& TIOCM_DSR ); report( message ); LEAVE( "RXTXPort:nativeStaticIsDSR" ); if( result & TIOCM_DSR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsDTR accept: filename perform: check status of DTR of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsDTR)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsDTR" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsDTR( ) returns %i\n", result& TIOCM_DTR ); report( message ); LEAVE( "RXTXPort:nativeStaticIsDTR" ); if( result & TIOCM_DTR ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsCD accept: filename perform: check status of CD of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for carrier detect ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsCD)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsCD" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsCD( ) returns %i\n", result& TIOCM_CD ); report( message ); LEAVE( "RXTXPort:nativeStaticIsCD" ); if( result & TIOCM_CD ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsCTS accept: filename perform: check status of CTS of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsCTS)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsCTS" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsCTS( ) returns %i\n", result& TIOCM_CTS ); report( message ); LEAVE( "RXTXPort:nativeStaticIsCTS" ); if( result & TIOCM_CTS ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsRI accept: filename perform: check status of RI of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for carrier detect ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeStaticIsRI)( JNIEnv *env, jobject jobj, jstring jstr ) { unsigned int result = 0; const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); char message[80]; ENTER( "RXTXPort:nativeStaticIsRI" ); if( !fd ) { /* Exception? FIXME */ return JNI_FALSE; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticRI( ) returns %i\n", result& TIOCM_RI ); report( message ); LEAVE( "RXTXPort:nativeStaticIsRI" ); if( result & TIOCM_RI ) return JNI_TRUE; else return JNI_FALSE; } /*---------------------------------------------------------- RXTXPort.nativeStaticGetBaudRate accept: filename perform: find the baud rate (not all buads are handled yet) return: return the baud rate or -1 if not supported yet. exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeStaticGetBaudRate)( JNIEnv *env, jobject jobj, jstring jstr ) { const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); struct termios ttyset; int baudrate; (*env)->ReleaseStringUTFChars( env, jstr, filename ); ENTER( "RXTXPort:nativeStaticGetBaudRate" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetBaudRate: Cannot Get Serial Port Settings\n" ); return(-1); } /* dima writes: Trent, here is something I found with google: (freebsd list freebsd-current@freebsd.org) Andrzej Bialecki asked: I tried to compile a piece of software, probably for Linux, and I noticed that we don't define CBAUD constant. I'm not sure, but I think POSIX defines and uses it. Should(n't) we? Bruce Evans answered: CBAUD is for SYSV compatibility. It is considerably inferior to POSIX's cf{get,set}{i,o}speed and shouldn't be provided or used. */ #if defined(CBAUD)/* dima */ baudrate = ttyset.c_cflag&CBAUD; #else if(cfgetispeed(&ttyset) != cfgetospeed(&ttyset)) return -1; baudrate = cfgetispeed(&ttyset); #endif return( get_java_baudrate(baudrate) ); } /*---------------------------------------------------------- RXTXPort.nativeStaticGetDataBits accept: filename perform: find the data bits (not all buads are handled yet) return: return the data bits exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeStaticGetDataBits)( JNIEnv *env, jobject jobj, jstring jstr ) { const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); struct termios ttyset; (*env)->ReleaseStringUTFChars( env, jstr, filename ); ENTER( "RXTXPort:nativeStaticGetDataBits" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetDataBits: Cannot Get Serial Port Settings\n" ); return(-1); } switch( ttyset.c_cflag&CSIZE ) { case CS5: return JDATABITS_5; case CS6: return JDATABITS_6; case CS7: return JDATABITS_7; case CS8: return JDATABITS_8; default: return(-1); } } /*---------------------------------------------------------- RXTXPort.nativeStaticGetParity accept: filename perform: find the parity return: return the parity exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeStaticGetParity)( JNIEnv *env, jobject jobj, jstring jstr ) { const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); struct termios ttyset; (*env)->ReleaseStringUTFChars( env, jstr, filename ); ENTER( "RXTXPort:nativeStaticGetParity" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetParity: Cannot Get Serial Port Settings\n" ); return(-1); } #ifdef CMSPAR switch( ttyset.c_cflag&(PARENB|PARODD|CMSPAR ) ) { #else switch( ttyset.c_cflag&(PARENB|PARODD) ) { #endif /* CMSPAR */ case 0: return JPARITY_NONE; case PARENB: return JPARITY_EVEN; case PARENB | PARODD: return JPARITY_ODD; #ifdef CMSPAR case PARENB | PARODD | CMSPAR: return JPARITY_MARK; case PARENB | CMSPAR: return JPARITY_SPACE; #endif /* CMSPAR */ default: return(-1); } } /*---------------------------------------------------------- RXTXPort.nativeStaticGetStopBits accept: filename perform: find the stop bits return: return the stop bits exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeStaticGetStopBits)( JNIEnv *env, jobject jobj, jstring jstr ) { const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); int fd = find_preopened_ports( filename ); struct termios ttyset; (*env)->ReleaseStringUTFChars( env, jstr, filename ); ENTER( "RXTXPort:nativeStaticGetStopBits" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetStopBits: Cannot Get Serial Port Settings\n" ); return(-1); } switch( ttyset.c_cflag&(CSTOPB) ) { case 0: return STOPBITS_1; case CSTOPB: if( ttyset.c_cflag & CS5 ) { return STOPBITS_1_5; } else { return STOPBITS_2; } default: return -1; } } /*---------------------------------------------------------- RXTXPort.nativeGetParityErrorChar accept: - perform: check the ParityErrorChar return: The ParityErrorChar as an jbyte. exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. ----------------------------------------------------------*/ JNIEXPORT jbyte JNICALL RXTXPort(nativeGetParityErrorChar)( JNIEnv *env, jobject jobj ) { unsigned int result = 0; ENTER( "nativeGetParityErrorChar" ); #ifdef WIN32 result = ( jbyte ) termiosGetParityErrorChar( get_java_var(env, jobj, "fd", "I" ) ); #else /* arg! I cant find a way to change it from \0 in Linux. I think the frame and parity error characters are hardcoded. */ result = ( jint ) '\0'; #endif /* WIN32 */ LEAVE( "nativeGetParityErrorChar" ); return( ( jbyte ) result ); } /*---------------------------------------------------------- RXTXPort.nativeGetEndOfInputChar accept: - perform: check the EndOf InputChar return: the EndOfInputChar as an jbyte. -1 on error exceptions: UnsupportedCommOperationException if not implemented comments: ----------------------------------------------------------*/ JNIEXPORT jbyte JNICALL RXTXPort(nativeGetEndOfInputChar)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; ENTER( "nativeGetEndOfInputChar" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "nativeGetEndOfInputChar" ); return( (jbyte) ttyset.c_cc[VEOF] ); fail: LEAVE( "nativeGetEndOfInputChar" ); report( "nativeGetEndOfInputChar failed\n" ); return( ( jbyte ) -1 ); } /*---------------------------------------------------------- RXTXPort.nativeSetParityErrorChar accept: the ParityArrorCharacter as an int. perform: Set the ParityErrorChar return: JNI_TRUE on success exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeSetParityErrorChar)( JNIEnv *env, jobject jobj, jbyte value ) { #ifdef WIN32 int fd = get_java_var( env, jobj,"fd","I" ); ENTER( "nativeSetParityErrorChar" ); termiosSetParityError( fd, ( char ) value ); LEAVE( "nativeSetParityErrorChar" ); return( JNI_TRUE ); #else ENTER( "nativeSetParityErrorChar" ); /* arg! I cant find a way to change it from \0 in Linux. I think the frame and parity error characters are hardcoded. */ throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "Not implemented... yet", strerror( errno ) ); LEAVE( "nativeSetParityErrorChar" ); return( JNI_FALSE ); #endif /* WIN32 */ } /*---------------------------------------------------------- RXTXPort.nativeSetEndOfInputChar accept: The EndOfInputChar as an int perform: set the EndOfInputChar return: JNI_TRUE on success exceptions: UnsupportedCommOperationException if not implemented comments: This may cause troubles on Windows. Lets give it a shot and see what happens. See termios.c for the windows bits. EofChar = val; fBinary = false; winapi docs say always use true. ? ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeSetEndOfInputChar)( JNIEnv *env, jobject jobj, jbyte value ) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; ENTER( "nativeSetEndOfInputChar" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[VEOF] = ( char ) value; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; LEAVE( "nativeSetEndOfInputChar" ); return( JNI_TRUE ); fail: throw_java_exception( env, IO_EXCEPTION, "nativeSetEndOfInputChar", strerror( errno ) ); report( "nativeSetEndOfInputChar failed\n" ); LEAVE( "nativeSetEndOfInputChar" ); return( JNI_FALSE ); } #ifndef WIN32 long GetTickCount() { /* return milliseconds */ struct timeval now; gettimeofday(&now, NULL); report_verbose("gettimeofday\n"); #ifdef __QNX__ return now.tv_sec * 1000 + now.tv_usec / 1000; #else return (now.tv_sec * 1000) + ceil(now.tv_usec / 1000); #endif /* __QNX__ */ } #endif /* !WIN32 */ /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( JNIEnv *env, jobject *jobj, int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; long timeLeft, now = 0, start = 0; /* char msg[80]; */ struct timeval tv, *tvP; fd_set rset; /* TRENT */ int flag, count = 0; struct event_info_struct *eis = ( struct event_info_struct * ) get_java_var_long( env, *jobj,"eis","J" ); report_time_start(); flag = eis->eventflags[SPE_DATA_AVAILABLE]; eis->eventflags[SPE_DATA_AVAILABLE] = 0; /* ENTER( "read_byte_array" ); sprintf(msg, "read_byte_array requests %i\n", length); report( msg ); */ left = length; if (timeout >= 0) start = GetTickCount(); while( bytes < length && count++ < 20 ) /* && !is_interrupted( eis ) )*/ { if (timeout >= 0) { now = GetTickCount(); if ( now-start >= timeout ) { eis->eventflags[SPE_DATA_AVAILABLE] = flag; return bytes; } } FD_ZERO(&rset); FD_SET(fd, &rset); if (timeout >= 0){ timeLeft = timeout - (now - start); tv.tv_sec = timeLeft / 1000; tv.tv_usec = 1000 * ( timeLeft % 1000 ); tvP = &tv; } else{ tvP = NULL; } /* FIXME HERE Trent */ #ifndef WIN32 do { ret = SELECT( fd + 1, &rset, NULL, NULL, tvP ); } while (ret < 0 && errno==EINTR); #else ret = 1; #endif /* WIN32 */ if (ret == -1){ report( "read_byte_array: select returned -1\n" ); LEAVE( "read_byte_array" ); eis->eventflags[SPE_DATA_AVAILABLE] = flag; return -1; } else if (ret > 0) { if ((ret = READ( fd, buffer + bytes, left )) < 0 ){ if (errno != EINTR && errno != EAGAIN){ report( "read_byte_array: read returned -1\n" ); LEAVE( "read_byte_array" ); eis->eventflags[SPE_DATA_AVAILABLE] = flag; return -1; } eis->eventflags[SPE_DATA_AVAILABLE] = flag; return -1; } else if ( ret ) { bytes += ret; left -= ret; } /* The only thing that is bugging me with the new version is the CPU usage when reading on the serial port. I looked at it today and find a quick fix. It doesn't seems to affect the performance for our apps (I mean in a negative way, cause the CPU is back to normal, near 0-5%). All I did is add a usleep in the reading function. Nicolas */ else { /* usleep(10); */ usleep(1000); } } } /* if( count > 19 ) { throw_java_exception( env, IO_EXCEPTION, "read_byte_array", "No data available" ); } sprintf(msg, "read_byte_array returns %i\n", bytes); report( msg ); LEAVE( "read_byte_array" ); report_time_end(); */ eis->eventflags[SPE_DATA_AVAILABLE] = flag; return bytes; } #ifdef asdf int read_byte_array( JNIEnv *env, jobject *jobj, int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; long now, start = 0; char msg[80]; report_time_start(); ENTER( "read_byte_array" ); sprintf(msg, "read_byte_array requests %i\n", length); report( msg ); left = length; if (timeout >= 0) start = GetTickCount(); while( bytes < length ) { if (timeout >= 0) { now = GetTickCount(); if (now-start >= timeout) return bytes; } RETRY: if ((ret = READ( fd, buffer + bytes, left )) < 0 ) { if (errno == EINTR) goto RETRY; report( "read_byte_array: read returned -1\n" ); LEAVE( "read_byte_array" ); return -1; } bytes += ret; left -= ret; } sprintf(msg, "read_byte_array returns %i\n", bytes); report( msg ); LEAVE( "read_byte_array" ); report_time_end(); return bytes; } int read_byte_array( JNIEnv *env, jobject *jobj, int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; /* int count = 0; */ fd_set rfds; struct timeval sleep; struct event_info_struct *eis = find_eis( fd ); #ifndef WIN32 struct timeval *psleep=&sleep; #endif /* WIN32 */ ENTER( "read_byte_array" ); left = length; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); if( timeout != 0 ) { sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); } while( bytes < length ) { /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ #ifndef WIN32 do { if( timeout == 0 ) psleep = NULL; ret=SELECT( fd + 1, &rfds, NULL, NULL, psleep ); } while (ret < 0 && errno==EINTR); #else /* the select() needs some work before the above will work on win32. The select code cannot be accessed from both the Monitor Thread and the Reading Thread. */ ret = RXTXPort(nativeavailable)( env, *jobj ); #endif /* WIN32 */ if( ret == 0 ) { report( "read_byte_array: select returned 0\n" ); LEAVE( "read_byte_array" ); break; } if( ret < 0 ) { report( "read_byte_array: select returned -1\n" ); LEAVE( "read_byte_array" ); return -1; } ret = READ( fd, buffer + bytes, left ); if( ret == 0 ) { report( "read_byte_array: read returned 0 bytes\n" ); LEAVE( "read_byte_array" ); break; } else if( ret < 0 ) { report( "read_byte_array: read returned -1\n" ); LEAVE( "read_byte_array" ); return -1; } bytes += ret; left -= ret; } LEAVE( "read_byte_array" ); return bytes; } #endif /* asdf */ /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(NativeEnableReceiveTimeoutThreshold)( JNIEnv *env, jobject jobj, jint vtime, jint threshold, jint buffer) { int fd = get_java_var( env, jobj,"fd","I" ); struct termios ttyset; int timeout; if (vtime < 0){ timeout = 0; } else if (vtime == 0){ timeout = 1; } else{ timeout = vtime; } ENTER( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[ VMIN ] = threshold; ttyset.c_cc[ VTIME ] = timeout/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); return; fail: LEAVE( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); throw_java_exception( env, IO_EXCEPTION, "TimeoutThreshold", strerror( errno ) ); return; } /*---------------------------------------------------------- RXTXPort.readByte accept: none perform: Read a single byte from the port. Block unless an exeption is thrown, or end of stream. return: The byte read exceptions: IOException comments: On Fri, 30 Aug 2002, Bill Smith wrote: I agree, the documentation isn't the best. No surprises there. I did do a test using the sun/win32 comm driver with read() and retrieve timeout enabled. It blocked until the timeout expired, then returned a -1. This seems to jive with the way I'm reading it which is the javax.comm comments regarding read (in the CommPort.getInputStream stuff) extends/overrides the documentation for java.io.InputStream. This is the same behavior that the Windriver driver for vxworks exhibits. On Fri, 30 Aug 2002, Bill Smith wrote: > Hi Trent, > > I have a couple of questions/comments. > > 1) I noticed in the thread last night and in the code changes this morning that you > now have readByte() (which is called from the input stream read(), to block > forever. I pulled the following info from the javax.comm doc for the CommPort class in > getInputStream(). > > The way I interpret that is that read() just like read(byte[]), and read(byte[], int, int), > show only block indefinitely if timeout is disabled. The sun implementation for win32 (as > well as the one we have for vxworks) returns a -1 when it times out. > Doing what Sun does is going to the least hassle. The documentation was a little unclear to me. I assume this is the CommPort.getInputStream comment that you mention The read behaviour of the input stream returned by getInputStream depends on combination of the threshold and timeout values. The possible behaviours are described in the table below: ... But InputStream is where read(byte) is documented http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read() Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown If you are sure commapi is doing a timeout and returning -1, I can change it back and document the issue. Because I often grep my own mailbox for details, I'm going to add these two comments also: public int read(byte[] b) ) http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[]) Reads some number of bytes from the input stream and stores them into the buffer array b. The number of bytes actually read is returned as an integer. This method blocks until input data is available, end of file is detected, or an exception is thrown. If b is null, a NullPointerException is thrown. If the length of b is zero, then no bytes are read and 0 is returned; otherwise, there is an attempt to read at least one byte. If no byte is available because the stream is at end of file, the value -1 is returned; otherwise, at least one byte is read and stored into b. So read(byte[] b) is documented as blocking for the first byte. public int read(byte[] b,int off,int len) http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int) Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer. Which makes sense with the timeout documentation. threshold comment I'll look at that next. I thought those changes where in the ifdefed code. I'll take a second look and reply. > > Thoughts? Comments? > > Bill > > ---------------------- > > public abstract InputStream getInputStream() throws IOException > > > Returns an input stream. This is the only way to receive data from the communications > port. If the port is unidirectional and doesn't support receiving data, then > getInputStream returns null. > > The read behaviour of the input stream returned by getInputStream depends on > combination of the threshold and timeout values. The possible behaviours are > described in the table below: > > > Threshold Timeout Read Buffer Read Behaviour > State Value State Value Size > ----------------------------------------------------------------------------------- > disabled - disabled - n bytes block until any data is available > > enabled m bytes disabled - n bytes block until min(m,n) bytes are available > > disabled - enabled x ms n bytes block for x ms or until any data is available > > enabled m bytes enabled x ms n bytes block for x ms or until min(m,n) bytes are available > > Returns: InputStream object that can be used to read from the port > > Throws: IOException if an I/O error occurred ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(readByte)( JNIEnv *env, jobject jobj ) { int bytes; unsigned char buffer[ 1 ]; int fd = get_java_var( env, jobj,"fd","I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); /* char msg[80]; */ /* ENTER( "RXTXPort:readByte" ); report_time_start( ); */ bytes = read_byte_array( env, &jobj, fd, buffer, 1, timeout ); if( bytes < 0 ) { LEAVE( "RXTXPort:readByte" ); throw_java_exception( env, IO_EXCEPTION, "readByte", strerror( errno ) ); return -1; } /* LEAVE( "RXTXPort:readByte" ); sprintf( msg, "readByte return(%i)\n", bytes ? buffer[ 0 ] : -1 ); report( msg ); report_time_end( ); */ return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- RXTXPort.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(readArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { int bytes; jbyte *body; /* char msg[80]; */ int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); /* ENTER( "readArray" ); report_time_start( ); */ if( (size_t) length > SSIZE_MAX || (size_t) length < 0 ) { report( "RXTXPort:readArray length > SSIZE_MAX" ); LEAVE( "RXTXPort:readArray" ); throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); bytes = read_byte_array( env, &jobj, fd, (unsigned char *)(body+offset), length, timeout );/* dima */ (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); if( bytes < 0 ) { report( "RXTXPort:readArray bytes < 0" ); LEAVE( "RXTXPort:readArray" ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } /* sprintf( msg, "RXTXPort:readArray: %i %i\n", (int) length, bytes); report( msg ); report_time_end( ); LEAVE( "RXTXPort:readArray" ); */ return (bytes); } /*---------------------------------------------------------- RXTXPort.nativeClearCommInput accept: none perform: try to clear the input. return: true on success, false on error exceptions: none comments: This is an extension to commapi. ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXPort(nativeClearCommInput)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj, "fd", "I" ); if ( tcflush( fd, TCIFLUSH ) ) return( JNI_FALSE ); return( JNI_TRUE ); } /*---------------------------------------------------------- RXTXPort.readTerminatedArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read). Terminator - 2 bytes that we dont read past perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes timeout is not properly handled This is an extension to commapi. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(readTerminatedArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length, jbyteArray jterminator ) { int bytes, total = 0; jbyte *body, *terminator; /* char msg[80]; */ int fd = get_java_var( env, jobj, "fd", "I" ); int timeout = get_java_var( env, jobj, "timeout", "I" ); /* ENTER( "readArray" ); report_time_start( ); */ if( (size_t) length > SSIZE_MAX || (size_t) length < 0 ) { report( "RXTXPort:readArray length > SSIZE_MAX" ); LEAVE( "RXTXPort:readArray" ); throw_java_exception( env, ARRAY_INDEX_OUT_OF_BOUNDS, "readArray", "Invalid length" ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); terminator = (*env)->GetByteArrayElements( env, jterminator, 0 ); do { bytes = read_byte_array( env, &jobj, fd, (unsigned char *)(body+offset + total ), 1 , timeout );/* dima */ total += bytes; if( bytes < 0 ) { report( "RXTXPort:readArray bytes < 0" ); LEAVE( "RXTXPort:readArray" ); throw_java_exception( env, IO_EXCEPTION, "readArray", strerror( errno ) ); return -1; } if ( total > 1 && terminator[1] == body[total -1] && terminator[ 0 ] == body[ total -2 ] ) { report("Got terminator!\n" ); break; } } while ( bytes > 0 && total < length ); (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); /* sprintf( msg, "RXTXPort:readArray: %i %i\n", (int) length, bytes); report( msg ); report_time_end( ); LEAVE( "RXTXPort:readArray" ); */ return (bytes); } /*---------------------------------------------------------- RXTXPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(nativeavailable)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); int result; /* char message[80]; ENTER( "RXTXPort:nativeavailable" ); On SCO OpenServer FIONREAD always fails for serial devices, so try ioctl FIORDCHK instead; will only tell us whether bytes are available, not how many, but better than nothing. This turns out to be true on Solaris also. taj. */ #ifdef FIORDCHK /* __unixware__ __sun__ probably others */ result = ioctl(fd, FIORDCHK, 0); #else if( ioctl( fd, FIONREAD, &result ) < 0 ) { goto fail; } #endif /* FIORDCHK */ if (result == -1) { goto fail; } /* sprintf(message, " nativeavailable: FIORDCHK result %d, \ errno %d\n", result , result == -1 ? errno : 0); report_verbose( message ); if( result ) { sprintf(message, " nativeavailable: FIORDCHK result %d, \ errno %d\n", result , result == -1 ? errno : 0); report( message ); } LEAVE( "RXTXPort:nativeavailable" ); */ return (jint)result; fail: report("RXTXPort:nativeavailable: ioctl() failed\n"); /* LEAVE( "RXTXPort:nativeavailable" ); */ throw_java_exception( env, IO_EXCEPTION, "nativeavailable", strerror( errno ) ); return (jint)result; } /*---------------------------------------------------------- RXTXPort.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: UnsupportedCommOperationException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setflowcontrol)( JNIEnv *env, jobject jobj, jint flowmode ) { struct termios ttyset; int fd = get_java_var( env, jobj,"fd","I" ); ENTER( "RXTXPort:setflowcontrol" ); if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) { ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; } else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) { ttyset.c_iflag |= IXOFF; } else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) { ttyset.c_iflag |= IXON; } else ttyset.c_iflag &= ~IXON; /* TRENT */ if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; LEAVE( "RXTXPort:setflowcontrol" ); return; fail: LEAVE( "RXTXPort:setflowcontrol" ); throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "flow control type not supported" ); return; } /*---------------------------------------------------------- unlock_monitor_thread accept: event_info_struct perform: unlock the monitor thread so event notification can start. return: none exceptions: none comments: Events can be missed otherwise. ----------------------------------------------------------*/ void unlock_monitor_thread( struct event_info_struct *eis ) { JNIEnv *env = eis->env; jobject jobj = *(eis->jobj); jfieldID jfid = (*env)->GetFieldID( env, (*env)->GetObjectClass( env, jobj ), "MonitorThreadLock", "Z" ); (*env)->SetBooleanField( env, jobj, jfid, (jboolean) 0 ); } /*---------------------------------------------------------- check_line_status_register accept: event_info_struct perform: check for changes on the LSR return: 0 on success exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ int check_line_status_register( struct event_info_struct *eis ) { #ifdef TIOCSERGETLSR struct stat fstatbuf; if( ! eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { /* This occurs constantly so remove for now * report( "check_line_status_registe OUPUT_BUFFER_EMPTY not set\n" ); */ return 0; } if ( fstat( eis->fd, &fstatbuf ) ) { report( "check_line_status_register: fstat\n" ); return( 1 ); } if( ioctl( eis->fd, TIOCSERGETLSR, &eis->change ) ) { report( "check_line_status_register: TIOCSERGETLSR\n is nonnull\n" ); return( 1 ); } else if( eis && eis->change ) { report_verbose( "check_line_status_register: sending OUTPUT_BUFFER_EMPTY\n" ); send_event( eis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); } #else /* printf("test %i\n", eis->output_buffer_empty_flag ); */ if( eis && eis->output_buffer_empty_flag == 1 && eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { report_verbose("check_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY\n"); send_event( eis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); /* send_event( eis, SPE_DATA_AVAILABLE, 1 ); */ eis->output_buffer_empty_flag = 0; } #endif /* TIOCSERGETLSR */ return( 0 ); } /*---------------------------------------------------------- has_line_status_register_access accept: fd of interest perform: check for access to the LSR return: 0 if not available exceptions: none comments: not supported on all devices/drivers. JK00: work around for multiport cards without TIOCSERGETLSR Cyclades is one of those :-( ----------------------------------------------------------*/ int has_line_status_register_access( int fd ) { #if defined(TIOCSERGETLSR) int change; if( !ioctl( fd, TIOCSERGETLSR, &change ) ) { return(1); } #endif /* TIOCSERGETLSR */ report( "has_line_status_register_acess: Port does not support TIOCSERGETLSR\n" ); return( 0 ); } /*---------------------------------------------------------- check_cgi_count accept: fd of interest perform: check for access to TIOCGICOUNT return: 0 if not available exceptions: none comments: not supported on all devices/drivers. * wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); ----------------------------------------------------------*/ void check_cgi_count( struct event_info_struct *eis ) { #if defined(TIOCGICOUNT) /* JK00: only use it if supported by this port */ struct serial_icounter_struct sis; memcpy( &sis, &eis->osis, sizeof( struct serial_icounter_struct ) ); if( ioctl( eis->fd, TIOCGICOUNT, &sis ) ) { report( "check_cgi_count: TIOCGICOUNT\n is not 0\n" ); return; } while( eis && sis.frame != eis->osis.frame ) { send_event( eis, SPE_FE, 1); eis->osis.frame++; } while( eis && sis.overrun != eis->osis.overrun ) { send_event( eis, SPE_OE, 1); eis->osis.overrun++; } while( eis && sis.parity != eis->osis.parity ) { send_event( eis, SPE_PE, 1); eis->osis.parity++; } while( eis && sis.brk != eis->osis.brk ) { send_event( eis, SPE_BI, 1); eis->osis.brk++; } if( eis ) memcpy( &eis->osis, &sis, sizeof( struct serial_icounter_struct ) ); #endif /* TIOCGICOUNT */ } /*---------------------------------------------------------- port_has_changed_fionread accept: fd of interest perform: check if FIONREAD has changed return: 0 if no data available exceptions: none comments: ----------------------------------------------------------*/ int port_has_changed_fionread( struct event_info_struct *eis ) { int change, rc; char message[80]; rc = ioctl( eis->fd, FIONREAD, &change ); sprintf( message, "port_has_changed_fionread: change is %i ret is %i\n", change, eis->ret ); #if defined(__unixware__) || defined(__sun__) /* On SCO OpenServer FIONREAD always fails for serial devices, so rely upon select() result to know whether data available. This is true for Solaris, also. taj. */ if( (rc != -1 && change) || (rc == -1 && eis->ret > 0) ) return( 1 ); #else sprintf( message, "port_has_changed_fionread: change is %i\n", change ); report_verbose( message ); if( change ) return( 1 ); #endif /* __unixware__ || __sun__ */ return( 0 ); } /*---------------------------------------------------------- check_tiocmget_changes accept: event_info_struct perform: use TIOCMGET to report events return: none exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ void check_tiocmget_changes( struct event_info_struct * eis ) { unsigned int mflags = 0; int change; /* DORITO */ if( !eis ) return; change = eis->change; report_verbose("entering check_tiocmget_changes\n"); if( ioctl( eis->fd, TIOCMGET, &mflags ) ) { report( "=======================================\n"); report( "check_tiocmget_changes: ioctl(TIOCMGET)\n" ); return; } change = (mflags&TIOCM_CTS) - (eis->omflags&TIOCM_CTS); if( eis && change ) send_event( eis, SPE_CTS, change ); change = (mflags&TIOCM_DSR) - (eis->omflags&TIOCM_DSR); if( eis && change ) { report( "sending DSR ===========================\n"); send_event( eis, SPE_DSR, change ); } change = (mflags&TIOCM_RNG) - (eis->omflags&TIOCM_RNG); if( eis && change ) send_event( eis, SPE_RI, change ); change = (mflags&TIOCM_CD) - (eis->omflags&TIOCM_CD); if( eis && change ) send_event( eis, SPE_CD, change ); if( eis ) eis->omflags = mflags; report_verbose("leaving check_tiocmget_changes\n"); } /*---------------------------------------------------------- system_wait accept: perform: return: exceptions: none comments: ----------------------------------------------------------*/ void system_wait() { #if defined (__sun__ ) struct timespec retspec, tspec; retspec.tv_sec = 0; retspec.tv_nsec = 100000000; do { tspec = retspec; nanosleep( &tspec, &retspec ); } while( tspec.tv_nsec != 0 ); /* Trent */ #else #ifdef TRENT_IS_HERE_DEBUGGING_THREADS /* On NT4 The following was observed in a intense test: 50000 95% 179 sec 200000 95% 193 sec 1000000 95% 203 sec some callback failures sometimes. 2000000 0-95% callback failures. */ #endif /* TRENT_IS_HERE_DEBUGGING_THREADS */ #endif /* __sun__ */ } /*---------------------------------------------------------- driver_has_tiocgicount accept: fd of interest perform: check for access to TIOCGICOUNT return: 0 if not available exceptions: none comments: not supported on all devices/drivers. Some multiport serial cards do not implement TIOCGICOUNT ... So use the 'dumb' mode to enable using them after all! JK00 ----------------------------------------------------------*/ int driver_has_tiocgicount( struct event_info_struct * eis ) { #if defined(TIOCGICOUNT) /* Some multiport serial cards do not implement TIOCGICOUNT ... */ /* So use the 'dumb' mode to enable using them after all! JK00 */ if( ioctl( eis->fd, TIOCGICOUNT, &eis->osis ) < 0 ) { report_verbose( " driver_has_tiocgicount: Port does not support TIOCGICOUNT events\n" ); return(0); } else return(1); #endif /* TIOCGICOUNT */ return(0); } /*---------------------------------------------------------- report_serial_events accept: event_info_struct perform: send events if they occured return: 0 if not available exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ void report_serial_events( struct event_info_struct *eis ) { /* JK00: work around for Multi IO cards without TIOCSERGETLSR */ /* if( eis->has_tiocsergetlsr ) we have a fix for output empty */ if( check_line_status_register( eis ) ) return; if ( eis && eis->has_tiocgicount ) check_cgi_count( eis ); #ifndef WIN32 /* something is wrong here */ #endif /* WIN32 */ check_tiocmget_changes( eis ); if( eis && port_has_changed_fionread( eis ) ) { if(!eis->eventflags[SPE_DATA_AVAILABLE] ) { report_verbose("report_serial_events: ignoring DATA_AVAILABLE\n"); /* report("."); */ usleep(20000); #if !defined(__sun__) /* FIXME: No time to test on all OS's for production */ usleep(20000); #endif /* !__sun__ */ return; } report("report_serial_events: sending DATA_AVAILABLE\n"); if(!send_event( eis, SPE_DATA_AVAILABLE, 1 )) { /* select wont block */ /* FIXME: No time to test on all OS's for production */ /* REMOVE goes around usleep */ #if !defined(__sun__) #endif /* !__sun__ */ } usleep(20000); } } /*---------------------------------------------------------- initialise_event_info_struct accept: event_info_struct for this thread. perform: initialise or reset the event_info_struct return: 1 on success exceptions: none comments: ----------------------------------------------------------*/ int initialise_event_info_struct( struct event_info_struct *eis ) { int i; jobject jobj = *eis->jobj; JNIEnv *env = eis->env; struct event_info_struct *index = master_index; if ( eis->initialised == 1 ) goto end; #ifdef TIOCGICOUNT memset(&eis->osis,0,sizeof(eis->osis)); #endif /* TIOCGICOUNT */ if( index ) { while( index->next ) { index = index->next; } index->next = eis; eis->prev = index; eis->next = NULL; } else { master_index = eis; master_index->next = NULL; master_index->prev = NULL; } for( i = 0; i < 11; i++ ) eis->eventflags[i] = 0; #if !defined(TIOCSERGETLSR) && !defined(WIN32) eis->output_buffer_empty_flag = 0; eis->writing = 0; #endif /* TIOCSERGETLSR */ eis->eventloop_interrupted = 0; eis->closing = 0; eis->fd = get_java_var( env, jobj, "fd", "I" ); eis->has_tiocsergetlsr = has_line_status_register_access( eis->fd ); eis->has_tiocgicount = driver_has_tiocgicount( eis ); if( ioctl( eis->fd, TIOCMGET, &eis->omflags) < 0 ) { report( "initialise_event_info_struct: Port does not support events\n" ); } eis->send_event = (*env)->GetMethodID( env, eis->jclazz, "sendEvent", "(IZ)Z" ); if(eis->send_event == NULL) goto fail; end: FD_ZERO( &eis->rfds ); FD_SET( eis->fd, &eis->rfds ); eis->tv_sleep.tv_sec = 0; eis->tv_sleep.tv_usec = 1000; eis->initialised = 1; return( 1 ); fail: report_error("initialise_event_info_struct: initialise failed!\n"); finalize_event_info_struct( eis ); return( 0 ); } /*---------------------------------------------------------- finalize_event_info_struct accept: event_info_struct for this thread. perform: free resources return: none exceptions: none comments: ----------------------------------------------------------*/ void finalize_event_info_struct( struct event_info_struct *eis ) { if( eis->jclazz) { (*eis->env)->DeleteLocalRef( eis->env, eis->jclazz ); } if( eis->next && eis->prev ) { eis->prev->next = eis->next; eis->next->prev = eis->prev; } else if( eis->next ) { eis->next->prev = NULL; master_index = eis->next; } else if( eis->prev ) eis->prev->next = NULL; else master_index = NULL; } /*---------------------------------------------------------- RXTXPort.eventLoop accept: none perform: periodically check for SerialPortEvents return: none exceptions: none comments: please keep this function clean. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(eventLoop)( JNIEnv *env, jobject jobj ) { #ifdef WIN32 int i = 0; #endif /* WIN32 */ struct event_info_struct eis; eis.jclazz = (*env)->GetObjectClass( env, jobj ); eis.env = env; eis.jobj = &jobj; eis.initialised = 0; ENTER( "eventLoop\n" ); if ( !initialise_event_info_struct( &eis ) ) goto end; if ( !init_threads( &eis ) ) goto end; unlock_monitor_thread( &eis ); do{ report_time_eventLoop( ); do { /* nothing goes between this call and select */ if( eis.closing ) { report("eventLoop: got interrupt\n"); finalize_threads( &eis ); finalize_event_info_struct( &eis ); LEAVE("eventLoop"); return; } #ifndef WIN32 /* report( "." ); */ do { eis.ret = SELECT( eis.fd + 1, &eis.rfds, NULL, NULL, &eis.tv_sleep ); } while (eis.ret < 0 && errno==EINTR); #else /* termios.c:serial_select is instable for some reason polling is not blowing up. */ /* usleep(5000); */ eis.ret=1; while( i++ < 5 ) { if(eis.eventflags[SPE_DATA_AVAILABLE] ) { if( port_has_changed_fionread( &eis ) ) { send_event( &eis, SPE_DATA_AVAILABLE, 1 ); } } usleep(1000); } i = 0; #endif /* WIN32 */ } while ( eis.ret < 0 && errno == EINTR ); if( eis.ret >= 0 ) { report_serial_events( &eis ); } initialise_event_info_struct( &eis ); } while( 1 ); end: LEAVE( "eventLoop: Bailing!\n" ); } /*---------------------------------------------------------- RXTXVersion.nativeGetVersion accept: none perform: return the current version return: version exceptions: none comments: This is used to avoid mixing versions of the .jar and native library. First introduced in rxtx-1.5-9 Moved from RXTXCommDriver to RXTXVersion in rxtx-2.1-7 ----------------------------------------------------------*/ JNIEXPORT jstring JNICALL RXTXVersion(nativeGetVersion) (JNIEnv *env, jclass jclazz ) { return (*env)->NewStringUTF( env, "RXTX-2.2pre2" ); } /*---------------------------------------------------------- RXTXCommDriver.testRead accept: tty_name The device to be tested perform: test if the device can be read from return: JNI_TRUE if the device can be read from exceptions: none comments: From Wayne Roberts wroberts1@home.com check tcget/setattr returns. support for non serial ports Trent ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXCommDriver(testRead)( JNIEnv *env, jobject jobj, jstring tty_name, jint port_type ) { struct termios ttyset; char c; #ifdef TRENT_IS_HERE_DEBUGGING_ENUMERATION char message[80]; #endif /* TRENT_IS_HERE_DEBUGGING_ENUMERATION */ int fd; const char *name = (*env)->GetStringUTFChars(env, tty_name, 0); int ret = JNI_TRUE; int pid = -1; /* We opened the file in this thread, use this pid to unlock */ #ifndef WIN32 pid = getpid(); #else char full_windows_name[80]; #endif /* WIN32 */ ENTER( "RXTXPort:testRead" ); #ifdef TRENT_IS_HERE_DEBUGGING_ENUMERATION /* vmware lies about which ports are there causing irq conflicts */ /* this is for testing only */ if( !strcmp( name, "COM1" ) || !strcmp( name, "COM2") ) { printf("%s is good\n",name); sprintf( message, "testRead: %s is good!\n", name ); report( message ); (*env)->ReleaseStringUTFChars( env, tty_name, name ); return( JNI_TRUE ); } (*env)->ReleaseStringUTFChars( env, tty_name, name ); return( JNI_FALSE ); #endif /* TRENT_IS_HERE_DEBUGGING_ENUMERATION */ #ifdef WIN32 strcpy( full_windows_name, DEVICEDIR ); strcat( full_windows_name, name ); ret = serial_test((char *) full_windows_name ); (*env)->ReleaseStringUTFChars( env, tty_name, name ); return(ret); #endif /* WIN32 */ /* LOCK is one of three functions defined in SerialImp.h uucp_lock Solaris fhs_lock Linux system_does_not_lock Win32 */ if ( LOCK( name, pid ) ) { (*env)->ReleaseStringUTFChars(env, tty_name, name); LEAVE( "RXTXPort:testRead no lock" ); return JNI_FALSE; } /* CLOCAL eliminates open blocking on modem status lines -- changed to O_NONBLOCK */ do { fd=OPEN ( name, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while ( fd < 0 && errno==EINTR ); if( fd < 0 ) { report_verbose( "testRead() open failed\n" ); ret = JNI_FALSE; goto END; } if ( port_type == PORT_SERIAL ) { int saved_flags; struct termios saved_termios; if (tcgetattr(fd, &ttyset) < 0) { ret = JNI_FALSE; goto END; } /* save, restore later */ if ( ( saved_flags = fcntl(fd, F_GETFL ) ) < 0 ) { report( "testRead() fcntl(F_GETFL) failed\n" ); ret = JNI_FALSE; goto END; } memcpy( &saved_termios, &ttyset, sizeof( struct termios ) ); if ( fcntl( fd, F_SETFL, O_NONBLOCK ) < 0 ) { report( "testRead() fcntl(F_SETFL) failed\n" ); ret = JNI_FALSE; goto END; } cfmakeraw(&ttyset); ttyset.c_cc[VMIN] = ttyset.c_cc[VTIME] = 0; if ( tcsetattr( fd, TCSANOW, &ttyset) < 0 ) { report( "testRead() tcsetattr failed\n" ); ret = JNI_FALSE; tcsetattr( fd, TCSANOW, &saved_termios ); goto END; } /* The following may mess up if both EAGAIN and EWOULDBLOCK are defined but only EWOULDBLOCK is used Linux: man 2 open O_NONBLOCK or O_NDELAY When possible, the file is opened in non-blocking mode. Neither the open nor any subsequent operaソス tions on the file descriptor which is returned will cause the calling process to wait. For the hanソス dling of FIFOs (named pipes), see also fifo(4). This mode need not have any effect on files other than FIFOs. man 2 read EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and no data was immediately available for reading. /usr/include/asm/error.h: #define EAGAIN 11 / Try again / #define EWOULDBLOCK EAGAIN / Operation would block / looks like the kernel is using EAGAIN -- should be OK Solaris: man 2 open EAGAIN The path argument names the slave side of a pseudo-terminal device that is locked. man 2 read If O_NONBLOCK is set, read() returns -1 and sets errno to EAGAIN. -- should be OK. HP-UX both are defined but EAGAIN is used. -- should be OK. Win32 neither errno is currently set. Comment added to termios.c serial_open(). -- should be OK Steven's book. Advanced programming in the Unix Environment pg 364 "A common use for nonblocking I/O is for dealing with a terminal device for a network connection and these devices are normally used by one process at a time. This means that the change in the BSD semantics normally does 't effect us. The different error return, EWOULDBLOCK, instead of POSIX.1 EAGAIN, continues to be a portability difference that we must deal with." */ if ( READ( fd, &c, 1 ) < 0 ) { #ifdef EAGAIN if ( errno != EAGAIN ) { report( "testRead() read failed\n" ); ret = JNI_FALSE; } #else #ifdef EWOULDBLOCK if ( errno != EWOULDBLOCK ) { report( "testRead() read failed\n" ); ret = JNI_FALSE; } #else ret = JNI_FALSE; #endif /* EWOULDBLOCK */ #endif /* EAGAIN */ } /* dont walk over unlocked open devices */ tcsetattr( fd, TCSANOW, &saved_termios ); fcntl( fd, F_SETFL, saved_flags ); } /* UNLOCK is one of three functions defined in SerialImp.h uucp_unlock Solaris fhs_unlock Linux system_does_not_unlock Win32 */ END: UNLOCK(name, pid ); (*env)->ReleaseStringUTFChars( env, tty_name, name ); CLOSE( fd ); LEAVE( "RXTXPort:testRead" ); return ret; } #if defined(__APPLE__) /*---------------------------------------------------------- createSerialIterator() accept: perform: return: exceptions: comments: Code courtesy of Eric Welch at Keyspan, except for the bugs which are courtesy of Joseph Goldstone (joseph@lp.com) ----------------------------------------------------------*/ kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort( (int) NULL, &masterPort ) ) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } /*---------------------------------------------------------- getRegistryString() accept: perform: return: exceptions: comments: Code courtesy of Eric Welch at Keyspan, except for the bugs which are courtesy of Joseph Goldstone (joseph@lp.com) ----------------------------------------------------------*/ char * getRegistryString(io_object_t sObj, char *propName) { static char resultStr[256]; CFTypeRef nameCFstring; resultStr[0] = 0; nameCFstring = IORegistryEntryCreateCFProperty(sObj, CFStringCreateWithCString(kCFAllocatorDefault, propName, kCFStringEncodingASCII), kCFAllocatorDefault, 0); if (nameCFstring) { CFStringGetCString(nameCFstring, resultStr, sizeof(resultStr), kCFStringEncodingASCII); CFRelease(nameCFstring); } return resultStr; } /*---------------------------------------------------------- registerKnownSerialPorts() accept: perform: return: exceptions: comments: ----------------------------------------------------------*/ int registerKnownSerialPorts(JNIEnv *env, jobject jobj, jint portType) /* dima */ { io_iterator_t theSerialIterator; io_object_t theObject; int numPorts = 0;/* dima it should initiated */ if (( createSerialIterator( &theSerialIterator ) != KERN_SUCCESS) || ( ! IOIteratorIsValid( theSerialIterator))) { /* This also happens when no drivers are installed */ report( "createSerialIterator failed\n" ); return(0); } else { jclass cls; /* dima */ jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"gnu/io/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of gnu/io/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILgnu/io/CommDriver;)V" ); /* dima */ if (mid == 0) { printf( "getMethodID of CommDriver.addPortName failed\n" ); } else { while (theObject = IOIteratorNext(theSerialIterator)) { /* begin dima */ jstring tempJstring; tempJstring = (*env)->NewStringUTF(env,getRegistryString(theObject, kIODialinDeviceKey)); (*env)->CallStaticVoidMethod(env, cls, mid,tempJstring,portType,jobj);/* dima */ (*env)->DeleteLocalRef(env,tempJstring); numPorts++; tempJstring = (*env)->NewStringUTF(env,getRegistryString(theObject, kIOCalloutDeviceKey)); (*env)->CallStaticVoidMethod(env, cls, mid,tempJstring,portType,jobj);/* dima */ (*env)->DeleteLocalRef(env,tempJstring); numPorts++; /* end dima */ } } } return numPorts; } #endif /* __APPLE__ */ /*---------------------------------------------------------- registerKnownPorts accept: the type of port perform: register any ports of the desired type a priori known to this OS return: JNI_TRUE if any such ports were registered otherwise JNI_FALSE exceptions: none comments: ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXCommDriver(registerKnownPorts)(JNIEnv *env, jobject jobj, jint portType) { enum {PORT_TYPE_SERIAL = 1, PORT_TYPE_PARALLEL, PORT_TYPE_I2C, PORT_TYPE_RS485, PORT_TYPE_RAW}; jboolean result = JNI_FALSE; char message[80]; switch(portType) { case PORT_TYPE_SERIAL: #if defined(__APPLE__) if (registerKnownSerialPorts(env, jobj, PORT_TYPE_SERIAL) > 0) {/* dima */ result = JNI_TRUE; } #endif break; case PORT_TYPE_PARALLEL: break; case PORT_TYPE_I2C: break; case PORT_TYPE_RS485: break; case PORT_TYPE_RAW: break; default: sprintf( message, "unknown portType %d handed to \ native RXTXCommDriver.registerKnownPorts() \ method.\n", (int) portType ); report( message ); } return result; } /*---------------------------------------------------------- isPortPrefixValid accept: a port prefix perform: see if the port prefix matches a port that is valid on this OS. return: JNI_TRUE if it exists otherwise JNI_FALSE exceptions: none comments: ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL RXTXCommDriver(isPortPrefixValid)(JNIEnv *env, jobject jobj, jstring tty_name) { jboolean result; static struct stat mystat; char teststring[256]; int fd,i; const char *name = (*env)->GetStringUTFChars(env, tty_name, 0); ENTER( "RXTXCommDriver:isPortPrefixValid" ); for(i=0;i<64;i++){ #if defined(__sun__) /* Solaris uses /dev/cua/a instead of /dev/cua0 */ if( i > 25 ) break; sprintf(teststring,"%s%s%c",DEVICEDIR, name, i + 97 ); fprintf(stderr, "testing: %s\n", teststring); #else #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s%i",DEVICEDIR,name, i); #else sprintf(teststring,"%s%s%i",DEVICEDIR,name, i); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); #endif /* __sun__ */ /* XXX the following hoses freebsd when it tries to open the port later on */ #ifndef __FreeBSD__ if(S_ISCHR(mystat.st_mode)){ fd=OPEN(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ CLOSE(fd); result=JNI_TRUE; break; } else result=JNI_FALSE; } else result=JNI_FALSE; #else result=JNI_TRUE; #endif /* __FreeBSD __ */ } #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s",DEVICEDIR,name); #else sprintf(teststring,"%s%s",DEVICEDIR,name); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=OPEN(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ CLOSE(fd); result=JNI_TRUE; } } (*env)->ReleaseStringUTFChars(env, tty_name, name); LEAVE( "RXTXCommDriver:isPortPrefixValid" ); return(result); } /*---------------------------------------------------------- getDeviceDirectory accept: perform: return: the directory containing the device files exceptions: comments: use this to avoid hard coded "/dev/" values are in SerialImp.h ----------------------------------------------------------*/ JNIEXPORT jstring JNICALL RXTXCommDriver(getDeviceDirectory)(JNIEnv *env, jobject jobj) { ENTER( "RXTXCommDriver:getDeviceDirectory" ); return (*env)->NewStringUTF(env, DEVICEDIR); LEAVE( "RXTXCommDriver:getDeviceDirectory" ); } /*---------------------------------------------------------- setInputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setInputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { report( "setInputBufferSize is not implemented\n" ); } /*---------------------------------------------------------- getIputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(getInputBufferSize)(JNIEnv *env, jobject jobj) { report( "getInputBufferSize is not implemented\n" ); return(1); } /*---------------------------------------------------------- setOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(setOutputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { report( "setOutputBufferSize is not implemented\n" ); } /*---------------------------------------------------------- getOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL RXTXPort(getOutputBufferSize)(JNIEnv *env, jobject jobj) { report( "getOutputBufferSize is not implemented\n" ); return(1); } /*---------------------------------------------------------- interruptEventLoop accept: nothing perform: increment eventloop_interrupted return: nothing exceptions: none comments: all eventloops in this PID will check if their thread is interrupted. When all the interrupted threads exit they will decrement the var leaving it 0. the remaining threads will continue. ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(interruptEventLoop)(JNIEnv *env, jobject jobj) { struct event_info_struct *index = master_index; int fd = get_java_var( env, jobj, "fd", "I" ); int searching = 1; while( searching ) { index = master_index; if( index ) { while( index->fd != fd && index->next ) index = index->next; if ( index->fd == fd ) searching = 0; } else report("x"); if( searching ) { report("@"); usleep(1000); } } index->eventloop_interrupted = 1; /* Many OS's need a thread running to determine if output buffer is empty. For Linux and Win32 it is not needed. So closing is used to shut down the thread in the write order on OS's that don't have kernel support for output buffer empty. In rxtx TIOCSERGETLSR is defined for win32 and Linux */ #ifdef TIOCSERGETLSR index->closing=1; #endif /* TIOCSERGETLSR */ #ifdef WIN32 termios_interrupt_event_loop( index->fd, 1 ); #endif /* WIN32 */ #if !defined(TIOCSERGETLSR) && !defined(WIN32) /* make sure that the drainloop unblocks from tcdrain */ pthread_kill(index->drain_tid, SIGABRT); /* TODO use wait/join/SIGCHLD/?? instead of sleep? */ usleep(50 * 1000); /* Under normal conditions, SIGABRT will unblock tcdrain. However a non-responding USB device combined with an unclean driver may still block. This is very ugly because it may block the call to close indefinetly. */ if (index->closing != 1) { /* good bye tcdrain, and thanks for all the fish */ report("interruptEventLoop: canceling blocked drain thread\n"); pthread_cancel(index->drain_tid); index->closing = 1; } #endif report("interruptEventLoop: interrupted\n"); } /*---------------------------------------------------------- is_interrupted accept: event_info_struct perform: see if the port is being closed. return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ jboolean is_interrupted( struct event_info_struct *eis ) { int result; JNIEnv *env = eis->env; ENTER( "is_interrupted" ); (*env)->ExceptionClear(env); result = (*env)->CallBooleanMethod( env, *eis->jobj, eis->checkMonitorThread ); #ifdef DEBUG if((*env)->ExceptionOccurred(env)) { report ( "is_interrupted: an error occured calling sendEvent()\n" ); (*env)->ExceptionDescribe(env); (*env)->ExceptionClear(env); } #endif /* DEBUG */ LEAVE( "RXTXCommDriver:is_interrupted" ); return(result); } /*---------------------------------------------------------- nativeSetEventFlag accept: fd for finding the struct, event to flag, flag. perform: toggle the flag return: none exceptions: none comments: all the logic used to be done in Java but its too noisy ----------------------------------------------------------*/ JNIEXPORT void JNICALL RXTXPort(nativeSetEventFlag)( JNIEnv *env, jobject jobj, jint fd, jint event, jboolean flag ) { struct event_info_struct *index = master_index; if( !index ) { report_error("nativeSetEventFlag !index\n"); return; } while( index->fd != fd && index->next ) { index = index->next; } if( index->fd != fd ) { report_error("nativeSetEventFlag !fd\n"); return; } index->eventflags[event] = (int) flag; #ifdef WIN32 termios_setflags( fd, index->eventflags ); #endif /* win32 */ } /*---------------------------------------------------------- send_event accept: event_info_structure, event type and true/false perform: if state is > 0 send a JNI_TRUE event otherwise send JNI_FALSE return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ int send_event( struct event_info_struct *eis, jint type, int flag ) { int result; JNIEnv *env; if( eis ) env = eis->env; else return(-1); ENTER( "send_event" ); if( !eis || eis->eventloop_interrupted > 1 ) { report("event loop interrupted\n"); return JNI_TRUE; } report_verbose("send_event: !eventloop_interupted\n"); if(eis->jclazz == NULL) return JNI_TRUE; report_verbose("send_event: jclazz\n"); (*env)->ExceptionClear(env); report_verbose("send_event: calling\n"); result = (*env)->CallBooleanMethod( env, *eis->jobj, eis->send_event, type, flag > 0 ? JNI_TRUE : JNI_FALSE ); report_verbose("send_event: called\n"); #ifdef asdf if(!eis || (*eis->env)->ExceptionOccurred(eis->env)) { report ( "send_event: an error occured calling sendEvent()\n" ); (*eis->env)->ExceptionDescribe(eis->env); (*eis->env)->ExceptionClear(eis->env); } #endif /* asdf */ /* report("e"); */ LEAVE( "send_event" ); return(result); } /*---------------------------------------------------------- get_java_var accept: env (keyhole to java) jobj (java RXTXPort object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ size_t get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { return (size_t) get_java_var_long( env, jobj, id, type ); } long get_java_var_long( JNIEnv *env, jobject jobj, char *id, char *type ) { long result = 0; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); /* ENTER( "get_java_var" ); */ if( !jfd ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); (*env)->DeleteLocalRef( env, jclazz ); LEAVE( "get_java_var" ); return result; } if ( !strcmp( type, "J" ) ) { result = (long)( (*env)->GetLongField( env, jobj, jfd ) ); } else { result = (size_t) ( (*env)->GetIntField( env, jobj, jfd ) ); } /* ct7 & gel * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, jclazz ); if(!strncmp( "fd",id,2) && result == 0) report_error( "get_java_var: invalid file descriptor\n" ); /* LEAVE( "get_java_var" ); */ return result; } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { char buf[ 60 ]; jclass clazz = (*env)->FindClass( env, exc ); ENTER( "throw_java_exception" ); if( !clazz ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); LEAVE( "throw_java_exception" ); return; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ (*env)->ThrowNew( env, clazz, buf ); /* ct7 * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, clazz ); LEAVE( "throw_java_exception" ); } /*---------------------------------------------------------- report_warning accept: string to send to report as an message perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_warning(char *msg) { #ifndef DEBUG_MW fprintf(stderr, msg); #else mexWarnMsgTxt( (const char *) msg ); #endif /* DEBUG_MW */ } /*---------------------------------------------------------- report_verbose accept: string to send to report as an verbose message perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_verbose(char *msg) { #ifdef DEBUG_VERBOSE #ifdef DEBUG_MW mexErrMsgTxt( msg ); #else fprintf(stderr, msg); #endif /* DEBUG_MW */ #endif /* DEBUG_VERBOSE */ } /*---------------------------------------------------------- report_error accept: string to send to report as an error perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_error(char *msg) { #ifndef DEBUG_MW fprintf(stderr, msg); #else mexWarnMsgTxt( msg ); #endif /* DEBUG_MW */ } /*---------------------------------------------------------- report accept: string to send to stderr perform: if DEBUG is defined send the string to stderr. return: none exceptions: none comments: ----------------------------------------------------------*/ void report(char *msg) { #ifdef DEBUG # ifndef DEBUG_MW fprintf(stderr, msg); # else mexPrintf( msg ); # endif /* DEBUG_MW */ #endif /* DEBUG */ } #ifndef WIN32 #ifdef LFS /*---------------------------------------------------------- lfs_lock accept: The name of the device to try to lock perform: Create a lock file if there is not one already using a lock file server. return: 1 on failure 0 on success exceptions: none comments: ----------------------------------------------------------*/ int lfs_lock( const char *filename, int pid ) { int s; int ret; int size = 1024; char *buffer = malloc(size); struct sockaddr_in addr; if ( !( s = socket( AF_INET, SOCK_STREAM, 0 ) ) > 0 ) return 1; addr.sin_family = AF_INET; addr.sin_port = htons( 50001 ); addr.sin_addr.s_addr = inet_addr( "127.0.0.1" ); if ( !connect( s, ( struct sockaddr * ) &addr, sizeof( addr ) ) == 0 ) return 1; ret=recv( s, buffer, size, 0 ); sprintf( buffer, "lock %s %i\n", filename, pid ); /* printf( "%s", buffer ); */ send( s, buffer, strlen(buffer), 0 ); ret=recv( s, buffer, size, 0 ); if ( ret > 0 ) { buffer[ret] = '\0'; /* printf( "Message recieved: %s", buffer ); */ } send( s, "quit\n", strlen( "quit\n" ), 0 ); close(s); /* printf("%s\n", buffer); */ if( buffer[0] == '2' ) return 0; return 1; } /*---------------------------------------------------------- lfs_unlock accept: The name of the device to try to unlock perform: Remove a lock file if there is one using a lock file server. return: 1 on failure 0 on success exceptions: none comments: ----------------------------------------------------------*/ int lfs_unlock( const char *filename, int pid ) { int s; int ret; int size = 1024; char *buffer = malloc(size); struct sockaddr_in addr; if ( !( s = socket( AF_INET, SOCK_STREAM, 0 ) ) > 0 ) return 1; addr.sin_family = AF_INET; addr.sin_port = htons( 50001 ); addr.sin_addr.s_addr = inet_addr( "127.0.0.1" ); if ( !connect( s, ( struct sockaddr * ) &addr, sizeof( addr ) ) == 0 ) return 1; sprintf( buffer, "unlock %s %i\n", filename, pid ); /* printf( "%s", buffer ); */ send( s, buffer, strlen(buffer), 0 ); ret = recv( s, buffer, size, 0 ); if ( ret > 0 ) { buffer[ret] = '\0'; /* printf( "Message recieved: %s", buffer ); */ } send( s, "quit\n", strlen( "quit\n" ), 0 ); close(s); if( buffer[0] == '2' ) return 0; return 1; } #endif /* LFS */ /*---------------------------------------------------------- lib_lock_dev_unlock accept: The name of the device to try to unlock perform: Remove a lock file if there is one using a lock file server. return: 1 on failure 0 on success exceptions: none comments: This is for use with liblockdev which comes with Linux distros. I suspect it will be problematic with embeded Linux. taj ----------------------------------------------------------*/ #ifdef LIBLOCKDEV int lib_lock_dev_unlock( const char *filename, int pid ) { if( dev_unlock( filename, pid ) ) { report("fhs_unlock: Unable to remove LockFile\n"); return(1); } return(0); } #endif /* LIBLOCKDEV */ /*---------------------------------------------------------- lib_lock_dev_lock accept: The name of the device to try to lock termios struct perform: Create a lock file if there is not one already. return: 1 on failure 0 on success exceptions: none comments: This is for use with liblockdev which comes with Linux distros. I suspect it will be problematic with embeded Linux. taj One could load the library here rather than link it and always try to use this. ----------------------------------------------------------*/ #ifdef LIBLOCKDEV int lib_lock_dev_lock( const char *filename, int pid ) { char message[80]; printf("LOCKING %s\n", filename); if ( dev_testlock( filename ) ) { report( "fhs_lock() lockstatus fail\n" ); return 1; } if ( dev_lock( filename ) ) { sprintf( message, "RXTX fhs_lock() Error: creating lock file for: %s: %s\n", filename, strerror(errno) ); report_error( message ); return 1; } return( 0 ); } #endif /* LIBLOCKDEV */ /*---------------------------------------------------------- fhs_lock accept: The name of the device to try to lock termios struct perform: Create a lock file if there is not one already. return: 1 on failure 0 on success exceptions: none comments: This is for linux and freebsd only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard more reading: ----------------------------------------------------------*/ int fhs_lock( const char *filename, int pid ) { /* * There is a zoo of lockdir possibilities * Its possible to check for stale processes with most of them. * for now we will just check for the lockfile on most * Problem lockfiles will be dealt with. Some may not even be in use. * */ int fd,j; char lockinfo[12], message[80]; char file[80], *p; j = strlen( filename ); p = ( char * ) filename + j; /* FIXME need to handle subdirectories /dev/cua/... SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if ( check_lock_status( filename ) ) { report( "fhs_lock() lockstatus fail\n" ); return 1; } fd = open( file, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX fhs_lock() Error: creating lock file: %s: %s\n", file, strerror(errno) ); report_error( message ); return 1; } sprintf( lockinfo, "%10d\n",(int) getpid() ); sprintf( message, "fhs_lock: creating lockfile: %s\n", lockinfo ); report( message ); write( fd, lockinfo, 11 ); close( fd ); return 0; } /*---------------------------------------------------------- uucp_lock accept: char * filename. Device to be locked perform: Try to get a uucp_lock return: int 0 on success exceptions: none comments: The File System Hierarchy Standard http://www.pathname.com/fhs/ UUCP Lock Files http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. There is much to do here. 1) UUCP style locks (done) /var/spool/uucp 2) SVR4 locks /var/spool/locks 3) FSSTND locks (done) /var/lock 4) handle stale locks (done except kermit locks) 5) handle minicom lockfile contents (FSSTND?) " 16929 minicom root\n" (done) 6) there are other Lock conventions that use Major and Minor numbers... 7) Stevens recommends LCK.. most are caught above. If they turn out to be problematic rather than an exercise, we will handle them. ----------------------------------------------------------*/ int uucp_lock( const char *filename, int pid ) { char lockfilename[80], lockinfo[12], message[80]; char name[80]; int fd; struct stat buf; sprintf( message, "uucp_lock( %s );\n", filename ); report( message ); if ( check_lock_status( filename ) ) { report( "RXTX uucp check_lock_status true\n" ); return 1; } if ( stat( LOCKDIR, &buf ) != 0 ) { report( "RXTX uucp_lock() could not find lock directory.\n" ); return 1; } if ( stat( filename, &buf ) != 0 ) { report( "RXTX uucp_lock() could not find device.\n" ); sprintf( message, "uucp_lock: device was %s\n", name ); report( message ); return 1; } sprintf( lockfilename, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); sprintf( lockinfo, "%10d\n", (int) getpid() ); if ( stat( lockfilename, &buf ) == 0 ) { sprintf( message, "RXTX uucp_lock() %s is there\n", lockfilename ); report( message ); report_error( message ); return 1; } fd = open( lockfilename, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX uucp_lock() Error: creating lock file: %s\n", lockfilename ); report_error( message ); return 1; } write( fd, lockinfo,11 ); close( fd ); return 0; } /*---------------------------------------------------------- check_lock_status accept: the lock name in question perform: Make sure everything is sane return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_status( const char *filename ) { struct stat buf; /* First, can we find the directory? */ if ( stat( LOCKDIR, &buf ) != 0 ) { report( "check_lock_status: could not find lock directory.\n" ); return 1; } /* OK. Are we able to write to it? If not lets bail */ if ( check_group_uucp() ) { report_error( "check_lock_status: No permission to create lock file.\nplease see: How can I use Lock Files with rxtx? in INSTALL\n" ); return(1); } /* is the device alread locked */ if ( is_device_locked( filename ) ) { report( "check_lock_status: device is locked by another application\n" ); return 1; } return 0; } /*---------------------------------------------------------- fhs_unlock accept: The name of the device to unlock perform: delete the lock file return: none exceptions: none comments: This is for linux only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard ----------------------------------------------------------*/ void fhs_unlock( const char *filename, int openpid ) { char file[80],*p; int i; i = strlen( filename ); p = ( char * ) filename + i; /* FIXME need to handle subdirectories /dev/cua/... */ while( *( p - 1 ) != '/' && i-- != 1 ) p--; sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if( !check_lock_pid( file, openpid ) ) { unlink(file); report("fhs_unlock: Removing LockFile\n"); } else { report("fhs_unlock: Unable to remove LockFile\n"); } } /*---------------------------------------------------------- uucp_unlock accept: char *filename the device that is locked perform: remove the uucp lockfile if it exists return: none exceptions: none comments: http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html ----------------------------------------------------------*/ void uucp_unlock( const char *filename, int openpid ) { struct stat buf; char file[80], message[80]; /* FIXME */ sprintf( message, "uucp_unlock( %s );\n", filename ); report( message ); if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ report( "uucp_unlock() no such device\n" ); return; } sprintf( file, LOCKDIR"/LK.%03d.%03d.%03d", (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if ( stat( file, &buf ) != 0 ) { /* hmm the file is not there? */ report( "uucp_unlock no such lockfile\n" ); return; } if( !check_lock_pid( file, openpid ) ) { sprintf( message, "uucp_unlock: unlinking %s\n", file ); report( message ); unlink(file); } else { sprintf( message, "uucp_unlock: unlinking failed %s\n", file ); report( message ); } } /*---------------------------------------------------------- check_lock_pid accept: the name of the lockfile perform: make sure the lock file is ours. return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_pid( const char *file, int openpid ) { int fd, lockpid; char pid_buffer[12]; char message[80]; fd=open( file, O_RDONLY ); if ( fd < 0 ) { return( 1 ); } if ( read( fd, pid_buffer, 11 ) < 0 ) { close( fd ); return( 1 ); } close( fd ); pid_buffer[11] = '\0'; lockpid = atol( pid_buffer ); /* Native threads JVM's have multiple pids */ if ( lockpid != getpid() && lockpid != getppid() && lockpid != openpid ) { sprintf(message, "check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i\n", pid_buffer, (int) getpid(), (int) getppid(), openpid ); report( message ); return( 1 ); } return( 0 ); } /*---------------------------------------------------------- check_group_uucp accept: none perform: check if the user is root or in group uucp return: 0 on success exceptions: none comments: This checks if the effective user is in group uucp so we can create lock files. If not we give them a warning and bail. If its root we just skip the test. if someone really wants to override this they can use the USER_LOCK_DIRECTORY --not recommended. In a recent change RedHat 7.2 decided to use group lock. In order to get around this we just check the group id of the lock directory. * Modified to support Debian * The problem was that checking the ownership of the lock file dir is not enough, in the sense that even if the current user is not in the group of the lock directory if the lock directory has 777 permissions the lock file can be anyway created. My solution is simply to try to create a tmp file there and if it works then we can go on. Here is my code that I tried and seems to work. Villa Valerio ----------------------------------------------------------*/ int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY FILE *testLockFile ; char testLockFileDirName[] = LOCKDIR; char testLockFileName[] = "tmpXXXXXX"; char *testLockAbsFileName; testLockAbsFileName = calloc(strlen(testLockFileDirName) + strlen(testLockFileName) + 2, sizeof(char)); if ( NULL == testLockAbsFileName ) { report_error("check_group_uucp(): Insufficient memory"); return 1; } strcat(testLockAbsFileName, testLockFileDirName); strcat(testLockAbsFileName, "/"); strcat(testLockAbsFileName, testLockFileName); if ( NULL == mktemp(testLockAbsFileName) ) { free(testLockAbsFileName); report_error("check_group_uucp(): mktemp malformed string - \ should not happen"); return 1; } testLockFile = fopen (testLockAbsFileName, "w+"); if (NULL == testLockFile) { report_error("check_group_uucp(): error testing lock file " "creation Error details:"); report_error(strerror(errno)); free(testLockAbsFileName); return 1; } fclose (testLockFile); unlink (testLockAbsFileName); free(testLockAbsFileName); #endif /* USER_LOCK_DIRECTORY */ return 0; #ifdef USE_OLD_CHECK_GROUP_UUCP int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY int group_count; struct passwd *user = getpwuid( geteuid() ); struct stat buf; char msg[80]; gid_t list[ NGROUPS_MAX ]; if( stat( LOCKDIR, &buf) ) { sprintf( msg, "check_group_uucp: Can not find Lock Directory: %s\n", LOCKDIR ); report_error( msg ); return( 1 ); } group_count = getgroups( NGROUPS_MAX, list ); list[ group_count ] = geteuid(); /* JJO changes start */ if( user == NULL ) { report_error( "Not able to get user groups.\n" ); return 1; } else /* JJO changes stop */ if( user->pw_gid ) { while( group_count >= 0 && buf.st_gid != list[ group_count ] ) { group_count--; } if( buf.st_gid == list[ group_count ] ) return 0; sprintf( msg, "%i %i\n", buf.st_gid, list[ group_count ] ); report_error( msg ); report_error( UUCP_ERROR ); return 1; } return 0; /* if( strcmp( user->pw_name, "root" ) ) { while( *g->gr_mem ) { if( !strcmp( *g->gr_mem, user->pw_name ) ) { break; } (void) *g->gr_mem++; } if( !*g->gr_mem ) { report( UUCP_ERROR ); return 1; } } */ #endif /* USER_LOCK_DIRECTORY */ return 0; #endif /* USE_OLD_CHECK_GROUP_UUCP */ } /*---------------------------------------------------------- The following should be able to follow symbolic links. I think the stat method used below will work on more systems. This was found while looking for information. * realpath() doesn't exist on all of the systems my code has to run on (HP-UX 9.x, specifically) ---------------------------------------------------------- int different_from_LOCKDIR(const char* ld) { char real_ld[MAXPATHLEN]; char real_LOCKDIR[MAXPATHLEN]; if (strncmp(ld, LOCKDIR, strlen(ld)) == 0) return 0; if (realpath(ld, real_ld) == NULL) return 1; if (realpath(LOCKDIR, real_LOCKDIR) == NULL) return 1; if (strncmp(real_ld, real_LOCKDIR, strlen(real_ld)) == 0) return 0; else return 1; } */ /*---------------------------------------------------------- is_device_locked accept: char * filename. The device in question including the path. perform: see if one of the many possible lock files is aready there if there is a stale lock, remove it. return: 1 if the device is locked or somethings wrong. 0 if its possible to create our own lock file. exceptions: none comments: check if the device is already locked ----------------------------------------------------------*/ int is_device_locked( const char *port_filename ) { const char *lockdirs[] = { "/etc/locks", "/usr/spool/kermit", "/usr/spool/locks", "/usr/spool/uucp", "/usr/spool/uucp/", "/usr/spool/uucp/LCK", "/var/lock", "/var/lock/modem", "/var/spool/lock", "/var/spool/locks", "/var/spool/uucp", LOCKDIR, NULL }; const char *lockprefixes[] = { "LCK..", "lk..", "LK.", NULL }; char *p, file[80], pid_buffer[20], message[80]; int i = 0, j, k, fd , pid; struct stat buf, buf2, lockbuf; j = strlen( port_filename ); p = ( char * ) port_filename+j; while( *( p-1 ) != '/' && j-- !=1 ) p--; stat(LOCKDIR, &lockbuf); while( lockdirs[i] ) { /* Look for lockfiles in all known places other than the defined lock directory for this system report any unexpected lockfiles. Is the suspect lockdir there? if it is there is it not the expected lock dir? */ if( !stat( lockdirs[i], &buf2 ) && buf2.st_ino != lockbuf.st_ino && strncmp( lockdirs[i], LOCKDIR, strlen( lockdirs[i] ) ) ) { j = strlen( port_filename ); p = ( char * ) port_filename + j; /* SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } k=0; while ( lockprefixes[k] ) { /* FHS style */ sprintf( file, "%s/%s%s", lockdirs[i], lockprefixes[k], p ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); report_warning( message ); return 1; } /* UUCP style */ stat(port_filename , &buf ); sprintf( file, "%s/%s%03d.%03d.%03d", lockdirs[i], lockprefixes[k], (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); report_warning( message ); return 1; } k++; } } i++; } /* OK. We think there are no unexpect lock files for this device Lets see if there any stale lock files that need to be removed. */ #ifdef FHS /* FHS standard locks */ i = strlen( port_filename ); p = ( char * ) port_filename + i; while( *(p-1) != '/' && i-- != 1) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/%s%s", LOCKDIR, LOCKFILEPREFIX, p ); #else /* UUCP standard locks */ if ( stat( port_filename, &buf ) != 0 ) { report( "RXTX is_device_locked() could not find device.\n" ); return 1; } sprintf( file, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); #endif /* FHS */ if( stat( file, &buf ) == 0 ) { /* check if its a stale lock */ fd=open( file, O_RDONLY ); read( fd, pid_buffer, 11 ); /* FIXME null terminiate pid_buffer? need to check in Solaris */ close( fd ); sscanf( pid_buffer, "%d", &pid ); if( kill( (pid_t) pid, 0 ) && errno==ESRCH ) { sprintf( message, "RXTX Warning: Removing stale lock file. %s\n", file ); report_warning( message ); if( unlink( file ) != 0 ) { snprintf( message, 80, "RXTX Error: Unable to \ remove stale lock file: %s\n", file ); report_warning( message ); return 1; } } } return 0; } #endif /* WIN32 */ /*---------------------------------------------------------- system_does_not_lock accept: the filename the system thinks should be locked. perform: avoid trying to create lock files on systems that dont use them return: 0 for success ;) exceptions: none comments: OS's like Win32 may not have lock files. ----------------------------------------------------------*/ int system_does_not_lock( const char * filename, int pid ) { return 0; } /*---------------------------------------------------------- system_does_not_unlock accept: the filename the system thinks should be locked. perform: avoid trying to create lock files on systems that dont use them return: none exceptions: none comments: OS's like Win32 may not have lock files. ----------------------------------------------------------*/ void system_does_not_unlock( const char * filename, int openpid ) { return; } /*---------------------------------------------------------- dump_termios accept: string to indicate where this was called. termios struct perform: print the termios struct to stderr. return: none exceptions: none comments: used to debug the termios struct. ----------------------------------------------------------*/ void dump_termios(char *foo,struct termios *ttyset) { #ifdef DEBUG int i; fprintf(stderr, "%s c_iflag=%#x\n", foo, ttyset->c_iflag); fprintf(stderr, "%s c_lflag=%#x\n", foo, ttyset->c_lflag); fprintf(stderr, "%s c_oflag=%#x\n", foo, ttyset->c_oflag); fprintf(stderr, "%s c_cflag=%#x\n", foo, ttyset->c_cflag); fprintf(stderr, "%s c_cc[]: ", foo); for(i=0; ic_cc[i]); } fprintf(stderr,"\n" ); #endif /* DEBUG */ } /*---------------------------------------------------------- get_java_environment accept: pointer to the virtual machine flag to know if we are attached return: pointer to the Java Environment exceptions: none comments: see JNI_OnLoad. For getting the JNIEnv in the thread used to monitor for output buffer empty. ----------------------------------------------------------*/ JNIEnv *get_java_environment(JavaVM *java_vm, jboolean *was_attached){ void **env = NULL; jint err_get_env; if(java_vm == NULL) return (JNIEnv *) *env; *was_attached = JNI_FALSE; err_get_env = (*java_vm)->GetEnv( java_vm, env, JNI_VERSION_1_2 ); if(err_get_env == JNI_ERR) return NULL; if(err_get_env == JNI_EDETACHED){ (*java_vm)->AttachCurrentThread( java_vm, env, (void **) NULL ); if(*env != NULL) *was_attached = JNI_TRUE; }else if(err_get_env != JNI_OK) return (JNIEnv *) NULL; return (JNIEnv *) *env; } /*---------------------------------------------------------- JNI_OnLoad accept: JavaVM pointer to the Vertial Machine void * reserved ??? return: jint JNI version used. exceptions: none comments: http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-14.html http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-12.html grab the Java VM pointer when the library loads for later use in the drain thread. Also lets Java know we are using the 1.4 API so we can get pointers later. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *java_vm, void *reserved) { javaVM = java_vm; report_verbose("JNI_OnLoad called.\n"); return JNI_VERSION_1_2; /* JNI API used */ } /*---------------------------------------------------------- JNI_OnUnload accept: JavaVM pointer to the Vertial Machine void * reserved ??? return: none exceptions: none comments: http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-14.html http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-12.html final library cleanup here. ----------------------------------------------------------*/ JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved) { /* never called it appears */ printf("Experimental: JNI_OnUnload called.\n"); } #ifdef asdf /*---------------------------------------------------------- printj accept: like vwprintf() return: number of jchars written or -1 exceptions: none comments: prints data using System.out.print() ----------------------------------------------------------*/ int printj(JNIEnv *env, wchar_t *fmt, ...) { wchar_t buf[1024]; int retval; jstring jsBuf; jclass clsSystem, clsOut; jfieldID jfid; jobject objOut; jmethodID midPrint; va_list ap; va_start(ap, fmt); retval = _vsnwprintf(buf, 1024, fmt, ap); va_end(ap); buf[1023] = '\0'; if((clsSystem = env->FindClass("java/lang/System")) == NULL) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); return -1; } if( ( jfid = env->GetStaticFieldID(clsSystem, "out", "Ljava/io/PrintStream;" ) ) == NULL ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(clsSystem); return -1; } objOut = env->GetStaticObjectField(clsSystem, jfid); clsOut = env->GetObjectClass(objOut); if( ( midPrint = env->GetMethodID(clsOut, "print", "(Ljava/lang/String;)V" ) ) == NULL ) { IF_DEBUG ( env->ExceptionDescribe(); ) env->ExceptionClear(); env->DeleteLocalRef(clsOut); env->DeleteLocalRef(clsSystem); return -1; } jsBuf = env->NewString(buf, wcslen(buf)); env->CallVoidMethod(objOut, midPrint, jsBuf); env->DeleteLocalRef(jsBuf); env->DeleteLocalRef(clsOut); env->DeleteLocalRef(clsSystem); return retval; } /* jclass cls = ( *env )->FindClass( env, "System.Thread" ); jmethodID mid = ( *env )->GetStaticMethodID( env, cls, "Sleep", "(I)V" ); (*env)->CallStaticVoidMethod(env, cls, mid, 1); */ #endif /* asdf */ ./rxtx-2.2pre2/src/SerialImp.h0000644000175000017500000004011711142410100016056 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2009 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.SerialPort constants */ #ifdef WIN32 #include "win32termios.h" #endif /* WIN32 */ #define JDATABITS_5 5 #define JDATABITS_6 6 #define JDATABITS_7 7 #define JDATABITS_8 8 #define JPARITY_NONE 0 #define JPARITY_ODD 1 #define JPARITY_EVEN 2 #define JPARITY_MARK 3 #define JPARITY_SPACE 4 #define STOPBITS_1 1 #define STOPBITS_2 2 #define STOPBITS_1_5 3 #define FLOWCONTROL_NONE 0 #define FLOWCONTROL_RTSCTS_IN 1 #define FLOWCONTROL_RTSCTS_OUT 2 #define FLOWCONTROL_XONXOFF_IN 4 #define FLOWCONTROL_XONXOFF_OUT 8 /* gnu.io.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 #define PORT_SERIAL 1 #define PORT_PARALLEL 2 #define PORT_I2C 3 #define PORT_RS485 4 #define PORT_RAW 5 /* glue for unsupported linux speeds see also win32termios.h */ #if !defined(__APPLE__) && !defined(__FreeBSD__) /* dima */ /* this is now handled in SerialImp.c #define B14400 1010001 #define B28800 1010002 #define B128000 1010003 #define B256000 1010004 */ #endif /* dima */ struct preopened { char filename[40]; int fd; struct preopened *next; struct preopened *prev; }; struct event_info_struct { int fd; /* flags for events */ int eventflags[11]; int initialised; int ret, change; unsigned int omflags; char message[80]; int has_tiocsergetlsr; int has_tiocgicount; int eventloop_interrupted; JNIEnv *env; jobject *jobj; jclass jclazz; jmethodID send_event; jmethodID checkMonitorThread; struct event_info_struct *next, *prev; fd_set rfds; struct timeval tv_sleep; int closing; #if !defined(TIOCSERGETLSR) && !defined(WIN32) int writing; int output_buffer_empty_flag; pthread_t drain_tid; #endif /* !TIOCSERGETLSR !WIN32 */ # if defined(TIOCGICOUNT) struct serial_icounter_struct osis; #endif /* TIOCGICOUNT */ }; /* Ports known on the OS */ #if defined(__linux__) /* This is a small hack to get mark and space parity working on older systems https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=147533 */ # if !defined(CMSPAR) # define CMSPAR 010000000000 # endif /* CMSPAR */ # # define DEVICEDIR "/dev/" # define LOCKDIR "/var/lock" # define LOCKFILEPREFIX "LCK.." # define FHS #endif /* __linux__ */ #if defined(__QNX__) # define DEVICEDIR "/dev/" # define LOCKDIR "" # define LOCKFILEPREFIX "" #endif /* qnx */ #if defined(__sgi__) || defined(sgi) # define DEVICEDIR "/dev/" # define LOCKDIR "/usr/spool/uucp" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __sgi__ || sgi */ #if defined(__FreeBSD__) # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/lock" # define LOCKFILEPREFIX "LK.." # define UUCP #endif /* __FreeBSD__ */ #if defined(__APPLE__) # define DEVICEDIR "/dev/" /*# define LOCKDIR "/var/spool/uucp"*/ # define LOCKDIR "/var/lock" # define LOCKFILEPREFIX "LK." /*# define UUCP*/ # define OPEN_EXCL #endif /* __APPLE__ */ #if defined(__NetBSD__) # define DEVICEDIR "/dev/" # define LOCKDIR "/var/lock" /*# define LOCKDIR "/usr/spool/uucp"*/ # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __NetBSD__ */ #if defined(__unixware__) # define DEVICEDIR "/dev/" /* really this only fully works for OpenServer */ # define LOCKDIR "/var/spool/uucp/" # define LOCKFILEPREFIX "LK." /* this needs work.... Jonathan Schilling writes: This is complicated because as I said in my previous mail, there are two kinds of SCO operating systems. The one that most people want gnu.io for, including the guy who asked the mailing list about SCO support a few days ago, is Open Server (a/k/a "SCO UNIX"), which is SVR3-based. This uses old-style uucp locks, of the form LCK..tty0a. That's what I implemented in the RXTX port I did, and it works correctly. The other SCO/Caldera OS, UnixWare/Open UNIX, uses the new-style SVR4 locks, of the form LK.123.123.123. These OSes are a lot like Solaris (UnixWare/Open UNIX come from AT&T SVR4 which had a joint The other SCO/Caldera OS, UnixWare/Open UNIX, uses the new-style SVR4 locks, of the form LK.123.123.123. These OSes are a lot like Solaris (UnixWare/Open UNIX come from AT&T SVR4 which had a joint heritage with Sun way back when). I saw that you added support for this form of lock by RXTX 1.4-10 ... but it gets messy because, as I said before, we use the same binary gnu.io files for both UnixWare/Open UNIX and OpenServer. Thus we can't #ifdef one or the other; it would have to be a runtime test. Your code and your macros aren't set up for doing this (understandably!). So I didn't implement these; the gnu.io locks won't fully work on UnixWare/Open UNIX as a result, which I mentioned in the Release Notes. What I would suggest is that you merge in the old-style LCK..tty0a lock code that I used, since this will satisfy 90% of the SCO users. Then I'll work on some way of getting UnixWare/Open UNIX locking to work correctly, and give you those changes at a later date. Jonathan FIXME The lock type could be passed with -DOLDUUCP or -DUUCP based on os.name in configure.in or perhaps system defines could determine the lock type. Trent */ # define OLDUUCP #endif #if defined(__hpux__) /* modif cath */ # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/uucp" # define LOCKFILEPREFIX "LCK." # define UUCP #endif /* __hpux__ */ #if defined(__osf__) /* Digital Unix */ # define DEVICEDIR "/dev/" # define LOCKDIR "" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __osf__ */ #if defined(__sun__) /* Solaris */ # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/locks" # define LOCKFILEPREFIX "LK." /* # define UUCP */ #endif /* __sun__ */ #if defined(__BEOS__) # define DEVICEDIR "/dev/ports/" # define LOCKDIR "" # define LOCKFILEPREFIX "" # define UUCP #endif /* __BEOS__ */ #if defined(WIN32) # define DEVICEDIR "//./" # define LOCKDIR "" # define LOCKFILEPREFIX "" # define OPEN serial_open # define CLOSE serial_close # define WRITE serial_write # define READ serial_read # define SELECT serial_select #else /* use the system calls for Unix */ # define OPEN open # define CLOSE close # define WRITE write # define READ read # define SELECT select struct timeval snow, enow, seloop, eeloop; #define report_time_start_rs( ) \ { \ gettimeofday(&snow, NULL); \ } #define report_time_end_rs( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #ifdef DEBUG_TIMING struct timeval snow, enow, seloop, eeloop; #define report_time_eventLoop( ) { \ if ( seloop.tv_sec == eeloop.tv_sec && seloop.tv_usec == eeloop.tv_usec ) \ { \ gettimeofday(&eeloop, NULL); \ seloop.tv_sec = eeloop.tv_sec; \ seloop.tv_usec = eeloop.tv_usec; \ mexPrintf("%8i sec : %8i usec\n", eeloop.tv_sec - seloop.tv_sec, eeloop.tv_usec - seloop.tv_usec); \ } \ } #define report_time( ) \ { \ struct timeval now; \ gettimeofday(&now, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec\n", __TIME__, __LINE__, now.tv_sec, now.tv_usec); \ } #define report_time_start( ) \ { \ gettimeofday(&snow, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec", __TIME__, __LINE__, snow.tv_sec, snow.tv_usec); \ } #define report_time_end( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #else #define report_time_eventLoop( ){}; #define report_time( ) {} #define report_time_start( ) {} #define report_time_end( ) {} #endif /* DEBUG_TIMING */ /* #define TRACE */ #ifdef TRACE #define ENTER(x) report("entering "x" \n"); #define LEAVE(x) report("leaving "x" \n"); #else #define ENTER(x) #define LEAVE(x) #endif /* TRACE */ #endif /* WIN32 */ /* allow people to override the directories */ /* #define USER_LOCK_DIRECTORY "/home/tjarvi/1.5/build" */ #ifdef USER_LOCK_DIRECTORY # define LOCKDIR USER_LOCK_DIRECTORY #endif /* USER_LOCK_DIRECTORY */ #ifdef DISABLE_LOCKFILES #undef UUCP #undef FHS #undef OLDUUCP #endif /* DISABLE_LOCKFILES */ /* That should be all you need to look at in this file for porting */ #ifdef LFS /* Use a Lock File Server */ # define LOCK lfs_lock # define UNLOCK lfs_unlock #elif defined(UUCP) # define LOCK uucp_lock # define UNLOCK uucp_unlock #elif defined(OLDUUCP) /* We can handle the old style if needed here see __unixware__ above. defaulting to rxtx-1.4-8 behavior for now. see also __sco__ in SerialImp.c when changing this for a possible bug FIXME */ # define LOCK fhs_lock # define UNLOCK fhs_unlock #elif defined(FHS) #ifdef LIBLOCKDEV # define LOCK lib_lock_dev_lock # define UNLOCK lib_lock_dev_unlock #else # define LOCK fhs_lock # define UNLOCK fhs_unlock #endif /* LIBLOCKDEV */ #else # define LOCK system_does_not_lock # define UNLOCK system_does_not_unlock #endif /* UUCP */ /* java exception class names */ /* define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" */ #define UNSUPPORTED_COMM_OPERATION "UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" #define PORT_IN_USE_EXCEPTION "gnu/io/PortInUseException" /* some popular releases of Slackware do not have SSIZE_MAX */ #ifndef SSIZE_MAX # if defined(INT_MAX) # define SSIZE_MAX INT_MAX # elif defined(MAXINT) # define SSIZE_MAX MAXINT # else # define SSIZE_MAX 2147483647 /* ugh */ # endif #endif /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ #ifdef CRTSCTS #define HARDWARE_FLOW_CONTROL CRTSCTS #else # ifdef CCTS_OFLOW # define HARDWARE_FLOW_CONTROL CCTS_OFLOW|CRST_IFLOW # else # ifdef RTSFLOW # define HARDWARE_FLOW_CONTROL RTSFLOW|CTSFLOW # else # ifdef CRTSFL # define HARDWARE_FLOW_CONTROL CRTSFL # else # ifdef CTSCD # define HARDWARE_FLOW_CONTROL CTSCD # else # define HARDWARE_FLOW_CONTROL 0 # endif # endif # endif # endif #endif /* PROTOTYPES */ #ifdef DEBUG_MW extern void mexWarnMsgTxt( const char * ); extern void mexErrMsgTxt( const char * ); #ifndef __APPLE__ extern int mexPrintf( const char *, ... ); # define printf mexPrintf #endif #endif /* DEBUG_MW */ #ifdef __APPLE__ # define mexPrintf printf #endif #ifdef __BEOS__ struct tpid_info_struct *add_tpid( struct tpid_info_struct * ); data_rate translate_speed( JNIEnv*, jint ); int translate_data_bits( JNIEnv *, data_bits *, jint ); int translate_stop_bits( JNIEnv *, stop_bits *, jint ); int translate_parity( JNIEnv *, parity_mode *, jint ); #else int spawn_write_thread( int, char *, int, JNIEnv *, jobject *); int translate_speed( JNIEnv*, jint ); int translate_data_bits( JNIEnv *, tcflag_t *, jint ); int translate_stop_bits( JNIEnv *, tcflag_t *, jint ); int translate_parity( JNIEnv *, tcflag_t *, jint ); #endif void system_wait(); void finalize_event_info_struct( struct event_info_struct * ); int read_byte_array( JNIEnv *, jobject *, int, unsigned char *, int, int ); long get_java_var_long( JNIEnv *, jobject, char *, char * ); size_t get_java_var( JNIEnv *, jobject, char *, char * ); jboolean is_interrupted( struct event_info_struct * ); int send_event(struct event_info_struct *, jint, int ); void dump_termios(char *,struct termios *); void report_verbose(char *); void report_error(char *); void report_warning(char *); void report(char *); void throw_java_exception( JNIEnv *, char *, char *, char * ); int lock_device( const char * ); void unlock_device( const char * ); int is_device_locked( const char * ); int check_lock_status( const char * ); int lfs_unlock(const char *, int ); int lfs_lock( const char *, int); int lib_lock_dev_unlock(const char *, int ); int lib_lock_dev_lock( const char *, int); void fhs_unlock(const char *, int ); int fhs_lock( const char *, int); void uucp_unlock( const char *, int ); int uucp_lock( const char *, int ); int system_does_not_lock( const char *, int ); void system_does_not_unlock( const char *, int ); int check_group_uucp(); int check_lock_pid( const char *, int ); int printj(JNIEnv *env, wchar_t *fmt, ...); #define UNEXPECTED_LOCK_FILE "RXTX Error: Unexpected lock file: %s\n Please report to the RXTX developers\n" #define LINUX_KERNEL_VERSION_ERROR "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n" #define UUCP_ERROR "\n\n\nRXTX WARNING: This library requires the user running applications to be in\ngroup uucp. Please consult the INSTALL documentation. More information is\navaiable under the topic 'How can I use Lock Files with rxtx?'\n" ./rxtx-2.2pre2/src/ParallelImp.c0000644000175000017500000007472111113576254016423 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* fear he who enter here. It appears that things have changed. An attempt has been made to put things the way the should be. It compiles and ParallelBlackBox runs. No further guarantees. Well... One.. it will print "Hello World!" on an epson DX 10 printer. you know.. the 10 character per second daisy wheel printer ;) - Trent Jarvi */ #if defined(__MWERKS__)/* dima */ #include "LPRPort.h" #else /* dima */ #ifndef WIN32 # include "config.h" #endif /* work around for libc5 */ /*#include */ #include "gnu_io_LPRPort.h" #endif /* dima */ #include #include #include #ifndef WIN32 # include # include # include # include #else # include # include "win32termios.h" #endif #include #include #include #ifdef HAVE_TERMIOS_H # include #endif #ifdef HAVE_SYS_FCNTL_H # include #endif #ifdef HAVE_SYS_FILE_H # include #endif #ifdef HAVE_SYS_SIGNAL_H # include #endif #ifdef HAVE_SYS_TIME_H # include #endif /* HAVE_SYS_TIME_H */ #if defined(__linux__) # include #endif #if defined(__FreeBSD__) /* # include ? is this changed or wrong */ # include #endif #ifdef __unixware__ # include #endif extern int errno; #include "ParallelImp.h" #define LPRPort(foo) Java_gnu_io_LPRPort_ ## foo /* #define DEBUG */ /*---------------------------------------------------------- LPRPort.getOutputBufferFree accept: none perform: return: number of bytes available in buffer. exceptions: none comments: have not seen how to do this in the kernel yet. ----------------------------------------------------------*/ JNIEXPORT jint JNICALL LPRPort(getOutputBufferFree)(JNIEnv *env, jclass jclazz) { printf("getOutputBufferFree is not implemented yet\n"); return(0); } /*---------------------------------------------------------- LPRPort.setLPRMode accept: mode perform: set the Printer communication mode LPT_MODE_ANY: pick the best possible mode LPT_MODE_SPP: compatibility mode/unidirectional LPT_MODE_PS2: byte mode/bidirectional LPT_MODE_EPP: extended parallel port LPT_MODE_ECP: enhanced capabilities port LPT_MODE_NIBBLE: Nibble Mode. Bi-directional. HP Bi-tronics. 4 bits at a time. return: none exceptions: UnsupportedCommOperationException comments: ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(setLPRMode)(JNIEnv *env, jclass jclazz, jint mode) { switch(mode) { case LPT_MODE_ANY: break; case LPT_MODE_SPP: case LPT_MODE_PS2: case LPT_MODE_EPP: case LPT_MODE_ECP: case LPT_MODE_NIBBLE: default: throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetSerialPortParams", "setLPRMode was unable to proced the requested \ mode" ); } return(JNI_TRUE); } #if defined (WIN32) #define CTL_CODE( DeviceType, Function, Method, Access ) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) #define FILE_DEVICE_PARALLEL_PORT 0x00000016 #define METHOD_BUFFERED 0 #define FILE_ANY_ACCESS 0 #define IOCTL_PAR_QUERY_INFORMATION CTL_CODE(FILE_DEVICE_PARALLEL_PORT,1,METHOD_BUFFERED,FILE_ANY_ACCESS) #define PARALLEL_INIT 0x1 #define PARALLEL_AUTOFEED 0x2 #define PARALLEL_PAPER_EMPTY 0x4 #define PARALLEL_OFF_LINE 0x8 #define PARALLEL_POWER_OFF 0x10 #define PARALLEL_NOT_CONNECTED 0x20 #define PARALLEL_BUSY 0x40 #define PARALLEL_SELECTED 0x80 int getWin32ParallelStatusFlags(int fd){ int status = 0; DWORD count; if(!DeviceIoControl( (HANDLE)fd, IOCTL_PAR_QUERY_INFORMATION, NULL,0, &status, sizeof(status), &count, 0) && count == 1){ YACK(); return 0; } #ifdef DEBUG printf("getWin32ParallelStatusFlags: %d\n", status ); #endif return status; } jboolean getWin32ParallelStatus(int fd, int flag){ return( (getWin32ParallelStatusFlags(fd) & flag) ? JNI_TRUE : JNI_FALSE); } #endif /*---------------------------------------------------------- LPRPort.isPaperOut accept: none perform: check if printer reports paper is out return: Paper Out: JNI_TRUE Not Paper Out: JNI_FALSE exceptions: none comments: LP_NOPA unchanged out-of-paper input, active high ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(isPaperOut)(JNIEnv *env, jobject jobj) { int fd = get_java_var( env, jobj,"fd","I" ); #if defined (__linux__) int status; ioctl(fd, LPGETSTATUS,&status); return( status & LP_NOPA ? JNI_TRUE : JNI_FALSE ); #elif defined (WIN32) return getWin32ParallelStatus( fd, PARALLEL_PAPER_EMPTY); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS not defined\n"); return(JNI_TRUE); #endif } /*---------------------------------------------------------- LPRPort.isPrinterBusy accept: none perform: Check to see if the printer is printing. return: JNI_TRUE if the printer is Busy, JNI_FALSE if its idle exceptions: none comments: LP_BUSY inverted busy input, active high ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(isPrinterBusy)(JNIEnv *env, jobject jobj) { int fd = get_java_var( env, jobj,"fd","I" ); int status; #if defined (__linux__) ioctl(fd, LPGETSTATUS, &status); #elif defined (WIN32) return getWin32ParallelStatus( fd, PARALLEL_BUSY); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS not defined\n"); #endif #if defined(__linux__) return( status & LP_BUSY ? JNI_TRUE : JNI_FALSE ); #endif #if defined(__FreeBSD__) return( status & EBUSY ? JNI_TRUE : JNI_FALSE ); #endif return(JNI_FALSE); } /*---------------------------------------------------------- LPRPort.isPrinterError accept: none perform: check for printer error return: JNI_TRUE if there is an printer error otherwise JNI_FALSE exceptions: none comments: LP_ERR unchanged error input, active low ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(isPrinterError)(JNIEnv *env, jobject jobj) { int fd = get_java_var( env, jobj,"fd","I" ); #if defined (__linux__) int status; ioctl(fd, LPGETSTATUS, &status); return( status & LP_ERR ? JNI_TRUE : JNI_FALSE ); #elif defined (WIN32) return getWin32ParallelStatus( fd, PARALLEL_PAPER_EMPTY | PARALLEL_OFF_LINE | PARALLEL_POWER_OFF | PARALLEL_NOT_CONNECTED | PARALLEL_BUSY); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS not defined\n"); return(JNI_FALSE); #endif } /*---------------------------------------------------------- LPRPort.isPrinterSelected accept: none perform: check if printer is selected return: JNI_TRUE if printer is selected other wise JNI_FALSE exceptions: none comments: LP_SELEC unchanged selected input, active high ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(isPrinterSelected)(JNIEnv *env, jobject jobj) { int fd = get_java_var( env, jobj,"fd","I" ); #if defined (__linux__) int status; ioctl(fd, LPGETSTATUS, &status); return( status & LP_SELEC ? JNI_TRUE : JNI_FALSE ); #elif defined (WIN32) return getWin32ParallelStatus( fd, PARALLEL_SELECTED); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS not defined\n"); return(JNI_FALSE); #endif } /*---------------------------------------------------------- LPRPort.isPrinterTimedOut accept: none perform: Not really sure see isPaperOut return: JNI_FALSE if the printer does not return out of paper other wise JNI_TRUE. exceptions: none comments: Is this documented right in the javadocs? not sure this is correct FIXME ----------------------------------------------------------*/ JNIEXPORT jboolean JNICALL LPRPort(isPrinterTimedOut)(JNIEnv *env, jobject jobj) { #if defined(__linux__) int fd = get_java_var( env, jobj,"fd","I" ); int status; ioctl(fd, LPGETSTATUS, &status); return( status & LP_BUSY ? JNI_TRUE : JNI_FALSE ); #endif #if defined(__FreeBSD__) printf("ParallelImp.c LPGETSTATUS not defined\n"); /* return( status & EBUSY ? JNI_TRUE : JNI_FALSE ); */ #endif return( JNI_FALSE ); } /*---------------------------------------------------------- LPRPort.Initialize accept: none perform: Initialize the native library return: none comments: lots of reading to do here. FIXME ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(Initialize)( JNIEnv *env, jclass jclazz ) { /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ #if !defined(WIN32) struct sigaction handler; sigaction( SIGIO, NULL, &handler ); if( !handler.sa_handler ) signal( SIGIO, SIG_IGN ); #endif /* !WIN32 */ } /*---------------------------------------------------------- LPRPort.open accept: The device to open. ie "/dev/lp0" perform: open the device and return the filedescriptor return: fd exceptions: PortInUseException comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. FIXME Lock Files? ----------------------------------------------------------*/ JNIEXPORT jint JNICALL LPRPort(open)( JNIEnv *env, jobject jobj, jstring jstr ) { /*struct termios ttyset;*/ const char *filename = (*env)->GetStringUTFChars( env, jstr, 0 ); #ifdef WIN32 int fd = (int)CreateFile( filename, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0 ); #else int fd = open( filename, O_RDWR | O_NONBLOCK ); #endif (*env)->ReleaseStringUTFChars( env, jstr, NULL ); if( fd < 0 ) goto fail; return (jint)fd; fail: throw_java_exception_system_msg( env, PORT_IN_USE_EXCEPTION, "open" ); return -1; } /*---------------------------------------------------------- LPRPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(nativeClose)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); #ifdef WIN32 CloseHandle( (HANDLE)fd ); #else close( fd ); #endif return; } /*---------------------------------------------------------- LPRPort.writeByte accept: byte to write (passed as int) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(writeByte)( JNIEnv *env, jobject jobj, jint ji ) { unsigned char byte = (unsigned char)ji; int fd = get_java_var( env, jobj,"fd","I" ); #ifdef WIN32 DWORD countWritten; /* Fixme, should be a loop until all is written */ if( WriteFile( (HANDLE)fd, &byte, sizeof( unsigned char ), &countWritten, NULL ) < 0 ) return; #else if( write( fd, &byte, sizeof( unsigned char ) ) >= 0 ) return; #endif throw_java_exception_system_msg( env, IO_EXCEPTION, "writeByte" ); } /*---------------------------------------------------------- LPRPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(writeArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint count ) { #ifdef WIN32 DWORD countWritten; /* Fixme, should be a loop until all is written */ COMMTIMEOUTS timeouts; int errorCount = 0; #endif int fd = get_java_var( env, jobj,"fd","I" ); jbyte *body = (*env)->GetByteArrayElements( env, jbarray, 0 ); unsigned char *bytes = (unsigned char *)malloc( count ); int i; for( i = 0; i < count; i++ ) bytes[ i ] = body[ i + offset ]; (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); #ifdef WIN32 /* we set a timeout because all calls are sequentiell (also with asynchron) this means that the default timeout of unlimited blocks all calls (also close and status request) if the device is down */ GetCommTimeouts( (HANDLE)fd, &timeouts ); timeouts.WriteTotalTimeoutMultiplier = 0; timeouts.WriteTotalTimeoutConstant = 2000; /* 2000 is the min value for the default Windows NT and Windows 2000 driver */ SetCommTimeouts( (HANDLE)fd, &timeouts ); while( count > 0 ){ if(!WriteFile( (HANDLE)fd, bytes, count, &countWritten, NULL ) && countWritten == 0){ /* this are 20 * 2 seconds, in this time a printer (or other parallel device) should solv all problems like buffer full, etc */ if(errorCount++ < 20){ Sleep( 20 ); /* make a small pause to execute all other requests in all other threads */ continue; } throw_java_exception_system_msg( env, IO_EXCEPTION, "writeArray" ); break; } errorCount = 0; bytes += countWritten; count -= countWritten; } #else if( write( fd, bytes, count ) < 0 ) throw_java_exception_system_msg( env, IO_EXCEPTION, "writeArray" ); #endif free( bytes ); } /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int threshold receive threshold int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int threshold, int timeout ) { int ret, left, bytes = 0; fd_set rfds; struct timeval sleep; FD_ZERO( &rfds ); FD_SET( fd, &rfds ); sleep.tv_sec = timeout / 1000; sleep.tv_usec = 1000 * ( timeout % 1000 ); left = length; while( bytes < length && bytes < threshold ) { if( timeout > 0 ) { /* FIXME: In Linux, select updates the timeout automatically, so other OSes will need to update it manually if they want to have the same behavior. For those OSes, timeouts will occur after no data AT ALL is received for the timeout duration. No big deal. */ do { ret=select( fd + 1, &rfds, NULL, NULL, &sleep ); } while(ret < 0 && errno ==EINTR); if( ret == 0 ) break; if( ret < 0 ) return -1; } #if defined(WIN32) if(!ReadFile( (HANDLE)fd, buffer + bytes, left, (DWORD *)&ret, NULL )){ YACK(); ret = -1; } #else ret = read( fd, buffer + bytes, left ); #endif if( ret == 0 ) break; if( ret < 0 ) return -1; bytes += ret; left -= ret; } return bytes; } /*---------------------------------------------------------- LPRPort.readByte accept: none perform: Read a single byte from the port return: The byte read exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT jint JNICALL LPRPort(readByte)( JNIEnv *env, jobject jobj ) { int bytes, fd, timeout; unsigned char buffer[ 1 ]; fd = get_java_var( env, jobj,"fd","I" ); timeout = get_java_var( env, jobj, "timeout","I"); bytes = read_byte_array( fd, buffer, 1, 1, timeout ); if( bytes < 0 ) { throw_java_exception_system_msg( env, IO_EXCEPTION, "readByte" ); return -1; } return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- LPRPort.readArray accept: offset (bytes to skip) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws IOException if asked to read > SSIZE_MAX ----------------------------------------------------------*/ JNIEXPORT jint JNICALL LPRPort(readArray)( JNIEnv *env, jobject jobj, jbyteArray jbarray, jint offset, jint length ) { int bytes, i, fd, threshold, timeout; jbyte *body; unsigned char *buffer; fd = get_java_var( env, jobj,"fd","I" ); threshold = get_java_var( env, jobj,"threshold","I" ); timeout = get_java_var( env, jobj,"threshold","I" ); if( (size_t) length < 1 || (size_t) length > SSIZE_MAX ) { throw_java_exception( env, IO_EXCEPTION, "readArray", "Invalid length" ); return -1; } buffer = (unsigned char *)malloc( sizeof( unsigned char ) * length ); if( buffer == 0 ) { throw_java_exception( env, IO_EXCEPTION, "readArray", "Unable to allocate buffer" ); return -1; } bytes = read_byte_array( fd, buffer, length, threshold, timeout ); if( bytes < 0 ) { free( buffer ); throw_java_exception_system_msg( env, IO_EXCEPTION, "readArray" ); return -1; } body = (*env)->GetByteArrayElements( env, jbarray, 0 ); for( i = 0; i < bytes; i++ ) body[ i + offset ] = buffer[ i ]; (*env)->ReleaseByteArrayElements( env, jbarray, body, 0 ); free( buffer ); return (bytes ? bytes : -1); } /*---------------------------------------------------------- LPRPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ JNIEXPORT jint JNICALL LPRPort(nativeavailable)( JNIEnv *env, jobject jobj ) { int fd = get_java_var( env, jobj,"fd","I" ); int result; /* char message[80]; ENTER( "LPRPort:nativeavailable" ); */ /* On SCO OpenServer FIONREAD always fails for serial devices, so try ioctl FIORDCHK instead; will only tell us whether bytes are available, not how many, but better than nothing. This turns out to be true on Solaris also. taj. */ #ifdef FIORDCHK /* __unixware__ __sun__ probably others */ result = ioctl(fd, FIORDCHK, 0); #else if( ioctl( fd, FIONREAD, &result ) < 0 ) { goto fail; } #endif /* FIORDCHK */ if (result == -1) { goto fail; } if( result ) { /* sprintf(message, " nativeavailable: FIORDCHK result %d, \ errno %d\n", result , result == -1 ? errno : 0); report( message ); */ } /* LEAVE( "LPRPort:nativeavailable" ); */ return (jint)result; fail: /* report("LPRPort:nativeavailable: ioctl() failed\n"); LEAVE( "LPRPort:nativeavailable" ); */ throw_java_exception_system_msg( env, IO_EXCEPTION, "nativeavailable" ); return (jint)result; } /*---------------------------------------------------------- LPRPort.setHWFC accept: state (JNI_FALSE 0, JNI_TRUE 1) perform: set hardware flow control to state return: none exceptions: IOException ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(setHWFC)( JNIEnv *env, jobject jobj, jboolean state ) { /* int fd = get_java_var( env, jobj,"fd","I" ); */ return; } /*---------------------------------------------------------- LPRPort.eventLoop accept: none perform: periodically check for ParallelPortEvents return: none exceptions: none comments: lots of work needed here. Yes its a mess. struct lp_stats { unsigned long chars; unsigned long sleeps; unsigned int maxrun; unsigned int maxwait; unsigned int meanwait; unsigned int mdev; }; ----------------------------------------------------------*/ JNIEXPORT void JNICALL LPRPort(eventLoop)( JNIEnv *env, jobject jobj ) { int fd, ret; unsigned int pflags = 0; fd_set rfds; struct timeval sleep; jboolean interrupted = 0; fd = get_java_var( env, jobj,"fd","I" ); interrupted = is_interrupted(env, jobj); FD_ZERO( &rfds ); while( !interrupted ) { FD_SET( fd, &rfds ); /* Check every 1 second, or on receive data */ sleep.tv_sec = 1; sleep.tv_usec = 0; do { ret = select( fd + 1, &rfds, NULL, NULL, &sleep ); } while (ret < 0 && errno == EINTR); if( ret < 0 ) break; interrupted = is_interrupted(env, jobj); if(interrupted) { return; } #if defined(LPGETSTATUS) ioctl( fd, LPGETSTATUS, &pflags ); #elif defined(WIN32) pflags = getWin32ParallelStatusFlags(fd); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS is undefined!\n"); #endif /* PAR_EV_BUFFER: PAR_EV_ERROR: */ #if defined(PARALLEL_BUSY) if (pflags & PARALLEL_BUSY) send_event( env, jobj, PAR_EV_ERROR, JNI_TRUE ); #elif defined(LP_BUSY) if (pflags&LP_BUSY) /* inverted input, active high */ send_event( env, jobj, PAR_EV_ERROR, JNI_TRUE ); #elif defined(EBUSY) if (pflags&EBUSY) /* inverted input, active high */ send_event( env, jobj, PAR_EV_ERROR, JNI_TRUE ); #endif /* EBUSY LP_BUSY */ /* FIXME this has moved into the ifdef __kernel__? Need to get the posix documentation on this. if (pflags&LP_ACK) send_event( env, jobj, PAR_EV_ERROR, JNI_TRUE ); */ #if defined (__linux__) /* unchanged input, active low */ if (pflags&LP_NOPA) /* unchanged input, active high */ send_event( env, jobj, PAR_EV_ERROR, 1 ); if (pflags&LP_SELEC) /* unchanged input, active high */ send_event( env, jobj, PAR_EV_ERROR, 1 ); if (pflags&LP_ERR) /* unchanged input, active low */ send_event( env, jobj, PAR_EV_ERROR, 1 ); #else /* FIXME?? */ printf("ParallelImp.c LPGETSTATUS is undefined!\n"); #endif usleep(1000); } return; } JNIEXPORT void JNICALL LPRPort(setInputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG printf("setInputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL LPRPort(getInputBufferSize)(JNIEnv *env, jobject jobj) { #ifdef DEBUG printf("getInputBufferSize is not implemented\n"); #endif return(1); } JNIEXPORT void JNICALL LPRPort(setOutputBufferSize)(JNIEnv *env, jobject jobj, jint size ) { #ifdef DEBUG printf("setOutputBufferSize is not implemented\n"); #endif } JNIEXPORT jint JNICALL LPRPort(getOutputBufferSize)(JNIEnv *env, jobject jobj) { #ifdef DEBUG printf("getOutputBufferSize is not implemented\n"); #endif return(1); } /*---------------------------------------------------------- throw_java_exception accept: env (keyhole to java) *exc (exception class name) *foo (function name) *msg (error message) perform: Throw a new java exception return: none exceptions: haha! comments: ----------------------------------------------------------*/ void throw_java_exception( JNIEnv *env, char *exc, char *foo, char *msg ) { #define MSG_SIZE 128 char buf[ 128 ]; jclass clazz = (*env)->FindClass( env, exc ); if( !clazz ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return; } /* reduce the message size if it to large for the message buffer */ if(MSG_SIZE < (strlen( msg ) + strlen(foo) + 5)){ msg[ MSG_SIZE - strlen(foo) - 5] = 0; } #if defined(_GNU_SOURCE) snprintf( buf, 60, "%s in %s", msg, foo ); #else sprintf( buf,"%s in %s", msg, foo ); #endif /* _GNU_SOURCE */ (*env)->ThrowNew( env, clazz, buf ); /* ct7 * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, clazz ); } void throw_java_exception_system_msg( JNIEnv *env, char *exc, char *foo ) { #ifdef WIN32 char *allocTextBuf; FormatMessage ( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&allocTextBuf, 16, NULL ); throw_java_exception( env, exc, foo, allocTextBuf ); LocalFree(allocTextBuf); #else throw_java_exception( env, exc, foo, strerror( errno ) ); #endif } /*---------------------------------------------------------- report_error accept: string to send to report as an error perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_error(char *msg) { #ifndef DEBUG_MW fprintf(stderr, msg); #else mexWarnMsgTxt( msg ); #endif /* DEBUG_MW */ } /*---------------------------------------------------------- report accept: string to send to stderr perform: if DEBUG is defined send the string to stderr. return: none exceptions: none comments: ----------------------------------------------------------*/ void report(char *msg) { #ifdef DEBUG fprintf(stderr, msg); #endif /* DEBUG */ } /*---------------------------------------------------------- is_interrupted accept: perform: see if the port is being closed. return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ jboolean is_interrupted(JNIEnv *env, jobject jobj) { jmethodID foo; jclass jclazz; int result; (*env)->ExceptionClear(env); jclazz = (*env)->GetObjectClass( env, jobj ); if(jclazz == NULL) return JNI_TRUE; foo = (*env)->GetMethodID( env, jclazz, "checkMonitorThread", "()Z"); if(foo == NULL) return JNI_TRUE; result = (*env)->CallBooleanMethod( env, jobj, foo ); #ifdef DEBUG if((*env)->ExceptionOccurred(env)) { report ("an error occured calling sendEvent()\n"); (*env)->ExceptionDescribe(env); (*env)->ExceptionClear(env); } #endif /* DEBUG */ (*env)->DeleteLocalRef( env, jclazz ); return(result); } /*---------------------------------------------------------- send_event accept: The event type and the event state perform: if state is > 0 send a JNI_TRUE event otherwise send JNI_FALSE return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ int send_event(JNIEnv *env, jobject jobj, jint type, int flag) { int result; jmethodID foo; jclass jclazz = (*env)->GetObjectClass( env, jobj ); if(jclazz == NULL) return JNI_TRUE; foo = (*env)->GetMethodID( env, jclazz, "sendEvent", "(IZ)Z" ); (*env)->ExceptionClear(env); result = (*env)->CallBooleanMethod( env, jobj, foo, type, flag > 0 ? JNI_TRUE : JNI_FALSE ); #ifdef DEBUG if((*env)->ExceptionOccurred(env)) { report ("an error occured calling sendEvent()\n"); (*env)->ExceptionDescribe(env); (*env)->ExceptionClear(env); } #endif /* DEBUG */ (*env)->DeleteLocalRef( env, jclazz ); return(result); } /*---------------------------------------------------------- get_java_var accept: env (keyhole to java) jobj (java RXTXPort object) return: the fd field from the java object exceptions: none comments: ----------------------------------------------------------*/ int get_java_var( JNIEnv *env, jobject jobj, char *id, char *type ) { int result = 0; jclass jclazz = (*env)->GetObjectClass( env, jobj ); jfieldID jfd = (*env)->GetFieldID( env, jclazz, id, type ); if( !jfd ) { (*env)->ExceptionDescribe( env ); (*env)->ExceptionClear( env ); return result; } result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); /* ct7 & gel * Added DeleteLocalRef */ (*env)->DeleteLocalRef( env, jclazz ); return result; } ./rxtx-2.2pre2/src/CVS/0000755000175000017500000000000011142441061014462 5ustar twernertwerner./rxtx-2.2pre2/src/CVS/Tag0000644000175000017500000000001711126534472015131 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/src/CVS/Root0000644000175000017500000000007511126534467015351 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/src/CVS/Entries0000644000175000017500000000245311142441061016022 0ustar twernertwerner/.cvsignore/1.1.1.1/Wed Mar 17 14:26:45 1999//Tcommapi-0-0-1 /I2CImp.c/1.1.2.12/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /I2CImp.h/1.1.2.9/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /Parallel.def/1.1.2.1/Tue Nov 12 18:55:06 2002//Tcommapi-0-0-1 /ParallelImp.c/1.15.2.35/Thu Nov 27 20:01:48 2008//Tcommapi-0-0-1 /ParallelImp.h/1.5.2.14/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485Imp.c/1.1.2.12/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RS485Imp.h/1.1.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /RawImp.c/1.1.2.12/Sun Nov 18 22:32:42 2007//Tcommapi-0-0-1 /RawImp.h/1.1.2.8/Thu Apr 26 05:26:05 2007//Tcommapi-0-0-1 /Serial.def/1.1.2.18/Tue Jan 17 01:59:40 2006//Tcommapi-0-0-1 /SerialImp.cpp/1.1.2.10/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /fixup.c/1.1.2.5/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 /fuserImp.c/1.1.2.8/Fri Nov 14 00:43:59 2008//Tcommapi-0-0-1 /init.c/1.1.2.2/Mon Jan 16 02:55:56 2006//Tcommapi-0-0-1 /init.cc/1.1/Sat Dec 4 00:41:26 1999//Tcommapi-0-0-1 /portmode.c/1.1.2.6/Thu Apr 26 05:26:06 2007//Tcommapi-0-0-1 D/gnu//// D/lfd//// D/psmisc//// /termios.c/1.9.2.62/Wed Feb 4 22:01:40 2009//Tcommapi-0-0-1 /win32termios.h/1.5.2.34/Thu Feb 5 01:24:39 2009//Tcommapi-0-0-1 /SerialImp.c/1.46.2.202/Wed Feb 4 22:06:16 2009//Tcommapi-0-0-1 /SerialImp.h/1.11.2.54/Wed Feb 4 22:01:36 2009//Tcommapi-0-0-1 ./rxtx-2.2pre2/src/CVS/Repository0000644000175000017500000000001711126534467016601 0ustar twernertwernerrxtx-devel/src ./rxtx-2.2pre2/src/RawImp.h0000644000175000017500000001245410614033755015417 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.SerialPort constants */ #ifndef WIN32 #define DATABITS_5 5 #define DATABITS_6 6 #define DATABITS_7 7 #define DATABITS_8 8 #define PARITY_NONE 0 #define PARITY_ODD 1 #define PARITY_EVEN 2 #define PARITY_MARK 3 #define PARITY_SPACE 4 #endif #define STOPBITS_1 1 #define STOPBITS_2 2 #define FLOWCONTROL_NONE 0 #define FLOWCONTROL_RTSCTS_IN 1 #define FLOWCONTROL_RTSCTS_OUT 2 #define FLOWCONTROL_XONXOFF_IN 4 #define FLOWCONTROL_XONXOFF_OUT 8 /* gnu.io.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 /* java exception class names */ #define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ #ifdef CRTSCTS #define HARDWARE_FLOW_CONTROL CRTSCTS #else # ifdef CCTS_OFLOW # define HARDWARE_FLOW_CONTROL CCTS_OFLOW|CRST_IFLOW # else # ifdef RTSFLOW # define HARDWARE_FLOW_CONTROL RTSFLOW|CTSFLOW # else # ifdef CRTSFL # define HARDWARE_FLOW_CONTROL CRTSFL # else # ifdef CTSCD # define HARDWARE_FLOW_CONTROL CTSCD # else # define HARDWARE_FLOW_CONTROL 0 # endif # endif # endif # endif #endif /* PROTOTYPES */ int translate_speed( JNIEnv*, jint ); int translate_data_bits( JNIEnv *, int *, jint ); int translate_stop_bits( JNIEnv *, int *, jint ); int translate_parity( JNIEnv *, int *, jint ); int read_byte_array( int, unsigned char *, int, int ); int get_java_var( JNIEnv *, jobject, char *, char * ); int get_java_fd( JNIEnv *, jobject ); void send_modem_events( JNIEnv *, jobject, jmethodID, int, int, int ); void throw_java_exception( JNIEnv *, char *, char *, char * ); ./rxtx-2.2pre2/src/Serial.def0000644000175000017500000001145410363047614015745 0ustar twernertwernerEXPORTS Java_gnu_io_RXTXCommDriver_getDeviceDirectory=Java_gnu_io_RXTXCommDriver_getDeviceDirectory@8 Java_gnu_io_RXTXCommDriver_isPortPrefixValid=Java_gnu_io_RXTXCommDriver_isPortPrefixValid@12 Java_gnu_io_RXTXCommDriver_registerKnownPorts=Java_gnu_io_RXTXCommDriver_registerKnownPorts@12 Java_gnu_io_RXTXCommDriver_testRead=Java_gnu_io_RXTXCommDriver_testRead@16 Java_gnu_io_RXTXPort_Initialize=Java_gnu_io_RXTXPort_Initialize@8 Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold=Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold@20 Java_gnu_io_RXTXPort_NativegetReceiveTimeout=Java_gnu_io_RXTXPort_NativegetReceiveTimeout@8 Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled=Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled@8 Java_gnu_io_RXTXPort_eventLoop=Java_gnu_io_RXTXPort_eventLoop@8 Java_gnu_io_RXTXPort_getInputBufferSize=Java_gnu_io_RXTXPort_getInputBufferSize@8 Java_gnu_io_RXTXPort_getOutputBufferSize=Java_gnu_io_RXTXPort_getOutputBufferSize@8 Java_gnu_io_RXTXPort_interruptEventLoop=Java_gnu_io_RXTXPort_interruptEventLoop@8 Java_gnu_io_RXTXPort_isCD=Java_gnu_io_RXTXPort_isCD@8 Java_gnu_io_RXTXPort_isCTS=Java_gnu_io_RXTXPort_isCTS@8 Java_gnu_io_RXTXPort_isDSR=Java_gnu_io_RXTXPort_isDSR@8 Java_gnu_io_RXTXPort_isDTR=Java_gnu_io_RXTXPort_isDTR@8 Java_gnu_io_RXTXPort_isRI=Java_gnu_io_RXTXPort_isRI@8 Java_gnu_io_RXTXPort_isRTS=Java_gnu_io_RXTXPort_isRTS@8 Java_gnu_io_RXTXPort_nativeClearCommInput=Java_gnu_io_RXTXPort_nativeClearCommInput@8 Java_gnu_io_RXTXPort_nativeClose=Java_gnu_io_RXTXPort_nativeClose@12 Java_gnu_io_RXTXPort_nativeDrain=Java_gnu_io_RXTXPort_nativeDrain@12 Java_gnu_io_RXTXPort_nativeGetBaudBase=Java_gnu_io_RXTXPort_nativeGetBaudBase@8 Java_gnu_io_RXTXPort_nativeGetDivisor=Java_gnu_io_RXTXPort_nativeGetDivisor@8 Java_gnu_io_RXTXPort_nativeGetEndOfInputChar=Java_gnu_io_RXTXPort_nativeGetEndOfInputChar@8 Java_gnu_io_RXTXPort_nativeGetFlowControlMode=Java_gnu_io_RXTXPort_nativeGetFlowControlMode@12 Java_gnu_io_RXTXPort_nativeGetParity=Java_gnu_io_RXTXPort_nativeGetParity@12 Java_gnu_io_RXTXPort_nativeGetParityErrorChar=Java_gnu_io_RXTXPort_nativeGetParityErrorChar@8 Java_gnu_io_RXTXPort_nativeSetBaudBase=Java_gnu_io_RXTXPort_nativeSetBaudBase@12 Java_gnu_io_RXTXPort_nativeSetDivisor=Java_gnu_io_RXTXPort_nativeSetDivisor@12 Java_gnu_io_RXTXPort_nativeSetEndOfInputChar=Java_gnu_io_RXTXPort_nativeSetEndOfInputChar@12 Java_gnu_io_RXTXPort_nativeSetEventFlag=Java_gnu_io_RXTXPort_nativeSetEventFlag@20 Java_gnu_io_RXTXPort_nativeSetParityErrorChar=Java_gnu_io_RXTXPort_nativeSetParityErrorChar@12 Java_gnu_io_RXTXPort_nativeSetSerialPortParams=Java_gnu_io_RXTXPort_nativeSetSerialPortParams@24 Java_gnu_io_RXTXPort_nativeStaticGetBaudRate=Java_gnu_io_RXTXPort_nativeStaticGetBaudRate@12 Java_gnu_io_RXTXPort_nativeStaticGetDataBits=Java_gnu_io_RXTXPort_nativeStaticGetDataBits@12 Java_gnu_io_RXTXPort_nativeStaticGetParity=Java_gnu_io_RXTXPort_nativeStaticGetParity@12 Java_gnu_io_RXTXPort_nativeStaticGetStopBits=Java_gnu_io_RXTXPort_nativeStaticGetStopBits@12 Java_gnu_io_RXTXPort_nativeStaticIsCD=Java_gnu_io_RXTXPort_nativeStaticIsCD@12 Java_gnu_io_RXTXPort_nativeStaticIsCTS=Java_gnu_io_RXTXPort_nativeStaticIsCTS@12 Java_gnu_io_RXTXPort_nativeStaticIsDSR=Java_gnu_io_RXTXPort_nativeStaticIsDSR@12 Java_gnu_io_RXTXPort_nativeStaticIsDTR=Java_gnu_io_RXTXPort_nativeStaticIsDTR@12 Java_gnu_io_RXTXPort_nativeStaticIsRI=Java_gnu_io_RXTXPort_nativeStaticIsRI@12 Java_gnu_io_RXTXPort_nativeStaticIsRTS=Java_gnu_io_RXTXPort_nativeStaticIsRTS@12 Java_gnu_io_RXTXPort_nativeStaticSetDSR=Java_gnu_io_RXTXPort_nativeStaticSetDSR@16 Java_gnu_io_RXTXPort_nativeStaticSetDTR=Java_gnu_io_RXTXPort_nativeStaticSetDTR@16 Java_gnu_io_RXTXPort_nativeStaticSetRTS=Java_gnu_io_RXTXPort_nativeStaticSetRTS@16 Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams=Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams@28 Java_gnu_io_RXTXPort_nativeavailable=Java_gnu_io_RXTXPort_nativeavailable@8 Java_gnu_io_RXTXPort_open=Java_gnu_io_RXTXPort_open@12 Java_gnu_io_RXTXPort_readArray=Java_gnu_io_RXTXPort_readArray@20 Java_gnu_io_RXTXPort_readByte=Java_gnu_io_RXTXPort_readByte@8 Java_gnu_io_RXTXPort_readTerminatedArray=Java_gnu_io_RXTXPort_readTerminatedArray@24 Java_gnu_io_RXTXPort_sendBreak=Java_gnu_io_RXTXPort_sendBreak@12 Java_gnu_io_RXTXPort_setDSR=Java_gnu_io_RXTXPort_setDSR@12 Java_gnu_io_RXTXPort_setDTR=Java_gnu_io_RXTXPort_setDTR@12 Java_gnu_io_RXTXPort_setInputBufferSize=Java_gnu_io_RXTXPort_setInputBufferSize@12 Java_gnu_io_RXTXPort_setOutputBufferSize=Java_gnu_io_RXTXPort_setOutputBufferSize@12 Java_gnu_io_RXTXPort_setRTS=Java_gnu_io_RXTXPort_setRTS@12 Java_gnu_io_RXTXPort_setflowcontrol=Java_gnu_io_RXTXPort_setflowcontrol@12 Java_gnu_io_RXTXPort_writeArray=Java_gnu_io_RXTXPort_writeArray@24 Java_gnu_io_RXTXPort_writeByte=Java_gnu_io_RXTXPort_writeByte@16 Java_gnu_io_RXTXVersion_nativeGetVersion=Java_gnu_io_RXTXVersion_nativeGetVersion@8 ./rxtx-2.2pre2/MACOSX_IDE/0000755000175000017500000000000011126534475014731 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/.cvsignore0000644000175000017500000000001210441046122016704 0ustar twernertwerner.DS_Store ./rxtx-2.2pre2/MACOSX_IDE/XCode/0000755000175000017500000000000011126534455015731 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/.cvsignore0000644000175000017500000000003010441045275017716 0ustar twernertwerner.DS_Store build Headers ./rxtx-2.2pre2/MACOSX_IDE/XCode/config.h0000644000175000017500000000154110441045275017344 0ustar twernertwerner/* Define if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define if you have the header file. */ #define HAVE_GRP_H 1 /* Define if you have the header file. */ #define HAVE_PWD_H 1 /* Define if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_FCNTL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_FILE_H 1 /* Define if you have the header file. */ #define HAVE_SYS_SIGNAL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define if you have the header file. */ #define HAVE_TERMIOS_H 1 /* Name of package */ #define PACKAGE "Serial" /* Version number of package */ #define VERSION "2.1-8" //#define DEBUG //#define DEBUG_VERBOSE./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/0000755000175000017500000000000011126534455023464 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/.cvsignore0000644000175000017500000000003410441045275025455 0ustar twernertwerner.DS_Store *.mode1 *.pbxuser ./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/project.pbxproj0000755000175000017500000007754210441562265026561 0ustar twernertwerner// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 42; objects = { /* Begin PBXBuildFile section */ 327084F6072C838F000D953F /* Configure.java in Sources */ = {isa = PBXBuildFile; fileRef = 327084F5072C838F000D953F /* Configure.java */; }; 328404D905949D8800D94A3F /* gnu_io_RXTXPort.h in Headers */ = {isa = PBXBuildFile; fileRef = F516EA0A016690CA01000107 /* gnu_io_RXTXPort.h */; }; 328404DA05949D8800D94A3F /* gnu_io_RXTXCommDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = F516EA0B016690CA01000107 /* gnu_io_RXTXCommDriver.h */; }; 328404DB05949D8800D94A3F /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = F516EA130166918B01000107 /* config.h */; }; 328404DC05949D8800D94A3F /* gnu_io_CommPortIdentifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 66BFC58B017A2DF100A80101 /* gnu_io_CommPortIdentifier.h */; }; 328404DE05949D8800D94A3F /* SerialImp.c in Sources */ = {isa = PBXBuildFile; fileRef = F5F7F6D8016E40A60113EAB9 /* SerialImp.c */; }; 328404DF05949D8800D94A3F /* fuserImp.c in Sources */ = {isa = PBXBuildFile; fileRef = 66BFC583017A2D9000A80101 /* fuserImp.c */; }; 328404E105949D8800D94A3F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F516EA17016694DF01000107 /* CoreFoundation.framework */; }; 328404E205949D8800D94A3F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F516EA19016694EF01000107 /* IOKit.framework */; }; 329246210458958F0013EAC7 /* UnSupportedLoggerException.java in Sources */ = {isa = PBXBuildFile; fileRef = 329246200458958F0013EAC7 /* UnSupportedLoggerException.java */; }; 32924623045895A00013EAC7 /* Zystem.java in Sources */ = {isa = PBXBuildFile; fileRef = 32924622045895A00013EAC7 /* Zystem.java */; }; 667DAC880179E0EB00A80101 /* CommDriver.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC830179E0EB00A80101 /* CommDriver.java */; }; 667DAC890179E0EB00A80101 /* CommPort.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC840179E0EB00A80101 /* CommPort.java */; }; 667DAC8A0179E0EB00A80101 /* CommPortEnumerator.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC850179E0EB00A80101 /* CommPortEnumerator.java */; }; 667DAC8B0179E0EB00A80101 /* CommPortIdentifier.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC860179E0EB00A80101 /* CommPortIdentifier.java */; }; 667DAC8C0179E0EB00A80101 /* CommPortOwnershipListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC870179E0EB00A80101 /* CommPortOwnershipListener.java */; }; 667DAC9B0179E15A00A80101 /* I2C.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC920179E15A00A80101 /* I2C.java */; }; 667DAC9C0179E15A00A80101 /* I2CPort.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC930179E15A00A80101 /* I2CPort.java */; }; 667DAC9D0179E15A00A80101 /* I2CPortEvent.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC940179E15A00A80101 /* I2CPortEvent.java */; }; 667DAC9E0179E15A00A80101 /* I2CPortEventListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC950179E15A00A80101 /* I2CPortEventListener.java */; }; 667DAC9F0179E15A00A80101 /* NoSuchPortException.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC960179E15A00A80101 /* NoSuchPortException.java */; }; 667DACA00179E15A00A80101 /* ParallelPort.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC970179E15A00A80101 /* ParallelPort.java */; }; 667DACA10179E15A00A80101 /* ParallelPortEvent.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC980179E15A00A80101 /* ParallelPortEvent.java */; }; 667DACA20179E15A00A80101 /* ParallelPortEventListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC990179E15A00A80101 /* ParallelPortEventListener.java */; }; 667DACA30179E15A00A80101 /* PortInUseException.java in Sources */ = {isa = PBXBuildFile; fileRef = 667DAC9A0179E15A00A80101 /* PortInUseException.java */; }; 667EEE8D0179E22700A80101 /* Raw.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE810179E22700A80101 /* Raw.java */; }; 667EEE8E0179E22700A80101 /* RawPort.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE820179E22700A80101 /* RawPort.java */; }; 667EEE8F0179E22700A80101 /* RawPortEvent.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE830179E22700A80101 /* RawPortEvent.java */; }; 667EEE900179E22700A80101 /* RawPortEventListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE840179E22700A80101 /* RawPortEventListener.java */; }; 667EEE910179E22700A80101 /* RS485.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE850179E22700A80101 /* RS485.java */; }; 667EEE920179E22700A80101 /* RS485Port.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE860179E22700A80101 /* RS485Port.java */; }; 667EEE930179E22700A80101 /* RS485PortEvent.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE870179E22700A80101 /* RS485PortEvent.java */; }; 667EEE940179E22700A80101 /* RS485PortEventListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE880179E22700A80101 /* RS485PortEventListener.java */; }; 667EEE950179E22700A80101 /* SerialPort.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE890179E22700A80101 /* SerialPort.java */; }; 667EEE960179E22700A80101 /* SerialPortEvent.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE8A0179E22700A80101 /* SerialPortEvent.java */; }; 667EEE970179E22700A80101 /* SerialPortEventListener.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE8B0179E22700A80101 /* SerialPortEventListener.java */; }; 667EEE980179E22700A80101 /* UnsupportedCommOperationException.java in Sources */ = {isa = PBXBuildFile; fileRef = 667EEE8C0179E22700A80101 /* UnsupportedCommOperationException.java */; }; F5F7F6D4016E407A0113EAB9 /* LPRPort.java in Sources */ = {isa = PBXBuildFile; fileRef = F5F7F6D0016E407A0113EAB9 /* LPRPort.java */; }; F5F7F6D5016E407A0113EAB9 /* RXTXCommDriver.java in Sources */ = {isa = PBXBuildFile; fileRef = F5F7F6D1016E407A0113EAB9 /* RXTXCommDriver.java */; }; F5F7F6D6016E407A0113EAB9 /* RXTXPort.java in Sources */ = {isa = PBXBuildFile; fileRef = F5F7F6D2016E407A0113EAB9 /* RXTXPort.java */; }; F5F7F6D7016E407A0113EAB9 /* RXTXVersion.java in Sources */ = {isa = PBXBuildFile; fileRef = F5F7F6D3016E407A0113EAB9 /* RXTXVersion.java */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 32B1FC7C058FBCBE002A9264 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = F591A546016636D601000107 /* Project object */; proxyType = 1; remoteGlobalIDString = F5712CD601667A1F01000107; remoteInfo = RXTXcomm; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 327084F5072C838F000D953F /* Configure.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = Configure.java; path = ../../src/Configure.java; sourceTree = SOURCE_ROOT; }; 328404E605949D8800D94A3F /* librxtxSerial.jnilib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = librxtxSerial.jnilib; sourceTree = BUILT_PRODUCTS_DIR; }; 329246200458958F0013EAC7 /* UnSupportedLoggerException.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = UnSupportedLoggerException.java; path = ../../src/UnSupportedLoggerException.java; sourceTree = SOURCE_ROOT; }; 32924622045895A00013EAC7 /* Zystem.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = Zystem.java; path = ../../src/Zystem.java; sourceTree = SOURCE_ROOT; }; 667DAC830179E0EB00A80101 /* CommDriver.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = CommDriver.java; path = ../../src/CommDriver.java; sourceTree = SOURCE_ROOT; }; 667DAC840179E0EB00A80101 /* CommPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = CommPort.java; path = ../../src/CommPort.java; sourceTree = SOURCE_ROOT; }; 667DAC850179E0EB00A80101 /* CommPortEnumerator.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = CommPortEnumerator.java; path = ../../src/CommPortEnumerator.java; sourceTree = SOURCE_ROOT; }; 667DAC860179E0EB00A80101 /* CommPortIdentifier.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = CommPortIdentifier.java; path = ../../src/CommPortIdentifier.java; sourceTree = SOURCE_ROOT; }; 667DAC870179E0EB00A80101 /* CommPortOwnershipListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = CommPortOwnershipListener.java; path = ../../src/CommPortOwnershipListener.java; sourceTree = SOURCE_ROOT; }; 667DAC920179E15A00A80101 /* I2C.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = I2C.java; path = ../../src/I2C.java; sourceTree = SOURCE_ROOT; }; 667DAC930179E15A00A80101 /* I2CPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = I2CPort.java; path = ../../src/I2CPort.java; sourceTree = SOURCE_ROOT; }; 667DAC940179E15A00A80101 /* I2CPortEvent.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = I2CPortEvent.java; path = ../../src/I2CPortEvent.java; sourceTree = SOURCE_ROOT; }; 667DAC950179E15A00A80101 /* I2CPortEventListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = I2CPortEventListener.java; path = ../../src/I2CPortEventListener.java; sourceTree = SOURCE_ROOT; }; 667DAC960179E15A00A80101 /* NoSuchPortException.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = NoSuchPortException.java; path = ../../src/NoSuchPortException.java; sourceTree = SOURCE_ROOT; }; 667DAC970179E15A00A80101 /* ParallelPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = ParallelPort.java; path = ../../src/ParallelPort.java; sourceTree = SOURCE_ROOT; }; 667DAC980179E15A00A80101 /* ParallelPortEvent.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = ParallelPortEvent.java; path = ../../src/ParallelPortEvent.java; sourceTree = SOURCE_ROOT; }; 667DAC990179E15A00A80101 /* ParallelPortEventListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = ParallelPortEventListener.java; path = ../../src/ParallelPortEventListener.java; sourceTree = SOURCE_ROOT; }; 667DAC9A0179E15A00A80101 /* PortInUseException.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = PortInUseException.java; path = ../../src/PortInUseException.java; sourceTree = SOURCE_ROOT; }; 667EEE810179E22700A80101 /* Raw.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = Raw.java; path = ../../src/Raw.java; sourceTree = SOURCE_ROOT; }; 667EEE820179E22700A80101 /* RawPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RawPort.java; path = ../../src/RawPort.java; sourceTree = SOURCE_ROOT; }; 667EEE830179E22700A80101 /* RawPortEvent.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RawPortEvent.java; path = ../../src/RawPortEvent.java; sourceTree = SOURCE_ROOT; }; 667EEE840179E22700A80101 /* RawPortEventListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RawPortEventListener.java; path = ../../src/RawPortEventListener.java; sourceTree = SOURCE_ROOT; }; 667EEE850179E22700A80101 /* RS485.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RS485.java; path = ../../src/RS485.java; sourceTree = SOURCE_ROOT; }; 667EEE860179E22700A80101 /* RS485Port.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RS485Port.java; path = ../../src/RS485Port.java; sourceTree = SOURCE_ROOT; }; 667EEE870179E22700A80101 /* RS485PortEvent.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RS485PortEvent.java; path = ../../src/RS485PortEvent.java; sourceTree = SOURCE_ROOT; }; 667EEE880179E22700A80101 /* RS485PortEventListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RS485PortEventListener.java; path = ../../src/RS485PortEventListener.java; sourceTree = SOURCE_ROOT; }; 667EEE890179E22700A80101 /* SerialPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = SerialPort.java; path = ../../src/SerialPort.java; sourceTree = SOURCE_ROOT; }; 667EEE8A0179E22700A80101 /* SerialPortEvent.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = SerialPortEvent.java; path = ../../src/SerialPortEvent.java; sourceTree = SOURCE_ROOT; }; 667EEE8B0179E22700A80101 /* SerialPortEventListener.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = SerialPortEventListener.java; path = ../../src/SerialPortEventListener.java; sourceTree = SOURCE_ROOT; }; 667EEE8C0179E22700A80101 /* UnsupportedCommOperationException.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = UnsupportedCommOperationException.java; path = ../../src/UnsupportedCommOperationException.java; sourceTree = SOURCE_ROOT; }; 66BFC583017A2D9000A80101 /* fuserImp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = fuserImp.c; path = ../../src/fuserImp.c; sourceTree = SOURCE_ROOT; }; 66BFC58B017A2DF100A80101 /* gnu_io_CommPortIdentifier.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_CommPortIdentifier.h; path = Headers/gnu_io_CommPortIdentifier.h; sourceTree = ""; }; 66BFC596017A2F3100A80101 /* ParallelImp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ParallelImp.c; path = ../../src/ParallelImp.c; sourceTree = SOURCE_ROOT; }; 66BFC599017A2F5400A80101 /* gnu_io_LPRPort.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_LPRPort.h; path = Headers/gnu_io_LPRPort.h; sourceTree = ""; }; 66BFC5AC017A356E00A80101 /* gnu_io_I2C.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_I2C.h; path = Headers/gnu_io_I2C.h; sourceTree = ""; }; 66BFC5AF017A35AF00A80101 /* I2CImp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = I2CImp.c; path = ../../src/I2CImp.c; sourceTree = SOURCE_ROOT; }; 66BFC5C0017A368A00A80101 /* RS485Imp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = RS485Imp.c; path = ../../src/RS485Imp.c; sourceTree = SOURCE_ROOT; }; 66BFC5C2017A36A500A80101 /* gnu_io_RS485.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_RS485.h; path = Headers/gnu_io_RS485.h; sourceTree = ""; }; F5098B2602B43E52011E1076 /* RXTXcomm.jar */ = {isa = PBXFileReference; explicitFileType = archive.jar; includeInIndex = 0; path = RXTXcomm.jar; sourceTree = BUILT_PRODUCTS_DIR; }; F516EA0A016690CA01000107 /* gnu_io_RXTXPort.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_RXTXPort.h; path = Headers/gnu_io_RXTXPort.h; sourceTree = ""; }; F516EA0B016690CA01000107 /* gnu_io_RXTXCommDriver.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gnu_io_RXTXCommDriver.h; path = Headers/gnu_io_RXTXCommDriver.h; sourceTree = ""; }; F516EA130166918B01000107 /* config.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = ""; }; F516EA17016694DF01000107 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; F516EA19016694EF01000107 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; F516EA1B0166951701000107 /* System.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = System.framework; path = /System/Library/Frameworks/System.framework; sourceTree = ""; }; F516EA1C0166951701000107 /* JavaVM.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaVM.framework; path = /System/Library/Frameworks/JavaVM.framework; sourceTree = ""; }; F5F7F6D0016E407A0113EAB9 /* LPRPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = LPRPort.java; path = ../../src/LPRPort.java; sourceTree = SOURCE_ROOT; }; F5F7F6D1016E407A0113EAB9 /* RXTXCommDriver.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RXTXCommDriver.java; path = ../../src/RXTXCommDriver.java; sourceTree = SOURCE_ROOT; }; F5F7F6D2016E407A0113EAB9 /* RXTXPort.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RXTXPort.java; path = ../../src/RXTXPort.java; sourceTree = SOURCE_ROOT; }; F5F7F6D3016E407A0113EAB9 /* RXTXVersion.java */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.java; name = RXTXVersion.java; path = ../../src/RXTXVersion.java; sourceTree = SOURCE_ROOT; }; F5F7F6D8016E40A60113EAB9 /* SerialImp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = SerialImp.c; path = ../../src/SerialImp.c; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 328404E005949D8800D94A3F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; comments = "Creates the dynamic library."; files = ( 328404E105949D8800D94A3F /* CoreFoundation.framework in Frameworks */, 328404E205949D8800D94A3F /* IOKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; AA74AA8D0A37130E009445FE /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; comments = "This build phase is required for a successful build. Why? No idea. If you know why, change this comment."; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ F591A547016636D601000107 = { isa = PBXGroup; children = ( F591A548016636D601000107 /* jnilib */, F591A54E016636D601000107 /* java */, F591A558016636D601000107 /* Products */, F516EA17016694DF01000107 /* CoreFoundation.framework */, F516EA19016694EF01000107 /* IOKit.framework */, F516EA1B0166951701000107 /* System.framework */, F516EA1C0166951701000107 /* JavaVM.framework */, ); sourceTree = ""; }; F591A548016636D601000107 /* jnilib */ = { isa = PBXGroup; children = ( F516EA130166918B01000107 /* config.h */, F516EA0A016690CA01000107 /* gnu_io_RXTXPort.h */, F516EA0B016690CA01000107 /* gnu_io_RXTXCommDriver.h */, 66BFC58B017A2DF100A80101 /* gnu_io_CommPortIdentifier.h */, F5F7F6D8016E40A60113EAB9 /* SerialImp.c */, 66BFC596017A2F3100A80101 /* ParallelImp.c */, 66BFC5AF017A35AF00A80101 /* I2CImp.c */, 66BFC5C0017A368A00A80101 /* RS485Imp.c */, 66BFC599017A2F5400A80101 /* gnu_io_LPRPort.h */, 66BFC5AC017A356E00A80101 /* gnu_io_I2C.h */, 66BFC5C2017A36A500A80101 /* gnu_io_RS485.h */, 66BFC583017A2D9000A80101 /* fuserImp.c */, ); name = jnilib; sourceTree = SOURCE_ROOT; }; F591A54E016636D601000107 /* java */ = { isa = PBXGroup; children = ( F591A54F016636D601000107 /* System Classes */, F591A553016636D601000107 /* PB */, ); name = java; sourceTree = ""; }; F591A54F016636D601000107 /* System Classes */ = { isa = PBXGroup; children = ( ); name = "System Classes"; sourceTree = ""; }; F591A553016636D601000107 /* PB */ = { isa = PBXGroup; children = ( F5F7F6D0016E407A0113EAB9 /* LPRPort.java */, F5F7F6D1016E407A0113EAB9 /* RXTXCommDriver.java */, F5F7F6D2016E407A0113EAB9 /* RXTXPort.java */, 327084F5072C838F000D953F /* Configure.java */, F5F7F6D3016E407A0113EAB9 /* RXTXVersion.java */, 667DAC870179E0EB00A80101 /* CommPortOwnershipListener.java */, 667DAC860179E0EB00A80101 /* CommPortIdentifier.java */, 667DAC850179E0EB00A80101 /* CommPortEnumerator.java */, 667DAC840179E0EB00A80101 /* CommPort.java */, 667DAC830179E0EB00A80101 /* CommDriver.java */, 667DAC920179E15A00A80101 /* I2C.java */, 667DAC930179E15A00A80101 /* I2CPort.java */, 667DAC950179E15A00A80101 /* I2CPortEventListener.java */, 667DAC940179E15A00A80101 /* I2CPortEvent.java */, 667DAC9A0179E15A00A80101 /* PortInUseException.java */, 667DAC990179E15A00A80101 /* ParallelPortEventListener.java */, 667DAC960179E15A00A80101 /* NoSuchPortException.java */, 667DAC980179E15A00A80101 /* ParallelPortEvent.java */, 667DAC970179E15A00A80101 /* ParallelPort.java */, 667EEE850179E22700A80101 /* RS485.java */, 667EEE840179E22700A80101 /* RawPortEventListener.java */, 667EEE830179E22700A80101 /* RawPortEvent.java */, 667EEE820179E22700A80101 /* RawPort.java */, 667EEE810179E22700A80101 /* Raw.java */, 667EEE8C0179E22700A80101 /* UnsupportedCommOperationException.java */, 667EEE8B0179E22700A80101 /* SerialPortEventListener.java */, 667EEE8A0179E22700A80101 /* SerialPortEvent.java */, 667EEE890179E22700A80101 /* SerialPort.java */, 667EEE880179E22700A80101 /* RS485PortEventListener.java */, 667EEE870179E22700A80101 /* RS485PortEvent.java */, 667EEE860179E22700A80101 /* RS485Port.java */, 329246200458958F0013EAC7 /* UnSupportedLoggerException.java */, 32924622045895A00013EAC7 /* Zystem.java */, ); name = PB; sourceTree = ""; }; F591A558016636D601000107 /* Products */ = { isa = PBXGroup; children = ( F5098B2602B43E52011E1076 /* RXTXcomm.jar */, 328404E605949D8800D94A3F /* librxtxSerial.jnilib */, ); name = Products; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ 328404D805949D8800D94A3F /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; comments = "Copies C headers generated with javah (while building the RXTXComm target) into the source directory.\nCopies the compile configuration file config.h form the project directory."; files = ( 328404DB05949D8800D94A3F /* config.h in Headers */, 328404D905949D8800D94A3F /* gnu_io_RXTXPort.h in Headers */, 328404DA05949D8800D94A3F /* gnu_io_RXTXCommDriver.h in Headers */, 328404DC05949D8800D94A3F /* gnu_io_CommPortIdentifier.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXLibraryTarget section */ F5712CD601667A1F01000107 /* RXTXcomm */ = { isa = PBXLibraryTarget; buildConfigurationList = 32335511098BFDFB0043AD75 /* Build configuration list for PBXLibraryTarget "RXTXcomm" */; buildPhases = ( F5712CD701667A1F01000107 /* Sources */, AA74AA8D0A37130E009445FE /* Frameworks */, F5712CF8016688EE01000107 /* ShellScript */, ); comments = "Compiles the Java sources.\nCreates the RXTXComm.jar.\nExtracts the C headers for the native library."; dependencies = ( ); name = RXTXcomm; productName = java; productReference = F5098B2602B43E52011E1076 /* RXTXcomm.jar */; }; /* End PBXLibraryTarget section */ /* Begin PBXNativeTarget section */ 328404D605949D8800D94A3F /* librxtxSerial.jnilib */ = { isa = PBXNativeTarget; buildConfigurationList = 32335525098BFDFB0043AD75 /* Build configuration list for PBXNativeTarget "librxtxSerial.jnilib" */; buildPhases = ( 328404D805949D8800D94A3F /* Headers */, 328404DD05949D8800D94A3F /* Sources */, 328404E005949D8800D94A3F /* Frameworks */, ); buildRules = ( ); dependencies = ( 328404D705949D8800D94A3F /* PBXTargetDependency */, ); name = librxtxSerial.jnilib; productName = libSerial.jnilib; productReference = 328404E605949D8800D94A3F /* librxtxSerial.jnilib */; productType = "com.apple.product-type.library.dynamic"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ F591A546016636D601000107 /* Project object */ = { isa = PBXProject; buildConfigurationList = 32335531098BFDFB0043AD75 /* Build configuration list for PBXProject "LibSerialUniversal" */; hasScannedForEncodings = 1; mainGroup = F591A547016636D601000107; productRefGroup = F591A558016636D601000107 /* Products */; projectDirPath = ""; targets = ( F5712CD601667A1F01000107 /* RXTXcomm */, 328404D605949D8800D94A3F /* librxtxSerial.jnilib */, ); }; /* End PBXProject section */ /* Begin PBXShellScriptBuildPhase section */ F5712CF8016688EE01000107 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; comments = "Extracts header files (ie method declarations) for the java native interface library."; files = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; shellScript = "javah -jni -d Headers/ -classpath ${BUILT_PRODUCTS_DIR}/RXTXcomm.jar:${TEMP_FILES_DIR}/JavaClasses/ gnu.io.CommPortIdentifier gnu.io.I2C gnu.io.LPRPort gnu.io.Raw gnu.io.RS485 gnu.io.RXTXCommDriver gnu.io.RXTXPort\n"; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 328404DD05949D8800D94A3F /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; comments = "Compiles the native code."; files = ( 328404DE05949D8800D94A3F /* SerialImp.c in Sources */, 328404DF05949D8800D94A3F /* fuserImp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; F5712CD701667A1F01000107 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; comments = "Compiles the Java classes."; files = ( F5F7F6D4016E407A0113EAB9 /* LPRPort.java in Sources */, F5F7F6D5016E407A0113EAB9 /* RXTXCommDriver.java in Sources */, F5F7F6D6016E407A0113EAB9 /* RXTXPort.java in Sources */, F5F7F6D7016E407A0113EAB9 /* RXTXVersion.java in Sources */, 667DAC880179E0EB00A80101 /* CommDriver.java in Sources */, 667DAC890179E0EB00A80101 /* CommPort.java in Sources */, 667DAC8A0179E0EB00A80101 /* CommPortEnumerator.java in Sources */, 667DAC8B0179E0EB00A80101 /* CommPortIdentifier.java in Sources */, 667DAC8C0179E0EB00A80101 /* CommPortOwnershipListener.java in Sources */, 667DAC9B0179E15A00A80101 /* I2C.java in Sources */, 667DAC9C0179E15A00A80101 /* I2CPort.java in Sources */, 667DAC9D0179E15A00A80101 /* I2CPortEvent.java in Sources */, 667DAC9E0179E15A00A80101 /* I2CPortEventListener.java in Sources */, 667DAC9F0179E15A00A80101 /* NoSuchPortException.java in Sources */, 667DACA00179E15A00A80101 /* ParallelPort.java in Sources */, 667DACA10179E15A00A80101 /* ParallelPortEvent.java in Sources */, 667DACA20179E15A00A80101 /* ParallelPortEventListener.java in Sources */, 667DACA30179E15A00A80101 /* PortInUseException.java in Sources */, 667EEE8D0179E22700A80101 /* Raw.java in Sources */, 667EEE8E0179E22700A80101 /* RawPort.java in Sources */, 667EEE8F0179E22700A80101 /* RawPortEvent.java in Sources */, 667EEE900179E22700A80101 /* RawPortEventListener.java in Sources */, 667EEE910179E22700A80101 /* RS485.java in Sources */, 667EEE920179E22700A80101 /* RS485Port.java in Sources */, 667EEE930179E22700A80101 /* RS485PortEvent.java in Sources */, 667EEE940179E22700A80101 /* RS485PortEventListener.java in Sources */, 667EEE950179E22700A80101 /* SerialPort.java in Sources */, 667EEE960179E22700A80101 /* SerialPortEvent.java in Sources */, 667EEE970179E22700A80101 /* SerialPortEventListener.java in Sources */, 667EEE980179E22700A80101 /* UnsupportedCommOperationException.java in Sources */, 329246210458958F0013EAC7 /* UnSupportedLoggerException.java in Sources */, 32924623045895A00013EAC7 /* Zystem.java in Sources */, 327084F6072C838F000D953F /* Configure.java in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 328404D705949D8800D94A3F /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = F5712CD601667A1F01000107 /* RXTXcomm */; targetProxy = 32B1FC7C058FBCBE002A9264 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ 32335512098BFDFB0043AD75 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { COPY_PHASE_STRIP = NO; DEBUGGING_SYMBOLS = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; JAVA_ARCHIVE_COMPRESSION = YES; JAVA_ARCHIVE_TYPE = JAR; JAVA_COMPILER = /usr/bin/javac; JAVA_COMPILER_DEBUGGING_SYMBOLS = NO; JAVA_COMPILER_SOURCE_VERSION = 1.3; JAVA_COMPILER_TARGET_VM_VERSION = 1.1; JAVA_SOURCE_SUBDIR = .; LIBRARY_STYLE = STATIC; OTHER_CFLAGS = ""; OTHER_LDFLAGS = ""; OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; PRODUCT_NAME = RXTXcomm; PURE_JAVA = YES; REZ_EXECUTABLE = YES; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", "-Wno-unknown-pragmas", ); ZERO_LINK = YES; }; name = Default; }; 32335526098BFDFB0043AD75 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { DYLIB_COMPATIBILITY_VERSION = "$(DYLIB_COMPATIBILITY_VERSION)"; DYLIB_CURRENT_VERSION = "$(DYLIB_CURRENT_VERSION)"; EXECUTABLE_EXTENSION = jnilib; EXECUTABLE_PREFIX = lib; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; MACH_O_TYPE = mh_dylib; OTHER_LDFLAGS = ( "-framework", Carbon, ); PRODUCT_NAME = rxtxSerial; REZ_EXECUTABLE = YES; }; name = Default; }; 32335532098BFDFB0043AD75 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { ARCHS = ( ppc, i386, ); GCC_MODEL_TUNING = G3; GCC_OPTIMIZATION_LEVEL = 0; GCC_VERSION_i386 = 4.0; GCC_VERSION_ppc = 3.3; HEADER_SEARCH_PATHS = /System/Library/Frameworks/JavaVM.framework/Headers; MACOSX_DEPLOYMENT_TARGET_i386 = 10.4; MACOSX_DEPLOYMENT_TARGET_ppc = 10.2; SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk; SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", "-Wno-unknown-pragmas", ); }; name = Default; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 32335511098BFDFB0043AD75 /* Build configuration list for PBXLibraryTarget "RXTXcomm" */ = { isa = XCConfigurationList; buildConfigurations = ( 32335512098BFDFB0043AD75 /* Default */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Default; }; 32335525098BFDFB0043AD75 /* Build configuration list for PBXNativeTarget "librxtxSerial.jnilib" */ = { isa = XCConfigurationList; buildConfigurations = ( 32335526098BFDFB0043AD75 /* Default */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Default; }; 32335531098BFDFB0043AD75 /* Build configuration list for PBXProject "LibSerialUniversal" */ = { isa = XCConfigurationList; buildConfigurations = ( 32335532098BFDFB0043AD75 /* Default */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Default; }; /* End XCConfigurationList section */ }; rootObject = F591A546016636D601000107 /* Project object */; } ./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/0000755000175000017500000000000011126534455024117 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/Template0000644000175000017500000000000011126534455025603 0ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/Tag0000644000175000017500000000001711126534455024553 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/Root0000644000175000017500000000007511126534455024767 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/Entries0000644000175000017500000000020411126534455025447 0ustar twernertwerner/.cvsignore/1.1.2.1/Mon Jun 5 15:16:13 2006//Tcommapi-0-0-1 /project.pbxproj/1.1.2.3/Wed Jun 7 14:37:41 2006/-kb/Tcommapi-0-0-1 D ./rxtx-2.2pre2/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj/CVS/Repository0000644000175000017500000000007111126534455026217 0ustar twernertwernerrxtx-devel/MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj ./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/0000755000175000017500000000000011126534475016366 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/Template0000644000175000017500000000000011126534455020050 0ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/Tag0000644000175000017500000000001711126534455017020 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/Root0000644000175000017500000000007511126534455017234 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/Entries0000644000175000017500000000023311126534475017720 0ustar twernertwerner/.cvsignore/1.1.2.1/Mon Jun 5 15:16:13 2006//Tcommapi-0-0-1 /config.h/1.1.2.1/Mon Jun 5 15:16:13 2006//Tcommapi-0-0-1 D/LibSerialUniversal.xcodeproj//// ./rxtx-2.2pre2/MACOSX_IDE/XCode/CVS/Repository0000644000175000017500000000003411126534455020463 0ustar twernertwernerrxtx-devel/MACOSX_IDE/XCode ./rxtx-2.2pre2/MACOSX_IDE/CVS/0000755000175000017500000000000011126534475015364 5ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/CVS/Template0000644000175000017500000000000011126534455017046 0ustar twernertwerner./rxtx-2.2pre2/MACOSX_IDE/CVS/Tag0000644000175000017500000000001711126534455016016 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/MACOSX_IDE/CVS/Root0000644000175000017500000000007511126534455016232 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/MACOSX_IDE/CVS/Entries0000644000175000017500000000011111126534475016711 0ustar twernertwerner/.cvsignore/1.1.2.1/Mon Jun 5 15:22:58 2006//Tcommapi-0-0-1 D/XCode//// ./rxtx-2.2pre2/MACOSX_IDE/CVS/Repository0000644000175000017500000000002611126534455017462 0ustar twernertwernerrxtx-devel/MACOSX_IDE ./rxtx-2.2pre2/SerialPortInstructions.txt0000644000175000017500000001176707231676451020547 0ustar twernertwernerThu Jan 18 15:59:35 MST 2001 removed jcl references for rxtx 1.5 Trent. The Following was contributed by Vaibhav Andleigh andleigh@mit.edu in hopes that it will make getting started easier for people new to commAPI. Feel free to contribute additional information in the same spirit. Hi Trent, I recently installed javax.comm and RxTx on a few systems and had to write a very detailed HOWTO on read/writing to your com ports on linux for beginners. BTW, RxTx is a great tool! In any case, I've included the HOWTO with this email for the reference of other users. Feel free to post it. ------------------------ SerialPortInstructions.txt To get serial port stuff running: Serial Connection without Java First, let's setup the serial connection without java and test it. Connect your computer to another computer/device via a null modem serial cable. Be sure the other computer/device has software (i.e., minicom) to receive the signal. For the purpose of these instructions, I'll assume you have a computer at each end, and will use minicom to perform the connection testing. In the case of minicom (on the receiving machine), you'll probably have to run it as root (since the serial port is owned by root for security purposes). It's not a good idea to change these permissions. If this is the first time minicom is being run, you'll have to configure it first. To do this, ssh to root (not su, anywhere in these instructions) and type 'minicom -s' without the quotes. Arrow to option 3 and change the serial configuration device to '/dev/ttyS0' without the quotes. Exit minicom. Then go and run minicom by typing 'minicom -m -c on' without the quotes. Assuming you're running minicom on both machines, run a quick test of the serial connection. Type Alt-Z (or whatever key-combo gives you help on special keys) and select "Local Echo"(E). Now type text on both minicom screens and see that the text is going back and forth. Java.comm and RxTx installation First install javax.comm api following Sun's instructions Be sure to follow the instructions about placing the comm.jar in the correct directories. You can ignore the details of the javax.comm.properties files since it'll be replaced by RxTx anyways. Then install rxtx-1.4-4 following instructions given in their install page. They have a really useful bit of info in the INSTALL file talking about where the comm.jar, javax.comm.properties files(and its contents) are supposed to go (and what other files (libSerial.so and libParallel.so)should have been created and where). Verify this happened properly. Assuming you're using jdk-1.2, you can ignore the CLASSPATH stuff in their extra directions. If you still have problems, they have a really useful COMMON PROBLEMS section further down in the INSTALL file. Running Trial Applications We'll test two apps: BlackBox and the Simple demos. These are included in your .../java/commapi/samples directory. Go to .../java/commapi/samples/BlackBox/ and type javac *.java to compile all the classes. Then create a run shell script as follows (substitute your own relative java location if necessary): runBlackBox.sh #!/bin/sh /usr/local/java/bin/java -classpath ./:/usrlocal/java/jre/lib/ext/comm.jar:/usr/local/java/samples/BlackBox/BlackBox.jar BlackBox Run this script as ROOT using ssh, not su! [or make sure permissions for the device files allow the user/group to read them. See also: lockfiles in INSTALL] It should put up a screen with a GUI of everything going on for each of your serial ports. At the top of the screen, you can set the baud rate. Unless you changed the settings on minicom, it should be expecting 38400 so select that. Go ahead and type in the first left text window and you should see the text appear in the receiving minicom window. If you choose to run the apps labeled as "Simple", go to the .../java/commapi/samples/Simple/ directory and edit the SimpleWrite.java and SimpleRead.java files. Convert the /dev/tty/a to /dev/ttyS0 in both files. Compile both files using javac *.java . Use a run script very similar to that above (deleting the path reference to BlackBox.jar and replacing BlackBox with SimpleRead/SimpleWrite as appropriate). Set up minicom on the other machine and go ahead and run the script. It should all work. I've attached the run scripts I used for both programs below: runSimpleRead.sh #!/bin/sh /usr/local/java/bin/java -classpath ./:/usrlocal/java/jre/lib/ext/comm.jar SimpleRead runSimpleWrite.sh #!/bin/sh /usr/local/java/bin/java -classpath ./:/usrlocal/java/jre/lib/ext/comm.jar SimpleWrite ********************************************** Vaibhav Andleigh andleigh@mit.edu http://utopia1.mit.edu/vab/ ------------------------------------------------------ Ph.D. Student, Dept. Mat. Sci. & Engr MIT Room 13-5142 Ph: 617-258-8847 Cambridge, MA Fax: 530-348-8219 ********************************************** "Every man dies, not every man really lives." --William Wallace, Braveheart ./rxtx-2.2pre2/autogen.sh0000755000175000017500000000525707524037621015266 0ustar twernertwerner#!/bin/sh # Run this to generate all the initial makefiles, etc. # Taken from the GNOME package http://www.gnome.org srcdir=. PKG_NAME="rxtx library" DIE=0 (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have "\`autoconf\'" installed to compile rxtx." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 } # avoid libtool on Mac OS X codename Darwin Dmitry if test `uname` != "Darwin"; then (libtool --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have "\`libtool\'" installed to compile rxtx." echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz" echo "(or a newer version if it is available)" DIE=1 } fi (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have "\`automake\'" installed to compile rxtx." echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" echo "(or a newer version if it is available)" DIE=1 NO_AUTOMAKE=yes } # if no automake, don't bother testing for aclocal test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: Missing "\`aclocal\'". The version of "\`automake\' echo "installed doesn't appear recent enough." echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" echo "(or a newer version if it is available)" DIE=1 } if test "$DIE" -eq 1; then exit 1 fi #if test -z "$*"; then # echo "**Warning**: I am going to run "\`configure\'" with no arguments." # echo "If you wish to pass any to it, please specify them on the" # echo \`$0\'" command line." # echo #fi for j in `find $srcdir -name configure.in -print` do i=`dirname $j` if test -f $i/NO-AUTO-GEN; then echo skipping $i -- flagged as no auto-gen else macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $j` echo processing $i ## debug test -n "$macrodirs" && echo \`aclocal\' will also look in \`$macrodirs\' (cd $i; \ aclocalinclude="$ACLOCAL_FLAGS"; \ for k in $macrodirs; do \ if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \ else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \ done; \ libtoolize --copy --force; \ aclocal $aclocalinclude; \ autoheader; automake --add-missing --gnu; autoheader; autoconf) fi done #if test x$NOCONFIGURE = x; then #echo running $srcdir/configure --enable-maintainer-mode "$@" #$srcdir/configure --enable-maintainer-mode "$@" \ #&& echo Now type \`make\' to compile the $PKG_NAME #else #echo Skipping configure process. #fi ./rxtx-2.2pre2/missing0000755000175000017500000002403607527737343014673 0ustar twernertwerner#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.4 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. You can get \`$1Help2man' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 ./rxtx-2.2pre2/configure.in0000644000175000017500000006576411126554325015605 0ustar twernertwerner########################################################################### # RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. # RXTX is a native interface to serial ports in java. # Copyright 1997-2008 by Trent Jarvi tjarvi@qbang.org and others who # actually wrote it. See individual source files for more information. # # A copy of the LGPL v 2.1 may be found at # http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is # here for your convenience. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # An executable that contains no derivative of any portion of RXTX, but # is designed to work with RXTX by being dynamically linked with it, # is considered a "work that uses the Library" subject to the terms and # conditions of the GNU Lesser General Public License. # # The following has been added to the RXTX License to remove # any confusion about linking to RXTX. We want to allow in part what # section 5, paragraph 2 of the LGPL does not permit in the special # case of linking over a controlled interface. The intent is to add a # Java Specification Request or standards body defined interface in the # future as another exception but one is not currently available. # # http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface # # As a special exception, the copyright holders of RXTX give you # permission to link RXTX with independent modules that communicate with # RXTX solely through the Sun Microsytems CommAPI interface version 2, # regardless of the license terms of these independent modules, and to copy # and distribute the resulting combined work under terms of your choice, # provided that every copy of the combined work is accompanied by a complete # copy of the source code of RXTX (the version of RXTX used to produce the # combined work), being distributed under the terms of the GNU Lesser General # Public License plus this exception. An independent module is a # module which is not derived from or based on RXTX. # # Note that people who make modified versions of RXTX are not obligated # to grant this special exception for their modified versions; it is # their choice whether to do so. The GNU Lesser General Public License # gives permission to release a modified version without this exception; this # exception also makes it possible to release a modified version which # carries forward this exception. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # All trademarks belong to their respective owners. ############################################################################ AC_INIT(src/SerialImp.c) AM_CONFIG_HEADER(config.h) AC_CANONICAL_SYSTEM AC_MSG_WARN(Trying libtool. If the following fails install libtool) AC_PROG_CC # Comment these two lines out when compiling on SCO AC_DISABLE_STATIC AM_PROG_LIBTOOL # end of SCO fixes AM_INIT_AUTOMAKE(Serial,2.2pre1) AC_CHECK_HEADERS(fcntl.h) AC_CHECK_HEADERS(sys/fcntl.h) AC_CHECK_HEADERS(sys/file.h) AC_CHECK_HEADERS(sys/time.h) AC_CHECK_HEADERS(sys/signal.h) AC_CHECK_HEADERS(signal.h) AC_CHECK_HEADERS(termios.h) AC_CHECK_HEADERS(grp.h) AC_CHECK_HEADERS(pwd.h) AC_PROG_GCC_TRADITIONAL AC_SUBST(WINDOWS_JAVA_INCLUDE) AC_SUBST(JAVAINCLUDEDIR) AC_SUBST(JAVAINCLUDE) AC_SUBST(JAVANATINC) AC_SUBST(CLASSPATH) AC_SUBST(TOP) AC_SUBST(TARGETLIB) AC_SUBST(LDFLAG) AC_SUBST(CFLAGS) AC_SUBST(THREAD_FLAG) AC_SUBST(OS_NAME) AC_SUBST(OS_ARCH) AC_SUBST(OS_VERSION) AC_SUBST(JAVA_VERSION) AC_SUBST(JAVA_VENDOR) AC_SUBST(JAVA_HOME) AC_SUBST(JAVA_LIBRARY_PATH) AC_SUBST(JAVA_CLASS_PATH) AC_SUBST(JAVA_CLASS_VERSION) AC_SUBST(JAVAH_FIX) AC_SUBST(JPATH) AC_SUBST(JHOME) AC_SUBST(RXTX_PATH) AC_SUBST(JAVAH) AC_SUBST(JAVAC) AC_SUBST(JAR) AC_SUBST(JAVADOC) AC_SUBST(EXTENSION) AC_SUBST(LIBTOOL_FIX) AC_SUBST(LDFLAGS) AC_SUBST(LINK) AC_SUBST(COMPILE) AC_SUBST(OBJECT_EXTENSION) AC_SUBST(LIB_EXTENSION) AC_SUBST(GLIBTOOL) # ftsoy AM_MAINTAINER_MODE JHOME= RXTX_PATH= EXTENSION="c" OBJECT_EXTENSION="lo" LIB_EXTENSION="la" COMPILE="cc " TOP="`pwd`" GLIBTOOL="\$(SHELL) \$(TOP)/libtool" LINK="\$(GLIBTOOL) --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)" [case "$host_os" in *-gnu) CFLAGS=$CFLAGS" -D_POSIX_SOURCE";; *);; esac] AC_ARG_ENABLE(PRINTER, [ --enable-PRINTER PRINTER support (experimental) [default=yes]], echo $enable_PRINTER, enable_PRINTER="yes" ) if test x$enable_PRINTER = xyes; then TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la \ \$(target_triplet)/librxtxI2C.la \ \$(target_triplet)/librxtxRaw.la \ \$(target_triplet)/librxtxRS485.la" else TARGETLIB="\$(target_triplet)/librxtxSerial.la" fi AC_ARG_ENABLE(lockfiles, [ --disable-lockfiles disable lock files (experimental) [default=no]], if test x$lockfiles = xyes; then echo "Using lock files" else echo "Disabling lock files" CFLAGS=$CFLAGS" -DDISABLE_LOCKFILES" fi ) AC_ARG_ENABLE(liblock, [ --enable-liblock[=x] enable liblock [default=no]], if test "x$liblock" != "xno"; then echo "Using liblock" CFLAGS=$CFLAGS" -DLIBLOCKDEV" LDFLAGS=$LDFLAGS" -llockdev" else echo $liblock echo "Disabling liblock" fi ) AC_ARG_ENABLE(lockfile_server, [ --enable-lockfile_server Enable interaction with a lock file server [default=no]], if test x$enable_lockfile_server = xyes; then CFLAGS=$CFLAGS" -DLFS" fi ) AC_ARG_ENABLE(DEBUG, [ --enable-DEBUG Print debugging info from SerialImp.c [default=no]], if test x$enable_DEBUG = xyes; then CFLAGS=$CFLAGS" -DDEBUG" fi ) AC_ARG_ENABLE(universallib, [ --disable-universallib Disable building of universal libraries (MacOS X) [default=no]], if test x$universallib = xyes; then echo "Disabling universal lib" fi ) AC_PATH_PROG(XCODE_SELECT,xcode-select,no) find_java_native_include() { JAVANATINC="-I\$(JAVAINCLUDEDIR)/`cd $JAVAINCLUDEDIR; find . -name $1|sed s#$1##|head -n1`" if [ test `cd $JAVAINCLUDEDIR; find . -name $1|wc -l` != "1" ]; then echo 1>&2 echo WARNING: configure is having a hard time determining which 1>&2 echo directory contains the file $1. Edit Makefile and fix the 1>&2 echo variable JAVANATINC to point to the correct directory. 1>&2 echo 1>&2 echo The following options are available: 1>&2 find $JAVAINCLUDEDIR -name $1|sed s#jni_md\.h## 1>&2 echo 1>&2 echo If there are more than one option available the first was selected. 1>&2 echo 1>&2 fi } build_conftest() { cat > conftest.java << EOF /* this may be usefull for getting around java cobwebs during build */ public class conftest { public static void main(String[[]] args) { System.out.println(System.getProperty(args[[0]])); } } EOF CLASSPATH=.:$CLASSPATH if test x$JAVA_HOME = x; then javac -classpath .:$CLASSPATH: conftest.java else $JAVA_HOME/bin/javac -classpath .:$CLASSPATH: conftest.java fi } run_conftest() { echo $ECHO_N checking $1 " " 1>&6 if test x$JPATH = x; then VAR=`java -classpath .:$CLASSPATH: conftest $1` else VAR=`$JPATH/bin/java -classpath .:$CLASSPATH: conftest $1` fi echo $VAR 1>&6 echo $VAR return } build_conftest if test x$JAVA_HOME = x; then JPATH=`run_conftest java.home| sed s#\/jre\\$##g` else JPATH=$JAVA_HOME echo $JAVA_HOME AC_MSG_WARN(using JAVA_HOME environmental variable) fi if test x$JPATH = x; then AC_MSG_ERROR([Make sure java is in your path before running configure]) fi echo adjusted java.home is $JPATH if test "$target_alias" = i386-mingw32 ;then OS_NAME=WIN32 else OS_NAME=`run_conftest os.name` fi OS_ARCH=`run_conftest os.arch` #JAVA_CLASS_PATH=`run_conftest java.class.path` #JAVA_LIBRARY_PATH=`run_conftest java.library.path` JAVA_VENDOR=`run_conftest java.vendor` JAVA_VERSION=`run_conftest java.version` rm -f conftest.java rm -f conftest.class echo $ECHO_N checking os.version " " 1>&6 OS_VERSION=`uname -r` echo $OS_VERSION 1>&6 check_prefix() { if test $prefix != "/usr";then echo 1>&2 echo "WARNING: configure was not run with option --prefix=/usr" 1>&2 echo " Unless /usr/local/lib or the specified prefix is in" 1>&2 echo " the linkers path this will cause problems later on." 1>&2 echo 1>&2 fi } # an attempt to compile on libc5 linux machines check_java_headers() { cat > conftest.c << EOF #include #include #include int main(int argc, char *argv[]) { #if defined (__GLIBC__) printf("%i\n",__GLIBC__); #else printf("0\n"); #endif exit(0); } EOF cc conftest.c -o conftest if [ test `./conftest` -lt 2 ];then echo 1>&2 echo " WARNING: Older libc on linux detected. Patching a local copy of jni_md.h" 1>&2 echo 1>&2 ln -s `find $JAVAINCLUDEDIR -name jni.h` . cp `find $JAVAINCLUDEDIR -name typedefs_md.h` . # not pretty. could be cleaned up patch << EOF --- typedefs_md.h Tue Jan 11 14:17:08 2000 +++ typedefs_md.h.patchtaj Tue Jan 11 14:15:53 2000 @@ -17,9 +17,6 @@ */ /* sbb: Johan Vos, why isn't this #ifndef inside the solaris header guard? */ -#ifndef BITSPERCHAR -#define BITSPERCHAR 8 -#endif #ifndef _SOLARIS_TYPES_MD_H_ #define _SOLARIS_TYPES_MD_H_ @@ -28,50 +25,19 @@ #include #include "bool.h" -#if defined(__alpha__) -typedef unsigned long ptr_int; -#define PTR_IS_64 1 -#define LONG_IS_64 1 -#else typedef unsigned int ptr_int; #define PTR_IS_32 1 -#endif /* don't redefine typedef's on Solaris 2.6 or Later */ -#if !defined(_ILP32) && !defined(_LP64) - -#ifndef _UINT64_T -#define _UINT64_T -#ifdef LONG_IS_64 -typedef unsigned long uint64_t; -#else typedef unsigned long long uint64_t; -#endif -#define _UINT32_T typedef unsigned int uint32_t; -#if defined(__linux__) typedef unsigned int uint_t; -#endif -#endif -#ifndef __BIT_TYPES_DEFINED__ -#ifdef (__i386__) -/* that should get Linux, at least */ #ifndef _INT64_T #define _INT64_T -#ifdef LONG_IS_64 -typedef long int64_t; -#else typedef long long int64_t; -#endif -#define _INT32_T -typedef int int32_t; -#if defined(__linux__) -typdef int int_t; -#endif -#endif -#endif /* i386 */ +typedef int int_t; #endif /* __BIT_TYPES_DEFINED__ */ #endif /* !defined(_ILP32) && !defined(_LP64) */ @@ -110,27 +76,15 @@ #endif -/* On Intel these conversions have to be method calls and not typecasts. - See the win32 typedefs_md.h file */ -#if ((defined(i386) || defined (__i386)) && defined(__solaris__)) || defined(__powerpc__) - -extern int32_t float2l(float f); -extern int32_t double2l(double d); -extern int64_t float2ll(float f); -extern int64_t double2ll(double d); - -#else /* not solaris x386 or linux powerpc*/ - #define float2l(f) (f) #define double2l(f) (f) #define float2ll(f) ((int64_t) (f)) #define double2ll(f) ((int64_t) (f)) -#endif /* i386 */ - #define ll2float(a) ((float) (a)) #define ll2double(a) ((double) (a)) +#define double2ll(f) ((int64_t) (f)) /* comparison operators */ #define ll_ltz(ll) ((ll)<0) @@ -148,13 +102,7 @@ extern void ll2str(int64_t a, char *s, char *limit); -#if defined(ppc) || defined(__ppc__) || defined(__alpha__) || defined(__sparc__) -#ifndef HAVE_ALIGNED_DOUBLES +#if defined(ppc) || defined(__ppc__) || defined(__alpha__) #define HAVE_ALIGNED_DOUBLES -#endif -#ifndef HAVE_ALIGNED_LONGLONGS #define HAVE_ALIGNED_LONGLONGS #endif -#endif - -#endif /* !_SOLARIS_TYPES_MD_H_ */ EOF fi rm -f conftest.c rm -f conftest } check_kernel_headers() { cat > conftest.c << EOF #include #include #include #include int main(int argc, char *argv[]) { printf(UTS_RELEASE"\n"); exit(0); } EOF cc conftest.c -o conftest if [ test `uname -r` != `./conftest` ];then echo 1>&2 echo " WARNING: Kernel include files do not match the current kernel" 1>&2 echo 1>&2 fi rm -f conftest.c rm -f conftest } #fix_mac_groups() #{ #this is what the Mac OS X installer does... untested # sudo mkdir /var/spool/uucp # sudo chmod 775 /var/spool/uucp # sudo niutil -destroyval / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'` # sudo niutil -appendprop / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'` #} fix_comm_jar() { if [ test -f $1 ];then echo "------------------------------------------------------" 1>&2 echo "WARNING: A comm.jar file is already installed" 1>&2 echo "make sure your CLASSPATH points to RXTXcomm.jar!" 1>&2 echo 1>&2 echo $1 echo 1>&2 echo "------------------------------------------------------" 1>&2 fi; } [ case $OS_NAME in Mac\ OS\ X) JAVAINCLUDEDIR=$JPATH/../../../Headers ;; *) JAVAINCLUDEDIR=$JPATH/include ;; esac ] JAVAINCLUDE="-I\$(JAVAINCLUDEDIR)" if test "$CC" = "gcc" || test "$CC"="egcs"; then case $JAVA_VENDOR in Tran*) find_java_native_include jni.h JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni" JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3" JAR="\$(JPATH)/bin/jar" JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)" CFLAGS=$CFLAGS" -D_BSD_SOURCE" JAVAINCLUDE="" JAVAH_FIX="if test ! -d \$(target_triplet);then mkdir \$(target_triplet);fi;" JHOME=$JPATH"/share/kaffe/" RXTX_PATH=$JPATH"/lib/kaffe/" ;; *) find_java_native_include jni_md.h JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni" JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3" JAR="\$(JPATH)/bin/jar" JAVADOC="\$(JPATH)/bin/javadoc" CFLAGS=$CFLAGS" -D_BSD_SOURCE" ;; esac fi if [ test -d $JPATH/share/kaffe/ ] then fix_comm_jar $JPATH/share/kaffe/comm.jar elif [ test -d $JPATH/jre/lib/ext ] then fix_comm_jar $JPATH/jre/lib/ext/comm.jar elif [ test -d $JPATH/lib/ext ] then fix_comm_jar $JPATH/lib/ext/comm.jar elif [ test -d $JPATH/lib ] then fix_comm_jar $JPATH/lib/comm.jar fi # http://www.tolstoy.com/samizdat/sysprops.html [ case $OS_NAME in Linux) LDFLAGS=$LDFLAGS" -lpthread" #check_kernel_headers check_java_headers CFLAGS=$CFLAGS" -D__need_timespec" case $JAVA_VERSION in 1.1*) CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \ if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp] elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp] fi`":"` if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name RXTXcomm.jar elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name RXTXcomm.jar fi` if test x"$RXTX_PATH" = x;then # We are not using Kaffe #fix_parameters $JPATH/lib/javax.comm.properties check_prefix RXTX_PATH="\$(prefix)/lib/" JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;"; else # Kaffe CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar` echo "Warning! Kaffe's comm.jar does not support rxtx" echo "See INSTALL for details" fi; if test x"$JHOME" = x;then JHOME=$JPATH/"lib" fi ;; *) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` JHOME=$JPATH"/jre/lib/ext" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ;; esac # Cross Compilers #echo ---------------------------- #echo $target_os #echo ---------------------------- case $target_os in linux*) ;; beos*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" EXTENSION="cpp" LDFLAGS=$LDFLAGS" -ldevice" #echo ---------------------------- #echo $target_os #echo ---------------------------- ;; freebsd*) ;; solaris*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" #echo ---------------------------- #echo $target_os #echo ---------------------------- ;; esac ;; *BSD) LDFLAGS=$LDFLAGS" -lc_r" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in 1.1*) check_prefix #fix_parameters $JPATH/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \ if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp] elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp] fi`":"` if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name RXTXcomm.jar elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name RXTXcomm.jar fi` if test x"$RXTX_PATH" = x;then # We are not using Kaffe #fix_parameters $JPATH/lib/javax.comm.properties check_prefix RXTX_PATH="\$(prefix)/lib/" JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;"; else # Kaffe CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar` echo "Warning! Kaffe's comm.jar does not support rxtx" echo "See INSTALL for details" fi; RXTX_PATH="\$(prefix)/lib" JHOME=$JPATH/"lib" ;; *) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"jre/lib/ext" ;; esac ;; Irix*) JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -I/usr/include" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(JPATH)/lib/\$(OS_ARCH)" TARGETLIB="\$(target_triplet)/librxtxSerial.la" ;; # since the os.name is different for UnixWare and OpenUNIX we could use it to # differentiate the lock files See SerialImp.h for comments on the lock files # in SCO. Currently that would be a build time fix though. # FIXME UnixWare|OpenUNIX) LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent" JHOME=$JPATH/"jre/lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1 -D__unixware__" CLASSPATH="-classpath .:\$(TOP):\$(TOP)/src:\$(JPATH)/jre/lib/rt.jar:\$(JPATH)/jre/lib/ext/comm.jar" TARGETLIB="\$(target_triplet)/librxtxSerial.so \ \$(target_triplet)/librxtxParallel.so" COMPILE="\$(CC) \$(INCLUDES) \$(CPPFLAGS) \$(CFLAGS) \$(VERBOSE_IOEXCEPTIONS) -c " LINK="\$(CC) \$(CFLAGS) \$(LDFLAGS)" echo "In UnixWare, CLASSPATH is $CLASSPATH" ;; HP-UX) LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent" CFLAGS=$CFLAGS" -g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" TARGETLIB="\$(target_triplet)/librxtxSerial.la" case $JAVA_VERSION in HP-UX\ Java\ C.01.2*|HP-UX\ Java\ C.01.3*) #fix_parameters $JPATH/jre/lib/javax.comm.properties JHOME=$JPATH"/jre/lib/ext" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/jre/lib/ext/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works. ;; HP-UX\ Java\ C.01.1*) #fix_parameters $JPATH/lib/javax.comm.properties JHOME=$JPATH/"lib" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" ;; *) #fix_parameters $JPATH/lib/javax.comm.properties JHOME=$JPATH"/lib" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works. ;; esac case $OS_ARCH in PA-RISC) ;; *) ;; esac case $OS_VERSION in B.10.20) ;; *) ;; esac case $JAVA_VENDOR in Hewlett\ Packard\ Co\.) ;; *) ;; esac ;; BeOS) echo WARNING: BeOS support is in RXTX-1.5 JHOME=$JPATH"/share/kaffe" RXTX_PATH="\$(JPATH)/lib/" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/../src:\$(JPATH)/share/kaffe/Klasses.jar:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" TARGETLIB="\$(target_triplet)/librxtxSerial.la" EXTENSION="cpp" LDFLAGS=$LDFLAGS" -ldevice" # sigh, from ltconfig # beos*) # if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then # allow_undefined_flag=unsupported # # Joseph Beckenbach says some releases of gcc # # support --undefined. This deserves some investigation. FIXME LIBTOOL_FIX="sed s/deplibs_check_method=\\\"unknown\\\"/deplibs_check_method=\\\"pass_all\\\"/1 libtool > libtool.tmp; sed s/allow_undefined_flag=\\\"unsupported\\\"/allow_undefined_flag=\\\"supported\\\"/1 libtool.tmp > libtool;rm libtool.tmp;" ;; WIN32) case $JAVA_VERSION in 1.1*) CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" JHOME=$JPATH/"lib" ;; *) CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH" JHOME=$JPATH"/jre/lib/ext" ;; esac if test x$WIN32INCLUDE = x; then echo "We need to know what directory the windows java include files" echo "are located in. Please enter the directory now." echo echo "example /home/jarvi/win32java/include" echo read REPLY WINDOWS_JAVA_INCLUDE="-I$REPLY -I$REPLY/win32" else WINDOWS_JAVA_INCLUDE="-I$WIN32INCLUDE -I$WIN32INCLUDE/win32" fi TARGETLIB="\$(target_triplet)/rxtxSerial.dll \$(target_triplet)/rxtxParallel.dll" echo "$WINDOWS_JAVA_INCLUDE" ;; Mac\ OS\ X) #fix_mac_groups #fix_parameters $JPATH/lib/javax.comm.properties if test $XCODE_SELECT = no; then SDKPATH="/Developer" else SDKPATH=`$XCODE_SELECT -print-path` fi SDK="$SDKPATH/SDKs/MacOSX10.4u.sdk" if test "x$enable_universallib" != xno; then if test -d "/Developer/SDKs/MacOSX10.5.sdk"; then echo "library os.arch... universal (i386 x86_64 ppc)" SDK="$SDKPATH/SDKs/MacOSX10.5.sdk" CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.5 -isysroot $SDK -arch i386 -arch x86_64 -arch ppc" LDFLAGS="$LDFLAGS -isysroot $SDK -arch i386 -arch x86_64 -arch ppc " else if test -d "/Developer/SDKs/MacOSX10.4u.sdk"; then echo "library os.arch... universal (i386 ppc)" CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.4 -isysroot $SDK -arch i386 -arch ppc" LDFLAGS="$LDFLAGS -isysroot $SDK -arch i386 -arch ppc " else echo "Warning: no universal SDK, will not build universal" echo "library os.arch... "${OS_ARCH} fi fi else echo "User disabled building of universal library" echo "library os.arch... "${OS_ARCH} fi GLIBTOOL="\$(SHELL) glibtool" LINK="cc $LDFLAGS -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " OBJECT_EXTENSION="o" LIB_EXTENSION="jnilib" TARGETLIB="\$(target_triplet)/librxtxSerial.jnilib" RXTX_PATH="/usr/lib/java" JHOME=$JPATH"/lib/ext" CFLAGS=$CFLAGS" -bundle" LDFLAGS=$LDFLAGS" -module -framework JavaVM -framework IOKit -framework CoreFoundation" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/ext/RXTXcomm.jar:$CLASSPATH" # email taj@www.linux.org.uk if you know a nicer fix. Needed anymore? # this fix was really old taj 6/05 # LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;" ;; Solaris*) + LDFLAGS=$LDFLAGS" -lpthread" TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" case $JAVA_VERSION in 1.1*) RXTX_PATH="\$(JPATH)/lib/" ;; *) RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ;; esac ;; OS*2) # Place marker only TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; AIX) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; Compaq\'s\ Digital\ Unix | OSF1 ) LDFLAGS=$LDFLAGS" -lpthread" TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; NetWare*) # Place marker only TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; MPE*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; #os.name reported "QNX" #java.vendor reported "IBM Corporation" #java.version reported "1.3.0 subset" # #Originally nothing was reported. javac is called j9c and java is called #j9 with the #j9 vm. I created symbolic links temporarily to get by that. Currently #I'm puking when #it tries to jar things up since j9 doesn't ship with a jar tool. #All right. Here is how things stand on porting 2.1 to QNX. (This is were #I stumble and fall) #I decided to try it without any mods initially. It made through #./configure fine except for #finding the java include dir. Since we are using j9, the include dir is #under bin. I set #JAVANATINC to point to it in Makefile and then ran make. J9 then puked #on the -O arg to javac, #so I removed it. Now it is puking on importing java.awt. What is the #best way to filter out/ #isolate the gui pieces since I won't be using them on qnx? QNX) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; *) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; esac ] AC_OUTPUT(Makefile) ################################ END ######################################## # Toys. Gota lovem. #echo $ECHO_N checking java.library.path " " #JAVA_LIBRARY_PATH=`java conftest "java.library.path"` #echo $JAVA_LIBRARY_PATH #echo $ECHO_N checking java.class.version " " #JAVA_CLASS_VERSION=`java conftest "java.class.version"` #echo $JAVA_CLASS_VERSION ./rxtx-2.2pre2/ltmain.sh0000644000175000017500000060015710410112437015070 0ustar twernertwerner# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.22 Debian 1.5.22-4" TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2005 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` fi ;; * ) compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: ./rxtx-2.2pre2/README.SCO0000644000175000017500000001667507453404757014607 0ustar twernertwernerThis is README.SCO Last Modified Thu Oct 18 13:58:28 MDT 2001 UnixWare and OpenUNIX related Documentation This document is the release notes From Caldera before the merge see notes. Java Communications API Implementation for Caldera UNIX Operating Systems Version 2.0 Beta-3 October 2, 2001 ------------------------------------------------------------------------------- notes: This was Version 2.0 Beta-3 notes. The work is being merged into the rxtx CVS. Some minor changes will happen and will be noted here. Thanks to Jonathan Schilling and Caldera for the SCO port! 1) RXTX does not ship with Sun's comm.jar. It can be obtained from Sun. 2) The Lockfile could use some work. It possible to fix it at compile time but a run time solution would allow. The current behavior is to use FHS locks. This should be the same behavior as rxtx-1.4-8 as used in the original SCO port. 3) in configure.in you will want to comment out 2 lines and run autoconf in the top rxtx directory before building. The lines are: # Comment these two lines out when compiling on SCO AC_DISABLE_STATIC AM_PROG_LIBTOOL # end of SCO fixes ------------------------------------------------------------------------------- These are the Release Notes for the beta release of an implementation of the Java Communications API (also known as javax.comm) for Caldera UNIX operating systems. The Java Communications API is described at http://java.sun.com/products/javacomm/index.html. This implementation is available for the following Caldera UNIX operating systems: Open UNIX 8.00 UnixWare 7.1.1 OpenServer 5.0.6 with rs506a supplement A prerequisite is that Java 2 Standard Edition v. 1.3.0 for Caldera UNIX Operating Systems must already have been installed (including any packages or ptfs required by J2SE 1.3.0). This requirement may be met by either the J2SE SDK (package java2sdk3) or the J2SE Runtime Environment (package java2jre3). While J2SE 1.3.0 for OpenServer does not require the rs506a release supplement be installed, this javax.comm implementation does. This implementation is a port of the open source RXTX implementation of the Java Communications API. Information about RXTX may be found at http://www.rxtx.org. This port has been done off of RXTX version 1.4-8. RXTX includes part of the Sun Java Communications API implementation for Solaris/x86, version 2.0. This part (the comm.jar file) is included in this distribution; you do not need to download it from the Sun web page. To install this beta implementation, place the javaxcomm.ds file somewhere. Go there, become root, and then do: # pkgadd -d 'pwd`/javaxcomm.ds This will install package javaxcomm, which places the following files into the J2SE 1.3.0 directory structure: /usr/java2/jre/lib/ext/comm.jar /usr/java2/jre/lib/ext/jcl.jar /usr/java2/jre/lib/x86at/libSerial.so /usr/java2/jre/lib/x86at/libParallel.so /usr/java2/jre/lib/javax.comm.properties /usr/java2/javax.comm-ReleaseNotes.txt [this file] Alternatively, if you are installing the Java Communications API in conjunction with the J2SE Runtime Environment rather than the J2SE SDK, then use the jrexcomm.ds file instead: # pkgadd -d 'pwd`/jrexcomm.ds which will install the following files as part of package jrexcomm: /usr/jre2/lib/ext/comm.jar /usr/jre2/lib/ext/jcl.jar /usr/jre2/lib/x86at/libSerial.so /usr/jre2/lib/x86at/libParallel.so /usr/jre2/lib/javax.comm.properties /usr/jre2/javax.comm-ReleaseNotes.txt [this file] You can install both the javaxcomm and jrexcomm packages if you desire, as long as you have both java2sdk3 and java2jre3 installed. The installed binaries of either Java Communications API package are used for all three Caldera UNIX platforms. (On OpenServer, the native code libraries are executed via the OSRcompat binary compatibility module, just as the native code layers of J2SE 1.3.0 are.) To use this implementation of Java Communications API, just compile and run Java as you normally would. Because the above files are installed into the standard J2SE 1.3.0 extension space, there is no need to set CLASSPATH or LD_LIBRARY_PATH to access the Java Communications API. A simple test of the serial I/O part of this implementation can be done as follows. Set up a null modem RS-232 cable between two machines. Become root. Run the open source "minicom" tool (see http://www.pp.clinet.fi/~walker/minicom.html) on each machine and verify that the connection is working, by typing characters back and forth between the two machines. Caldera can make available minicom-ou8-uw7 and minicom-osr5, ported versions of minicom for the Caldera UNIX platforms. (Note that you need to first do "minicom -s" to tell it about the names and speeds of your serial ports. When you then run "minicom", use the ctrl-A E and ctrl-A A commands to turn on local echo and linefeed add.) Once working serial communication has been verified, shut down minicom on the machine that Java Communications API is installed on. Untar the Sun SerialDemo demo program, which is SerialDemo.tar and can be made available by Caldera. Change into the SerialDemo directory, and run # /usr/java2/bin/java SerialDemo or # /usr/jre2/bin/java SerialDemo This should bring up a GUI. Change the serial device port name and speed in the GUI if necessary, then click "Open Port". (Contact Caldera if the port name you are interested in does not appear in the GUI.) Type into the top pane and text should appear in the minicom window on the other machine. Type into the minicom window on the other machine and text should appear in the middle pane of the SerialDemo GUI. Click "Close Port" to finish. This implementation uses the normal UNIX "lock file" protocol to protect serial ports from concurrent access. This means that javax.comm will not be able to access the port if it is already locked by another serial application (whether javax.comm, non-Java, or a system command), and vice versa. In the case where javax.comm is locked out, you may get a message containing the phrase "Port currently owned by unknown Solaris Application"; for "Solaris" read the Caldera UNIX operating system you are on. Additional sample programs using the Java Communications API are available as part of the Sun Solaris/x86 implementation and can be downloaded from http://java.sun.com/products/javacomm/index.html. (Do not use the SimpleRead and SimpleWrite programs without modification, since they fail to properly close the serial port at program completion.) Known problems: The lock files in Open UNIX 8 and UnixWare 7 will protect against concurrent port access by multiple javax.comm applications, but will not protect against concurrent access by other applications or system commands that use the SVR4 serial lock file protocol (/var/spool/locks/LK.m.m.m). This will be corrected in the final release. On OpenServer, the lock files protect against all concurrent access, assuming other applications are using the standard protocol there (/usr/spool/uucp/LCK..tty?A). The parallel I/O part of this implementation has not been tested at all on any Caldera UNIX platforms. RXTX is available under the GNU Library General Public License (LGPL). Because this is still just an beta level implementation, the ported source code for RXTX is not included with this distribution. Once this implementation is final, source code will be included. If you would like the source code for this beta implementation, please contact Caldera and it will be sent to you. ./rxtx-2.2pre2/Makefile.lcc0000644000175000017500000000350607453365504015465 0ustar twernertwerner# Copyright 2001 Valentin Pavlov # # # The library loads but java APIs still need some modifications # the native - too. # # A make file for compiling rxtx with lcc contributed by Valentin Pavlov # lcc may be downloaded from: http://www.cs.virginia.edu/~lcc-win32/ # # You will need a config.h file in the src directory. Other builds usually # generate them automatically. The following should work. #define HAVE_FCNTL_H #define HAVE_SIGNAL_H #undef HAVE_SYS_FCNTL_H #undef HAVE_SYS_FILE_H #undef HAVE_SYS_SIGNAL_H #undef HAVE_TERMIOS_H #undef HAVE_SYS_TIME_H # if you know how to create the above in a dos Makefile send in the changes. # # the following commands should then work fine on the command line. # # cd src # make -f ..\Makefile.lcc # # You will need to do some programming to get this working. rxtx has moved # to full event support and the win32 code has not been updated to reflect # the changes. There is no windows parallel port code at this time. # # Thur Jan 24 2001 put Comments in the Makefile. taj@www.linux.org.uk. # added javac/javah/jar build rule. CFLAGS=-I\JDK\INCLUDE -I\jdk\include\win32 -I. CC=lcc LINKER=lcclnk OBJS=init.obj SerialImp.obj termios.obj fuserImp.obj SRC=init.c SerialImp.c termios.c fuserImp.c LIBS= JAVA_HOME=D:\jdk lib: $(OBJS) lcclnk -dll $(OBJS) wsock32.lib -o rxtxSerial.dll init.obj: RXTXcomm.jar $(CC) $(CFLAGS) init.c SerialImp.obj: RXTXcomm.jar config.h $(CC) $(CFLAGS) SerialImp.c fuserImp.obj: RXTXcomm.jar config.h termios.obj: RXTXcomm.jar $(CC) $(CFLAGS) termios.c RXTXcomm.jar: javac -d . -O *.java jar -cf RXTXcomm.jar gnu javah -jni gnu.io.RXTXPort gnu.io.RXTXCommDriver config.h: echo please read how to create config.h in the Makefile install: copy rxtxSerial.dll $(JAVA_HOME)\jre\bin copy RXTXcomm.jar $(JAVA_HOME)\jre\lib\ext ./rxtx-2.2pre2/rxtx.spec0000644000175000017500000000246110027714046015133 0ustar twernertwernerSummary: RXTX Name: rxtx Version: 2.1 Release: 7pre17 License: LGPL Group: Development/Libraries Source: rxtx-%{PACKAGE_VERSION}-%{PACKAGE_RELEASE}.tar.gz URL: www.rxtx.org Buildroot: /var/tmp/rxtx-root %description rxtx is an full implementation of java commapi which aims to support RS232 IEEE 1284, RS485, I2C and RawIO. This is a developers release. %prep %setup -q -n rxtx-%{version}-%{release} %build export THREADS_FLAG=native ./autogen.sh CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr pwd make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/i386 make RXTX_PATH=$RPM_BUILD_ROOT$JAVA_HOME/jre/lib/i386/ JHOME=$RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext install echo "Driver=gnu.io.RXTXCommDriver" > $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext/gnu.io.rxtx.properties find $RPM_BUILD_ROOT/usr -xtype f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" > INSTALLED_FILES if [ "$(cat INSTALLED_FILES)X" = "X" ] ; then echo "No files!" exit -1 fi %files -f INSTALLED_FILES %defattr(-,root,root) %doc AUTHORS ChangeLog README RMISecurityManager.html COPYING INSTALL PORTING TODO %clean rm -rf $RPM_BUILD_ROOT %changelog * Sun Mar 21 2004 Willem Riede - adjust spec file to support rpmbuild by ordinary user in Fedora context. ./rxtx-2.2pre2/.cvsignore0000755000175000017500000000044610441046036015253 0ustar twernertwernerMakefile config.cache config.h config.log config.status jcl.jar libtool stamp-h test.class tx.class rx.class i486-pc-linux-gnu i686-pc-linux-gnu i386-mingw32 gnu WIN32 CROSSCOMPILE COPYING.CYGNUS Makefile.in aclocal.m4 config.guess config.h.in config.sub configure ltconfig ltmain.sh .DS_Store ./rxtx-2.2pre2/ltconfig0000755000175000017500000027666007337016664015036 0ustar twernertwerner#! /bin/sh # ltconfig - Create a system-specific libtool. # Copyright (C) 1996-1999 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A lot of this script is taken from autoconf-2.10. # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} echo=echo if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell. exec "$SHELL" "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null`} case X$UNAME in *-DOS) PATH_SEPARATOR=';' ;; *) PATH_SEPARATOR=':' ;; esac fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string="`eval $cmd`") 2>/dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then break fi done fi if test "X`($echo '\t') 2>/dev/null`" != 'X\t' || test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH /usr/ucb; do if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then echo="$dir/echo" break fi done IFS="$save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running ltconfig again with it. ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}" export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf "%s\n"' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then # Cool, printf works : elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' && test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL" export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' && test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # The name of this program. progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` # Constants: PROGRAM=ltconfig PACKAGE=libtool VERSION=1.3.5 TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)" ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' rm="rm -f" help="Try \`$progname --help' for more information." # Global variables: default_ofile=libtool can_build_shared=yes enable_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). enable_static=yes enable_fast_install=yes enable_dlopen=unknown enable_win32_dll=no ltmain= silent= srcdir= ac_config_guess= ac_config_sub= host= nonopt= ofile="$default_ofile" verify_host=yes with_gcc=no with_gnu_ld=no need_locks=yes ac_ext=c objext=o libext=a exeext= cache_file= old_AR="$AR" old_CC="$CC" old_CFLAGS="$CFLAGS" old_CPPFLAGS="$CPPFLAGS" old_LDFLAGS="$LDFLAGS" old_LD="$LD" old_LN_S="$LN_S" old_LIBS="$LIBS" old_NM="$NM" old_RANLIB="$RANLIB" old_DLLTOOL="$DLLTOOL" old_OBJDUMP="$OBJDUMP" old_AS="$AS" # Parse the command line options. args= prev= for option do case "$option" in -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then eval "$prev=\$option" prev= continue fi case "$option" in --help) cat <&2 echo "$help" 1>&2 exit 1 ;; *) if test -z "$ltmain"; then ltmain="$option" elif test -z "$host"; then # This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1 # if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then # echo "$progname: warning \`$option' is not a valid host type" 1>&2 # fi host="$option" else echo "$progname: too many arguments" 1>&2 echo "$help" 1>&2 exit 1 fi ;; esac done if test -z "$ltmain"; then echo "$progname: you must specify a LTMAIN file" 1>&2 echo "$help" 1>&2 exit 1 fi if test ! -f "$ltmain"; then echo "$progname: \`$ltmain' does not exist" 1>&2 echo "$help" 1>&2 exit 1 fi # Quote any args containing shell metacharacters. ltconfig_args= for arg do case "$arg" in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ltconfig_args="$ltconfig_args '$arg'" ;; *) ltconfig_args="$ltconfig_args $arg" ;; esac done # A relevant subset of AC_INIT. # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 5 compiler messages saved in config.log # 6 checking for... messages and results if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>>./config.log # NLS nuisances. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi if test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi if test -n "$cache_file" && test -r "$cache_file"; then echo "loading cache $cache_file within ltconfig" . $cache_file fi if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi if test -z "$srcdir"; then # Assume the source directory is the same one as the path to LTMAIN. srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'` test "$srcdir" = "$ltmain" && srcdir=. fi trap "$rm conftest*; exit 1" 1 2 15 if test "$verify_host" = yes; then # Check for config.guess and config.sub. ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/config.guess; then ac_aux_dir=$ac_dir break fi done if test -z "$ac_aux_dir"; then echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2 echo "$help" 1>&2 exit 1 fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub # Make sure we can run config.sub. if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then : else echo "$progname: cannot run $ac_config_sub" 1>&2 echo "$help" 1>&2 exit 1 fi echo $ac_n "checking host system type""... $ac_c" 1>&6 host_alias=$host case "$host_alias" in "") if host_alias=`$SHELL $ac_config_guess`; then : else echo "$progname: cannot guess host type; you must specify one" 1>&2 echo "$help" 1>&2 exit 1 fi ;; esac host=`$SHELL $ac_config_sub $host_alias` echo "$ac_t$host" 1>&6 # Make sure the host verified. test -z "$host" && exit 1 elif test -z "$host"; then echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2 echo "$help" 1>&2 exit 1 else host_alias=$host fi # Transform linux* to *-*-linux-gnu*, to support old configure scripts. case "$host_os" in linux-gnu*) ;; linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` esac host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` case "$host_os" in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Determine commands to create old-style static archives. old_archive_cmds='$AR cru $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= # Set a sane default for `AR'. test -z "$AR" && AR=ar # Set a sane default for `OBJDUMP'. test -z "$OBJDUMP" && OBJDUMP=objdump # If RANLIB is not set, then run the test. if test "${RANLIB+set}" != "set"; then result=no echo $ac_n "checking for ranlib... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then RANLIB="ranlib" result="ranlib" break fi done IFS="$save_ifs" echo "$ac_t$result" 1>&6 fi if test -n "$RANLIB"; then old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" fi # Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin. test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$AS" && AS=as # Check to see if we are using GCC. if test "$with_gcc" != yes || test -z "$CC"; then # If CC is not set, then try to find GCC or a usable CC. if test -z "$CC"; then echo $ac_n "checking for gcc... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then CC="gcc" break fi done IFS="$save_ifs" if test -n "$CC"; then echo "$ac_t$CC" 1>&6 else echo "$ac_t"no 1>&6 fi fi # Not "gcc", so try "cc", rejecting "/usr/ucb/cc". if test -z "$CC"; then echo $ac_n "checking for cc... $ac_c" 1>&6 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" cc_rejected=no for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/cc || test -f $dir/cc$ac_exeext; then if test "$dir/cc" = "/usr/ucb/cc"; then cc_rejected=yes continue fi CC="cc" break fi done IFS="$save_ifs" if test $cc_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same name, so the bogon will be chosen # first if we set CC to just the name; use the full file name. shift set dummy "$dir/cc" "$@" shift CC="$@" fi fi if test -n "$CC"; then echo "$ac_t$CC" 1>&6 else echo "$ac_t"no 1>&6 fi if test -z "$CC"; then echo "$progname: error: no acceptable cc found in \$PATH" 1>&2 exit 1 fi fi # Now see if the compiler is really GCC. with_gcc=no echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6 echo "$progname:581: checking whether we are using GNU C" >&5 $rm conftest.c cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then with_gcc=yes fi $rm conftest.c echo "$ac_t$with_gcc" 1>&6 fi # Allow CC to be a program name with arguments. set dummy $CC compiler="$2" echo $ac_n "checking for object suffix... $ac_c" 1>&6 $rm conftest* echo 'int i = 1;' > conftest.c echo "$progname:603: checking for object suffix" >& 5 if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then # Append any warnings to the config.log. cat conftest.err 1>&5 for ac_file in conftest.*; do case $ac_file in *.c) ;; *) objext=`echo $ac_file | sed -e s/conftest.//` ;; esac done else cat conftest.err 1>&5 echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi $rm conftest* echo "$ac_t$objext" 1>&6 echo $ac_n "checking for executable suffix... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_exeext="no" $rm conftest* echo 'main () { return 0; }' > conftest.c echo "$progname:629: checking for executable suffix" >& 5 if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then # Append any warnings to the config.log. cat conftest.err 1>&5 for ac_file in conftest.*; do case $ac_file in *.c | *.err | *.$objext ) ;; *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;; esac done else cat conftest.err 1>&5 echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi $rm conftest* fi if test "X$ac_cv_exeext" = Xno; then exeext="" else exeext="$ac_cv_exeext" fi echo "$ac_t$ac_cv_exeext" 1>&6 echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6 pic_flag= special_shlib_compile_flags= wl= link_static_flag= no_builtin_flag= if test "$with_gcc" = yes; then wl='-Wl,' link_static_flag='-static' case "$host_os" in beos* | irix5* | irix6* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; aix*) # Below there is a dirty hack to force normal static linking with -ldl # The problem is because libdl dynamically linked with both libc and # libC (AIX C++ library), which obviously doesn't included in libraries # list by gcc. This cause undefined symbols with -static flags. # This hack allows C programs to be linked with "-static -ldl", but # we not sure about C++ programs. link_static_flag="$link_static_flag ${wl}-lC" ;; cygwin* | mingw* | os2*) # We can build DLLs from non-PIC. ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. pic_flag='-m68020 -resident32 -malways-restore-a4' ;; sysv4*MP*) if test -d /usr/nec; then pic_flag=-Kconform_pic fi ;; *) pic_flag='-fPIC' ;; esac else # PORTME Check for PIC flags for the system compiler. case "$host_os" in aix3* | aix4*) # All AIX code is PIC. link_static_flag='-bnso -bI:/lib/syscalls.exp' ;; hpux9* | hpux10* | hpux11*) # Is there a better link_static_flag that works with the bundled CC? wl='-Wl,' link_static_flag="${wl}-a ${wl}archive" pic_flag='+Z' ;; irix5* | irix6*) wl='-Wl,' link_static_flag='-non_shared' # PIC (with -KPIC) is the default. ;; cygwin* | mingw* | os2*) # We can build DLLs from non-PIC. ;; osf3* | osf4* | osf5*) # All OSF/1 code is PIC. wl='-Wl,' link_static_flag='-non_shared' ;; sco3.2v5*) pic_flag='-Kpic' link_static_flag='-dn' special_shlib_compile_flags='-belf' ;; solaris*) pic_flag='-KPIC' link_static_flag='-Bstatic' wl='-Wl,' ;; sunos4*) pic_flag='-PIC' link_static_flag='-Bstatic' wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) pic_flag='-KPIC' link_static_flag='-Bstatic' wl='-Wl,' ;; uts4*) pic_flag='-pic' link_static_flag='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then pic_flag='-Kconform_pic' link_static_flag='-Bstatic' fi ;; *) can_build_shared=no ;; esac fi if test -n "$pic_flag"; then echo "$ac_t$pic_flag" 1>&6 # Check to make sure the pic_flag actually works. echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6 $rm conftest* echo "int some_variable = 0;" > conftest.c save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $pic_flag -DPIC" echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5 if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then # Append any warnings to the config.log. cat conftest.err 1>&5 case "$host_os" in hpux9* | hpux10* | hpux11*) # On HP-UX, both CC and GCC only warn that PIC is supported... then they # create non-PIC objects. So, if there were any warnings, we assume that # PIC is not supported. if test -s conftest.err; then echo "$ac_t"no 1>&6 can_build_shared=no pic_flag= else echo "$ac_t"yes 1>&6 pic_flag=" $pic_flag" fi ;; *) echo "$ac_t"yes 1>&6 pic_flag=" $pic_flag" ;; esac else # Append any errors to the config.log. cat conftest.err 1>&5 can_build_shared=no pic_flag= echo "$ac_t"no 1>&6 fi CFLAGS="$save_CFLAGS" $rm conftest* else echo "$ac_t"none 1>&6 fi # Check to see if options -o and -c are simultaneously supported by compiler echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6 $rm -r conftest 2>/dev/null mkdir conftest cd conftest $rm conftest* echo "int some_variable = 0;" > conftest.c mkdir out # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.o" echo "$progname:829: checking if $compiler supports -c -o file.o" >&5 if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s out/conftest.err; then echo "$ac_t"no 1>&6 compiler_c_o=no else echo "$ac_t"yes 1>&6 compiler_c_o=yes fi else # Append any errors to the config.log. cat out/conftest.err 1>&5 compiler_c_o=no echo "$ac_t"no 1>&6 fi CFLAGS="$save_CFLAGS" chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm -r conftest 2>/dev/null if test x"$compiler_c_o" = x"yes"; then # Check to see if we can write to a .lo echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6 $rm conftest* echo "int some_variable = 0;" > conftest.c save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -c -o conftest.lo" echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5 if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then echo "$ac_t"no 1>&6 compiler_o_lo=no else echo "$ac_t"yes 1>&6 compiler_o_lo=yes fi else # Append any errors to the config.log. cat conftest.err 1>&5 compiler_o_lo=no echo "$ac_t"no 1>&6 fi CFLAGS="$save_CFLAGS" $rm conftest* else compiler_o_lo=no fi # Check to see if we can do hard links to lock some files if needed hard_links="nottested" if test "$compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6 hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no echo "$ac_t$hard_links" 1>&6 $rm conftest* if test "$hard_links" = no; then echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2 need_locks=warn fi else need_locks=no fi if test "$with_gcc" = yes; then # Check to see if options -fno-rtti -fno-exceptions are supported by compiler echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6 $rm conftest* echo "int some_variable = 0;" > conftest.c save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c" echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then echo "$ac_t"no 1>&6 compiler_rtti_exceptions=no else echo "$ac_t"yes 1>&6 compiler_rtti_exceptions=yes fi else # Append any errors to the config.log. cat conftest.err 1>&5 compiler_rtti_exceptions=no echo "$ac_t"no 1>&6 fi CFLAGS="$save_CFLAGS" $rm conftest* if test "$compiler_rtti_exceptions" = "yes"; then no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' else no_builtin_flag=' -fno-builtin' fi fi # Check for any special shared library compilation flags. if test -n "$special_shlib_compile_flags"; then echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then : else echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2 can_build_shared=no fi fi echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6 $rm conftest* echo 'main(){return(0);}' > conftest.c save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $link_static_flag" echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5 if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then echo "$ac_t$link_static_flag" 1>&6 else echo "$ac_t"none 1>&6 link_static_flag= fi LDFLAGS="$save_LDFLAGS" $rm conftest* if test -z "$LN_S"; then # Check to see if we can use ln -s, or we need hard links. echo $ac_n "checking whether ln -s works... $ac_c" 1>&6 $rm conftest.dat if ln -s X conftest.dat 2>/dev/null; then $rm conftest.dat LN_S="ln -s" else LN_S=ln fi if test "$LN_S" = "ln -s"; then echo "$ac_t"yes 1>&6 else echo "$ac_t"no 1>&6 fi fi # Make sure LD is an absolute path. if test -z "$LD"; then ac_prog=ld if test "$with_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6 echo "$progname:991: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we are not using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld... $ac_c" 1>&6 echo "$progname:1015: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 echo "$progname:1018: checking for non-GNU ld" >&5 fi if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" fi if test -n "$LD"; then echo "$ac_t$LD" 1>&6 else echo "$ac_t"no 1>&6 fi if test -z "$LD"; then echo "$progname: error: no acceptable ld found in \$PATH" 1>&2 exit 1 fi fi # Check to see if it really is or is not GNU ld. echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6 # I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then with_gnu_ld=yes else with_gnu_ld=no fi echo "$ac_t$with_gnu_ld" 1>&6 # See if the linker supports building shared libraries. echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6 allow_undefined_flag= no_undefined_flag= need_lib_prefix=unknown need_version=unknown # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments archive_cmds= archive_expsym_cmds= old_archive_from_new_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported runpath_var= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an egrep regular expression of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. case "$host_os" in cygwin* | mingw*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$with_gcc" != yes; then with_gnu_ld=no fi ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case "$host_os" in aix3* | aix4*) # On AIX, the GNU linker is very broken ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF ;; amigaos*) archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=yes # Extract the symbol export list from an `--export-all' def file, # then regenerate the def file from the symbol export list, so that # the compiled dll only exports the symbol export list. # Be careful not to strip the DATA tag left by newer dlltools. export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~ sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols' # If DATA tags from a recent dlltool are present, honour them! archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~ _lt_hint=1; cat $export_symbols | while read symbol; do set dummy \$symbol; case \$# in 2) echo " \$2 @ \$_lt_hint ; " >> $objdir/$soname-def;; *) echo " \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;; esac; _lt_hint=`expr 1 + \$_lt_hint`; done~ test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~ $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~ $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~ $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~ $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts' old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib' # can we support soname and/or expsyms with a.out? -oliva fi ;; solaris* | sysv5*) if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' case $host_os in cygwin* | mingw*) # dlltool doesn't understand --whole-archive et. al. whole_archive_flag_spec= ;; *) # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi ;; esac fi else # PORTME fill in a description of your system's linker (not GNU ld) case "$host_os" in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$with_gcc" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4*) hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' hardcode_libdir_separator=':' if test "$with_gcc" = yes; then collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi shared_flag='-shared' else shared_flag='${wl}-bM:SRE' hardcode_direct=yes fi allow_undefined_flag=' ${wl}-berok' archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' case "$host_os" in aix4.[01]|aix4.[01].*) # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on always_export_symbols=yes ;; esac ;; amigaos*) archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; cygwin* | mingw*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs' fix_srcfile_path='`cygpath -w $srcfile`' ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9* | hpux10* | hpux11*) case "$host_os" in hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;; esac hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_minus_L=yes # Not in the search PATH, but as the default # location of the library. export_dynamic_flag_spec='${wl}-E' ;; irix5* | irix6*) if test "$with_gcc" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts' # ELF fi hardcode_libdir_flag_spec='${wl}-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; openbsd*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def' old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def' ;; osf3*) if test "$with_gcc" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # As osf3* with the addition of the -msym flag if test "$with_gcc" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; rhapsody*) archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flags_spec='-L$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case "$host_os" in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts' else archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' hardcode_libdir_flag_spec= hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4.2uw2*) archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts' hardcode_direct=yes hardcode_minus_L=no hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; unixware7*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi echo "$ac_t$ld_shlibs" 1>&6 test "$ld_shlibs" = no && can_build_shared=no if test -z "$NM"; then echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6 case "$NM" in [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path. *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then NM="$ac_dir/nm -B" break elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then NM="$ac_dir/nm -p" break else NM=${NM="$ac_dir/nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" test -z "$NM" && NM=nm ;; esac echo "$ac_t$NM" 1>&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6 # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" # Define system-specific variables. case "$host_os" in aix*) symcode='[BCDT]' ;; cygwin* | mingw*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" ;; irix*) symcode='[BCDEGRST]' ;; solaris*) symcode='[BDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then symcode='[ABCDGISTW]' fi # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no $rm conftest* cat > conftest.c <&5 if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then # Now try to grab the symbols. nlist=conftest.nm if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if egrep ' nm_test_var$' "$nlist" >/dev/null; then if egrep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.c #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c' cat <> conftest.c #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c cat <<\EOF >> conftest.c {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$objext conftstm.$objext save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="conftstm.$objext" CFLAGS="$CFLAGS$no_builtin_flag" if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then pipe_works=yes else echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi LIBS="$save_LIBS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.c >&5 fi $rm conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else global_symbol_pipe= fi done if test "$pipe_works" = yes; then echo "${ac_t}ok" 1>&6 else echo "${ac_t}failed" 1>&6 fi if test -z "$global_symbol_pipe"; then global_symbol_to_cdecl= fi # Check hardcoding attributes. echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var"; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$hardcode_shlibpath_var" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi echo "$ac_t$hardcode_action" 1>&6 reload_flag= reload_cmds='$LD$reload_flag -o $output$reload_objs' echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6 # PORTME Some linkers may need a different reload flag. reload_flag='-r' echo "$ac_t$reload_flag" 1>&6 test -n "$reload_flag" && reload_flag=" $reload_flag" # PORTME Fill in your ld.so characteristics library_names_spec= libname_spec='lib$name' soname_spec= postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" file_magic_cmd= file_magic_test_file= deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [regex]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given egrep regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6 case "$host_os" in aix3*) version_type=linux library_names_spec='${libname}${release}.so$versuffix $libname.a' shlibpath_var=LIBPATH # AIX has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}.so$major' ;; aix4*) version_type=linux # AIX has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. # We preserve .a as extension for shared libraries though AIX4.2 # and later linker supports .so library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' shlibpath_var=LIBPATH deplibs_check_method=pass_all ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}.so' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH deplibs_check_method=pass_all lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' file_magic_cmd=/usr/bin/file file_magic_test_file=/shlib/libc.so sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" export_dynamic_flag_spec=-rdynamic # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw*) version_type=windows need_version=no need_lib_prefix=no if test "$with_gcc" = yes; then library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a' else library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' fi dynamic_linker='Win32 ld.exe' deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' file_magic_cmd='${OBJDUMP} -f' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case "$version_type" in freebsd-elf*) deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' file_magic_cmd=/usr/bin/file file_magic_test_file=`echo /usr/lib/libc.so*` library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' need_version=no need_lib_prefix=no ;; freebsd-*) deplibs_check_method=unknown library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case "$host_os" in freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. dynamic_linker="$host_os dld.sl" version_type=sunos need_lib_prefix=no need_version=no shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' soname_spec='${libname}${release}.sl$major' # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' case "$host_os" in hpux10.20*) # TODO: Does this work for hpux-11 too? deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' file_magic_cmd=/usr/bin/file file_magic_test_file=/usr/lib/libc.sl ;; esac ;; irix5* | irix6*) version_type=irix need_lib_prefix=no need_version=no soname_spec='${libname}${release}.so.$major' library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so' case "$host_os" in irix5*) libsuff= shlibsuff= # this will be overridden with pass_all, but let us keep it just in case deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ;; *) case "$LD" in # libtool.m4 will add one of these switches to LD *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" file_magic_cmd=/usr/bin/file file_magic_test_file=`echo /lib${libsuff}/libc.so*` deplibs_check_method='pass_all' ;; # No shared lib support for Linux oldld, aout, or coff. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) dynamic_linker=no ;; # This must be Linux ELF. linux-gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no deplibs_check_method=pass_all if test -f /lib/ld.so.1; then dynamic_linker='GNU ld.so' else # Only the GNU ld.so supports shared libraries on MkLinux. case "$host_cpu" in powerpc*) dynamic_linker=no ;; *) dynamic_linker='Linux ld.so' ;; esac fi ;; netbsd*) version_type=sunos if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' soname_spec='${libname}${release}.so$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH ;; openbsd*) version_type=sunos if test "$with_gnu_ld" = yes; then need_lib_prefix=no need_version=no fi library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH ;; os2*) libname_spec='$name' need_lib_prefix=no library_names_spec='$libname.dll $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_version=no soname_spec='${libname}${release}.so' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' shlibpath_var=LD_LIBRARY_PATH # this will be overridden with pass_all, but let us keep it just in case deplibs_check_method='file_magic COFF format alpha shared library' file_magic_cmd=/usr/bin/file file_magic_test_file=/shlib/libc.so deplibs_check_method='pass_all' sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rhapsody*) version_type=sunos library_names_spec='${libname}.so' soname_spec='${libname}.so' shlibpath_var=DYLD_LIBRARY_PATH deplibs_check_method=pass_all ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}.so$major' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib" file_magic_cmd=/usr/bin/file file_magic_test_file=/lib/libc.so ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH case "$host_vendor" in sequent) file_magic_cmd='/bin/file' deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; ncr) deplibs_check_method='pass_all' ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' file_magic_cmd=/usr/bin/file file_magic_test_file=`echo /usr/lib/libc.so*` ;; esac ;; uts4*) version_type=linux library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' soname_spec='$libname.so.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; *) dynamic_linker=no ;; esac echo "$ac_t$dynamic_linker" 1>&6 test "$dynamic_linker" = no && can_build_shared=no # Report the final consequences. echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6 # Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in # configure.in, otherwise build static only libraries. case "$host_os" in cygwin* | mingw* | os2*) if test x$can_build_shared = xyes; then test x$enable_win32_dll = xno && can_build_shared=no echo "checking if package supports dlls... $can_build_shared" 1>&6 fi ;; esac if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then case "$deplibs_check_method" in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | egrep "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4*) test "$enable_shared" = yes && enable_static=no ;; esac echo "$ac_t$enable_shared" 1>&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "checking whether to build static libraries... $enable_static" 1>&6 if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi echo $ac_n "checking for objdir... $ac_c" 1>&6 rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. objdir=_libs fi rmdir .libs 2>/dev/null echo "$ac_t$objdir" 1>&6 if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then lt_cv_dlopen=no lt_cv_dlopen_libs= echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 echo "$progname:2248: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 echo "$progname:2288: checking for dlopen" >&5 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else dlopen(); #endif ; return 0; } EOF if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dlopen=yes" else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_dlopen=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="dlopen" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 echo "$progname:2335: checking for dld_link in -ldld" >&5 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 echo "$progname:2375: checking for shl_load" >&5 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else shl_load(); #endif ; return 0; } EOF if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shl_load=yes" else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_shl_load=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="shl_load" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 echo "$progname:2423: checking for shl_load in -ldld" >&5 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else echo "$ac_t""no" 1>&6 fi fi fi fi fi fi if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes fi case "$lt_cv_dlopen" in dlopen) for ac_hdr in dlfcn.h; do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "$progname:2488: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int fnord = 0; EOF ac_try="$ac_compile >/dev/null 2>conftest.out" { (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 fi done if test "x$ac_cv_header_dlfcn_h" = xyes; then CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" fi eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" LIBS="$lt_cv_dlopen_libs $LIBS" echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 echo "$progname:2526: checking whether a program can dlopen itself" >&5 if test "${lt_cv_dlopen_self+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then lt_cv_dlopen_self=cross else cat > conftest.c < #endif #include #ifdef RTLD_GLOBAL # define LTDL_GLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LTDL_GLOBAL DL_GLOBAL # else # define LTDL_GLOBAL 0 # endif #endif /* We may have to define LTDL_LAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LTDL_LAZY_OR_NOW # ifdef RTLD_LAZY # define LTDL_LAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LTDL_LAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LTDL_LAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LTDL_LAZY_OR_NOW DL_NOW # else # define LTDL_LAZY_OR_NOW 0 # endif # endif # endif # endif #endif fnord() { int i=42;} main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } EOF if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then lt_cv_dlopen_self=yes else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* lt_cv_dlopen_self=no fi rm -fr conftest* fi fi echo "$ac_t""$lt_cv_dlopen_self" 1>&6 if test "$lt_cv_dlopen_self" = yes; then LDFLAGS="$LDFLAGS $link_static_flag" echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then lt_cv_dlopen_self_static=cross else cat > conftest.c < #endif #include #ifdef RTLD_GLOBAL # define LTDL_GLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LTDL_GLOBAL DL_GLOBAL # else # define LTDL_GLOBAL 0 # endif #endif /* We may have to define LTDL_LAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LTDL_LAZY_OR_NOW # ifdef RTLD_LAZY # define LTDL_LAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LTDL_LAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LTDL_LAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LTDL_LAZY_OR_NOW DL_NOW # else # define LTDL_LAZY_OR_NOW 0 # endif # endif # endif # endif #endif fnord() { int i=42;} main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } EOF if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then lt_cv_dlopen_self_static=yes else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* lt_cv_dlopen_self_static=no fi rm -fr conftest* fi fi echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 fi ;; esac case "$lt_cv_dlopen_self" in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case "$lt_cv_dlopen_self_static" in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Copy echo and quote the copy, instead of the original, because it is # used later. ltecho="$echo" if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then ltecho="$CONFIG_SHELL \$0 --fallback-echo" fi LTSHELL="$SHELL" LTCONFIG_VERSION="$VERSION" # Only quote variables if we're using ltmain.sh. case "$ltmain" in *.sh) # Now quote all the things that may contain metacharacters. for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \ old_LD old_LDFLAGS old_LIBS \ old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \ AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \ reload_flag reload_cmds wl \ pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ thread_safe_flag_spec whole_archive_flag_spec libname_spec \ library_names_spec soname_spec \ RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \ file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \ finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ hardcode_libdir_flag_spec hardcode_libdir_separator \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do case "$var" in reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ postinstall_cmds | postuninstall_cmds | \ finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case "$ltecho" in *'\$0 --fallback-echo"') ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac trap "$rm \"$ofile\"; exit 1" 1 2 15 echo "creating $ofile" $rm "$ofile" cat < "$ofile" #! $SHELL # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh. # # Copyright (C) 1996-1999 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="sed -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi ### BEGIN LIBTOOL CONFIG EOF cfgfile="$ofile" ;; *) # Double-quote the variables that need it (for aesthetics). for var in old_CC old_CFLAGS old_CPPFLAGS \ old_LD old_LDFLAGS old_LIBS \ old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do eval "$var=\\\"\$var\\\"" done # Just create a config file. cfgfile="$ofile.cfg" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 echo "creating $cfgfile" $rm "$cfgfile" cat < "$cfgfile" # `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) EOF ;; esac cat <> "$cfgfile" # Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # # CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\ # LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\ # NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\ # DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\ # $0$ltconfig_args # # Compiler and other test output produced by $progname, useful for # debugging $progname, is in ./config.log if it exists. # The version of $progname that generated this script. LTCONFIG_VERSION=$LTCONFIG_VERSION # Shell to use when invoking shell scripts. SHELL=$LTSHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$ltecho # The archiver. AR=$AR # The default C compiler. CC=$CC # The linker used to build libraries. LD=$LD # Whether we need hard or soft links. LN_S=$LN_S # A BSD-compatible nm program. NM=$NM # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$reload_flag reload_cmds=$reload_cmds # How to pass a linker flag through the compiler. wl=$wl # Object file suffix (normally "o"). objext="$objext" # Old archive suffix (normally "a"). libext="$libext" # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$pic_flag # Does compiler simultaneously support -c and -o options? compiler_c_o=$compiler_c_o # Can we write directly to a .lo ? compiler_o_lo=$compiler_o_lo # Must we lock files when doing compilation ? need_locks=$need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$link_static_flag # Compiler flag to turn off builtin functions. no_builtin_flag=$no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$library_names_spec # The coded name of the library, if different from the real name. soname_spec=$soname_spec # Commands used to build and install an old-style archive. RANLIB=$RANLIB old_archive_cmds=$old_archive_cmds old_postinstall_cmds=$old_postinstall_cmds old_postuninstall_cmds=$old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$old_archive_from_new_cmds # Commands used to build and install a shared archive. archive_cmds=$archive_cmds archive_expsym_cmds=$archive_expsym_cmds postinstall_cmds=$postinstall_cmds postuninstall_cmds=$postuninstall_cmds # Method to check whether dependent libraries are shared objects. deplibs_check_method=$deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$global_symbol_to_cdecl # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$hardcode_libdir_separator # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Compile-time system search path for libraries sys_lib_search_path_spec=$sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$exclude_expsyms # Symbols that must always be exported. include_expsyms=$include_expsyms EOF case "$ltmain" in *.sh) echo '### END LIBTOOL CONFIG' >> "$ofile" echo >> "$ofile" case "$host_os" in aix3*) cat <<\EOF >> "$ofile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # Append the ltmain.sh script. sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1) # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? chmod +x "$ofile" ;; *) # Compile the libtool program. echo "FIXME: would compile $ltmain" ;; esac test -n "$cache_file" || exit 0 # AC_CACHE_SAVE trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache exit 0 # Local Variables: # mode:shell-script # sh-indentation:2 # End: ./rxtx-2.2pre2/PORTING0000644000175000017500000001163211113576250014317 0ustar twernertwernerThis is PORTING Tue Nov 13 14:45:26 MST 2001 If you want to port rxtx to a new Unix platform do the following. *IMPORTANT* you will need gnu make. There are probably three areas you will need to focus on: configure.in src/SerialImp.c src/SerialImp.h src/ParallelImp.c RXTXCommDriver.java (just add the ports for your OS) configure.in grabs information about the OS, Java, ... and tries to set sane values for the Makefile. Look towards the bottom of configure.in and just copy *bsd or HP-UX. Modify to your liking. Edit configure.in, run autoconf, run configure, run make. repeat. An endless loop analogous to shampoo instructions. SerialImp.c and ParallelImp.c may require system specific includes and possibly a small amount of #ifdef's in the code. Lock file information will need to be added to SerialImp.h SerialImp.h will need defines for the location of lock files and the lock file type if they are used. See BSD or Linux as examples. Common problems include the following variables in the Makefile JAVAINCLUDE JAVANATINC CLASSPATH Which are defined in configure.in We will gladly help with any UNIX platform. Send questions to taj@www.linux.org.uk. New OS's usually require tweaks. If its not compiling try backing out functionality until it compiles. win32 support has not been tested. Contact taj@www.linux.org.uk if your interested in developing win32 support. For all Unix flavors... If the package did not work out of the box please see BUGS and send a comment. Here are more details sent to the rxtx mail list: Here are some tips for starters. There are three files you will need to modify. configure.in HP-UX) # compiler flags required to build. Often enables POSIX termios # support and related #defines CFLAGS="-g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1" # location for the library libSerial.so RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" #Libraries to build. libSerial.la and libParallel.la are options # libSerial.la is usually ported first and has had more work/tests TARGETLIB="\$(target_alias)/libSerial.la" # Handle java quirks here. case $JAVA_VERSION in HP-UX\ Java\ C.01.2*|HP-UX\ Java\ C.01.3*) # function call fix_parameters $JPATH/jre/lib/javax.comm.properties # location for comm.jar and jcl.jar (RXTX) JHOME=$JPATH"/jre/lib/ext" # classpath for building (hackish) CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/jre/lib/ext/comm.jar:$CLASSPATH" # location for libSerial.so .. again I see. RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ;; *) echo "$JAVA_VERSION untests" # possibly more java specific cases... esac; That should be enough to get Makefile with autoconf/automake/configure. the autogen.sh script can be used to bring the version of scripts you have into the top rxtx directory. Helpful if you can't get the same versions used. hmm I need to update the INSTALL info here. libtool 1.3.5 autoconf 2.13 automake 1.4 gnu make 3.79.1 Makefile.am is changed to create new Makefiles Makefile.in is generated from it with automake Makefile is generated with the configure script configure.in is changed to create new configure scripts configure is generated from configure.in with automake A hard coded Makefile is also possible. I can send you the output of a typical make session off the list if you like. Source changes: RXTXCommDriver.java Port enumeration needs to know which ports to check. private void registerScannedPorts(int PortType){} has code like the following listing the ports on that system. Again os.name is used to determine the system. .... else if(osName.equals("HP-UX")) { String[] Temp = { "tty0p",// HP-UX serial ports "tty1p" // HP-UX serial ports }; CandidatePortPrefixes=Temp; } Next, one should fix the port locking. RXTX supports FHS locks, UUCP and no locks. One could start with no locking at first and then add the lock capability later: SerialImp.h #if defined(__hpux__) /* modif cath */ /* The directory the device files are in */ # define DEVICEDIR "/dev/" /* the directory to place the lock files */ # define LOCKDIR "/usr/spool/uucp" /* what the prefix is for lockfiles example: LK.134.124.124 */ # define LOCKFILEPREFIX "LK." /* UUCP of FHS locking */ # define UUCP #endif /* __hpux__ */ for starters you may do something like: #if defined(WIN32) # define DEVICEDIR "" # define LOCKDIR "" # define LOCKFILEPREFIX "" #endif /* WIN32 */ to disable lock files. That should be it. Some changes to SerialImp.c may be needed for compiler errors. ./rxtx-2.2pre2/tests/0000755000175000017500000000000011126534474014417 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/0000755000175000017500000000000011126534474015210 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/0000755000175000017500000000000011126534474015617 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/0000755000175000017500000000000011126534474016624 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/0000755000175000017500000000000011126534475017767 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CommPortIdentifierTest.java0000644000175000017500000001110211113601355025214 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2008 Martin Oberhuber (Wind River) and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io.rxtx.tests; import gnu.io.CommPortIdentifier; import gnu.io.NoSuchPortException; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import junit.framework.TestCase; public class CommPortIdentifierTest extends TestCase { public CommPortIdentifierTest(String testName) { super(testName); } public List getPortIdentifiers() { Enumeration e = CommPortIdentifier.getPortIdentifiers(); List l = new ArrayList(); while (e.hasMoreElements()) { l.add(e.nextElement()); } return l; } public void testGetPortIdentifiers() throws Exception { List l = getPortIdentifiers(); assertFalse("has ports", l.isEmpty()); } public void testGetPortIdentifier() throws Exception { List l = getPortIdentifiers(); CommPortIdentifier first = (CommPortIdentifier) l.get(0); CommPortIdentifier last = (CommPortIdentifier) l.get(l.size() - 1); // first find by name CommPortIdentifier p = CommPortIdentifier.getPortIdentifier(first.getName()); assertEquals("first found", p, first); p = CommPortIdentifier.getPortIdentifier(last.getName()); assertEquals("last found", p, last); // now the non-existent case boolean exceptionThrown = false; try { p = CommPortIdentifier.getPortIdentifier("wuzziwuzz"); } catch (NoSuchPortException e) { exceptionThrown = true; } assertTrue("invalid port", exceptionThrown); } } ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/RXTXTestSuite.java0000644000175000017500000001131411113601355023275 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2008 Martin Oberhuber (Wind River) and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io.rxtx.tests; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Main class bundling all single specialized test suites into a * overall complete one. */ public class RXTXTestSuite extends TestCase { /** * Standard Java application main method. Allows to launch the test * suite from outside as part of nightly runs, headless runs or other. *

Note: Use only junit.textui.TestRunner here as * it is explicitly supposed to output the test output to the shell the * test suite has been launched from. *

* @param args The standard Java application command line parameters passed in. */ public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } /** * Combine all test into a suite and returns the test suite instance. *

* Note: This method must be always called suite ! Otherwise * the JUnit plug-in test launcher will fail to detect this class! *

* @return The test suite instance. */ public static Test suite() { TestSuite suite = new TestSuite(RXTXTestSuite.class.getName()); // add the single test suites to the overall one here. suite.addTestSuite(CommPortIdentifierTest.class); suite.addTestSuite(RXTXCommDriverTest.class); return suite; } /* (non-Javadoc) * @see org.eclipse.rse.tests.framework.AbstractTestSuiteHolder#getTestSuite() */ public TestSuite getTestSuite() { return (TestSuite)RXTXTestSuite.suite(); } } ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/RXTXCommDriverTest.java0000644000175000017500000001240411113601355024254 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2008 Martin Oberhuber (Wind River) and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io.rxtx.tests; import gnu.io.CommPortIdentifier; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import junit.framework.TestCase; /** * Main class bundling all single specialized test suites into a * overall complete one. */ public class RXTXCommDriverTest extends TestCase { private String fOldPropSerial; private String fOldPropParallel; private String fPathSep; public RXTXCommDriverTest(String testName) { super(testName); } public void setUp() { fPathSep = System.getProperty("path.separator", ":"); fOldPropSerial = System.getProperty("gnu.io.rxtx.SerialPorts"); fOldPropParallel = System.getProperty("gnu.io.rxtx.ParallelPorts"); } public void tearDown() { System.setProperty("gnu.io.rxtx.SerialPorts", fOldPropSerial == null ? "" : fOldPropSerial); System.setProperty("gnu.io.rxtx.ParallelPorts", fOldPropParallel == null ? "" : fOldPropParallel); } /** * Check that ports can be specified (i.e. removed) by means of a Java * Property */ public void testRegisterSpecifiedPorts() throws Exception { // First, find all serial ports List serialPorts = new ArrayList(); Enumeration e = CommPortIdentifier.getPortIdentifiers(); while (e.hasMoreElements()) { CommPortIdentifier port = (CommPortIdentifier) e.nextElement(); if (port.getPortType() == CommPortIdentifier.PORT_SERIAL) { serialPorts.add(port.getName()); } } System.out.println(serialPorts); // Now, get rid of the first one StringBuffer buf = new StringBuffer(); for (int i = 1; i < serialPorts.size(); i++) { buf.append(serialPorts.get(i)); buf.append(fPathSep); } System.setProperty("gnu.io.rxtx.SerialPorts", buf.toString()); e = CommPortIdentifier.getPortIdentifiers(); int nNew = 0; while (e.hasMoreElements()) { CommPortIdentifier port = (CommPortIdentifier) e.nextElement(); if (port.getPortType() == CommPortIdentifier.PORT_SERIAL) { nNew++; assertTrue("hasPort", serialPorts.contains(port.getName())); } } assertEquals("1 port removed", serialPorts.size() - 1, nNew); } } ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/0000755000175000017500000000000011126534475020422 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/Template0000644000175000017500000000000011126534474022105 0ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/Tag0000644000175000017500000000001711126534475021056 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/Root0000644000175000017500000000007511126534474021271 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/Entries0000644000175000017500000000033711126534475021761 0ustar twernertwerner/CommPortIdentifierTest.java/1.1.2.1/Thu Nov 27 20:28:29 2008//Tcommapi-0-0-1 /RXTXCommDriverTest.java/1.1.2.1/Thu Nov 27 20:28:29 2008//Tcommapi-0-0-1 /RXTXTestSuite.java/1.1.2.1/Thu Nov 27 20:28:29 2008//Tcommapi-0-0-1 D ./rxtx-2.2pre2/tests/gnu/io/rxtx/tests/CVS/Repository0000644000175000017500000000004311126534474022520 0ustar twernertwernerrxtx-devel/tests/gnu/io/rxtx/tests ./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/0000755000175000017500000000000011126534475017260 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/Template0000644000175000017500000000000011126534474020743 0ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/Tag0000644000175000017500000000001711126534474017713 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/Root0000644000175000017500000000007511126534474020127 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/Entries0000644000175000017500000000001411126534475020607 0ustar twernertwernerD/tests//// ./rxtx-2.2pre2/tests/gnu/io/rxtx/CVS/Repository0000644000175000017500000000003511126534474021357 0ustar twernertwernerrxtx-devel/tests/gnu/io/rxtx ./rxtx-2.2pre2/tests/gnu/io/CVS/0000755000175000017500000000000011126534475016253 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/CVS/Template0000644000175000017500000000000011126534474017736 0ustar twernertwerner./rxtx-2.2pre2/tests/gnu/io/CVS/Tag0000644000175000017500000000001711126534474016706 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/tests/gnu/io/CVS/Root0000644000175000017500000000007511126534474017122 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/tests/gnu/io/CVS/Entries0000644000175000017500000000001311126534475017601 0ustar twernertwernerD/rxtx//// ./rxtx-2.2pre2/tests/gnu/io/CVS/Repository0000644000175000017500000000003011126534474020345 0ustar twernertwernerrxtx-devel/tests/gnu/io ./rxtx-2.2pre2/tests/gnu/CVS/0000755000175000017500000000000011126534475015644 5ustar twernertwerner./rxtx-2.2pre2/tests/gnu/CVS/Template0000644000175000017500000000000011126534474017327 0ustar twernertwerner./rxtx-2.2pre2/tests/gnu/CVS/Tag0000644000175000017500000000001711126534474016277 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/tests/gnu/CVS/Root0000644000175000017500000000007511126534474016513 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/tests/gnu/CVS/Entries0000644000175000017500000000001111126534475017170 0ustar twernertwernerD/io//// ./rxtx-2.2pre2/tests/gnu/CVS/Repository0000644000175000017500000000002511126534474017742 0ustar twernertwernerrxtx-devel/tests/gnu ./rxtx-2.2pre2/tests/CVS/0000755000175000017500000000000011126534475015053 5ustar twernertwerner./rxtx-2.2pre2/tests/CVS/Template0000644000175000017500000000000011126534474016536 0ustar twernertwerner./rxtx-2.2pre2/tests/CVS/Tag0000644000175000017500000000001711126534474015506 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/tests/CVS/Root0000644000175000017500000000007511126534474015722 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/tests/CVS/Entries0000644000175000017500000000001211126534475016400 0ustar twernertwernerD/gnu//// ./rxtx-2.2pre2/tests/CVS/Repository0000644000175000017500000000002111126534474017145 0ustar twernertwernerrxtx-devel/tests ./rxtx-2.2pre2/acinclude.m40000644000175000017500000070743510262441766015467 0ustar twernertwerner# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 ## Free Software Foundation, Inc. ## Originally by Gordon Matzigkeit , 1996 ## ## This file is free software; the Free Software Foundation gives ## unlimited permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. # serial 47 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string="`eval $cmd`") 2>/dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for *BSD fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # -------------------- AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ------------------------------------------------------------------ AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_unknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp $SED '/^$/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 dll's AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- #- set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case "$host_cpu" in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac esac fi done IFS="$lt_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided and an installed libltdl is not found, it is # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single # quotes!). If your package is not flat and you're not using automake, # define top_builddir and top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # --------------- AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # -------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # # Check for any special shared library compilation flags. # _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= if test "$GCC" = no; then case $host_os in sco3.2v5*) _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' ;; esac fi if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : else AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no fi fi # # Check to make sure the static flag actually works. # AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF($1) # Report which librarie types wil actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sco*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris* | sysv5*) symcode='[[BDRT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; sco3.2v5*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* ) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; sco3.2v5*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4.2uw2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv5*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_MSG_RESULT([$SED]) ]) ## ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- ## Copyright (C) 1999-2000 Free Software Foundation, Inc. ## ## This file is free software; the Free Software Foundation gives ## unlimited permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. # serial 6 AC_LIB_LTDL # AC_WITH_LTDL # ------------ # Clients of libltdl can use this macro to allow the installer to # choose between a shipped copy of the ltdl sources or a preinstalled # version of the library. AC_DEFUN([AC_WITH_LTDL], [AC_REQUIRE([AC_LIB_LTDL]) AC_SUBST([LIBLTDL]) AC_SUBST([INCLTDL]) # Unless the user asks us to check, assume no installed ltdl exists. use_installed_libltdl=no AC_ARG_WITH([included_ltdl], [ --with-included-ltdl use the GNU ltdl sources included here]) if test "x$with_included_ltdl" != xyes; then # We are not being forced to use the included libltdl sources, so # decide whether there is a useful installed version we can use. AC_CHECK_HEADER([ltdl.h], [AC_CHECK_LIB([ltdl], [lt_dlcaller_register], [with_included_ltdl=no], [with_included_ltdl=yes]) ]) fi if test "x$enable_ltdl_install" != xyes; then # If the user did not specify an installable libltdl, then default # to a convenience lib. AC_LIBLTDL_CONVENIENCE fi if test "x$with_included_ltdl" = xno; then # If the included ltdl is not to be used. then Use the # preinstalled libltdl we found. AC_DEFINE([HAVE_LTDL], [1], [Define this if a modern libltdl is already installed]) LIBLTDL=-lltdl fi # Report our decision... AC_MSG_CHECKING([whether to use included libltdl]) AC_MSG_RESULT([$with_included_ltdl]) AC_CONFIG_SUBDIRS([libltdl]) ])# AC_WITH_LTDL # AC_LIB_LTDL # ----------- # Perform all the checks necessary for compilation of the ltdl objects # -- including compiler checks and header checks. AC_DEFUN([AC_LIB_LTDL], [AC_PREREQ(2.50) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_C_CONST]) AC_REQUIRE([AC_HEADER_STDC]) AC_REQUIRE([AC_HEADER_DIRENT]) AC_REQUIRE([_LT_AC_CHECK_DLFCN]) AC_REQUIRE([AC_LTDL_ENABLE_INSTALL]) AC_REQUIRE([AC_LTDL_SHLIBEXT]) AC_REQUIRE([AC_LTDL_SHLIBPATH]) AC_REQUIRE([AC_LTDL_SYSSEARCHPATH]) AC_REQUIRE([AC_LTDL_OBJDIR]) AC_REQUIRE([AC_LTDL_DLPREOPEN]) AC_REQUIRE([AC_LTDL_DLLIB]) AC_REQUIRE([AC_LTDL_SYMBOL_USCORE]) AC_REQUIRE([AC_LTDL_DLSYM_USCORE]) AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS]) AC_REQUIRE([AC_LTDL_FUNC_ARGZ]) AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ stdio.h unistd.h]) AC_CHECK_HEADERS([dl.h sys/dl.h dld.h mach-o/dyld.h]) AC_CHECK_HEADERS([string.h strings.h], [break]) AC_CHECK_FUNCS([strchr index], [break]) AC_CHECK_FUNCS([strrchr rindex], [break]) AC_CHECK_FUNCS([memcpy bcopy], [break]) AC_CHECK_FUNCS([memmove strcmp]) AC_CHECK_FUNCS([closedir opendir readdir]) ])# AC_LIB_LTDL # AC_LTDL_ENABLE_INSTALL # ---------------------- AC_DEFUN([AC_LTDL_ENABLE_INSTALL], [AC_ARG_ENABLE([ltdl-install], [AC_HELP_STRING([--enable-ltdl-install], [install libltdl])]) AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) ])])# AC_LTDL_ENABLE_INSTALL # AC_LTDL_SYS_DLOPEN_DEPLIBS # -------------------------- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether deplibs are loaded by dlopen], [libltdl_cv_sys_dlopen_deplibs], [# PORTME does your system automatically load deplibs for dlopen? # or its logical equivalent (e.g. shl_load for HP-UX < 11) # For now, we just catch OSes we know something about -- in the # future, we'll try test this programmatically. libltdl_cv_sys_dlopen_deplibs=unknown case "$host_os" in aix3*|aix4.1.*|aix4.2.*) # Unknown whether this is true for these versions of AIX, but # we want this `case' here to explicitly catch those versions. libltdl_cv_sys_dlopen_deplibs=unknown ;; aix[[45]]*) libltdl_cv_sys_dlopen_deplibs=yes ;; darwin*) # Assuming the user has installed a libdl from somewhere, this is true # If you are looking for one http://www.opendarwin.org/projects/dlcompat libltdl_cv_sys_dlopen_deplibs=yes ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) # GNU and its variants, using gnu ld.so (Glibc) libltdl_cv_sys_dlopen_deplibs=yes ;; hpux10*|hpux11*) libltdl_cv_sys_dlopen_deplibs=yes ;; irix[[12345]]*|irix6.[[01]]*) # Catch all versions of IRIX before 6.2, and indicate that we don't # know how it worked for any of those versions. libltdl_cv_sys_dlopen_deplibs=unknown ;; irix*) # The case above catches anything before 6.2, and it's known that # at 6.2 and later dlopen does load deplibs. libltdl_cv_sys_dlopen_deplibs=yes ;; netbsd*) libltdl_cv_sys_dlopen_deplibs=yes ;; openbsd*) libltdl_cv_sys_dlopen_deplibs=yes ;; osf[[1234]]*) # dlopen did load deplibs (at least at 4.x), but until the 5.x series, # it did *not* use an RPATH in a shared library to find objects the # library depends on, so we explictly say `no'. libltdl_cv_sys_dlopen_deplibs=no ;; osf5.0|osf5.0a|osf5.1) # dlopen *does* load deplibs and with the right loader patch applied # it even uses RPATH in a shared library to search for shared objects # that the library depends on, but there's no easy way to know if that # patch is installed. Since this is the case, all we can really # say is unknown -- it depends on the patch being installed. If # it is, this changes to `yes'. Without it, it would be `no'. libltdl_cv_sys_dlopen_deplibs=unknown ;; osf*) # the two cases above should catch all versions of osf <= 5.1. Read # the comments above for what we know about them. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library # is used to find them so we can finally say `yes'. libltdl_cv_sys_dlopen_deplibs=yes ;; solaris*) libltdl_cv_sys_dlopen_deplibs=yes ;; esac ]) if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], [Define if the OS needs help to load dependent libraries for dlopen().]) fi ])# AC_LTDL_SYS_DLOPEN_DEPLIBS # AC_LTDL_SHLIBEXT # ---------------- AC_DEFUN([AC_LTDL_SHLIBEXT], [AC_REQUIRE([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) AC_CACHE_CHECK([which extension is used for loadable modules], [libltdl_cv_shlibext], [ module=yes eval libltdl_cv_shlibext=$shrext_cmds ]) if test -n "$libltdl_cv_shlibext"; then AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$libltdl_cv_shlibext"], [Define to the extension used for shared libraries, say, ".so".]) fi ])# AC_LTDL_SHLIBEXT # AC_LTDL_SHLIBPATH # ----------------- AC_DEFUN([AC_LTDL_SHLIBPATH], [AC_REQUIRE([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) AC_CACHE_CHECK([which variable specifies run-time library path], [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) if test -n "$libltdl_cv_shlibpath_var"; then AC_DEFINE_UNQUOTED([LTDL_SHLIBPATH_VAR], ["$libltdl_cv_shlibpath_var"], [Define to the name of the environment variable that determines the dynamic library search path.]) fi ])# AC_LTDL_SHLIBPATH # AC_LTDL_SYSSEARCHPATH # --------------------- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [AC_REQUIRE([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) AC_CACHE_CHECK([for the default library search path], [libltdl_cv_sys_search_path], [libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"]) if test -n "$libltdl_cv_sys_search_path"; then sys_search_path= for dir in $libltdl_cv_sys_search_path; do if test -z "$sys_search_path"; then sys_search_path="$dir" else sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" fi done AC_DEFINE_UNQUOTED([LTDL_SYSSEARCHPATH], ["$sys_search_path"], [Define to the system default library search path.]) fi ])# AC_LTDL_SYSSEARCHPATH # AC_LTDL_OBJDIR # -------------- AC_DEFUN([AC_LTDL_OBJDIR], [AC_CACHE_CHECK([for objdir], [libltdl_cv_objdir], [libltdl_cv_objdir="$objdir" if test -n "$objdir"; then : else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then libltdl_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. libltdl_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi ]) AC_DEFINE_UNQUOTED([LTDL_OBJDIR], ["$libltdl_cv_objdir/"], [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# AC_LTDL_OBJDIR # AC_LTDL_DLPREOPEN # ----------------- AC_DEFUN([AC_LTDL_DLPREOPEN], [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], [libltdl_cv_preloaded_symbols], [if test -n "$lt_cv_sys_global_symbol_pipe"; then libltdl_cv_preloaded_symbols=yes else libltdl_cv_preloaded_symbols=no fi ]) if test x"$libltdl_cv_preloaded_symbols" = xyes; then AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], [Define if libtool can extract symbol lists from object files.]) fi ])# AC_LTDL_DLPREOPEN # AC_LTDL_DLLIB # ------------- AC_DEFUN([AC_LTDL_DLLIB], [LIBADD_DL= AC_SUBST(LIBADD_DL) AC_LANG_PUSH([C]) AC_CHECK_FUNC([shl_load], [AC_DEFINE([HAVE_SHL_LOAD], [1], [Define if you have the shl_load function.])], [AC_CHECK_LIB([dld], [shl_load], [AC_DEFINE([HAVE_SHL_LOAD], [1], [Define if you have the shl_load function.]) LIBADD_DL="$LIBADD_DL -ldld"], [AC_CHECK_LIB([dl], [dlopen], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"], [AC_TRY_LINK([#if HAVE_DLFCN_H # include #endif ], [dlopen(0, 0);], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) libltdl_cv_func_dlopen="yes"], [AC_CHECK_LIB([svld], [dlopen], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"], [AC_CHECK_LIB([dld], [dld_link], [AC_DEFINE([HAVE_DLD], [1], [Define if you have the GNU dld library.]) LIBADD_DL="$LIBADD_DL -ldld"], [AC_CHECK_FUNC([_dyld_func_lookup], [AC_DEFINE([HAVE_DYLD], [1], [Define if you have the _dyld_func_lookup function.])]) ]) ]) ]) ]) ]) ]) if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes then lt_save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DL" AC_CHECK_FUNCS([dlerror]) LIBS="$lt_save_LIBS" fi AC_LANG_POP ])# AC_LTDL_DLLIB # AC_LTDL_SYMBOL_USCORE # --------------------- # does the compiler prefix global symbols with an underscore? AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) AC_CACHE_CHECK([for _ prefix in compiled symbols], [ac_cv_sys_symbol_underscore], [ac_cv_sys_symbol_underscore=no cat > conftest.$ac_ext < $ac_nlist) && test -s "$ac_nlist"; then # See whether the symbols have a leading underscore. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then ac_cv_sys_symbol_underscore=yes else if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then : else echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC fi fi else echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC fi else echo "configure: failed program was:" >&AC_FD_CC cat conftest.c >&AC_FD_CC fi rm -rf conftest* ]) ])# AC_LTDL_SYMBOL_USCORE # AC_LTDL_DLSYM_USCORE # -------------------- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [AC_REQUIRE([AC_LTDL_SYMBOL_USCORE]) if test x"$ac_cv_sys_symbol_underscore" = xyes; then if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then AC_CACHE_CHECK([whether we have to add an underscore for dlsym], [libltdl_cv_need_uscore], [libltdl_cv_need_uscore=unknown save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DL" _LT_AC_TRY_DLOPEN_SELF( [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], [], [libltdl_cv_need_uscore=cross]) LIBS="$save_LIBS" ]) fi fi if test x"$libltdl_cv_need_uscore" = xyes; then AC_DEFINE([NEED_USCORE], [1], [Define if dlsym() requires a leading underscore in symbol names.]) fi ])# AC_LTDL_DLSYM_USCORE # AC_LTDL_FUNC_ARGZ # ----------------- AC_DEFUN([AC_LTDL_FUNC_ARGZ], [AC_CHECK_HEADERS([argz.h]) AC_CHECK_TYPES([error_t], [], [AC_DEFINE([error_t], [int], [Define to a type to use for `error_t' if it is not otherwise available.])], [#if HAVE_ARGZ_H # include #endif]) AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify]) ])# AC_LTDL_FUNC_ARGZ ./rxtx-2.2pre2/stamp-h.in0000644000175000017500000000001206674241607015154 0ustar twernertwernertimestamp ./rxtx-2.2pre2/README.IPAQ0000644000175000017500000000624007501400465014662 0ustar twernertwerner Here's what I came up with as far as documentation. First, I'm mainly a windows person... ewww.. but, as such.. some things are probably not solved optimally. --- Getting the Comm API working on an Ipaq Thomas O'Connell (thomas@cc.gatech.edu) For the most part, things go pretty much according to the documents provided by: http://www.interstice.com/~kevinh/linuxcomm.html I'll just cover the gotchas: 1) Getting Java itself to run: This was actually the most complicated part (for me). You can download a JRE 1.3 from Blackdown for the ARM processor, but no JDK. But you can tease a javac, jar, javah, etc.. out of a tools.jar file from some other distro(i went with an i386 linux sdk, same version as the JRE), and writing scripts to emulate the behaviors (and adding tools.jar to your classpath). Example: javac is: #! /bin/sh java com.sun.tools.javac.Main $@ The rest can be created similarily. I kept pulling as many as those out until the .configure of rxtx stopped complaining. - include files: in addition to pulling tools.jar from another linux jdk, I brought over the \include files too. Dumped it in the directory. - sim link: in the j2re1.3.1 directory, I created a jre sub directory, and beneath that I sym linked a j2re1.3.1\jre\lib to j2re1.3.1\lib. Also, both my JDK_HOME and JAVA_HOME were set to the j2re1.3.1 location. After all this, the rxtx package built correctly. I added jcl.jar to my classpath as well. Your mileage may vary here, since I'm doing this all from recollection. I imagine I'll have to reformat at some point and pay more attention the next time I have to set it up. Lots of trial and error here, and I'm no script kiddie.. I imagine some of this could be fixed up internally. 2) Killing getty - So there's the console terminal running on the comm port. You need to be able to kill this in order for the comm port to be released. Since you don't want to entirely kill getty (since, networking is often flaky on these things), I just changed the /etc/inittab with regards to getty. Changed: T0:2:respawn:/sbin/getty -L tts/0 115200 vt100 To: T0:2:boot:/sbin/getty -L ttySA0 115200 vt100 This keeps the ipaq from respawning getty everytime you kill it, but does activate it upon boot. 3) Fixing RXTXCommDriver.java. Based on OS, the code tried to find the serial ports. This will fail because of a naming convention that Intimate/?Debian? uses for the com ports. Need to add a prefix that includes ttySA. By default the code looks like: if(osName.equals("Linux")) { String[] Temp = { "ttyS" // linux Serial Ports }; CandidatePortPrefixes=Temp; } 4) Cable: The hotsync cable that the ipaq comes with is a null modem cable. compaq does sell a RS-232 cable for the hotsync port, if you're trying to control a serial device like me. $26 though.. -- Thomas O'Connell Georgia Institute of Technology Aware Home Lab ManagerCollege of Computing www.cc.gatech.edu/fce/ahri www.cc.gatech.edu/~thomas ./rxtx-2.2pre2/CNI/0000755000175000017500000000000011126534454013664 5ustar twernertwerner./rxtx-2.2pre2/CNI/RXTXVersion.java0000644000175000017500000000760310614033754016706 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; /** A class to keep the current version in */ public class RXTXVersion { /*------------------------------------------------------------------------------ RXTXVersion accept: - perform: Set Version. return: - exceptions: Throwable comments: See INSTALL for details. ------------------------------------------------------------------------------*/ private static String Version; static { Version = "RXTX-2.1-7"; } /** * static method to return the current version of RXTX * unique to RXTX. * @returns a string representing the version "RXTX-1.4-9" */ public static String getVersion() { return(Version); } } ./rxtx-2.2pre2/CNI/SerialPortEventListener.java0000644000175000017500000000667310614033754021335 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface SerialPortEventListener extends EventListener { public abstract void serialEvent( SerialPortEvent ev ); } ./rxtx-2.2pre2/CNI/UnsupportedCommOperationException.java0000644000175000017500000000754610614033754023445 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * Exception thrown when a method does not support the requested functionality. * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class UnsupportedCommOperationException extends Exception { /** * create an instances with no message about why the Exception was thrown. * @since JDK1.0 */ public UnsupportedCommOperationException() { super(); } /** * create an instance with a message about why the Exception was thrown. * @param str A detailed message explaining the reason for the Exception. * @since JDK1.0 */ public UnsupportedCommOperationException( String str ) { super( str ); } } ./rxtx-2.2pre2/CNI/README0000644000175000017500000001437610614033754014555 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ This is README Wed Feb 19 06:33:17 EST 2003 STATUS: 1) OS's The library has been tested on redhat 8.0 glinux write writes and read reads. Little else has been tested but things should work. 2) TODO: - test on other Unix Like systems - bring termios.c over to give win32 support - autoconf to determine include files INTRODUCTION CNI is a new way of mixing Java and native code used by the GNU gcj compiler. The CNI is a faster way to have native and Java code interact. One can build fast, stand alone applications using this code. Possible applications include low latency, embeded and use with other native projects. This directory contains an initial hack at getting rxtx (www.rxtx.org) working with the the GNU gcj using the CNI. Links: http://www.rxtx.org http://gcc.gnu.org/java http://gcc.gnu.org/java/papers/cni/t1.html BUILDING There isn't much here besides the library. To get started, make sure you have gcj installed. make # build the library and Simple -- a small application ./Simple runs the test application. If there is a loopback on /dev/ttyS1, The Simple application will write to the port and then read back the data. If you get "undefined reference to `function_name' you are missing a library EXAMPLE Script started on Wed Feb 19 06:16:07 2003 [root@servertrent CNI]# make rm -f Simple.java gcj -d . -C *.java for i in gnu/io/*.class;do gcjh -d . `echo $i|sed s/.class//g`;done g++ -Wall -g -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -I . -c SerialImp.c SerialImp.c: In member function `void gnu::io::RXTXPort::writeArray(JArray*, __java_int, __java_int, __java_boolean)': SerialImp.c:1376: warning: label `fail' defined but not used g++ -Wall -g -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -I . -c fuserImp.c (cd gnu/io && gcj -g -classpath ../.. -d gnu/io -c *.class ) g++ -g -shared gnu/io/*.o *.o -lpthread -Wl,-soname -Wl,librxtx-0.0-1.so -o librxtx-0.0-1.so rm -f librxtx.so && ln -s librxtx-0.0-1.so librxtx.so ar rs librxtx.a gnu/io/*.o *.o g++ -g -Wall test.c -static -L. -lrxtx -lgcj -lpthread -ldl -lz -o test #gcj *.o librxtx.a -static -lgcj -lpthread -ldl -lz -o Simple --main=Simple ln -s Simple.Java Simple.java gcj --classpath RXTX.jar -d . -C Simple.java rm Simple.java gcj -g -classpath RXTX.jar -d . -c Simple.class gcj -g *.o gnu/io/*.o -static -lgcj -lpthread -ldl -lz -o Simple --main=Simple [root@servertrent CNI]# ./Simple Getting PortIdentifiers Devel Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS1 writing output Got Data Available Printing read() results 123456789 [root@servertrent CNI]# file Simple Simple: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped [root@servertrent CNI]# exit exit Script done on Wed Feb 19 06:16:35 2003 -- Trent Jarvi taj@www.linux.org.uk ./rxtx-2.2pre2/CNI/NoSuchPortException.java0000644000175000017500000000700210614033754020447 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * The requested Port does not exist * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class NoSuchPortException extends Exception { NoSuchPortException( String str ) { super( str ); } public NoSuchPortException() { super(); } } ./rxtx-2.2pre2/CNI/Simple.Java0000644000175000017500000000555607624703524015737 0ustar twernertwernerimport gnu.io.*; import java.util.*; import java.io.InputStream; import java.io.OutputStream; public class Simple implements SerialPortEventListener { CommPortIdentifier cpi; Enumeration ports; SerialPort port = null; InputStream input; OutputStream output; public static void main( String args[] ) { boolean done = false; Simple reader = new Simple( ); while ( !done ) { try { Thread.sleep(100); } catch (Exception e) {} } } public Simple( ) { System.out.println("Getting PortIdentifiers"); ports = CommPortIdentifier.getPortIdentifiers(); while ( ports.hasMoreElements() ) { cpi = (CommPortIdentifier) ports.nextElement(); if (cpi.getPortType() == CommPortIdentifier.PORT_SERIAL) { if ( cpi.getName().equals( "/dev/ttyS1" ) ) { try { port = (SerialPort) cpi.open("Simple", 2000); port.addEventListener(this); port.notifyOnDataAvailable(true); output=port.getOutputStream(); input=port.getInputStream(); System.out.println("writing output"); output.write( new String("123456789\0").getBytes() ); } catch (Exception e) { e.printStackTrace(); } } } } return; } public void serialEvent(SerialPortEvent event) { switch(event.getEventType()) { case SerialPortEvent.BI: System.out.print("BI\n"); case SerialPortEvent.OE: System.out.print("OE\n"); case SerialPortEvent.FE: System.out.print("FE\n"); case SerialPortEvent.PE: System.out.print("PE\n"); case SerialPortEvent.CD: System.out.print("CD\n"); case SerialPortEvent.CTS: System.out.print("CTS\n"); case SerialPortEvent.DSR: System.out.print("DSR\n"); case SerialPortEvent.RI: System.out.print("RI\n"); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: System.out.print("Out Buff Empty\n"); break; case SerialPortEvent.DATA_AVAILABLE: byte in[] = new byte[800]; int ret = 0; System.out.println("Got Data Available"); try { ret = input.read( in, 0, 63 ); } catch (Exception e) { System.out.println("Input Exception"); } System.out.println("Printing read() results"); if ( ret > 0 ) { try { System.out.write( in, 0, ret ); System.out.println(); } catch ( Exception e ) { e.printStackTrace(); } } System.exit( 0 ); break; } } } ./rxtx-2.2pre2/CNI/RXTXCommDriver.java0000644000175000017500000006213410614033754017330 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1998 Kevin Hester, kevinh@acm.org | Copyright 2000-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* Martin Pool added support for explicitly-specified * lists of ports, October 2000. */ /* Joseph Goldstone reorganized to support registered ports, * known ports, and scanned ports, July 2001 */ package gnu.io; import java.util.*; import java.io.*; import java.util.StringTokenizer; /** This is the JavaComm for Linux driver. */ public class RXTXCommDriver implements CommDriver { private final static boolean debug = false; private final static boolean devel = true; static { if(debug ) System.out.println("RXTXCommDriver {}"); /* System.loadLibrary( "rxtxSerial" ); */ /* Perform a crude check to make sure people don't mix versions of the Jar and native lib Mixing the libs can create a nightmare. It could be possible to move this over to RXTXVersion but All we want to do is warn people when first loading the Library. */ String JarVersion = RXTXVersion.getVersion(); String LibVersion = nativeGetVersion(); if ( devel ) { System.out.println("Devel Library"); System.out.println("========================================="); System.out.println("Native lib Version = " + JarVersion ); System.out.println("Java lib Version = " + LibVersion ); } /* FIXME static not working if ( ! JarVersion.equals( LibVersion ) ) { System.out.println( "WARNING: RXTX Version mismatch\n\tJar version = " + JarVersion + "\n\tnative lib Version = " + LibVersion ); } else if ( debug ) { System.out.println( "RXTXCommDriver:\n\tJar version = " + JarVersion + "\n\tnative lib Version = " + LibVersion ); } */ } /** Get the Serial port prefixes for the running OS */ private String deviceDirectory; private String osName; private static native String nativeGetVersion(); private native boolean registerKnownPorts(int PortType); private native boolean isPortPrefixValid(String dev); private native boolean testRead(String dev, int type); private native String getDeviceDirectory(); private final String[] getValidPortPrefixes(String CandidatePortPrefixes[]) { /* 256 is the number of prefixes ( COM, cua, ttyS, ...) not the number of devices (ttyS0, ttyS1, ttyS2, ...) On a Linux system there are about 400 prefixes in deviceDirectory. registerScannedPorts() assigns CandidatePortPrefixes to something less than 50 prefixes. Trent */ String ValidPortPrefixes[]=new String [256]; if (debug) System.out.println("\nRXTXCommDriver:getValidPortPrefixes()"); if(CandidatePortPrefixes==null) { if (debug) System.out.println("\nRXTXCommDriver:getValidPortPrefixes() No ports prefixes known for this System.\nPlease check the port prefixes listed for " + osName + " in RXTXCommDriver:registerScannedPorts()\n"); } int i=0; for(int j=0;jFrom the NullDriver.java CommAPI sample. * * added printerport stuff * Holger Lehmann * July 12, 1999 * IBM * Added ttyM for Moxa boards * Removed obsolete device cuaa * Peter Bennett * January 02, 2000 * Bencom */ /** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName=System.getProperty("os.name"); deviceDirectory=getDeviceDirectory(); /* First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ for (int PortType=CommPortIdentifier.PORT_SERIAL;PortType<=CommPortIdentifier.PORT_PARALLEL;PortType++) { if (!registerSpecifiedPorts(PortType)) { if (!registerKnownPorts(PortType)) { registerScannedPorts(PortType); } } } } private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (testRead(PortName, PortType)) CommPortIdentifier.addPortName(PortName, PortType, this); } } /* * Register ports specified in the file "gnu.io.rxtx.properties" * Key system properties: * gnu.io.rxtx.SerialPorts * gnu.io.rxtx.ParallelPorts * * Tested only with sun jdk1.3 * The file gnu.io.rxtx.properties must reside in the java extension dir * * Example: /usr/local/java/jre/lib/ext/gnu.io.rxtx.properties * * The file contains the following key properties: * * gnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1: * gnu.io.rxtx.ParallelPorts=/dev/lp0: * */ private boolean registerSpecifiedPorts(int PortType) { String val = null; try { String ext_dir=System.getProperty("java.ext.dirs")+System.getProperty("file.separator"); FileInputStream rxtx_prop=new FileInputStream(ext_dir+"gnu.io.rxtx.properties"); Properties p=new Properties(System.getProperties()); p.load(rxtx_prop); System.setProperties(p); }catch(Exception e){ if (debug){ System.out.println("The file: gnu.io.rxtx.properties doesn't exists."); System.out.println(e.toString()); }//end if }//end catch if (debug) System.out.println("checking for system-known ports of type "+PortType); if (debug) System.out.println("checking registry for ports of type "+PortType); switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if ((val = System.getProperty("gnu.io.rxtx.SerialPorts")) == null) val = System.getProperty("gnu.io.SerialPorts"); break; case CommPortIdentifier.PORT_PARALLEL: if ((val = System.getProperty("gnu.io.rxtx.ParallelPorts")) == null) val = System.getProperty("gnu.io.ParallelPorts"); break; default: if (debug) System.out.println("unknown port type "+PortType+" passed to RXTXCommDriver.registerSpecifiedPorts()"); } if (val != null) { addSpecifiedPorts(val, PortType); return true; } else return false; } /* * Look for all entries in deviceDirectory, and if they look like they should * be serial ports on this OS and they can be opened then register * them. * */ private void registerScannedPorts(int PortType) { String[] CandidateDeviceNames; if (debug) System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType); if(osName.equals("Windows CE")) { String[] temp = { "COM1:", "COM2:","COM3:","COM4:", "COM5:", "COM6:", "COM7:", "COM8:" }; CandidateDeviceNames=temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { /* { "COM1:", "COM2:","COM3:","COM4:", "COM5:", "COM6:", "COM7:", "COM8:" }; */ /* //./name is supposed to work for port numbers > 8 */ /* { "//./COM1", "//./COM2", "//./COM3", "//./COM4", "//./COM5", "//./COM6", "//./COM7", "//./COM8" }; */ String[] temp = { "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", /* OK, you asked for it The thread gods will not like this. */ "COM9", "COM10", "COM11", "COM12", "COM13", "COM14", "COM15", "COM16", /* Lets toss in LPT too! */ "LPT1", "LPT2", "LPT3" }; /* { "COM1", "COM2","COM3","COM4", "COM5", "COM6", "COM7", "COM8" }; */ CandidateDeviceNames=temp; } else if ( osName.equals("Solaris") || osName.equals("SunOS")) { /* Solaris uses a few different ways to identify ports. They could be /dev/term/a /dev/term0 /dev/cua/a /dev/cuaa the /dev/???/a appears to be on more systems. The uucp lock files should not cause problems. */ /* File dev = new File( "/dev/term" ); String deva[] = dev.list(); dev = new File( "/dev/cua" ); String devb[] = dev.list(); String[] temp = new String[ deva.length + devb.length ]; for(int j =0;j 0 ); term[l++] = new String( "term/" ); /* dev = new File( "/dev/cua0" ); if( dev.list().length > 0 ); term[l++] = new String( "cua/" ); */ String[] temp = new String[l]; for(l--;l >= 0;l--) temp[l] = term[l]; CandidateDeviceNames=temp; } else { File dev = new File( deviceDirectory ); String[] temp = dev.list(); CandidateDeviceNames=temp; } if (CandidateDeviceNames==null) { if (debug) System.out.println("RXTXCommDriver:registerScannedPorts() no Device files to check "); return; } String CandidatePortPrefixes[] = {}; switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if (debug) System.out.println("scanning for serial ports for os "+osName); if(osName.equals("Linux")) { String[] Temp = { "ttyS", // linux Serial Ports "ttySA" // for the IPAQs }; CandidatePortPrefixes=Temp; } else if(osName.equals("Linux-all-ports")) { /* if you want to enumerate all ports ~5000 possible, then replace the above with this */ String[] Temp = { "comx", // linux COMMX synchronous serial card "holter", // custom card for heart monitoring "modem", // linux symbolic link to modem. "ttyircomm", // linux IrCommdevices (IrDA serial emu) "ttycosa0c", // linux COSA/SRP synchronous serial card "ttycosa1c", // linux COSA/SRP synchronous serial card "ttyC", // linux cyclades cards "ttyCH",// linux Chase Research AT/PCI-Fast serial card "ttyD", // linux Digiboard serial card "ttyE", // linux Stallion serial card "ttyF", // linux Computone IntelliPort serial card "ttyH", // linux Chase serial card "ttyI", // linux virtual modems "ttyL", // linux SDL RISCom serial card "ttyM", // linux PAM Software's multimodem boards // linux ISI serial card "ttyMX",// linux Moxa Smart IO cards "ttyP", // linux Hayes ESP serial card "ttyR", // linux comtrol cards // linux Specialix RIO serial card "ttyS", // linux Serial Ports "ttySI",// linux SmartIO serial card "ttySR",// linux Specialix RIO serial card 257+ "ttyT", // linux Technology Concepts serial card "ttyUSB",//linux USB serial converters "ttyV", // linux Comtrol VS-1000 serial controller "ttyW", // linux specialix cards "ttyX" // linux SpecialX serial card }; CandidatePortPrefixes=Temp; } else if(osName.toLowerCase().indexOf("qnx") != -1 ) { String[] Temp = { "ser" }; CandidatePortPrefixes=Temp; } else if(osName.equals("Irix")) { String[] Temp = { "ttyc", // irix raw character devices "ttyd", // irix basic serial ports "ttyf", // irix serial ports with hardware flow "ttym", // irix modems "ttyq", // irix pseudo ttys "tty4d",// irix RS422 "tty4f",// irix RS422 with HSKo/HSki "midi", // irix serial midi "us" // irix mapped interface }; CandidatePortPrefixes=Temp; } else if(osName.equals("FreeBSD")) //FIXME this is probably wrong { String[] Temp = { "ttyd", //general purpose serial ports "cuaa", //dialout serial ports "ttyA", //Specialix SI/XIO dialin ports "cuaA", //Specialix SI/XIO dialout ports "ttyD", //Digiboard - 16 dialin ports "cuaD", //Digiboard - 16 dialout ports "ttyE", //Stallion EasyIO (stl) dialin ports "cuaE", //Stallion EasyIO (stl) dialout ports "ttyF", //Stallion Brumby (stli) dialin ports "cuaF", //Stallion Brumby (stli) dialout ports "ttyR", //Rocketport dialin ports "cuaR", //Rocketport dialout ports "stl" //Stallion EasyIO board or Brumby N }; CandidatePortPrefixes=Temp; } else if(osName.equals("NetBSD")) // FIXME this is probably wrong { String[] Temp = { "tty0" // netbsd serial ports }; CandidatePortPrefixes=Temp; } else if ( osName.equals("Solaris") || osName.equals("SunOS")) { String[] Temp = { "term/", "cua/" }; CandidatePortPrefixes=Temp; } else if(osName.equals("HP-UX")) { String[] Temp = { "tty0p",// HP-UX serial ports "tty1p" // HP-UX serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("UnixWare") || osName.equals("OpenUNIX")) { String[] Temp = { "tty00s", // UW7/OU8 serial ports "tty01s", "tty02s", "tty03s" }; CandidatePortPrefixes=Temp; } else if (osName.equals("OpenServer")) { String[] Temp = { "tty1A", // OSR5 serial ports "tty2A", "tty3A", "tty4A", "tty5A", "tty6A", "tty7A", "tty8A", "tty9A", "tty10A", "tty11A", "tty12A", "tty13A", "tty14A", "tty15A", "tty16A", "ttyu1A", // OSR5 USB-serial ports "ttyu2A", "ttyu3A", "ttyu4A", "ttyu5A", "ttyu6A", "ttyu7A", "ttyu8A", "ttyu9A", "ttyu10A", "ttyu11A", "ttyu12A", "ttyu13A", "ttyu14A", "ttyu15A", "ttyu16A" }; CandidatePortPrefixes=Temp; } else if (osName.equals("Compaq's Digital UNIX") || osName.equals("OSF1")) { String[] Temp = { "tty0" // Digital Unix serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("BeOS")) { String[] Temp = { "serial" // BeOS serial ports }; CandidatePortPrefixes=Temp; } else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; CandidatePortPrefixes=Temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] Temp = { "COM" // win32 serial ports //"//./COM" // win32 serial ports }; CandidatePortPrefixes=Temp; } else { if (debug) System.out.println("No valid prefixes for serial ports have been entered for "+osName + " in RXTXCommDriver.java. This may just be a typo in the method registerScanPorts()."); } break; case CommPortIdentifier.PORT_PARALLEL: if (debug) System.out.println("scanning for parallel ports for os "+osName); /** Get the Parallel port prefixes for the running os * Holger Lehmann * July 12, 1999 * IBM */ if(osName.equals("Linux") /* || osName.equals("NetBSD") FIXME || osName.equals("HP-UX") FIXME || osName.equals("Irix") FIXME || osName.equals("BeOS") FIXME || osName.equals("Compaq's Digital UNIX") FIXME */ ) { String[] temp={ "lp" // linux printer port }; CandidatePortPrefixes=temp; } else if(osName.equals("FreeBSD")) { String[] temp={ "lpt" }; CandidatePortPrefixes=temp; } else if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] temp={ "LPT" }; CandidatePortPrefixes=temp; } else /* printer support is green */ { String [] temp={}; CandidatePortPrefixes=temp; } break; default: if (debug) System.out.println("Unknown PortType "+PortType+" passed to RXTXCommDriver.registerScannedPorts()"); } registerValidPorts(CandidateDeviceNames, CandidatePortPrefixes, PortType); } /* *

From the NullDriver.java CommAPI sample. */ /** * @param PortName The name of the port the OS recognizes * @param PortType CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL * @returns CommPort * getCommPort() will be called by CommPortIdentifier from its * openPort() method. PortName is a string that was registered earlier * using the CommPortIdentifier.addPortName() method. getCommPort() * returns an object that extends either SerialPort or ParallelPort. */ public CommPort getCommPort( String PortName, int PortType ) { if (debug) System.out.println("RXTXCommDriver:getCommPort(" +PortName+","+PortType+")"); try { switch (PortType) { case CommPortIdentifier.PORT_SERIAL: if(osName.toLowerCase().indexOf("windows") == -1 ) { return new RXTXPort( PortName ); } else { return new RXTXPort( deviceDirectory + PortName ); } case CommPortIdentifier.PORT_PARALLEL: //return new LPRPort( PortName ); default: if (debug) System.out.println("unknown PortType "+PortType+" passed to RXTXCommDriver.getCommPort()"); } } catch( PortInUseException e ) { if (debug) System.out.println( "Port "+PortName+" in use by another application"); } return null; } /* Yikes. Trying to call println from C for odd reasons */ public void Report( String arg ) { System.out.println(arg); } } ./rxtx-2.2pre2/CNI/fuserImp.c0000755000175000017500000001760207624703212015631 0ustar twernertwerner#include #if defined(__MWERKS__)//dima #include "CommPortIdentifier.h" #else//dima #include "gnu/io/CommPortIdentifier.h" #endif//dima /* Yikes... how do we do this? */ jstring gnu::io::CommPortIdentifier::native_psmisc_report_owner (jstring arg) { return ( JvNewStringUTF("Unknown Application") ); //return("Unknown Application\n"); } /* just kille this for now... trying to get gcj working */ #ifdef __linux__ #else /* loosly based on fuser.c by Werner Almesberger. */ /* Copyright 1993-1998 Werner Almesberger. See file COPYING for details. psmisc (fuser, killall and pstree) program code, documentation and auxiliary programs are Copyright 1993-1998 Werner Almesberger. All rights reserved. Redistribution and use in source and binary forms of parts of or the whole original or derived work are permitted provided that the original work is properly attributed to the author. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. This work is provided "as is" and without any express or implied warranties. */ #include #include #include #include #include #include #include #include #include #include #define COMM_LEN 16 #define PROC_BASE "/proc" #define UID_UNKNOWN -1 #define NAME_FIELD 20 /* space reserved for file name */ #define REF_FILE 1 /* an open file */ #define REF_ROOT 2 /* current root */ #define REF_CWD 4 /* current directory */ #define REF_EXE 8 /* executable */ #define REF_MMAP 16 /* mmap'ed file or library */ #define FLAG_UID 2 /* show uid */ #define FLAG_VERB 4 /* show verbose output */ #define FLAG_DEV 8 /* show all processes using this device */ char returnstring[256]; void parse_args(const char *); typedef struct { const char *name; } SPACE_DSC; typedef enum { it_proc,it_mount,it_loop,it_swap } ITEM_TYPE; typedef struct item_dsc { ITEM_TYPE type; union { struct { pid_t pid; int uid; /* must also accept UID_UNKNOWN */ int ref_set; } proc; struct { const char *path; } misc; } u; struct item_dsc *next; } ITEM_DSC; typedef struct file_dsc { const char *name; /* NULL if previous entry has name */ dev_t dev; ino_t ino; int flags,sig_num; SPACE_DSC *name_space; /* or NULL if no indication */ ITEM_DSC *items; struct file_dsc *named,*next; } FILE_DSC; static SPACE_DSC name_spaces[] = { }; static FILE_DSC *files = NULL; static FILE_DSC *last_named = NULL; static int all = 0,found_item = 0; static void add_file(const char *path,unsigned long device,unsigned long inode, pid_t pid,int ref) { struct stat st; FILE_DSC *file,*next; ITEM_DSC **item,*here; unsigned long mount_dev = 0; if (device) mount_dev = device; for (file = files; file; file = next) { next = file->next; if (file->flags & FLAG_DEV ? mount_dev && mount_dev == file->dev : device == file->dev && inode == file->ino) { if (!file->name) file = file->named; for (item = &file->items; *item; item = &(*item)->next) if ((*item)->type == it_proc && (*item)->u.proc.pid >= pid) break; if (*item && (*item)->u.proc.pid == pid) here = *item; else { if (!(here = malloc(sizeof(ITEM_DSC)))) { perror("malloc"); exit(1); } here->type = it_proc; here->u.proc.pid = pid; here->u.proc.uid = UID_UNKNOWN; here->u.proc.ref_set = 0; here->next = *item; *item = here; found_item = 1; } here->u.proc.ref_set |= ref; if ((file->flags & (FLAG_UID | FLAG_VERB)) && here->u.proc.uid == UID_UNKNOWN && lstat(path,&st) >= 0) here->u.proc.uid = st.st_uid; } } } static void check_dir(const char *rel,pid_t pid,int type) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; struct stat st; if (!(dir = opendir(rel))) return; while ( (de = readdir(dir) ) ) if (strcmp(de->d_name,".") && strcmp(de->d_name,"..")) { sprintf(path,"%s/%s",rel,de->d_name); if (stat(path,&st) >= 0) add_file(path,st.st_dev,st.st_ino,pid,type); } (void) closedir(dir); } extern void scan_fd(void) { DIR *dir; struct dirent *de; char path[PATH_MAX+1]; pid_t pid; int empty; if (!(dir = opendir(PROC_BASE))) { perror(PROC_BASE); exit(1); } empty = 1; while ( ( de = readdir(dir) ) ) if ( ( pid = atoi(de->d_name) ) ) { empty = 0; sprintf(path,"%s/%d",PROC_BASE,pid); if (chdir(path) >= 0) { check_dir("fd",pid,REF_FILE); } } (void) closedir(dir); if (empty) { fprintf(stderr,PROC_BASE " is empty (not mounted ?)\n"); exit(1); } } extern void show_user(const char tstring[],char *rs) { const ITEM_DSC *item; FILE *f; const struct passwd *pw; const char *user,*scan; char tmp[10],path[PATH_MAX+1],comm[COMM_LEN+1]; int dummy; int keeper; pid_t self; const char *name; int uid; char temp[80]; parse_args(tstring); scan_fd(); if (seteuid(getuid()) < 0) { sprintf(rs, "%s", "Unknown Linux Application"); return; } self = getpid(); if (!files->name || !(files->items || all)) { sprintf(rs, "%s", "Unknown Linux Application"); return; } scan = files->name; strcat(returnstring," "); item = files->items; sprintf(path,PROC_BASE "/%d/stat",item->u.proc.pid); strcpy(comm,"???"); if ( ( f = fopen(path,"r") ) ) { (void) fscanf(f,"%d (%[^)]",&dummy,comm); (void) fclose(f); } name = comm; uid = item->u.proc.uid; if (uid == UID_UNKNOWN) user = "???"; else if ( ( pw = getpwuid(uid) ) ) user = pw->pw_name; else { sprintf(tmp,"%d",uid); user = tmp; } strcat(returnstring,user); strcat(returnstring," PID = "); sprintf(temp,"%6d ",item->u.proc.pid); strcat(returnstring,temp); strcat(returnstring,"Program = "); if (name) { for (scan = name; *scan; scan++) { if (*scan == '\\') { sprintf(temp,"\\\\"); strcat(returnstring,temp); } else if (*scan > ' ' && *scan <= '~') { keeper=strlen(returnstring); returnstring[keeper]= *scan; returnstring[keeper+1]= '\0'; } else { sprintf(temp,"\\%03o", (int) scan); strcat(returnstring,temp); } } } strcpy(rs,returnstring); } static void enter_item(const char *name,int flags,int sig_number,dev_t dev, ino_t ino,SPACE_DSC *name_space) { static FILE_DSC *last = NULL; FILE_DSC *new; if (!(new = malloc(sizeof(FILE_DSC)))) { perror("malloc"); exit(1); } if (last_named && !strcmp(last_named->name,name) && last_named->name_space == name_space) new->name = NULL; else if (!(new->name = strdup(name))) { perror("strdup"); exit(1); } new->flags = flags; new->sig_num = sig_number; new->items = NULL; new->next = NULL; new->dev = dev; new->ino = ino; new->name_space = name_space; if (last) last->next = new; else files = new; last = new; new->named = last_named; if (new->name) last_named = new; } void parse_args(const char *argv) { SPACE_DSC *name_space; int flags,sig_number,no_files; SPACE_DSC *here; struct stat st; flags = 0; sig_number = SIGKILL; name_space = name_spaces; no_files = 1; flags |= FLAG_UID; no_files = 0; last_named = NULL; this_name_space = name_space; if (this_name_space == name_spaces) { if (stat(argv,&st) < 0) { perror(argv); exit(0); } if (!S_ISSOCK(st.st_mode) || (flags & FLAG_DEV)) enter_item(argv,flags,sig_number,st.st_dev,st.st_ino,NULL); } } jstring Java::gnu::io::CommPortIdentifier::native_1psmisc_1report_1owner ( jstring arg ) { char returnstring[256]; const char *filename = JvGetStringChars(arg); show_user(str,returnstring); return (*env)->NewStringUTF(env, returnstring); } #endif /* __linux__ */ ./rxtx-2.2pre2/CNI/SerialPortEvent.java0000644000175000017500000001050610614033754017615 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class SerialPortEvent extends EventObject { public static final int DATA_AVAILABLE =1; public static final int OUTPUT_BUFFER_EMPTY =2; public static final int CTS =3; public static final int DSR =4; public static final int RI =5; public static final int CD =6; public static final int OE =7; public static final int PE =8; public static final int FE =9; public static final int BI =10; private boolean OldValue; private boolean NewValue; private int eventType; /*public int eventType =0; depricated */ public SerialPortEvent(SerialPort srcport, int eventtype, boolean oldvalue, boolean newvalue) { super( srcport ); OldValue=oldvalue; NewValue=newvalue; eventType=eventtype; } public int getEventType() { return(eventType); } public boolean getNewValue() { return( NewValue ); } public boolean getOldValue() { return( OldValue ); } } ./rxtx-2.2pre2/CNI/CommDriver.java0000644000175000017500000000671210614033754016602 0ustar twernertwerner /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface CommDriver { public abstract CommPort getCommPort(String portName,int portType); public abstract void initialize(); } ./rxtx-2.2pre2/CNI/CommPortEnumerator.java0000644000175000017500000001130510614033754020327 0ustar twernertwerner /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.Enumeration; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ class CommPortEnumerator implements Enumeration { private CommPortIdentifier index; private final static boolean debug = false; static { if (debug) System.out.println("CommPortEnumerator:{}"); } CommPortEnumerator() { } /*------------------------------------------------------------------------------ nextElement() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public Object nextElement() { if(debug) System.out.println("CommPortEnumerator:nextElement()"); synchronized (CommPortIdentifier.Sync) { if(index != null) index = index.next; else index=CommPortIdentifier.CommPortIndex; return(index); } } /*------------------------------------------------------------------------------ hasMoreElements() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public boolean hasMoreElements() { if(debug) System.out.println("CommPortEnumerator:hasMoreElements() " + CommPortIdentifier.CommPortIndex == null ? false : true ); synchronized (CommPortIdentifier.Sync) { if(index != null) return index.next == null ? false : true; else return CommPortIdentifier.CommPortIndex == null ? false : true; } } } ./rxtx-2.2pre2/CNI/CommPort.java0000644000175000017500000001204710614033754016271 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ /** * CommPort */ public abstract class CommPort extends Object { protected String name; private final static boolean debug = false; public abstract void enableReceiveFraming( int f ) throws UnsupportedCommOperationException; public abstract void disableReceiveFraming(); public abstract boolean isReceiveFramingEnabled(); public abstract int getReceiveFramingByte(); public abstract void disableReceiveTimeout(); public abstract void enableReceiveTimeout( int time ) throws UnsupportedCommOperationException; public abstract boolean isReceiveTimeoutEnabled(); public abstract int getReceiveTimeout(); public abstract void enableReceiveThreshold( int thresh ) throws UnsupportedCommOperationException; public abstract void disableReceiveThreshold(); public abstract int getReceiveThreshold(); public abstract boolean isReceiveThresholdEnabled(); public abstract void setInputBufferSize( int size ); public abstract int getInputBufferSize(); public abstract void setOutputBufferSize( int size ); public abstract int getOutputBufferSize(); public void close() { if (debug) System.out.println("CommPort:close()"); try { CommPortIdentifier cp = CommPortIdentifier.getPortIdentifier(this); if ( cp != null ) cp.getPortIdentifier(this).internalClosePort(); } catch (NoSuchPortException e) { } }; public abstract InputStream getInputStream() throws IOException; public abstract OutputStream getOutputStream() throws IOException; public String getName() { if (debug) System.out.println("CommPort:getName()"); return( name ); } public String toString() { if (debug) System.out.println("CommPort:toString()"); return( name ); } } ./rxtx-2.2pre2/CNI/config.h0000644000175000017500000000215107624703212015277 0ustar twernertwerner/* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ /* Define if you have the header file. */ #define HAVE_ASM_TERMBITS_H 1 /* Define if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define if you have the header file. */ #define HAVE_GRP_H 1 /* Define if you have the header file. */ #define HAVE_PWD_H 1 /* Define if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_FCNTL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_FILE_H 1 /* Define if you have the header file. */ #define HAVE_SYS_SIGNAL_H 1 /* Define if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define if you have the header file. */ #define HAVE_TERMIOS_H 1 /* Name of package */ #define PACKAGE "Serial" /* Version number of package */ #define VERSION "2.1-6" ./rxtx-2.2pre2/CNI/UnSupportedLoggerException.java0000644000175000017500000000752110614033754022041 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * Exception thrown when a method does not support the requested functionality. * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class UnSupportedLoggerException extends Exception { /** * create an instances with no message about why the Exception was thrown. * @since JDK1.0 */ public UnSupportedLoggerException() { super(); } /** * create an instance with a message about why the Exception was thrown. * @param str A detailed message explaining the reason for the Exception. * @since JDK1.0 */ public UnSupportedLoggerException( String str ) { super( str ); } } ./rxtx-2.2pre2/CNI/SerialPort.java0000644000175000017500000001660710614033754016623 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.*; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public abstract class SerialPort extends CommPort { public static final int DATABITS_5 =5; public static final int DATABITS_6 =6; public static final int DATABITS_7 =7; public static final int DATABITS_8 =8; public static final int PARITY_NONE =0; public static final int PARITY_ODD =1; public static final int PARITY_EVEN =2; public static final int PARITY_MARK =3; public static final int PARITY_SPACE =4; public static final int STOPBITS_1 =1; public static final int STOPBITS_2 =2; public static final int STOPBITS_1_5 =3; public static final int FLOWCONTROL_NONE =0; public static final int FLOWCONTROL_RTSCTS_IN =1; public static final int FLOWCONTROL_RTSCTS_OUT =2; public static final int FLOWCONTROL_XONXOFF_IN =4; public static final int FLOWCONTROL_XONXOFF_OUT=8; public abstract void setSerialPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException; public abstract int getBaudRate(); public abstract int getDataBits(); public abstract int getStopBits(); public abstract int getParity(); public abstract void setFlowControlMode( int flowcontrol ) throws UnsupportedCommOperationException; public abstract int getFlowControlMode(); public abstract boolean isDTR(); public abstract void setDTR( boolean state ); public abstract void setRTS( boolean state ); public abstract boolean isCTS(); public abstract boolean isDSR(); public abstract boolean isCD(); public abstract boolean isRI(); public abstract boolean isRTS(); public abstract void sendBreak( int duration ); public abstract void addEventListener( SerialPortEventListener lsnr ) throws TooManyListenersException; public abstract void removeEventListener(); public abstract void notifyOnDataAvailable( boolean enable ); public abstract void notifyOnOutputEmpty( boolean enable ); public abstract void notifyOnCTS( boolean enable ); public abstract void notifyOnDSR( boolean enable ); public abstract void notifyOnRingIndicator( boolean enable ); public abstract void notifyOnCarrierDetect( boolean enable ); public abstract void notifyOnOverrunError( boolean enable ); public abstract void notifyOnParityError( boolean enable ); public abstract void notifyOnFramingError( boolean enable ); public abstract void notifyOnBreakInterrupt( boolean enable ); /* public abstract void setRcvFifoTrigger(int trigger); deprecated */ /* ---------------------- end of commapi ------------------------ */ /* can't have static abstract? public abstract static boolean staticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException; public abstract static boolean staticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException; */ public abstract byte getParityErrorChar( ) throws UnsupportedCommOperationException; public abstract boolean setParityErrorChar( byte b ) throws UnsupportedCommOperationException; public abstract byte getEndOfInputChar( ) throws UnsupportedCommOperationException; public abstract boolean setEndOfInputChar( byte b ) throws UnsupportedCommOperationException; public abstract boolean setUARTType(String type, boolean test) throws UnsupportedCommOperationException; public abstract String getUARTType() throws UnsupportedCommOperationException; public abstract boolean setBaudBase(int BaudBase) throws UnsupportedCommOperationException; public abstract int getBaudBase() throws UnsupportedCommOperationException; public abstract boolean setDivisor(int Divisor) throws UnsupportedCommOperationException; public abstract int getDivisor() throws UnsupportedCommOperationException; public abstract boolean setLowLatency() throws UnsupportedCommOperationException; public abstract boolean getLowLatency() throws UnsupportedCommOperationException; public abstract boolean setCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException; public abstract boolean getCallOutHangup() throws UnsupportedCommOperationException; } ./rxtx-2.2pre2/CNI/SerialImp.c0000755000175000017500000044015410614033754015726 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include "gnu/io/RXTXPort.h" /* dima */ #include "gnu/io/RXTXCommDriver.h" /* dima */ #include "gnu/io/PortInUseException.h" #if defined(__MWERKS__) /* dima */ #else /* dima */ #include "config.h" #endif /* dima */ #ifndef __LCC__ # include #else /* windows lcc compiler for fd_set. probably wrong */ # include #endif /* __LCC__ */ #include #include #include #include #include #include #include #ifndef WIN32 #include #include #include #include #else # include /* FIXME returns 0 in all cases on win32 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) */ # if !defined(S_ISCHR) # define S_ISCHR(m) (1) # endif /* S_ISCHR(m) */ #endif /* WIN32 */ #ifdef HAVE_ASM_TERMBITS_H //# include #endif /* HAVE_ASM_TERMBITS_H */ #ifdef HAVE_TERMIOS_H # include #endif /* HAVE_TERMIOS_H */ #ifdef HAVE_SIGNAL_H # include #endif /* HAVE_SIGNAL_H */ #ifdef HAVE_SYS_SIGNAL_H # include #endif /* HAVE_SYS_SIGNAL_H */ #include #ifdef HAVE_SYS_TIME_H # include #endif /* HAVE_SYS_TIME_H */ # include #ifdef HAVE_SYS_FCNTL_H # include #endif /* HAVE_SYS_FCNTL_H */ #ifdef HAVE_SYS_FILE_H # include #endif /* HAVE_SYS_FILE_H */ #ifdef LFS /* File Lock Server */ # include # include # include #endif /* FLS */ #if defined(__linux__) # include /* fix for linux-2.3.4? kernels */ # include # include #endif /* __linux__ */ #if defined(__sun__) # include # include #endif /* __sun__ */ #if defined(__hpux__) # include #endif /* __hpux__ */ /* FIXME -- new file */ #if defined(__APPLE__) # include # include # include # include #endif /* __APPLE__ */ #ifdef __unixware__ # include #endif /* __unixware__ */ #ifdef HAVE_PWD_H #include #endif /* HAVE_PWD_H */ #ifdef HAVE_GRP_H #include #endif /* HAVE_GRP_H */ #include extern int errno; #include "SerialImp.h" #include #include #include #include #include #include #include //#define TRENT_IS_HERE_DEBUGGING_ENUMERATION struct preopened *preopened_port = NULL; #if defined(__sun__) || defined(__hpux__) /*---------------------------------------------------------- cfmakeraw accept: termios to be set to raw perform: initializes the termios structure. return: int 0 on success exceptions: none comments: this is how linux cfmakeraw works. termios(3) manpage ----------------------------------------------------------*/ int cfmakeraw ( struct termios *term ) { ENTER( "cfmakeraw" ); term->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); term->c_oflag &= ~OPOST; term->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); term->c_cflag &= ~(CSIZE|PARENB); term->c_cflag |= CS8; LEAVE( "cfmakeraw" ); return( 0 ); } #endif /* __sun__ || __hpux__ */ #ifdef DEBUG_TIMING struct timeval snow, enow, seloop, eeloop; #define report_time_eventLoop( ) { \ if ( seloop.tv_sec == eeloop.tv_sec && seloop.tv_usec == eeloop.tv_usec ) \ { \ gettimeofday(&eeloop, NULL); \ seloop.tv_sec = eeloop.tv_sec; \ seloop.tv_usec = eeloop.tv_usec; \ printf("%8i sec : %8i usec\n", eeloop.tv_sec - seloop.tv_sec, eeloop.tv_usec - seloop.tv_usec); \ } \ } #define report_time( ) \ { \ struct timeval now; \ gettimeofday(&now, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec\n", __TIME__, __LINE__, now.tv_sec, now.tv_usec); \ } #define report_time_start( ) \ { \ gettimeofday(&snow, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec", __TIME__, __LINE__, snow.tv_sec, snow.tv_usec); \ } #define report_time_end( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #else #define report_time_eventLoop( ){}; #define report_time( ) {} #define report_time_start( ) {} #define report_time_end( ) {} #endif /* DEBUG_TIMING */ struct event_info_struct *master_index = NULL; /*---------------------------------------------------------- RXTXPort.Initialize accept: none perform: Initialize the native library return: none exceptions: none comments: Basically this just causes rxtx to ignore signals. signal handlers where tried but the VM (circa 1.1) did not like it. It also allows for some sanity checks on linux boxes if DEBUG is enabled. ----------------------------------------------------------*/ void gnu::io::RXTXPort::Initialize( ) { #if defined DEBUG && defined(__linux__) struct utsname name; char message[80]; #endif /* DEBUG && __linux__ */ /* This bit of code checks to see if there is a signal handler installed for SIGIO, and installs SIG_IGN if there is not. This is necessary for the native threads jdk, but we don't want to do it with green threads, because it slows things down. Go figure. */ /* POSIX signal handling functions */ #if !defined(WIN32) struct sigaction old_action; sigaction(SIGIO, NULL, &old_action); /* green threads already has handler, no touch */ if (old_action.sa_handler == NULL) { /* no handler when using native threads, set to ignore */ struct sigaction new_action; sigset_t block_mask; sigemptyset(&block_mask); new_action.sa_handler = SIG_IGN; #ifdef SA_RESTART new_action.sa_flags = SA_RESTART; #endif /* SA_RESTART */ new_action.sa_mask = block_mask; sigaction(SIGIO, &new_action, NULL); } #endif /* !WIN32 */ ENTER( "RXTXPort:Initialize" ); #ifdef PRERELEASE /* this is just for avoiding confusion while testing new libraries */ #ifdef DEBUG_MW mexPrintf("RXTX Prerelease for testing Tue Feb 19 18:00:27 EST 2002\n"); #else printf("RXTX Prerelease for testing Thu Feb 21 19:31:38\n"); #endif /* DEBUG_MW */ #endif /* PRERELEASE */ #if DEBUG_TIMING gettimeofday(&seloop, NULL); #endif /* DEBUG_TIMING */ #if defined(DEBUG) && defined(__linux__) /* Lets let people who upgraded kernels know they may have problems */ if (uname (&name) == -1) { report( "RXTX WARNING: cannot get system name\n" ); LEAVE( "RXTXPort:Initialize" ); return; } if(strcmp(name.release,UTS_RELEASE)!=0) { sprintf( message, LINUX_KERNEL_VERSION_ERROR, UTS_RELEASE, name.release ); report( message ); getchar(); } LEAVE( "RXTXPort:Initialize" ); #endif /* DEBUG && __linux__ */ } /*---------------------------------------------------------- RXTXPort.find_preopened_ports accept: The device to find if preopened. ie "/dev/ttyS0" perform: find the filedescriptor if preopened return: fd exceptions: none comments: see RXTXPort.nativeStaticSetDSR RXTXPort.nativeStaticSetDTR RXTXPort.nativeStaticSetRTS RXTXPort.nativeStaticSetSerialPortParams This is used so people can setDTR low before calling the Java open(). ----------------------------------------------------------*/ int find_preopened_ports( const char *filename ) { int fd; struct preopened *p = preopened_port; if( !p ) { return(0); } for(;;) { if( !strcmp( p->filename, filename) ) { fd = p->fd; if( p->prev && p->next ) { p->prev->next = p->next; p->next->prev = p->prev; } else if ( p->prev ) { p->prev->next = NULL; } else if ( p->next ) { p->next->prev = NULL; } else { free( p ); preopened_port = NULL; return( fd ); } free( p ); return( fd ); } if( p->next ) { p = p->next; } else { return(0); } } } /*---------------------------------------------------------- configure_port accept: env, file descriptor perform: set the termios struct to sane settings and return: 0 on success exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ int configure_port( int fd ) { struct termios ttyset; if( fd < 0 ) goto fail; if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_iflag = INPCK; ttyset.c_lflag = 0; ttyset.c_oflag = 0; ttyset.c_cflag = CREAD | CS8 | CLOCAL; ttyset.c_cc[ VMIN ] = 0; ttyset.c_cc[ VTIME ] = 0; #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, B9600 ) < 0 ) goto fail; #else if( cfsetispeed( &ttyset, B9600 ) < 0 ) goto fail; if( cfsetospeed( &ttyset, B9600 ) < 0 ) goto fail; #endif if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; #ifndef WIN32 fcntl( fd, F_SETOWN, getpid() ); #endif /* WIN32 */ #ifdef FASYNC fcntl( fd, F_SETFL, FASYNC ); #endif /* FASYNC */ return 0; fail: return 1; } /*---------------------------------------------------------- get_java_baudrate accept: the native speed setting perform: translate the native speed to a Java speed return: the Java speed exceptions: none comments: This is used by open() (indirectly) and nativeStaticGetBaudRate() ----------------------------------------------------------*/ int get_java_baudrate( int native_speed ) { switch( native_speed ) { case B0: return 0; case B50: return 50; case B75: return 75; case B110: return 110; case B134: return 134; case B150: return 150; case B200: return 200; case B300: return 300; case B600: return 600; case B1200: return 1200; case B1800: return 1800; case B2400: return 2400; case B4800: return 4800; case B9600: return 9600; case B19200: return 19200; case B38400: return 38400; case B57600: return 57600; default: return -1; } } /*---------------------------------------------------------- set_java_vars accept: fd of the preopened device perform: Now that the object is instatiated, set the Java variables to the preopened states. return: none exceptions: none comments: preopened refers to the fact that the serial port has been configured before the Java open() has been called. ----------------------------------------------------------*/ void set_java_vars( gnu::io::RXTXPort *p, int fd ) { struct termios ttyset; int databits = -1; int jparity = -1; int stop_bits = STOPBITS_1_5; int baudrate; if( tcgetattr( fd, &ttyset ) < 0 ) { report( "Cannot Get Serial Port Settings\n" ); return; } switch( ttyset.c_cflag&CSIZE ) { case CS5: databits = JDATABITS_5; break; case CS6: databits = JDATABITS_6; break; case CS7: databits = JDATABITS_7; break; case CS8: databits = JDATABITS_8; break; } #ifdef CMSPAR switch( ttyset.c_cflag&(PARENB|PARODD|CMSPAR ) ) { #else switch( ttyset.c_cflag&(PARENB|PARODD) ) { #endif /* CMSPAR */ case 0: jparity = JPARITY_NONE; break; case PARENB: jparity = JPARITY_EVEN; break; case PARENB | PARODD: jparity = JPARITY_ODD; break; #ifdef CMSPAR case PARENB | PARODD | CMSPAR: jparity = JPARITY_MARK; break; case PARENB | CMSPAR: jparity = JPARITY_SPACE; break; #endif /* CMSPAR */ } switch( ttyset.c_cflag&(CSTOPB) ) { case 0: stop_bits = STOPBITS_1; break; case CSTOPB: stop_bits = STOPBITS_2; break; } /* dima writes: Trent, here is something I found with google: (freebsd list freebsd-current@freebsd.org) Andrzej Bialecki asked: I tried to compile a piece of software, probably for Linux, and I noticed that we don't define CBAUD constant. I'm not sure, but I think POSIX defines and uses it. Should(n't) we? Bruce Evans answered: CBAUD is for SYSV compatibility. It is considerably inferior to POSIX's cf{get,set}{i,o}speed and shouldn't be provided or used. */ #if defined(CBAUD)/* dima */ baudrate = ttyset.c_cflag&CBAUD; #else baudrate = cfgetispeed(&ttyset); #endif p->speed = ( jint ) get_java_baudrate(baudrate) ; p->dataBits = ( jint ) databits ; p->stopBits = ( jint ) stop_bits ; p->parity = ( jint ) jparity ; } /*---------------------------------------------------------- RXTXPort.open accept: The device to open. ie "/dev/ttyS0" perform: open the device, set the termios struct to sane settings and return the filedescriptor return: fd exceptions: IOExcepiton comments: Very often people complain about not being able to get past this function and it turns out to be permissions on the device file or bios has the device disabled. ----------------------------------------------------------*/ jint gnu::io::RXTXPort::open( java::lang::String *jstr ) { int fd =0, i; int pid = -1; char message[80]; report_time_start( ); char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ this->pid = pid; /* LOCK is one of three functions defined in SerialImp.h uucp_lock Solaris fhs_lock Linux system_does_not_lock Win32 */ ENTER( "RXTXPort:open" ); if ( LOCK( filename, pid ) ) { sprintf( message, "open: locking has failed for %s\n", filename ); report( message ); goto fail; } else { sprintf( message, "open: locking worked for %s\n", filename ); report( message ); } /* This is used so DTR can remain low on 'open()' */ if( fd ) { return (jint)fd; } do { fd=::OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if( configure_port( fd ) ) goto fail; sprintf( message, "open: fd returned is %i\n", fd ); report( message ); LEAVE( "RXTXPort:open" ); report_time_end( ); return (jint)fd; fail: LEAVE( "RXTXPort:open" ); snprintf(message, 79, "%s %s",strerror(errno)," in open"); throw new gnu::io::PortInUseException( JvNewStringUTF( message ) ); //throw new PortInUseException; return -1; } /*---------------------------------------------------------- RXTXPort.nativeClose accept: none perform: get the fd from the java end and close it return: none exceptions: none ----------------------------------------------------------*/ void gnu::io::RXTXPort::nativeClose( java::lang::String *jstr ) { int result = -1, i; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; report_time_start( ); #ifndef WIN32 #endif /* WIN32 */ /* UNLOCK is one of three functions defined in SerialImp.h uucp_unlock Solaris fhs_unlock Linux system_does_not_unlock Win32 */ ENTER( "RXTXPort:nativeClose" ); if (this->fd > 0) { do { result=::CLOSE (this->fd); } while ( result < 0 && errno == EINTR ); UNLOCK( filename, this->pid ); } LEAVE( "RXTXPort:nativeClose" ); report_time_end( ); return; } /*---------------------------------------------------------- RXTXPort.set_port_params accept: env, fd, speed, data bits, stop bits, parity perform: set the serial port parameters return: 1 on error exceptions: UnsupportedCommOperationException comments: There is a static method and an instance method that use this function. The static method gets a fd first. The instance method can get the fd from the object. see: nativeSetSerialPortParams & nativeStaticSerialPortParams ----------------------------------------------------------*/ int set_port_params( int fd, int cspeed, int dataBits, int stopBits, int parity ) { struct termios ttyset; int result = 0; #if defined(TIOCGSERIAL) struct serial_struct sstruct; #endif /* TIOCGSERIAL */ if( tcgetattr( fd, &ttyset ) < 0 ) { report( "set_port_params: Cannot Get Serial Port Settings\n" ); return(1); } if( translate_data_bits( &(ttyset.c_cflag), dataBits ) ) { report( "set_port_params: Invalid Data Bits Selected\n" ); return(1); } if( translate_stop_bits( &(ttyset.c_cflag), stopBits ) ) { report( "set_port_params: Invalid Stop Bits Selected\n" ); return(1); } if( translate_parity( &(ttyset.c_cflag), parity ) ) { report( "set_port_params: Invalid Parity Selected\n" ); return(1); } #ifdef __FreeBSD__ if( cfsetspeed( &ttyset, cspeed ) < 0 ) { report( "set_port_params: Cannot Set Speed\n" ); return( 1 ); } #endif /* __FreeBSD__ */ if( !cspeed ) { /* hang up the modem aka drop DTR */ /* Unix should handle this */ /* mexPrintf("dropping DTR\n"); printf("dropping DTR\n"); */ ioctl( fd, TIOCMGET, &result ); result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); } if( cfsetispeed( &ttyset, cspeed ) < 0 || cfsetospeed( &ttyset, cspeed ) < 0 ) { /* Some people need to set the baud rate to ones not defined in termios.h This includes some baud rates which are supported by CommAPI in Unix ( 14400, 28800, 128000, 256000 ) If the above fails, we assume this is not a defined baud rate on Unix. With Win32, It is assumed the kernel will do this for us. The baud_base and desired speed are used to calculate a custom divisor. On linux the setserial man page covers this. */ #if defined(TIOCGSERIAL) sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); cspeed = B38400; #endif /* TIOCGSERIAL */ if( cfsetispeed( &ttyset, cspeed ) < 0 || cfsetospeed( &ttyset, cspeed ) < 0 ) { /* OK, we tried everything */ report( "nativeSetSerialPortParams: Cannot Set Speed\n" ); return( 1 ); } #if defined(TIOCSSERIAL) /* It is assumed Win32 does this for us */ if ( sstruct.baud_base < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { return( 1 ); } #endif /* TIOCSSERIAL */ } if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) { report("tcsetattr returns nonzero value!\n"); return( 1 ); } return(0); } /*---------------------------------------------------------- RXTXPort.nativeSetSerialPortParams accept: speed, data bits, stop bits, parity perform: set the serial port parameters return: jboolean 1 on error exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeSetSerialPortParams( jint speed, jint dataBits, jint stopBits, jint parity ) { int fd = (int) this->fd; int cspeed = translate_speed( speed ); ENTER( "RXTXPort:nativeSetSerialPortParams" ); report_time_start( ); if (cspeed < 0 ) { report(" invalid cspeed\n"); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "BaudRate could not be set to the specified value" ); */ return(1); } if( set_port_params( fd, cspeed, dataBits, stopBits, parity ) ) { report("set_port_params failed\n"); LEAVE( "RXTXPort:nativeSetSerialPortParams" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "nativeSetSerialPortParams", strerror( errno ) ); */ return(1); } LEAVE( "RXTXPort:nativeSetSerialPortParams" ); report_time_end( ); return(0); } /*---------------------------------------------------------- translate_speed accept: speed in bits-per-second perform: convert bits-per-second to a speed_t constant return: speed_t constant exceptions: returns -1 and the calling method throws the exception so it may be caught in java. comments: Only the lowest level code should know about the magic constants. ----------------------------------------------------------*/ int translate_speed( jint speed ) { LEAVE( "RXTXPort:translate_speed" ); switch( speed ) { case 0: return B0; case 50: return B50; case 75: return B75; case 110: return B110; case 134: return B134; case 150: return B150; case 200: return B200; case 300: return B300; case 600: return B600; case 1200: return B1200; case 1800: return B1800; case 2400: return B2400; case 4800: return B4800; case 9600: return B9600; case 19200: return B19200; case 38400: return B38400; #ifdef B57600 case 57600: return B57600; #endif /* B57600 */ #ifdef B115200 case 115200: return B115200; #endif /* B115200 */ #ifdef B230400 case 230400: return B230400; #endif /* B230400 */ #ifdef B460800 case 460800: return B460800; #endif /* B460800 */ #ifdef B14400 case 14400: return B14400; #endif /* B14400 */ #ifdef B28800 case 28800: return B28800; #endif /* B28800 */ #ifdef B128000 /* dima */ case 128000: return B128000; #endif /* dima */ #ifdef B256000 /* dima */ case 256000: return B256000; #endif /* dima */ } /* Handle custom speeds */ if( speed >= 0 ) return speed; else { LEAVE( "RXTXPort:translate_speed: Error condition" ); return -1; } } /*---------------------------------------------------------- translate_data_bits accept: gnu.io.SerialPort.DATABITS_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException ----------------------------------------------------------*/ int translate_data_bits( tcflag_t *cflag, jint dataBits ) { int temp = (*cflag) & ~CSIZE; ENTER( "translate_date_bits" ); switch( dataBits ) { case JDATABITS_5: (*cflag) = temp | CS5; return 0; case JDATABITS_6: (*cflag) = temp | CS6; return 0; case JDATABITS_7: (*cflag) = temp | CS7; return 0; case JDATABITS_8: (*cflag) = temp | CS8; return 0; } LEAVE( "RXTXPort:translate_date_bits" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "databit value not supported" ); */ return 1; } /*---------------------------------------------------------- translate_stop_bits accept: gnu.io.SerialPort.STOPBITS_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException comments: If you specify 5 data bits and 2 stop bits, the port will allegedly use 1.5 stop bits. Does anyone care? ----------------------------------------------------------*/ int translate_stop_bits( tcflag_t *cflag, jint stopBits ) { ENTER( "translate_stop_bits" ); switch( stopBits ) { case STOPBITS_1: (*cflag) &= ~CSTOPB; LEAVE( "RXTXPort:translate_stop_bits" ); return 0; /* ok.. lets try putting it in and see if anyone notices */ case STOPBITS_1_5: if ( translate_data_bits( cflag, JDATABITS_5 ) ) return( 1 ); return 0; case STOPBITS_2: (*cflag) |= CSTOPB; LEAVE( "RXTXPort:translate_stop_bits" ); return 0; } LEAVE( "RXTXPort:translate_stop_bits" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "stopbit value not supported" ); */ return 1; } jint gnu::io::RXTXPort::nativeGetFlowControlMode( jint fd ) { struct termios ttyset; int ret = 0; tcgetattr( fd, &ttyset ); if( ttyset.c_cflag & HARDWARE_FLOW_CONTROL ) { ret |= ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ); } if ( ttyset.c_iflag & IXOFF ) { ret |= FLOWCONTROL_XONXOFF_IN; } if ( ttyset.c_iflag & IXON ) { ret |= FLOWCONTROL_XONXOFF_OUT; } return( (jint) ret ); } jint gnu::io::RXTXPort::nativeGetParity( jint fd ) { struct termios ttyset; if( tcgetattr( fd, &ttyset ) < 0 ) { report("nativeGetParity: tcgetattr failed\n"); return( -1 ); } #ifdef CMSPAR if ( ( ttyset.c_cflag & PARENB ) && ( ttyset.c_cflag & PARODD ) && ( ttyset.c_cflag & CMSPAR ) ) { return( JPARITY_MARK ); } else if ( ttyset.c_cflag & ( PARENB && ttyset.c_cflag & CMSPAR ) ) { return( JPARITY_SPACE ); } #endif /* CMSPAR */ if ( ttyset.c_cflag & PARENB && ttyset.c_cflag & PARODD ) { return( JPARITY_ODD ); } else if ( ttyset.c_cflag & PARENB ) { return( JPARITY_EVEN ); } else { return( JPARITY_NONE ); } } /*---------------------------------------------------------- translate_parity accept: javax.comm.SerialPort.PARITY_* constant perform: set proper termios c_cflag bits return: 1 on error exceptions: UnsupportedCommOperationException comments: The CMSPAR bit should be used for 'mark' and 'space' parity, but it's not in glibc's includes. Oh well, rarely used anyway. ----------------------------------------------------------*/ int translate_parity( tcflag_t *cflag, jint parity ) { ENTER( "translate_parity" ); #ifdef CMSPAR (*cflag) &= ~(PARENB | PARODD | CMSPAR ); #endif /* CMSPAR */ switch( parity ) { case JPARITY_NONE: LEAVE( "translate_parity" ); return 0; case JPARITY_EVEN: (*cflag) |= PARENB; LEAVE( "translate_parity" ); return 0; case JPARITY_ODD: (*cflag) |= PARENB | PARODD; LEAVE( "translate_parity" ); return 0; #ifdef CMSPAR case JPARITY_MARK: (*cflag) |= PARENB | PARODD | CMSPAR; LEAVE( "translate_parity" ); return 0; case JPARITY_SPACE: (*cflag) |= PARENB | CMSPAR; LEAVE( "translate_parity" ); return 0; #endif /* CMSPAR */ default: printf("Parity missed %i\n", (int) parity ); } LEAVE( "translate_parity" ); /* For some reason the native exceptions are not being caught. Moving this to the Java side fixed the issue. taj. throw_java_exception( env, UNSUPPORTED_COMM_OPERATION, "", "parity value not supported" ); */ return 1; } #if !defined(TIOCSERGETLSR) && !defined(WIN32) /*---------------------------------------------------------- drain_loop() accept: perform: call tcdrain() and report an event when it succeds return: none exceptions: comments: ----------------------------------------------------------*/ void *drain_loop( void *arg ) { struct event_info_struct *eis = ( struct event_info_struct * ) arg; /* char msg[80]; */ int i; pthread_detach( pthread_self() ); for(i=0;;i++) { report_verbose("drain_loop: looping\n"); #if defined(__sun__) /* FIXME: No time to test on all OS's for production */ usleep(5000); #else usleep(1000000); #endif /* __sun__ */ /* system_wait(); */ if( eis->eventloop_interrupted ) { goto end; } if( tcdrain( eis->fd ) == 0 ) { if( eis && eis->writing ) { /* sprintf(msg, "drain_loop: setting OUTPUT_BUFFER_EMPTY\n" ); report( msg ); */ eis->output_buffer_empty_flag = 1; eis->writing=false; } else { if( !eis ) { goto end; } report_verbose("drain_loop: writing not set\n"); } } else { report("drain_loop: tcdrain bad fd\n"); goto end; } } end: report("------------------ drain_loop exiting ---------------------\n"); eis->closing = 1; pthread_exit( NULL ); return( NULL ); } #endif /* !defined(TIOCSERGETLSR) && !defined(WIN32) */ /*---------------------------------------------------------- finalize_threads( ) accept: event_info_struct used to access java and communicate with eventLoop(). perform: see comments return: none exceptions: none comments: The is the pthread spawned on systems that can't access the LSR (Line Status Register). Without access to the LSR rxtx cannot detect when the output buffer is empty in the Monitor Thread. The solution is to return the value of write's return but hang around in this thread waiting for tcdrain to finish. once the drain has finished, we let the eventLoop know that the output buffer is empty and the Signal is sent. ----------------------------------------------------------*/ void finalize_threads( struct event_info_struct *eis ) { #if !defined(TIOCSERGETLSR) && !defined( WIN32 ) /* used to shut down any remaining write threads */ eis->output_buffer_empty_flag = 0; ENTER("finalize_threads\n"); /* need to clean up again after working events */ LEAVE("---------------- finalize_threads ---------------"); #endif /* TIOCSERGETLSR & !WIN32 */ } #if !defined(TIOCSERGETLSR) && !defined( WIN32 ) static void warn_sig_abort( int signo ) { char msg[80]; sprintf( msg, "RXTX Recieved Signal %i\n", signo ); /* report_error( msg ); */ } #endif /* TIOCSERGETLSR */ /*---------------------------------------------------------- init_threads( ) accept: none perform: return: none exceptions: none comments: ----------------------------------------------------------*/ int init_threads( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { #if !defined(TIOCSERGETLSR) & !defined(WIN32) sigset_t newmask, oldmask; struct sigaction newaction, oldaction; pthread_t tid; report_time_start( ); report("init_threads: start\n"); sigemptyset(&newmask); sigaddset(&newmask, SIGCHLD); newaction.sa_handler = warn_sig_abort; sigemptyset( &newaction.sa_mask ); #ifdef SA_INTERRUPT newaction.sa_flags = SA_INTERRUPT; #endif /* SA_INTERRUPT */ #ifdef SA_RESTART newaction.sa_flags = SA_RESTART; #endif /* SA_RESTART */ sigaction(SIGABRT, &newaction, &oldaction); sigaction(SIGCHLD, &newaction, &oldaction); sigaction(SIGALRM, &newaction, &oldaction); sigaction(SIGCONT, &newaction, &oldaction); /* sigaction(SIGPOLL, &newaction, &oldaction); sigaction(SIGTRAP, &newaction, &oldaction); sigaction(SIGBUS, &newaction, &oldaction); sigaction(SIGSEGV, &newaction, &oldaction); sigaction(SIGFPE, &newaction, &oldaction); sigaction(SIGILL, &newaction, &oldaction); sigfillset(&newmask); sigprocmask( SIG_SETMASK, &newmask, &oldmask ); pthread_sigmask( SIG_BLOCK, &newmask, &oldmask ); */ sigprocmask( SIG_SETMASK, &newmask, &oldmask ); report("init_threads: creating drain_loop\n"); pthread_create( &tid, NULL, drain_loop, (void *) eis ); pthread_detach( tid ); #endif /* TIOCSERGETLSR */ report("init_threads: set eis\n"); p->eis = ( jint ) eis; report("init_threads: stop\n"); report_time_end( ); return( 1 ); } /*---------------------------------------------------------- RXTXPort.writeByte accept: byte to write (passed as int) jboolean interrupted (no events if true) perform: write a single byte to the port return: none exceptions: IOException ----------------------------------------------------------*/ void gnu::io::RXTXPort::writeByte( jint ji, jboolean interrupted ) { #ifndef TIOCSERGETLSR struct event_info_struct *index = master_index; #endif unsigned char byte = (unsigned char)ji; int fd = ( int ) this->fd; int result; char msg[80]; #if defined ( __sun__ ) int count; #endif /* __sun__ */ report_time_start(); ENTER( "RXTXPort:writeByte" ); do { sprintf( msg, "writeByte %c>>\n", byte ); report( msg ); result=WRITE (fd, (void * ) &byte, sizeof(unsigned char)); } while (result < 0 && errno==EINTR); if ( result < 0 && errno != EINTR ) { snprintf( msg, 79, "%s%s", strerror( errno ), " in writeByte" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); /* On win32 I'm not sure how many bytes made it out */ return; } /* This makes write for win32, glinux and Sol behave the same #if defined ( __sun__ ) do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); count++; } while (result && errno==EINTR && count <3); #endif *//* __sun __ */ #ifndef TIOCSERGETLSR if( ! interrupted ) { index = master_index; if( index ) { while( index->fd != fd && index->next ) index = index->next; } index->writing = 1; report( "writeByte: index->writing = 1" ); } #endif sprintf( msg, "RXTXPort:writeByte %i\n", result ); report( msg ); LEAVE( "RXTXPort:writeByte" ); if(result >= 0) { report_time_end(); return; } snprintf( msg, 79, "%s%s", strerror( errno ), " in writeByte" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); } /*---------------------------------------------------------- RXTXPort.writeArray accept: jbarray: bytes used for writing offset: offset in array to start writing count: Number of bytes to write jboolean interrupted (no events if true) perform: write length bytes of jbarray return: none exceptions: IOException ----------------------------------------------------------*/ void gnu::io::RXTXPort::writeArray( jbyteArray jbarray, jint offset, jint count, jboolean interrupted ) { #ifndef TIOCSERGETLSR struct event_info_struct *index = master_index; #endif /* TIOCSERGETLSR */ int fd; int result=0,total=0; jbyte *out = elements( jbarray ); char msg[80]; #if defined ( __sun__ ) int icount; #endif /* __sun__ */ #if defined ( __sun__ ) struct timespec retspec; retspec.tv_sec = 0; retspec.tv_nsec = 50000; #endif /* __sun__ */ fd = ( int ) this->fd; report_time_start(); ENTER( "writeArray" ); /* warning Roy Rogers */ /* sprintf( message, "::::RXTXPort:writeArray(%s);\n", (char *) body ); report_verbose( message ); */ do { result=WRITE (fd, (void * ) ((char *) out + total + offset), count - total); /* dima */ if(result >0){ total += result; } report("writeArray()\n"); } while ( ( total < count ) && ( (result < 0 && errno==EINTR ) || ( result >= 0 ) ) ) ; if ( result < 0 && errno != EINTR ) { snprintf( msg, 79, "%s%s", strerror( errno ), " in writeArray" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); /* On win32 I'm not sure how many bytes made it out */ return; } /* This makes write for win32, glinux and Sol behave the same #if defined ( __sun__ ) do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); icount++; } while (result && errno==EINTR && icount <3); #endif *//* __sun__ */ #ifndef TIOCSERGETLSR if( !interrupted ) { if( index ) { while( index->fd != fd && index->next ) index = index->next; } index->writing = 1; report( "writeArray: index->writing = 1" ); } #endif /* TIOCSERGETLSR */ /* 50 ms sleep to make sure read can get in what I think is happening here is the data writen is causing signals, the event loop can't select with data available I think things like BlackBox with 2 ports open are getting signals for both the reciever and transmitter since they are the same PID. Things just start spinning out of control after that. */ LEAVE( "RXTXPort:writeArray" ); report_time_end(); return; fail: snprintf( msg, 79, "%s%s", strerror( errno ), " in writeArray" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); } /*---------------------------------------------------------- RXTXPort.nativeDrain accept: jboolean interrupted (no events if true) perform: wait until all data is transmitted return: none exceptions: IOException comments: java.io.OutputStream.flush() is equivalent to tcdrain, not tcflush, which throws away unsent bytes count logic added to avoid infinite loops when EINTR is true... Thread.yeild() was suggested. ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeDrain( jboolean interrupted ) { int fd = ( int ) this->fd; struct event_info_struct *eis = ( struct event_info_struct * ) this->eis; int result, count=0; char message[80]; ENTER( "SerialImp.c:drain()" ); report_time_start( ); do { report_verbose( "nativeDrain: trying tcdrain\n" ); result=tcdrain(fd); count++; } while (result && errno==EINTR && count <3); sprintf( message, "RXTXPort:drain() returns: %i\n", result ); report_verbose( message ); #if defined(__sun__) /* FIXME: No time to test on all OS's for production */ return( true ); #endif /* __sun__ */ LEAVE( "RXTXPort:drain()" ); if( result ) { snprintf( message, 79, "%s%s", strerror( errno ), " in nativeDrain" ); throw new java::io::IOException( JvNewStringUTF( message ) ); } if( interrupted ) return( false ); #if !defined(TIOCSERGETLSR) && !defined(WIN32) if( eis && eis->writing ) { eis->writing=false; eis->output_buffer_empty_flag = 0; } #endif /* !TIOCSERGETLSR !WIN32 */ if( eis && eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { send_event( this, eis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); } report_time_end( ); return( false ); } /*---------------------------------------------------------- RXTXPort.sendBreak accept: duration in milliseconds. perform: send break for actual time. not less than 0.25 seconds. exceptions: none comments: not very precise ----------------------------------------------------------*/ void gnu::io::RXTXPort::sendBreak( jint duration ) { int fd = ( int ) this->fd; report_time_start( ); ENTER( "RXTXPort:sendBreak()" ); tcsendbreak( fd, (int)( duration / 250 ) ); report_time_end( ); LEAVE( "RXTXPort:sendBreak()" ); } /*---------------------------------------------------------- RXTXPort.NativegetReceiveTimeout accept: none perform: get termios.c_cc[VTIME] return: VTIME comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ jint gnu::io::RXTXPort::NativegetReceiveTimeout( ) { int fd = this->fd; struct termios ttyset; char msg[80]; ENTER( "RXTXPort:nativegetRecieveTimeout()" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:nativegetRecieveTimeout()" ); return(ttyset.c_cc[ VTIME ] * 100); fail: LEAVE( "RXTXPort:nativegetRecieveTimeout()" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeGetRecieveTimeout()" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return -1; } /*---------------------------------------------------------- RXTXPort.NativeisReceiveTimeoutEnabled accept: none perform: determine if VTIME is none 0 return: true if VTIME > 0 else false comments: see NativeEnableReceiveTimeoutThreshold ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::NativeisReceiveTimeoutEnabled( ) { int fd = this->fd; struct termios ttyset; char msg[80]; ENTER( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); return(ttyset.c_cc[ VTIME ] > 0 ? true:false); fail: LEAVE( "RXTXPort:NativeisRecieveTimeoutEnabled()" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in isRecieveTimeoutEnabled()" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return false; } /*---------------------------------------------------------- RXTXPort.isDSR accept: none perform: check status of DSR return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: DSR stands for Data Set Ready ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isDSR( ) { unsigned int result = 0; int fd = this->fd; char message[80]; ENTER( "RXTXPort:isDSR" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isDSR returns %i\n", result & TIOCM_DSR ); report( message ); LEAVE( "RXTXPort:isDSR" ); if( result & TIOCM_DSR ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.isCD accept: none perform: check status of CD return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for Carrier Detect The following comment has been made... "well, it works, there might ofcourse be a bug, but making DCD permanently on fixed it for me so I don't care" ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isCD( ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:isCD" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isCD returns %i\n", result & TIOCM_CD ); LEAVE( "RXTXPort:isCD" ); if( result & TIOCM_CD ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.isCTS accept: none perform: check status of CTS return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send. ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isCTS( ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:isCTS" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isCTS returns %i\n", result & TIOCM_CTS ); report( message ); LEAVE( "RXTXPort:isCTS" ); if( result & TIOCM_CTS ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.isRI accept: none perform: check status of RI return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for Ring Indicator ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isRI( ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:isRI" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isRI returns %i\n", result & TIOCM_RI ); report( message ); LEAVE( "RXTXPort:isRI" ); if( result & TIOCM_RI ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.isRTS accept: none perform: check status of RTS return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: tcgetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isRTS( ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:isRTS" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "RXTXPort:isRTS returns %i\n", result & TIOCM_RTS ); report( message ); LEAVE( "RXTXPort:isRTS" ); if( result & TIOCM_RTS ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.setRTS accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_RTS is set if false TIOCM_RTS is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ void gnu::io::RXTXPort::setRTS( jboolean state ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:setRTS" ); ioctl( fd, TIOCMGET, &result ); if( state == true ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setRTS( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setRTS" ); return; } /*---------------------------------------------------------- RXTXPort.setDSR accept: state flag to set/unset. perform: depends on the state flag if true TIOCM_DSR is set if false TIOCM_DSR is unset return: none exceptions: none comments: tcsetattr with c_cflag CRTS_IFLOW ----------------------------------------------------------*/ void gnu::io::RXTXPort::setDSR( jboolean state ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:setDSR()" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "setDSR( %i )\n", state ); if( state == true ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setDSR( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setDSR()" ); return; } /*---------------------------------------------------------- RXTXPort.isDTR accept: none perform: check status of DTR return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::isDTR( ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:isDTR" ); ioctl( fd, TIOCMGET, &result ); sprintf( message, "isDTR( ) returns %i\n", result& TIOCM_DTR ); report( message ); LEAVE( "RXTXPort:isDTR" ); if( result & TIOCM_DTR ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.setDTR accept: new DTR state perform: if state is true, TIOCM_DTR is set if state is false, TIOCM_DTR is unset return: none exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ void gnu::io::RXTXPort::setDTR( jboolean state ) { unsigned int result = 0; int fd = ( int ) this->fd; char message[80]; ENTER( "RXTXPort:setDTR" ); ioctl( fd, TIOCMGET, &result ); if( state == true ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); sprintf( message, "setDTR( %i )\n", state ); report( message ); LEAVE( "RXTXPort:setDTR" ); return; } /*---------------------------------------------------------- RXTXPort.static_add_filename accept: filename and fd to save perform: add a struct holding the info to a linked list return: none exceptions: none comments: the info is checked on open() if its in the list no changes are performed on the file on open() comments: see RXTXPort.nativeStaticSetDSR RXTXPort.nativeStaticSetDTR RXTXPort.nativeStaticSetRTS RXTXPort.nativeStaticSetSerialPortParams This is used so people can setDTR low before calling the -----------------------------------------------------------*/ void static_add_filename( const char *filename, int fd) { struct preopened *newp, *p = preopened_port; newp = ( struct preopened *) malloc( sizeof( struct preopened ) ); strcpy( newp->filename, filename ); newp->fd = fd; if( !p ) { newp->next = NULL; newp->prev = NULL; preopened_port = newp; return; } for(;;) { if( !strcmp( p->filename, filename) ) { /* already open */ return; } if( p->next ) { p = p->next; } else { /* end of list */ newp->next = NULL; newp->prev = p; p->next = newp; preopened_port = p; return; } } } /*---------------------------------------------------------- RXTXPort.nativeSetBaudBase accept: The Baud Base for custom speeds perform: set the Baud Base return: 0 on success exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: Set baud rate to 38400 before using this First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeSetBaudBase( jint BaudBase ) { #if defined(TIOCGSERIAL) int fd = ( int ) this->fd; struct serial_struct sstruct; if ( sstruct.baud_base < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { return( true ); } return( false ); #else snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeSetBaudBase" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return( true ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeGetBaudBase accept: the Baud Base used for custom speeds perform: return: Baud Base exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeGetBaudBase( ) { #if defined(TIOCGSERIAL) int fd = ( int ) this->fd; struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { return( ( jint ) -1 ); } return( ( jint ) ( sstruct.baud_base ) ); #else snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeGetBaudBase" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return( ( jint ) -1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeSetDivisor accept: Divisor for custom speeds perform: set the Divisor for custom speeds return: 0 on success exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: Set baud rate to 38400 before using this First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeSetDivisor( jint Divisor ) { #if defined(TIOCGSERIAL) int fd = ( int ) this->fd; struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { return( true ); } if ( sstruct.custom_divisor < 1 || ioctl( fd, TIOCSSERIAL, &sstruct ) < 0 ) { return( true ); } return( false ); #else snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeSetDivisor" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return( true ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeGetDivisor accept: none perform: Find the Divisor used for custom speeds return: Divisor exceptions: Unsupported Comm Operation on systems not supporting TIOCGSERIAL comments: First introduced in rxtx-2.1-3 ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeGetDivisor( ) { #if defined(TIOCGSERIAL) int fd = ( int ) this->fd; struct serial_struct sstruct; if ( ioctl( fd, TIOCGSERIAL, &sstruct ) < 0 ) { return( ( jint ) -1 ); } return( ( jint ) sstruct.custom_divisor ); #else snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeGetDivisor" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return( ( jint ) -1 ); #endif /* TIOCGSERIAL */ } /*---------------------------------------------------------- RXTXPort.nativeStaticSetDSR accept: new RTS state perform: if flag is true, TIOCM_DSR is set if flag is false, TIOCM_DSR is unset return: none exceptions: none comments: Set the DSR so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDSR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticSetDSR ( jstring jstr, jboolean flag ) { int fd, i, pid = -1, result; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXPort:nativeStaticSetDSR" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail;; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = ::OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the DSR */ ioctl( fd, TIOCMGET, &result ); if( flag == true ) result |= TIOCM_DSR; else result &= ~TIOCM_DSR; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the DSR would remain high */ LEAVE( "RXTXPort:nativeStaticSetDSR" ); return( true ); fail: LEAVE( "RXTXPort:nativeStaticSetDSR" ); return( false ); } /*---------------------------------------------------------- RXTXPort.nativeStaticSetRTS accept: new RTS state perform: if flag is true, TIOCM_RTS is set if flag is false, TIOCM_RTS is unset return: none exceptions: none comments: Set the RTS so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticSetRTS ( jstring jstr, jboolean flag ) { int fd, i, pid = -1, result; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXPort:nativeStaticSetRTS" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail;; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = ::OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the RTS */ ioctl( fd, TIOCMGET, &result ); if( flag == true ) result |= TIOCM_RTS; else result &= ~TIOCM_RTS; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the RTS would remain high */ LEAVE( "RXTXPort:nativeStaticSetRTS" ); return( true ); fail: LEAVE( "RXTXPort:nativeStaticSetRTS" ); return( false ); } /*---------------------------------------------------------- RXTXPort.nativeStaticSetSerialPortParams accept: string for the filename, int baudrate, int databits, int stopbits, int parity perform: set the serial port, set the params, save the fd in a linked list. return: none exceptions: none comments: Not set the speed on the next 'open' This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ void gnu::io::RXTXPort::nativeStaticSetSerialPortParams ( jstring jstr, jint baudrate, jint dataBits, jint stopBits, jint parity ) { int fd, i, pid = -1, cspeed = translate_speed( baudrate ); char msg[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXPort:nativeStaticSetSerialPortParams" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = ::OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) { LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeStaticSetSerialPortParams" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return; } if (cspeed == -1) { LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); snprintf( msg, 79, "%s%s", "BaudRate could not be set to the specified value", " in nativeStaticSetSerialPortParams" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); return; } if( set_port_params( fd, cspeed, dataBits, stopBits, parity ) ) { LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeStaticSetSerialPortParams" ); return; } /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. */ LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); return; fail: LEAVE( "RXTXPort:nativeStaticSetSerialPortParams" ); return; } /*---------------------------------------------------------- RXTXPort.nativeStaticSetDTR accept: new DTR state perform: if flag is true, TIOCM_DTR is set if flag is false, TIOCM_DTR is unset return: none exceptions: none comments: Set the DTR so it does not raise on the next open needed for some funky test boards? This is static so we can not call the open() setDTR() we dont have the jobject. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticSetDTR ( jstring jstr, jboolean flag ) { int fd, i, pid = -1, result; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXPort:nativeStaticSetDTR" ); #ifndef WIN32 pid = getpid(); #endif /* WIN32 */ /* Open and lock the port so nothing else changes the setting */ if ( LOCK( filename, pid ) ) goto fail;; fd = find_preopened_ports( filename ); if( !fd ) { do { fd = ::OPEN (filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while (fd < 0 && errno==EINTR); if ( configure_port( fd ) ) goto fail; } if ( fd < 0 ) goto fail; /* raise the DTR */ ioctl( fd, TIOCMGET, &result ); if( flag == true ) result |= TIOCM_DTR; else result &= ~TIOCM_DTR; ioctl( fd, TIOCMSET, &result ); /* Unlock the port. Good luck! :) */ UNLOCK( filename, pid ); static_add_filename( filename, fd ); /* dont close the port. Its not clear if the DTR would remain high */ LEAVE( "RXTXPort:nativeStaticSetDTR" ); return( true ); fail: LEAVE( "RXTXPort:nativeStaticSetDTR" ); return( false ); } /*---------------------------------------------------------- RXTXPort.nativeStaticIsRTS accept: filename perform: check status of RTS of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_RTS is set false if TIOCM_RTS is not set exceptions: none comments: RTS stands for Request to Send ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsRTS( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsRTS" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsRTS( ) returns %i\n", result& TIOCM_RTS ); report( message ); LEAVE( "RXTXPort:nativeStaticIsRTS" ); if( result & TIOCM_RTS ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsDSR accept: filename perform: check status of DSR of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_DSR is set false if TIOCM_DSR is not set exceptions: none comments: ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsDSR( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsDSR" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsDSR( ) returns %i\n", result& TIOCM_DSR ); report( message ); LEAVE( "RXTXPort:nativeStaticIsDSR" ); if( result & TIOCM_DSR ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsDTR accept: filename perform: check status of DTR of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_DTR is set false if TIOCM_DTR is not set exceptions: none comments: DTR stands for Data Terminal Ready ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsDTR( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsDTR" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsDTR( ) returns %i\n", result& TIOCM_DTR ); report( message ); LEAVE( "RXTXPort:nativeStaticIsDTR" ); if( result & TIOCM_DTR ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsCD accept: filename perform: check status of CD of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_CD is set false if TIOCM_CD is not set exceptions: none comments: CD stands for carrier detect ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsCD( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsCD" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsCD( ) returns %i\n", result& TIOCM_CD ); report( message ); LEAVE( "RXTXPort:nativeStaticIsCD" ); if( result & TIOCM_CD ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsCTS accept: filename perform: check status of CTS of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_CTS is set false if TIOCM_CTS is not set exceptions: none comments: CTS stands for Clear To Send ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsCTS( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsCTS" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticIsCTS( ) returns %i\n", result& TIOCM_CTS ); report( message ); LEAVE( "RXTXPort:nativeStaticIsCTS" ); if( result & TIOCM_CTS ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticIsRI accept: filename perform: check status of RI of preopened ports (setting lines/params before calling the Java open() return: true if TIOCM_RI is set false if TIOCM_RI is not set exceptions: none comments: RI stands for carrier detect ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeStaticIsRI( jstring jstr ) { unsigned int result = 0; int i, fd; char message[80]; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticIsRI" ); if( !fd ) { /* Exception? FIXME */ return false; } ioctl( fd, TIOCMGET, &result ); sprintf( message, "nativeStaticRI( ) returns %i\n", result& TIOCM_RI ); report( message ); LEAVE( "RXTXPort:nativeStaticIsRI" ); if( result & TIOCM_RI ) return true; else return false; } /*---------------------------------------------------------- RXTXPort.nativeStaticGetBaudRate accept: filename perform: find the baud rate (not all buads are handled yet) return: return the baud rate or -1 if not supported yet. exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeStaticGetBaudRate( jstring jstr ) { int i, fd; struct termios ttyset; int baudrate; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticGetBaudRate" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetBaudRate: Cannot Get Serial Port Settings\n" ); return(-1); } /* dima writes: Trent, here is something I found with google: (freebsd list freebsd-current@freebsd.org) Andrzej Bialecki asked: I tried to compile a piece of software, probably for Linux, and I noticed that we don't define CBAUD constant. I'm not sure, but I think POSIX defines and uses it. Should(n't) we? Bruce Evans answered: CBAUD is for SYSV compatibility. It is considerably inferior to POSIX's cf{get,set}{i,o}speed and shouldn't be provided or used. */ #if defined(CBAUD)/* dima */ baudrate = ttyset.c_cflag&CBAUD; #else if(cfgetispeed(&ttyset) != cfgetospeed(&ttyset)) return -1; baudrate = cfgetispeed(&ttyset); #endif return( get_java_baudrate(baudrate) ); } /*---------------------------------------------------------- RXTXPort.nativeStaticGetDataBits accept: filename perform: find the data bits (not all buads are handled yet) return: return the data bits exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeStaticGetDataBits( jstring jstr ) { int i, fd; struct termios ttyset; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticGetDataBits" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetDataBits: Cannot Get Serial Port Settings\n" ); return(-1); } switch( ttyset.c_cflag&CSIZE ) { case CS5: return JDATABITS_5; case CS6: return JDATABITS_6; case CS7: return JDATABITS_7; case CS8: return JDATABITS_8; default: return(-1); } } /*---------------------------------------------------------- RXTXPort.nativeStaticGetParity accept: filename perform: find the parity return: return the parity exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeStaticGetParity( jstring jstr ) { int i, fd; struct termios ttyset; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; fd = find_preopened_ports( filename ); ENTER( "RXTXPort:nativeStaticGetParity" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetParity: Cannot Get Serial Port Settings\n" ); return(-1); } #ifdef CMSPAR switch( ttyset.c_cflag&(PARENB|PARODD|CMSPAR ) ) { #else switch( ttyset.c_cflag&(PARENB|PARODD) ) { #endif /* CMSPAR */ case 0: return JPARITY_NONE; case PARENB: return JPARITY_EVEN; case PARENB | PARODD: return JPARITY_ODD; #ifdef CMSPAR case PARENB | PARODD | CMSPAR: return JPARITY_MARK; case PARENB | CMSPAR: return JPARITY_SPACE; #endif /* CMSPAR */ default: return(-1); } } /*---------------------------------------------------------- RXTXPort.nativeStaticGetStopBits accept: filename perform: find the stop bits return: return the stop bits exceptions: comments: simple test for preopened ports ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeStaticGetStopBits( jstring jstr ) { int i, fd; struct termios ttyset; char filename[80]; fd = find_preopened_ports( filename ); for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXPort:nativeStaticGetStopBits" ); if( !fd ) { /* Exception? FIXME */ return -1; } if( tcgetattr( fd, &ttyset ) < 0 ) { report( "nativeStaticGetStopBits: Cannot Get Serial Port Settings\n" ); return(-1); } switch( ttyset.c_cflag&(CSTOPB) ) { case 0: return STOPBITS_1; case CSTOPB: return STOPBITS_2; default: return STOPBITS_1_5; } } /*---------------------------------------------------------- RXTXPort.nativeGetParityErrorChar accept: - perform: check the ParityErrorChar return: The ParityErrorChar as an jbyte. exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. ----------------------------------------------------------*/ jbyte gnu::io::RXTXPort::nativeGetParityErrorChar( ) { unsigned int result = 0; ENTER( "nativeGetParityErrorChar" ); #ifdef WIN32 result = ( jbyte ) termiosGetParityErrorChar( this->fd ); #else /* arg! I cant find a way to change it from \0 in Linux. I think the frame and parity error characters are hardcoded. */ result = ( jint ) '\0'; #endif /* WIN32 */ LEAVE( "nativeGetParityErrorChar" ); return( ( jbyte ) result ); } /*---------------------------------------------------------- RXTXPort.nativeGetEndOfInputChar accept: - perform: check the EndOf InputChar return: the EndOfInputChar as an jbyte. -1 on error exceptions: UnsupportedCommOperationException if not implemented comments: ----------------------------------------------------------*/ jbyte gnu::io::RXTXPort::nativeGetEndOfInputChar( ) { int fd = ( int ) this->fd; struct termios ttyset; ENTER( "nativeGetEndOfInputChar" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; LEAVE( "nativeGetEndOfInputChar" ); return( (jbyte) ttyset.c_cc[VEOF] ); fail: LEAVE( "nativeGetEndOfInputChar" ); report( "nativeGetEndOfInputChar failed\n" ); return( ( jbyte ) -1 ); } /*---------------------------------------------------------- RXTXPort.nativeSetParityErrorChar accept: the ParityArrorCharacter as an int. perform: Set the ParityErrorChar return: true on success exceptions: UnsupportedCommOperationException if not implemented comments: It appears the Parity char is usually \0. The windows API allows for this to be changed. I cant find may examples of this being done. Maybe for a reason. Use a direct call to the termios file until we find a solution. ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeSetParityErrorChar( jbyte value ) { char msg[80]; #ifdef WIN32 int fd = ( int ) this->fd; ENTER( "nativeSetParityErrorChar" ); termiosSetParityError( fd, ( char ) value ); LEAVE( "nativeSetParityErrorChar" ); return( true ); #else ENTER( "nativeSetParityErrorChar" ); /* arg! I cant find a way to change it from \0 in Linux. I think the frame and parity error characters are hardcoded. */ snprintf( msg, 79, "%s%s", strerror( errno ), " in setParityErrorChar()" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); LEAVE( "nativeSetParityErrorChar" ); return( false ); #endif /* WIN32 */ } /*---------------------------------------------------------- RXTXPort.nativeSetEndOfInputChar accept: The EndOfInputChar as an int perform: set the EndOfInputChar return: true on success exceptions: UnsupportedCommOperationException if not implemented comments: This may cause troubles on Windows. Lets give it a shot and see what happens. See termios.c for the windows bits. EofChar = val; fBinary = false; winapi docs say always use true. ? ----------------------------------------------------------*/ jboolean gnu::io::RXTXPort::nativeSetEndOfInputChar( jbyte value ) { int fd = ( int ) this->fd; struct termios ttyset; char msg[80]; ENTER( "nativeSetEndOfInputChar" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; ttyset.c_cc[VEOF] = ( char ) value; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; LEAVE( "nativeSetEndOfInputChar" ); return( true ); fail: snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeSetEndOfInputChar" ); throw new gnu::io::UnsupportedCommOperationException( JvNewStringUTF( msg ) ); report( "nativeSetEndOfInputChar failed\n" ); LEAVE( "nativeSetEndOfInputChar" ); return( false ); } #ifndef WIN32 long GetTickCount() { /* return milliseconds */ struct timeval now; gettimeofday(&now, NULL); report_verbose("gettimeofday\n"); #ifdef __QNX__ return ( ( now.tv_sec * 1000 + now.tv_usec / 1000 ) ); #else return ( ( now.tv_sec * 1000) + ( long ) ceil( ( double ) now.tv_usec / 1000 ) ); #endif /* __QNX__ */ } #endif /* !WIN32 */ /*---------------------------------------------------------- read_byte_array accept: int fd file descriptor to read from unsigned char *buffer buffer to read data into int length number of bytes to read int timeout milliseconds to wait before returning perform: read bytes from the port into a buffer return: status of read -1 fail (IOException) 0 timeout >0 number of bytes read comments: According to the Communications API spec, a receive threshold of 1 is the same as having the threshold disabled. The nuts and bolts are documented in NativeEnableReceiveTimeoutThreshold() ----------------------------------------------------------*/ int read_byte_array( int fd, unsigned char *buffer, int length, int timeout ) { int ret, left, bytes = 0; long timeLeft, now = 0, start = 0; char msg[80]; struct timeval tv, *tvP; fd_set rset; /* TRENT */ int count = 0; sigset_t sigpwr_mask; // init the sigset for blocking SIGPWR + SIGXCPU sigemptyset(&sigpwr_mask); sigaddset(&sigpwr_mask, SIGPWR); sigaddset(&sigpwr_mask, SIGXCPU); report_time_start(); ENTER( "read_byte_array" ); sprintf(msg, "read_byte_array requests %i\n", length); report( msg ); left = length; if (timeout >= 0) start = GetTickCount(); while( bytes < length && count++ < 20 ); { if (timeout >= 0) { now = GetTickCount(); if ( now-start >= timeout ) return bytes; } FD_ZERO(&rset); FD_SET(fd, &rset); if (timeout >= 0){ timeLeft = timeout - (now - start); tv.tv_sec = timeLeft / 1000; tv.tv_usec = 1000 * ( timeLeft % 1000 ); tvP = &tv; } else{ tvP = NULL; } // ignore SIGPWR + SIGXCPU during SELECT as gcj GC uses these signals sigprocmask(SIG_BLOCK, &sigpwr_mask, NULL); do { ret = SELECT(fd + 1, &rset, NULL, NULL, tvP); } while ( ret < 0 && errno == EINTR ); sigprocmask(SIG_UNBLOCK, &sigpwr_mask, NULL); if (ret == -1){ report( "read_byte_array: select returned -1\n" ); LEAVE( "read_byte_array" ); return -1; } else if (ret > 0){ if ((ret = READ( fd, buffer + bytes, left )) < 0 ){ if (errno != EINTR && errno != EAGAIN){ report( "read_byte_array: read returned -1\n" ); LEAVE( "read_byte_array" ); return -1; } } else if ( ret ) { bytes += ret; left -= ret; } /* The only thing that is bugging me with the new version is the CPU usage when reading on the serial port. I looked at it today and find a quick fix. It doesn't seems to affect the performance for our apps (I mean in a negative way, cause the CPU is back to normal, near 0-5%). All I did is add a usleep in the reading function. Nicolas */ else { //usleep(10); usleep(1000); } } } /* if( count > 19 ) { throw_java_exception( env, IO_EXCEPTION, "read_byte_array", "No data available" ); } */ //*(buffer+bytes) = 0; sprintf(msg, "read_byte_array returns %i\n", bytes); report( msg ); LEAVE( "read_byte_array" ); report_time_end(); return bytes; } /*---------------------------------------------------------- NativeEnableReceiveTimeoutThreshold accept: int threshold, int vtime,int buffer perform: Set c_cc->VMIN to threshold and c_cc=>VTIME to vtime return: void exceptions: IOException comments: This is actually all handled in read with select in canonical input mode. ----------------------------------------------------------*/ void gnu::io::RXTXPort::NativeEnableReceiveTimeoutThreshold( jint vtime, jint threshold, jint buffer ) { int fd = ( int ) this->fd; struct termios ttyset; int timeout; char msg[80]; if (vtime < 0){ timeout = 0; } else if (vtime == 0){ timeout = 1; } else{ timeout = vtime; } ENTER( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); if( tcgetattr( fd, &ttyset ) < 0 ) goto fail; /* TESTING ttyset.c_cc[ VMIN ] = threshold; */ ttyset.c_cc[ VMIN ] = 0; ttyset.c_cc[ VTIME ] = timeout/100; if( tcsetattr( fd, TCSANOW, &ttyset ) < 0 ) goto fail; LEAVE( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); return; fail: LEAVE( "RXTXPort:NativeEnableRecieveTimeoutThreshold" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in TimeoutThreshold" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return; } /*---------------------------------------------------------- RXTXPort.readByte accept: none perform: Read a single byte from the port. Block unless an exeption is thrown, or end of stream. return: The byte read exceptions: IOException comments: On Fri, 30 Aug 2002, Bill Smith wrote: I agree, the documentation isn't the best. No surprises there. I did do a test using the sun/win32 comm driver with read() and retrieve timeout enabled. It blocked until the timeout expired, then returned a -1. This seems to jive with the way I'm reading it which is the javax.comm comments regarding read (in the CommPort.getInputStream stuff) extends/overrides the documentation for java.io.InputStream. This is the same behavior that the Windriver driver for vxworks exhibits. On Fri, 30 Aug 2002, Bill Smith wrote: > Hi Trent, > > I have a couple of questions/comments. > > 1) I noticed in the thread last night and in the code changes this morning that you > now have readByte() (which is called from the input stream read(), to block > forever. I pulled the following info from the javax.comm doc for the CommPort class in > getInputStream(). > > The way I interpret that is that read() just like read(byte[]), and read(byte[], int, int), > show only block indefinitely if timeout is disabled. The sun implementation for win32 (as > well as the one we have for vxworks) returns a -1 when it times out. > Doing what Sun does is going to the least hassle. The documentation was a little unclear to me. I assume this is the CommPort.getInputStream comment that you mention The read behaviour of the input stream returned by getInputStream depends on combination of the threshold and timeout values. The possible behaviours are described in the table below: ... But InputStream is where read(byte) is documented http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read() Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown If you are sure commapi is doing a timeout and returning -1, I can change it back and document the issue. Because I often grep my own mailbox for details, I'm going to add these two comments also: public int read(byte[] b) ) http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[]) Reads some number of bytes from the input stream and stores them into the buffer array b. The number of bytes actually read is returned as an integer. This method blocks until input data is available, end of file is detected, or an exception is thrown. If b is null, a NullPointerException is thrown. If the length of b is zero, then no bytes are read and 0 is returned; otherwise, there is an attempt to read at least one byte. If no byte is available because the stream is at end of file, the value -1 is returned; otherwise, at least one byte is read and stored into b. So read(byte[] b) is documented as blocking for the first byte. public int read(byte[] b,int off,int len) http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int) Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer. Which makes sense with the timeout documentation. threshold comment I'll look at that next. I thought those changes where in the ifdefed code. I'll take a second look and reply. > > Thoughts? Comments? > > Bill > > ---------------------- > > public abstract InputStream getInputStream() throws IOException > > > Returns an input stream. This is the only way to receive data from the communications > port. If the port is unidirectional and doesn't support receiving data, then > getInputStream returns null. > > The read behaviour of the input stream returned by getInputStream depends on > combination of the threshold and timeout values. The possible behaviours are > described in the table below: > > > Threshold Timeout Read Buffer Read Behaviour > State Value State Value Size > ----------------------------------------------------------------------------------- > disabled - disabled - n bytes block until any data is available > > enabled m bytes disabled - n bytes block until min(m,n) bytes are available > > disabled - enabled x ms n bytes block for x ms or until any data is available > > enabled m bytes enabled x ms n bytes block for x ms or until min(m,n) bytes are available > > Returns: InputStream object that can be used to read from the port > > Throws: IOException if an I/O error occurred ----------------------------------------------------------*/ jint gnu::io::RXTXPort::readByte( ) { int bytes; unsigned char buffer[ 1 ]; int fd = ( int ) this->fd; int timeout = ( int ) this->timeout; char msg[80]; ENTER( "RXTXPort:readByte" ); report_time_start( ); bytes = read_byte_array( fd, buffer, 1, timeout ); if( bytes < 0 ) { LEAVE( "RXTXPort:readByte" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in readByte" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return -1; } LEAVE( "RXTXPort:readByte" ); sprintf( msg, "readByte return(%i)\n", bytes ? buffer[ 0 ] : -1 ); report( msg ); report_time_end( ); return (bytes ? (jint)buffer[ 0 ] : -1); } /*---------------------------------------------------------- RXTXPort.readArray accept: offset (offset to start storing data in the jbarray) and Length (bytes to read) perform: read bytes from the port into a byte array return: bytes read on success 0 on read timeout exceptions: IOException comments: throws ArrayIndexOutOfBoundsException if asked to read more than SSIZE_MAX bytes ----------------------------------------------------------*/ jint gnu::io::RXTXPort::readArray( jbyteArray jbarray, jint offset, jint length ) { int bytes; char msg[80]; int fd = ( int ) this->fd; int timeout = ( int ) this->timeout; jbyte *in = elements( jbarray ) + offset; ENTER( "readArray" ); report_time_start( ); if( length > SSIZE_MAX || length < 0 ) { report( "RXTXPort:readArray length > SSIZE_MAX" ); LEAVE( "RXTXPort:readArray" ); snprintf( msg, 79, "%s%s", "Invalid length", " in readArray" ); throw new java::lang::ArrayIndexOutOfBoundsException( JvNewStringUTF( msg ) ); return -1; } bytes = read_byte_array( fd, (unsigned char *) in, length, timeout );/* dima */ if( bytes < 0 ) { report( "RXTXPort:readArray bytes < 0" ); LEAVE( "RXTXPort:readArray" ); snprintf( msg, 79, "%s%s", strerror( errno ), " in readArray" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return -1; } sprintf( msg, "RXTXPort:readArray: %i %i\n", (int) length, bytes); report( msg ); report_time_end( ); LEAVE( "RXTXPort:readArray" ); return (bytes); } /*---------------------------------------------------------- RXTXPort.nativeavailable accept: none perform: find out the number of bytes available for reading return: available bytes -1 on error exceptions: none ----------------------------------------------------------*/ jint gnu::io::RXTXPort::nativeavailable( ) { int fd = ( int ) this->fd; int result; char msg[80]; /* ENTER( "RXTXPort:nativeavailable" ); On SCO OpenServer FIONREAD always fails for serial devices, so try ioctl FIORDCHK instead; will only tell us whether bytes are available, not how many, but better than nothing. This turns out to be true on Solaris also. taj. */ #ifdef FIORDCHK /* __unixware__ __sun__ probably others */ result = ioctl(fd, FIORDCHK, 0); #else if( ioctl( fd, FIONREAD, &result ) < 0 ) { goto fail; } #endif /* FIORDCHK */ sprintf(msg, " nativeavailable: FIORDCHK result %d, \ errno %d\n", result , result == -1 ? errno : 0); report_verbose( msg ); if (result == -1) { goto fail; } if( result ) { sprintf(msg, " nativeavailable: FIORDCHK result %d, \ errno %d\n", result , result == -1 ? errno : 0); report( msg ); } /* LEAVE( "RXTXPort:nativeavailable" ); */ return (jint)result; fail: report("RXTXPort:nativeavailable: ioctl() failed\n"); /* LEAVE( "RXTXPort:nativeavailable" ); */ snprintf( msg, 79, "%s%s", strerror( errno ), " in nativeavailable" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return (jint)result; } /*---------------------------------------------------------- RXTXPort.setflowcontrol accept: flowmode FLOWCONTROL_NONE none FLOWCONTROL_RTSCTS_IN hardware flow control FLOWCONTROL_RTSCTS_OUT "" FLOWCONTROL_XONXOFF_IN input software flow control FLOWCONTROL_XONXOFF_OUT output software flow control perform: set flow control to flowmode return: none exceptions: UnsupportedCommOperationException comments: there is no differentiation between input and output hardware flow control ----------------------------------------------------------*/ void gnu::io::RXTXPort::setflowcontrol( jint flowmode ) { struct termios ttyset; int fd = ( int ) this->fd; char msg[80]; ENTER( "RXTXPort:setflowcontrol" ); if( tcgetattr( fd, &ttyset ) ) goto fail; if ( flowmode & ( FLOWCONTROL_RTSCTS_IN | FLOWCONTROL_RTSCTS_OUT ) ) { ttyset.c_cflag |= HARDWARE_FLOW_CONTROL; } else ttyset.c_cflag &= ~HARDWARE_FLOW_CONTROL; ttyset.c_iflag &= ~IXANY; if ( flowmode & FLOWCONTROL_XONXOFF_IN ) { ttyset.c_iflag |= IXOFF; } else ttyset.c_iflag &= ~IXOFF; if ( flowmode & FLOWCONTROL_XONXOFF_OUT ) { ttyset.c_iflag |= IXON; } else ttyset.c_iflag &= ~IXON; /* TRENT */ if( tcsetattr( fd, TCSANOW, &ttyset ) ) goto fail; LEAVE( "RXTXPort:setflowcontrol" ); return; fail: LEAVE( "RXTXPort:setflowcontrol" ); snprintf( msg, 79, "%s%s", "flow control type not supported", " in setflowcontrol" ); throw new java::io::IOException( JvNewStringUTF( msg ) ); return; } /*---------------------------------------------------------- unlock_monitor_thread accept: event_info_struct perform: unlock the monitor thread so event notification can start. return: none exceptions: none comments: Events can be missed otherwise. ----------------------------------------------------------*/ void unlock_monitor_thread( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { p->MonitorThreadLock = false; } /*---------------------------------------------------------- check_line_status_register accept: event_info_struct perform: check for changes on the LSR return: 0 on success exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ int check_line_status_register( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { #ifdef TIOCSERGETLSR struct stat fstatbuf; if( ! eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { report( "check_line_status_registe OUPUT_BUFFER_EMPTY not set\n" ); return 0; } if ( fstat( eis->fd, &fstatbuf ) ) { report( "check_line_status_register: fstat\n" ); return( 1 ); } if( ioctl( eis->fd, TIOCSERGETLSR, &eis->change ) ) { report( "check_line_status_register: TIOCSERGETLSR\n is nonnull\n" ); return( 1 ); } else if( eis && eis->change ) { report_verbose( "check_line_status_register: sending OUTPUT_BUFFER_EMPTY\n" ); send_event( p, eis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); } #else /* printf("test %i\n", eis->output_buffer_empty_flag ); */ if( eis && eis->output_buffer_empty_flag == 1 && eis->eventflags[SPE_OUTPUT_BUFFER_EMPTY] ) { report_verbose("check_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY\n"); send_event( p, eis, SPE_OUTPUT_BUFFER_EMPTY, 1 ); /* send_event( this, eis, SPE_DATA_AVAILABLE, 1 ); */ eis->output_buffer_empty_flag = 0; } #endif /* TIOCSERGETLSR */ return( 0 ); } /*---------------------------------------------------------- has_line_status_register_access accept: fd of interest perform: check for access to the LSR return: 0 if not available exceptions: none comments: not supported on all devices/drivers. JK00: work around for multiport cards without TIOCSERGETLSR Cyclades is one of those :-( ----------------------------------------------------------*/ int has_line_status_register_access( int fd ) { #if defined(TIOCSERGETLSR) int change; if( !ioctl( fd, TIOCSERGETLSR, &change ) ) { return(1); } #endif /* TIOCSERGETLSR */ report( "has_line_status_register_acess: Port does not support TIOCSERGETLSR\n" ); return( 0 ); } /*---------------------------------------------------------- check_cgi_count accept: fd of interest perform: check for access to TIOCGICOUNT return: 0 if not available exceptions: none comments: not supported on all devices/drivers. * wait for RNG, DSR, CD or CTS but not DataAvailable * The drawback here is it never times out so if someone * reads there will be no chance to try again. * This may make sense if the program does not want to * be notified of data available or errors. * ret=ioctl(fd,TIOCMIWAIT); ----------------------------------------------------------*/ void check_cgi_count( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { #if defined(TIOCGICOUNT) /* JK00: only use it if supported by this port */ struct serial_icounter_struct sis; memcpy( &sis, &eis->osis, sizeof( struct serial_icounter_struct ) ); if( ioctl( eis->fd, TIOCGICOUNT, &sis ) ) { report( "check_cgi_count: TIOCGICOUNT\n is not 0\n" ); return; } while( eis && sis.frame != eis->osis.frame ) { send_event( p, eis, SPE_FE, 1); eis->osis.frame++; } while( eis && sis.overrun != eis->osis.overrun ) { send_event( p, eis, SPE_OE, 1); eis->osis.overrun++; } while( eis && sis.parity != eis->osis.parity ) { send_event( p, eis, SPE_PE, 1); eis->osis.parity++; } while( eis && sis.brk != eis->osis.brk ) { send_event( p, eis, SPE_BI, 1); eis->osis.brk++; } if( eis ) memcpy( &eis->osis, &sis, sizeof( struct serial_icounter_struct ) ); #endif /* TIOCGICOUNT */ } /*---------------------------------------------------------- port_has_changed_fionread accept: fd of interest perform: check if FIONREAD has changed return: 0 if no data available exceptions: none comments: ----------------------------------------------------------*/ int port_has_changed_fionread( struct event_info_struct *eis ) { int change, rc; char message[80]; rc = ioctl( eis->fd, FIONREAD, &change ); sprintf( message, "port_has_changed_fionread: change is %i ret is %i\n", change, eis->ret ); #if defined(__unixware__) || defined(__sun__) /* On SCO OpenServer FIONREAD always fails for serial devices, so rely upon select() result to know whether data available. This is true for Solaris, also. taj. */ if( (rc != -1 && change) || (rc == -1 && eis->ret > 0) ) return( 1 ); #else sprintf( message, "port_has_changed_fionread: change is %i\n", change ); report_verbose( message ); if( change ) return( 1 ); #endif /* __unixware__ || __sun__ */ return( 0 ); } /*---------------------------------------------------------- check_tiocmget_changes accept: event_info_struct perform: use TIOCMGET to report events return: none exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ void check_tiocmget_changes( gnu::io::RXTXPort *p, struct event_info_struct * eis ) { unsigned int mflags = 0; int change; /* DORITO */ if( !eis ) return; change = eis->change; report_verbose("entering check_tiocmget_changes\n"); if( ioctl( eis->fd, TIOCMGET, &mflags ) ) { report( "=======================================\n"); report( "check_tiocmget_changes: ioctl(TIOCMGET)\n" ); return; } change = (mflags&TIOCM_CTS) - (eis->omflags&TIOCM_CTS); if( eis && change ) send_event( p, eis, SPE_CTS, change ); change = (mflags&TIOCM_DSR) - (eis->omflags&TIOCM_DSR); if( eis && change ) { report( "sending DSR ===========================\n"); send_event( p, eis, SPE_DSR, change ); } change = (mflags&TIOCM_RNG) - (eis->omflags&TIOCM_RNG); if( eis && change ) send_event( p, eis, SPE_RI, change ); change = (mflags&TIOCM_CD) - (eis->omflags&TIOCM_CD); if( eis && change ) send_event( p, eis, SPE_CD, change ); if( eis ) eis->omflags = mflags; report_verbose("leaving check_tiocmget_changes\n"); } /*---------------------------------------------------------- system_wait accept: perform: return: exceptions: none comments: ----------------------------------------------------------*/ void system_wait() { #if defined (__sun__ ) struct timespec retspec, tspec; retspec.tv_sec = 0; retspec.tv_nsec = 100000000; do { tspec = retspec; nanosleep( &tspec, &retspec ); } while( tspec.tv_nsec != 0 ); /* Trent */ #else #ifdef TRENT_IS_HERE_DEBUGGING_THREADS /* On NT4 The following was observed in a intense test: 50000 95% 179 sec 200000 95% 193 sec 1000000 95% 203 sec some callback failures sometimes. 2000000 0-95% callback failures. */ #endif /* TRENT_IS_HERE_DEBUGGING_THREADS */ #endif /* __sun__ */ } /*---------------------------------------------------------- driver_has_tiocgicount accept: fd of interest perform: check for access to TIOCGICOUNT return: 0 if not available exceptions: none comments: not supported on all devices/drivers. Some multiport serial cards do not implement TIOCGICOUNT ... So use the 'dumb' mode to enable using them after all! JK00 ----------------------------------------------------------*/ int driver_has_tiocgicount( struct event_info_struct * eis ) { #if defined(TIOCGICOUNT) /* Some multiport serial cards do not implement TIOCGICOUNT ... */ /* So use the 'dumb' mode to enable using them after all! JK00 */ if( ioctl( eis->fd, TIOCGICOUNT, &eis->osis ) < 0 ) { report_verbose( " driver_has_tiocgicount: Port does not support TIOCGICOUNT events\n" ); return(0); } else return(1); #endif /* TIOCGICOUNT */ return(0); } /*---------------------------------------------------------- report_serial_events accept: event_info_struct perform: send events if they occured return: 0 if not available exceptions: none comments: not supported on all devices/drivers. ----------------------------------------------------------*/ void report_serial_events( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { /* JK00: work around for Multi IO cards without TIOCSERGETLSR */ /* if( eis->has_tiocsergetlsr ) we have a fix for output empty */ if( check_line_status_register( p, eis ) ) return; #ifndef WIN32 /* something is wrong here */ if ( eis && eis->has_tiocgicount ) check_cgi_count( p, eis ); #endif /* WIN32 */ check_tiocmget_changes( p, eis ); if( eis && port_has_changed_fionread( eis ) ) { if(!eis->eventflags[SPE_DATA_AVAILABLE] ) { report_verbose("report_serial_events: ignoring DATA_AVAILABLE\n"); /* report("."); */ #if !defined(__sun__) /* FIXME: No time to test on all OS's for production */ usleep(20000); #endif /* !__sun__ */ return; } report("report_serial_events: sending DATA_AVAILABLE\n"); if(!send_event( p, eis, SPE_DATA_AVAILABLE, 1 )) { /* select wont block */ #if !defined(__sun__) /* FIXME: No time to test on all OS's for production */ usleep(20000); #endif /* !__sun__ */ /* system_wait(); */ } } } /*---------------------------------------------------------- initialise_event_info_struct accept: event_info_struct for this thread. perform: initialise or reset the event_info_struct return: 1 on success exceptions: none comments: ----------------------------------------------------------*/ int initialise_event_info_struct( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { int i; struct event_info_struct *index = master_index; if ( eis->initialised == 1 ) goto end; #ifdef TIOCGICOUNT memset(&eis->osis,0,sizeof(eis->osis)); #endif /* TIOCGICOUNT */ if( index ) { while( index->next ) { index = index->next; } index->next = eis; eis->prev = index; eis->next = NULL; } else { master_index = eis; master_index->next = NULL; master_index->prev = NULL; } for( i = 0; i < 11; i++ ) eis->eventflags[i] = 0; #if !defined(TIOCSERGETLSR) && !defined(WIN32) eis->output_buffer_empty_flag = 0; eis->writing = 0; #endif /* TIOCSERGETLSR */ eis->eventloop_interrupted = 0; eis->closing = 0; eis->fd = ( int ) p->fd; eis->has_tiocsergetlsr = has_line_status_register_access( eis->fd ); eis->has_tiocgicount = driver_has_tiocgicount( eis ); if( ioctl( eis->fd, TIOCMGET, &eis->omflags) < 0 ) { report( "initialise_event_info_struct: Port does not support events\n" ); } end: FD_ZERO( &eis->rfds ); FD_SET( eis->fd, &eis->rfds ); eis->tv_sleep.tv_sec = 0; eis->tv_sleep.tv_usec = 1000; eis->initialised = 1; return( 1 ); } /*---------------------------------------------------------- finalize_event_info_struct accept: event_info_struct for this thread. perform: free resources return: none exceptions: none comments: ----------------------------------------------------------*/ void finalize_event_info_struct( struct event_info_struct *eis ) { if( eis->next && eis->prev ) { eis->prev->next = eis->next; eis->next->prev = eis->prev; } else if( eis->next ) { eis->next->prev = NULL; master_index = eis->next; } else if( eis->prev ) eis->prev->next = NULL; else master_index = NULL; } /*---------------------------------------------------------- RXTXPort.eventLoop accept: none perform: periodically check for SerialPortEvents return: none exceptions: none comments: please keep this function clean. ----------------------------------------------------------*/ void gnu::io::RXTXPort::eventLoop( ) { struct event_info_struct eis; eis.initialised = 0; ENTER( "eventLoop\n" ); if ( !initialise_event_info_struct( this, &eis ) ) goto end; if ( !init_threads( this, &eis ) ) goto end; unlock_monitor_thread( this, &eis ); do{ report_time_eventLoop( ); do { /* report( "." ); */ eis.ret = SELECT( eis.fd + 1, &eis.rfds, NULL, NULL, &eis.tv_sleep ); /* nothing goes between this call and select */ if( eis.closing ) { report("eventLoop: got interrupt\n"); finalize_threads( &eis ); finalize_event_info_struct( &eis ); this->MonitorThreadCloseLock = false; LEAVE("eventLoop"); return; } usleep(20000); /* Trent system_wait(); */ } while ( eis.ret < 0 && errno == EINTR ); if( eis.ret >= 0 ) { report_serial_events( this, &eis ); } initialise_event_info_struct( this, &eis ); } while( 1 ); end: LEAVE( "eventLoop: Bailing!\n" ); } /*---------------------------------------------------------- RXTXCommDriver.nativeGetVersion accept: none perform: return the current version return: version exceptions: none comments: This is used to avoid mixing versions of the .jar and native library. First introduced in rxtx-1.5-9 ----------------------------------------------------------*/ jstring gnu::io::RXTXCommDriver::nativeGetVersion ( ) { return JvNewStringUTF( "RXTX-2.1-7" ); } /*---------------------------------------------------------- RXTXCommDriver.testRead accept: jstr The device to be tested perform: test if the device can be read from return: true if the device can be read from exceptions: none comments: From Wayne Roberts wroberts1@home.com check tcget/setattr returns. support for non serial ports Trent ----------------------------------------------------------*/ jboolean gnu::io::RXTXCommDriver::testRead( jstring jstr, jint port_type ) { struct termios ttyset; char c; int i, fd, ret = true, pid = -1; //char filename[80]; char filename[80]; #ifdef TRENT_IS_HERE_DEBUGGING_ENUMERATION char message[80]; #endif /* TRENT_IS_HERE_DEBUGGING_ENUMERATION */ for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; //java::lang::System::out->println( filename ); //const char *filename = (const char *) jstr->toCharArray(); /* We opened the file in this thread, use this pid to unlock */ //java::lang::System::out->println( jstr ); #ifndef WIN32 pid = getpid(); #else char full_windows_name[80]; #endif /* WIN32 */ ENTER( "RXTXPort:testRead" ); //printf( "RXTXCommDriver::testRead( %s )\n", filename ); #ifdef TRENT_IS_HERE_DEBUGGING_ENUMERATION /* vmware lies about which ports are there causing irq conflicts */ /* this is for testing only */ if( !strcmp( filename, "COM1" ) || !strcmp( filename, "COM2") ) { printf("%s is good\n",filename); sprintf( message, "testRead: %s is good!\n", filename ); report( message ); return( true ); } return( false ); #endif /* TRENT_IS_HERE_DEBUGGING_ENUMERATION */ #ifdef WIN32 strcpy( full_windows_name, DEVICEDIR ); strcat( full_windows_name, filename ); ret = serial_test((char *) full_windows_name ); return(ret); #endif /* WIN32 */ /* LOCK is one of three functions defined in SerialImp.h uucp_lock Solaris fhs_lock Linux system_does_not_lock Win32 */ //printf( "RXTXCommDriver::testRead( %s )\n", filename ); if ( LOCK( filename, pid ) ) { LEAVE( "RXTXPort:testRead no lock" ); return false; } /* CLOCAL eliminates open blocking on modem status lines -- changed to O_NONBLOCK */ do { fd=::OPEN ( filename, O_RDWR | O_NOCTTY | O_NONBLOCK ); } while ( fd < 0 && errno==EINTR ); if( fd < 0 ) { report_verbose( "testRead() open failed\n" ); ret = false; goto END; } if ( port_type == PORT_SERIAL ) { int saved_flags; struct termios saved_termios; if (tcgetattr(fd, &ttyset) < 0) { ret = false; goto END; } /* save, restore later */ if ( ( saved_flags = fcntl(fd, F_GETFL ) ) < 0 ) { report( "testRead() fcntl(F_GETFL) failed\n" ); ret = false; goto END; } memcpy( &saved_termios, &ttyset, sizeof( struct termios ) ); if ( fcntl( fd, F_SETFL, O_NONBLOCK ) < 0 ) { report( "testRead() fcntl(F_SETFL) failed\n" ); ret = false; goto END; } cfmakeraw(&ttyset); ttyset.c_cc[VMIN] = ttyset.c_cc[VTIME] = 0; if ( tcsetattr( fd, TCSANOW, &ttyset) < 0 ) { report( "testRead() tcsetattr failed\n" ); ret = false; tcsetattr( fd, TCSANOW, &saved_termios ); goto END; } /* The following may mess up if both EAGAIN and EWOULDBLOCK are defined but only EWOULDBLOCK is used Linux: man 2 open O_NONBLOCK or O_NDELAY When possible, the file is opened in non-blocking mode. Neither the open nor any subsequent operaュ tions on the file descriptor which is returned will cause the calling process to wait. For the hanュ dling of FIFOs (named pipes), see also fifo(4). This mode need not have any effect on files other than FIFOs. man 2 read EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and no data was immediately available for reading. /usr/include/asm/error.h: #define EAGAIN 11 / Try again / #define EWOULDBLOCK EAGAIN / Operation would block / looks like the kernel is using EAGAIN -- should be OK Solaris: man 2 open EAGAIN The path argument names the slave side of a pseudo-terminal device that is locked. man 2 read If O_NONBLOCK is set, read() returns -1 and sets errno to EAGAIN. -- should be OK. HP-UX both are defined but EAGAIN is used. -- should be OK. Win32 neither errno is currently set. Comment added to termios.c serial_open(). -- should be OK Steven's book. Advanced programming in the Unix Environment pg 364 "A common use for nonblocking I/O is for dealing with a terminal device for a network connection and these devices are normally used by one process at a time. This means that the change in the BSD semantics normally does 't effect us. The different error return, EWOULDBLOCK, instead of POSIX.1 EAGAIN, continues to be a portability difference that we must deal with." */ if ( READ( fd, &c, 1 ) < 0 ) { #ifdef EAGAIN if ( errno != EAGAIN ) { report( "testRead() read failed\n" ); ret = false; } #else #ifdef EWOULDBLOCK if ( errno != EWOULDBLOCK ) { report( "testRead() read failed\n" ); ret = false; } #else ret = false; #endif /* EWOULDBLOCK */ #endif /* EAGAIN */ } /* dont walk over unlocked open devices */ tcsetattr( fd, TCSANOW, &saved_termios ); fcntl( fd, F_SETFL, saved_flags ); } /* UNLOCK is one of three functions defined in SerialImp.h uucp_unlock Solaris fhs_unlock Linux system_does_not_unlock Win32 */ END: UNLOCK(filename, pid ); ::CLOSE( fd ); LEAVE( "RXTXPort:testRead" ); return ret; } #if defined(__APPLE__) /*---------------------------------------------------------- createSerialIterator() accept: perform: return: exceptions: comments: Code courtesy of Eric Welch at Keyspan, except for the bugs which are courtesy of Joseph Goldstone (joseph@lp.com) ----------------------------------------------------------*/ kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } /*---------------------------------------------------------- getRegistryString() accept: perform: return: exceptions: comments: Code courtesy of Eric Welch at Keyspan, except for the bugs which are courtesy of Joseph Goldstone (joseph@lp.com) ----------------------------------------------------------*/ char * getRegistryString(io_object_t sObj, char *propName) { static char resultStr[256]; CFTypeRef nameCFstring; resultStr[0] = 0; nameCFstring = IORegistryEntryCreateCFProperty(sObj, CFStringCreateWithCString(kCFAllocatorDefault, propName, kCFStringEncodingASCII), kCFAllocatorDefault, 0); if (nameCFstring) { CFStringGetCString(nameCFstring, resultStr, sizeof(resultStr), kCFStringEncodingASCII); CFRelease(nameCFstring); } return resultStr; } /*---------------------------------------------------------- registerKnownSerialPorts() accept: perform: return: exceptions: comments: ----------------------------------------------------------*/ int registerKnownSerialPorts( jint portType ) /* dima */ { io_iterator_t theSerialIterator; io_object_t theObject; int numPorts = 0;/* dima it should initiated */ if (createSerialIterator(&theSerialIterator) != KERN_SUCCESS) { printf( "createSerialIterator failed\n" ); } else { while (theObject = IOIteratorNext(theSerialIterator)) { /* begin dima taj got this close for gcj */ jstring tempJstring; tempJstring = JvNewStringUTF(getRegistryString(theObject, kIODialinDeviceKey)); gnu::io::ComPortIdentifier->addPortName(tempJstring,portType,this);/* dima */ numPorts++; tempJstring = JvNewStringUTF(getRegistryString(theObject, kIOCalloutDeviceKey)); gnu::io::ComPortIdentifier->addPortName(tempJstring,portType,this);/* dima */ numPorts++; /* end dima taj got this close for gcj */ } } } return numPorts; } #endif /* __APPLE__ */ /*---------------------------------------------------------- registerKnownPorts accept: the type of port perform: register any ports of the desired type a priori known to this OS return: true if any such ports were registered otherwise false exceptions: none comments: ----------------------------------------------------------*/ jboolean gnu::io::RXTXCommDriver::registerKnownPorts( jint portType ) { enum {PORT_TYPE_SERIAL = 1, PORT_TYPE_PARALLEL, PORT_TYPE_I2C, PORT_TYPE_RS485, PORT_TYPE_RAW}; jboolean result = false; char message[80]; switch(portType) { case PORT_TYPE_SERIAL: #if defined(__APPLE__) if (registerKnownSerialPorts( PORT_TYPE_SERIAL) > 0) {/* dima */ result = true; } #endif break; case PORT_TYPE_PARALLEL: break; case PORT_TYPE_I2C: break; case PORT_TYPE_RS485: break; case PORT_TYPE_RAW: break; default: sprintf( message, "unknown portType %d handed to \ native RXTXCommDriver.registerKnownPorts() \ method.\n", (int) portType ); report( message ); } return result; } /*---------------------------------------------------------- isPortPrefixValid accept: a port prefix perform: see if the port prefix matches a port that is valid on this OS. return: true if it exists otherwise false exceptions: none comments: ----------------------------------------------------------*/ jboolean gnu::io::RXTXCommDriver::isPortPrefixValid( jstring jstr ) { jboolean result; static struct stat mystat; char teststring[256]; int fd,i; char filename[80]; for( i=0;ilength();i++) filename[i] = jstr->charAt(i); filename[i] = '\0'; ENTER( "RXTXCommDriver:isPortPrefixValid" ); for(i=0;i<64;i++){ #if defined(__sun__) /* Solaris uses /dev/cua/a instead of /dev/cua0 */ if( i > 25 ) break; sprintf(teststring,"%s%s%c",DEVICEDIR, name, i + 97 ); fprintf(stderr, "testing: %s\n", teststring); #else #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s%i",DEVICEDIR,filename, i); #else sprintf(teststring,"%s%s%i",DEVICEDIR,filename, i); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); #endif /* __sun__ */ /* XXX the following hoses freebsd when it tries to open the port later on */ #ifndef __FreeBSD__ if(S_ISCHR(mystat.st_mode)){ fd=::OPEN(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ ::CLOSE(fd); result=true; break; } else result=false; } else result=false; #else result=true; #endif /* __FreeBSD __ */ } #if defined(_GNU_SOURCE) snprintf(teststring, 256, "%s%s",DEVICEDIR,filename); #else sprintf(teststring,"%s%s",DEVICEDIR,filename); #endif /* _GNU_SOURCE */ stat(teststring,&mystat); if(S_ISCHR(mystat.st_mode)){ fd=::OPEN(teststring,O_RDONLY|O_NONBLOCK); if (fd>0){ ::CLOSE(fd); result=true; } } LEAVE( "RXTXCommDriver:isPortPrefixValid" ); return(result); } /*---------------------------------------------------------- getDeviceDirectory accept: perform: return: the directory containing the device files exceptions: comments: use this to avoid hard coded "/dev/" values are in SerialImp.h ----------------------------------------------------------*/ jstring gnu::io::RXTXCommDriver::getDeviceDirectory( ) { ENTER( "RXTXCommDriver:getDeviceDirectory" ); return JvNewStringUTF(DEVICEDIR); LEAVE( "RXTXCommDriver:getDeviceDirectory" ); } #ifdef GOING_TO_MESS_WITH_BUFFERS /*---------------------------------------------------------- setInputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ void gnu::io::RXTXPort::setInputBufferSize( jint size ) { report( "setInputBufferSize is not implemented\n" ); } /*---------------------------------------------------------- getIputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ jint gnu::io::RXTXPort::getInputBufferSize( ) { report( "getInputBufferSize is not implemented\n" ); return(1); } /*---------------------------------------------------------- setOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ void gnu::io::RXTXPort::setOutputBufferSize( jint size ) { report( "setOutputBufferSize is not implemented\n" ); } /*---------------------------------------------------------- getOutputBufferSize accept: perform: return: none exceptions: none comments: see fopen/fclose/fwrite/fread man pages. ----------------------------------------------------------*/ jint gnu::io::RXTXPort::getOutputBufferSize() { report( "getOutputBufferSize is not implemented\n" ); return(1); } #endif /* GOING_TO_MESS_WITH_BUFFERS */ /*---------------------------------------------------------- interruptEventLoop accept: nothing perform: increment eventloop_interrupted return: nothing exceptions: none comments: all eventloops in this PID will check if their thread is interrupted. When all the interrupted threads exit they will decrement the var leaving it 0. the remaining threads will continue. ----------------------------------------------------------*/ void gnu::io::RXTXPort::interruptEventLoop( ) { struct event_info_struct *index = master_index; int fd = ( int ) this->fd; int searching = 1; while( searching ) { index = master_index; if( index ) { while( index->fd != fd && index->next ) index = index->next; if ( index->fd == fd ) searching = 0; } else report("x"); if( searching ) { report("@"); usleep(1000); } } index->eventloop_interrupted = 1; /* Many OS's need a thread running to determine if output buffer is empty. For Linux and Win32 it is not needed. So closing is used to shut down the thread in the write order on OS's that don't have kernel support for output buffer empty. In rxtx TIOCSERGETLSR is defined for win32 and Linux */ #ifdef TIOCSERGETLSR index->closing=1; #endif /* TIOCSERGETLSR */ #ifdef WIN32 termios_interrupt_event_loop( index->fd, 1 ); #endif /* WIN32 */ report("interruptEventLoop: interrupted\n"); } /*---------------------------------------------------------- is_interrupted accept: event_info_struct perform: see if the port is being closed. return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ jboolean is_interrupted( gnu::io::RXTXPort *p, struct event_info_struct *eis ) { int result; ENTER( "is_interrupted" ); result = p->checkMonitorThread( ); #ifdef DEBUG if((*env)->ExceptionOccurred(env)) { report ( "is_interrupted: an error occured calling sendEvent()\n" ); (*env)->ExceptionDescribe(env); (*env)->ExceptionClear(env); } #endif /* DEBUG */ LEAVE( "RXTXCommDriver:is_interrupted" ); return(result); } /*---------------------------------------------------------- nativeSetEventFlag accept: fd for finding the struct, event to flag, flag. perform: toggle the flag return: none exceptions: none comments: all the logic used to be done in Java but its too noisy ----------------------------------------------------------*/ void gnu::io::RXTXPort::nativeSetEventFlag( jint fd, jint event, jboolean flag ) { struct event_info_struct *index = master_index; if( !index ) { report_error("nativeSetEventFlag !index\n"); return; } while( index->fd != fd && index->next ) { index = index->next; } if( index->fd != fd ) { report_error("nativeSetEventFlag !fd\n"); return; } index->eventflags[event] = (int) flag; #ifdef WIN32 termios_setflags( fd, index->eventflags ); #endif /* win32 */ } /*---------------------------------------------------------- send_event accept: event_info_structure, event type and true/false perform: if state is > 0 send a true event otherwise send false return: a positive value if the port is being closed. exceptions: none comments: ----------------------------------------------------------*/ int send_event( gnu::io::RXTXPort *p, struct event_info_struct *eis, jint type, int flag ) { int result; ENTER( "send_event" ); if( !eis || eis->eventloop_interrupted > 1 ) { report("event loop interrupted\n"); return true; } report_verbose("send_event: !eventloop_interupted\n"); #ifdef TODO /* FIXME jcj hack */ (*env)->ExceptionClear(env); #endif /* FIXME jcj hack */ report_verbose("send_event: calling\n"); result = p->sendEvent( type, flag > 0 ? true : false ); report_verbose("send_event: called\n"); #ifdef asdf if(!eis || (*eis->env)->ExceptionOccurred(eis->env)) { report ( "send_event: an error occured calling sendEvent()\n" ); (*eis->env)->ExceptionDescribe(eis->env); (*eis->env)->ExceptionClear(eis->env); } #endif /* asdf */ /* report("e"); */ LEAVE( "send_event" ); return(result); } /*---------------------------------------------------------- report_warning accept: string to send to report as an message perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_warning(char *msg) { #ifndef DEBUG_MW fprintf(stderr, msg); #else mexWarnMsgTxt( (const char *) msg ); #endif /* DEBUG_MW */ } /*---------------------------------------------------------- report_verbose accept: string to send to report as an verbose message perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_verbose(char *msg) { #ifdef DEBUG_VERBOSE #ifdef DEBUG_MW mexErrMsgTxt( msg ); #else fprintf(stderr, msg); #endif /* DEBUG_MW */ #endif /* DEBUG_VERBOSE */ } /*---------------------------------------------------------- report_error accept: string to send to report as an error perform: send the string to stderr or however it needs to be reported. return: none exceptions: none comments: ----------------------------------------------------------*/ void report_error(char *msg) { #ifndef DEBUG_MW fprintf(stderr, msg); #else mexWarnMsgTxt( msg ); #endif /* DEBUG_MW */ } /*---------------------------------------------------------- report accept: string to send to stderr perform: if DEBUG is defined send the string to stderr. return: none exceptions: none comments: ----------------------------------------------------------*/ void report(char *msg) { #ifdef DEBUG # ifndef DEBUG_MW fprintf(stderr, msg); # else mexPrintf( msg ); # endif /* DEBUG_MW */ #endif /* DEBUG */ } #ifndef WIN32 #ifdef LFS /*---------------------------------------------------------- lfs_lock accept: The name of the device to try to lock perform: Create a lock file if there is not one already using a lock file server. return: 1 on failure 0 on success exceptions: none comments: ----------------------------------------------------------*/ int lfs_lock( const char *filename, int pid ) { int s; int ret; int size = 1024; char *buffer = malloc(size); struct sockaddr_in addr; if ( !( s = socket( AF_INET, SOCK_STREAM, 0 ) ) > 0 ) return 1; addr.sin_family = AF_INET; addr.sin_port = htons( 50001 ); addr.sin_addr.s_addr = inet_addr( "127.0.0.1" ); if ( !connect( s, ( struct sockaddr * ) &addr, sizeof( addr ) ) == 0 ) return 1; ret=recv( s, buffer, size, 0 ); sprintf( buffer, "lock %s %i\n", filename, pid ); /* printf( "%s", buffer ); */ send( s, buffer, strlen(buffer), 0 ); ret=recv( s, buffer, size, 0 ); if ( ret > 0 ) { buffer[ret] = '\0'; /* printf( "Message recieved: %s", buffer ); */ } send( s, "quit\n", strlen( "quit\n" ), 0 ); close(s); /* printf("%s\n", buffer); */ if( buffer[0] == '2' ) return 0; return 1; } /*---------------------------------------------------------- lfs_unlock accept: The name of the device to try to unlock perform: Remove a lock file if there is one using a lock file server. return: 1 on failure 0 on success exceptions: none comments: ----------------------------------------------------------*/ int lfs_unlock( const char *filename, int pid ) { int s; int ret; int size = 1024; char *buffer = malloc(size); struct sockaddr_in addr; if ( !( s = socket( AF_INET, SOCK_STREAM, 0 ) ) > 0 ) return 1; addr.sin_family = AF_INET; addr.sin_port = htons( 50001 ); addr.sin_addr.s_addr = inet_addr( "127.0.0.1" ); if ( !connect( s, ( struct sockaddr * ) &addr, sizeof( addr ) ) == 0 ) return 1; sprintf( buffer, "unlock %s %i\n", filename, pid ); /* printf( "%s", buffer ); */ send( s, buffer, strlen(buffer), 0 ); ret = recv( s, buffer, size, 0 ); if ( ret > 0 ) { buffer[ret] = '\0'; /* printf( "Message recieved: %s", buffer ); */ } send( s, "quit\n", strlen( "quit\n" ), 0 ); close(s); if( buffer[0] == '2' ) return 0; return 1; } #endif /* LFS */ /*---------------------------------------------------------- fhs_lock accept: The name of the device to try to lock termios struct perform: Create a lock file if there is not one already. return: 1 on failure 0 on success exceptions: none comments: This is for linux and freebsd only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard more reading: ----------------------------------------------------------*/ int fhs_lock( const char *filename, int pid ) { /* * There is a zoo of lockdir possibilities * Its possible to check for stale processes with most of them. * for now we will just check for the lockfile on most * Problem lockfiles will be dealt with. Some may not even be in use. * */ int fd,j; char lockinfo[12], message[80]; char file[80], *p; j = strlen( filename ); p = ( char * ) filename + j; /* FIXME need to handle subdirectories /dev/cua/... SCO Unix use lowercase all the time taj */ //printf("lock file is %s\n",filename); while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if ( check_lock_status( filename ) ) { report( "fhs_lock() lockstatus fail\n" ); return 1; } fd = open( file, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX fhs_lock() Error: creating lock file: %s: %s\n", file, strerror(errno) ); report_error( message ); return 1; } sprintf( lockinfo, "%10d\n",(int) getpid() ); sprintf( message, "fhs_lock: creating lockfile: %s\n", lockinfo ); report( message ); write( fd, lockinfo, 11 ); close( fd ); return 0; } /*---------------------------------------------------------- uucp_lock accept: char * filename. Device to be locked perform: Try to get a uucp_lock return: int 0 on success exceptions: none comments: The File System Hierarchy Standard http://www.pathname.com/fhs/ UUCP Lock Files http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. There is much to do here. 1) UUCP style locks (done) /var/spool/uucp 2) SVR4 locks /var/spool/locks 3) FSSTND locks (done) /var/lock 4) handle stale locks (done except kermit locks) 5) handle minicom lockfile contents (FSSTND?) " 16929 minicom root\n" (done) 6) there are other Lock conventions that use Major and Minor numbers... 7) Stevens recommends LCK.. most are caught above. If they turn out to be problematic rather than an exercise, we will handle them. ----------------------------------------------------------*/ int uucp_lock( const char *filename, int pid ) { char lockfilename[80], lockinfo[12], message[80]; char name[80]; int fd; struct stat buf; sprintf( message, "uucp_lock( %s );\n", filename ); report( message ); if ( check_lock_status( filename ) ) { report( "RXTX uucp check_lock_status true\n" ); return 1; } if ( stat( LOCKDIR, &buf ) != 0 ) { report( "RXTX uucp_lock() could not find lock directory.\n" ); return 1; } if ( stat( filename, &buf ) != 0 ) { report( "RXTX uucp_lock() could not find device.\n" ); sprintf( message, "uucp_lock: device was %s\n", name ); report( message ); return 1; } sprintf( lockfilename, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); sprintf( lockinfo, "%10d\n", (int) getpid() ); if ( stat( lockfilename, &buf ) == 0 ) { sprintf( message, "RXTX uucp_lock() %s is there\n", lockfilename ); report( message ); report_error( message ); return 1; } fd = open( lockfilename, O_CREAT | O_WRONLY | O_EXCL, 0444 ); if( fd < 0 ) { sprintf( message, "RXTX uucp_lock() Error: creating lock file: %s\n", lockfilename ); report_error( message ); return 1; } write( fd, lockinfo,11 ); close( fd ); return 0; } /*---------------------------------------------------------- check_lock_status accept: the lock name in question perform: Make sure everything is sane return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_status( const char *filename ) { struct stat buf; /* First, can we find the directory? */ if ( stat( LOCKDIR, &buf ) != 0 ) { report( "check_lock_status: could not find lock directory.\n" ); return 1; } /* OK. Are we able to write to it? If not lets bail */ if ( check_group_uucp() ) { report_error( "check_lock_status: No permission to create lock file.\nplease see: How can I use Lock Files with rxtx? in INSTALL\n" ); return(1); } /* is the device alread locked */ if ( is_device_locked( filename ) ) { report( "check_lock_status: device is locked by another application\n" ); return 1; } return 0; } /*---------------------------------------------------------- fhs_unlock accept: The name of the device to unlock perform: delete the lock file return: none exceptions: none comments: This is for linux only currently. I see SVR4 does this differently and there are other proposed changes to the Filesystem Hierachy Standard ----------------------------------------------------------*/ void fhs_unlock( const char *filename, int openpid ) { char file[80],*p; int i; i = strlen( filename ); p = ( char * ) filename + i; /* FIXME need to handle subdirectories /dev/cua/... */ while( *( p - 1 ) != '/' && i-- != 1 ) p--; sprintf( file, "%s/LCK..%s", LOCKDIR, p ); if( !check_lock_pid( file, openpid ) ) { unlink(file); report("fhs_unlock: Removing LockFile\n"); } else { report("fhs_unlock: Unable to remove LockFile\n"); } } /*---------------------------------------------------------- uucp_unlock accept: char *filename the device that is locked perform: remove the uucp lockfile if it exists return: none exceptions: none comments: http://docs.freebsd.org/info/uucp/uucp.info.UUCP_Lock_Files.html ----------------------------------------------------------*/ void uucp_unlock( const char *filename, int openpid ) { struct stat buf; char file[80], message[80]; /* FIXME */ sprintf( message, "uucp_unlock( %s );\n", filename ); report( message ); if ( stat( filename, &buf ) != 0 ) { /* hmm the file is not there? */ report( "uucp_unlock() no such device\n" ); return; } sprintf( file, LOCKDIR"/LK.%03d.%03d.%03d", (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if ( stat( file, &buf ) != 0 ) { /* hmm the file is not there? */ report( "uucp_unlock no such lockfile\n" ); return; } if( !check_lock_pid( file, openpid ) ) { sprintf( message, "uucp_unlock: unlinking %s\n", file ); report( message ); unlink(file); } else { sprintf( message, "uucp_unlock: unlinking failed %s\n", file ); report( message ); } } /*---------------------------------------------------------- check_lock_pid accept: the name of the lockfile perform: make sure the lock file is ours. return: 0 on success exceptions: none comments: ----------------------------------------------------------*/ int check_lock_pid( const char *file, int openpid ) { int fd, lockpid; char pid_buffer[12]; char message[80]; fd=open( file, O_RDONLY ); if ( fd < 0 ) { return( 1 ); } if ( read( fd, pid_buffer, 11 ) < 0 ) { close( fd ); return( 1 ); } close( fd ); pid_buffer[11] = '\0'; lockpid = atol( pid_buffer ); /* Native threads JVM's have multiple pids */ if ( lockpid != getpid() && lockpid != getppid() && lockpid != openpid ) { sprintf(message, "check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i\n", pid_buffer, (int) getpid(), (int) getppid(), openpid ); report( message ); return( 1 ); } return( 0 ); } /*---------------------------------------------------------- check_group_uucp accept: none perform: check if the user is root or in group uucp return: 0 on success exceptions: none comments: This checks if the effective user is in group uucp so we can create lock files. If not we give them a warning and bail. If its root we just skip the test. if someone really wants to override this they can use the USER_LOCK_DIRECTORY --not recommended. In a recent change RedHat 7.2 decided to use group lock. In order to get around this we just check the group id of the lock directory. * Modified to support Debian * The problem was that checking the ownership of the lock file dir is not enough, in the sense that even if the current user is not in the group of the lock directory if the lock directory has 777 permissions the lock file can be anyway created. My solution is simply to try to create a tmp file there and if it works then we can go on. Here is my code that I tried and seems to work. Villa Valerio ----------------------------------------------------------*/ int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY FILE *testLockFile ; char testLockFileDirName[] = LOCKDIR; char testLockFileName[] = "tmpXXXXXX"; char *testLockAbsFileName; testLockAbsFileName = ( char * ) calloc(strlen(testLockFileDirName) + strlen(testLockFileName) + 2, sizeof(char)); if ( NULL == testLockAbsFileName ) { report_error("check_group_uucp(): Insufficient memory"); return 1; } strcat(testLockAbsFileName, testLockFileDirName); strcat(testLockAbsFileName, "/"); strcat(testLockAbsFileName, testLockFileName); if ( NULL == mkstemp(testLockAbsFileName) ) { free(testLockAbsFileName); report_error("check_group_uucp(): mktemp malformed string - \ should not happen"); return 1; } testLockFile = fopen (testLockAbsFileName, "w+"); if (NULL == testLockFile) { report_error("check_group_uucp(): error testing lock file \ creation Error details: "); report_error(strerror(errno)); free(testLockAbsFileName); return 1; } fclose (testLockFile); unlink (testLockAbsFileName); free(testLockAbsFileName); #endif /* USER_LOCK_DIRECTORY */ return 0; #ifdef USE_OLD_CHECK_GROUP_UUCP int check_group_uucp() { #ifndef USER_LOCK_DIRECTORY int group_count; struct passwd *user = getpwuid( geteuid() ); struct stat buf; char msg[80]; gid_t list[ NGROUPS_MAX ]; if( stat( LOCKDIR, &buf) ) { sprintf( msg, "check_group_uucp: Can not find Lock Directory: %s\n", LOCKDIR ); report_error( msg ); return( 1 ); } group_count = getgroups( NGROUPS_MAX, list ); list[ group_count ] = geteuid(); /* JJO changes start */ if( user == NULL ) { report_error( "Not able to get user groups.\n" ); return 1; } else /* JJO changes stop */ if( user->pw_gid ) { while( group_count >= 0 && buf.st_gid != list[ group_count ] ) { group_count--; } if( buf.st_gid == list[ group_count ] ) return 0; sprintf( msg, "%i %i\n", buf.st_gid, list[ group_count ] ); report_error( msg ); report_error( UUCP_ERROR ); return 1; } return 0; /* if( strcmp( user->pw_name, "root" ) ) { while( *g->gr_mem ) { if( !strcmp( *g->gr_mem, user->pw_name ) ) { break; } (void) *g->gr_mem++; } if( !*g->gr_mem ) { report( UUCP_ERROR ); return 1; } } */ #endif /* USER_LOCK_DIRECTORY */ return 0; #endif /* USE_OLD_CHECK_GROUP_UUCP */ } /*---------------------------------------------------------- The following should be able to follow symbolic links. I think the stat method used below will work on more systems. This was found while looking for information. * realpath() doesn't exist on all of the systems my code has to run on (HP-UX 9.x, specifically) ---------------------------------------------------------- int different_from_LOCKDIR(const char* ld) { char real_ld[MAXPATHLEN]; char real_LOCKDIR[MAXPATHLEN]; if (strncmp(ld, LOCKDIR, strlen(ld)) == 0) return 0; if (realpath(ld, real_ld) == NULL) return 1; if (realpath(LOCKDIR, real_LOCKDIR) == NULL) return 1; if (strncmp(real_ld, real_LOCKDIR, strlen(real_ld)) == 0) return 0; else return 1; } */ /*---------------------------------------------------------- is_device_locked accept: char * filename. The device in question including the path. perform: see if one of the many possible lock files is aready there if there is a stale lock, remove it. return: 1 if the device is locked or somethings wrong. 0 if its possible to create our own lock file. exceptions: none comments: check if the device is already locked ----------------------------------------------------------*/ int is_device_locked( const char *port_filename ) { const char *lockdirs[] = { "/etc/locks", "/usr/spool/kermit", "/usr/spool/locks", "/usr/spool/uucp", "/usr/spool/uucp/", "/usr/spool/uucp/LCK", "/var/lock", "/var/lock/modem", "/var/spool/lock", "/var/spool/locks", "/var/spool/uucp", LOCKDIR, NULL }; const char *lockprefixes[] = { "LCK..", "lk..", "LK.", NULL }; char *p, file[80], pid_buffer[20], message[80]; int i = 0, j, k, fd , pid; struct stat buf; struct stat buf2; j = strlen( port_filename ); p = ( char * ) port_filename+j; while( *( p-1 ) != '/' && j-- !=1 ) p--; while( lockdirs[i] ) { /* Look for lockfiles in all known places other than the defined lock directory for this system report any unexpected lockfiles. Is the suspect lockdir there? if it is there is it not the expected lock dir? */ if( !stat( lockdirs[i], &buf2 ) && strncmp( lockdirs[i], LOCKDIR, strlen( lockdirs[i] ) ) ) { j = strlen( port_filename ); p = ( char * ) port_filename + j; /* SCO Unix use lowercase all the time taj */ while( *( p - 1 ) != '/' && j-- != 1 ) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } k=0; while ( lockprefixes[k] ) { /* FHS style */ sprintf( file, "%s/%s%s", lockdirs[i], lockprefixes[k], p ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); report_warning( message ); return 1; } /* UUCP style */ stat(port_filename , &buf ); sprintf( file, "%s/%s%03d.%03d.%03d", lockdirs[i], lockprefixes[k], (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); if( stat( file, &buf ) == 0 ) { sprintf( message, UNEXPECTED_LOCK_FILE, file ); report_warning( message ); return 1; } k++; } } i++; } /* OK. We think there are no unexpect lock files for this device Lets see if there any stale lock files that need to be removed. */ #ifdef FHS /* FHS standard locks */ i = strlen( port_filename ); p = ( char * ) port_filename + i; while( *(p-1) != '/' && i-- != 1) { #if defined ( __unixware__ ) *p = tolower( *p ); #endif /* __unixware__ */ p--; } sprintf( file, "%s/%s%s", LOCKDIR, LOCKFILEPREFIX, p ); #else /* UUCP standard locks */ if ( stat( port_filename, &buf ) != 0 ) { report( "RXTX is_device_locked() could not find device.\n" ); return 1; } sprintf( file, "%s/LK.%03d.%03d.%03d", LOCKDIR, (int) major( buf.st_dev ), (int) major( buf.st_rdev ), (int) minor( buf.st_rdev ) ); #endif /* FHS */ if( stat( file, &buf ) == 0 ) { /* check if its a stale lock */ fd=open( file, O_RDONLY ); read( fd, pid_buffer, 11 ); /* FIXME null terminiate pid_buffer? need to check in Solaris */ close( fd ); sscanf( pid_buffer, "%d", &pid ); if( kill( (pid_t) pid, 0 ) && errno==ESRCH ) { sprintf( message, "RXTX Warning: Removing stale lock file. %s\n", file ); report_warning( message ); if( unlink( file ) != 0 ) { snprintf( message, 80, "RXTX Error: Unable to \ remove stale lock file: %s\n", file ); report_warning( message ); return 1; } } } return 0; } #endif /* WIN32 */ /*---------------------------------------------------------- system_does_not_lock accept: the filename the system thinks should be locked. perform: avoid trying to create lock files on systems that dont use them return: 0 for success ;) exceptions: none comments: OS's like Win32 may not have lock files. ----------------------------------------------------------*/ int system_does_not_lock( const char * filename, int pid ) { return 0; } /*---------------------------------------------------------- system_does_not_unlock accept: the filename the system thinks should be locked. perform: avoid trying to create lock files on systems that dont use them return: none exceptions: none comments: OS's like Win32 may not have lock files. ----------------------------------------------------------*/ void system_does_not_unlock( const char * filename, int openpid ) { return; } /*---------------------------------------------------------- dump_termios accept: string to indicate where this was called. termios struct perform: print the termios struct to stderr. return: none exceptions: none comments: used to debug the termios struct. ----------------------------------------------------------*/ void dump_termios(char *foo,struct termios *ttyset) { #ifdef DEBUG int i; fprintf(stderr, "%s c_iflag=%#x\n", foo, ttyset->c_iflag); fprintf(stderr, "%s c_lflag=%#x\n", foo, ttyset->c_lflag); fprintf(stderr, "%s c_oflag=%#x\n", foo, ttyset->c_oflag); fprintf(stderr, "%s c_cflag=%#x\n", foo, ttyset->c_cflag); fprintf(stderr, "%s c_cc[]: ", foo); for(i=0; ic_cc[i]); } fprintf(stderr,"\n" ); #endif /* DEBUG */ } /*---------------------------------------------------------- printj accept: like vwprintf() return: number of jchars written or -1 exceptions: none comments: prints data using System.out.print() for gcj + CNI Just use java::lang::System::out->println(s); ----------------------------------------------------------*/ int printj( wchar_t *fmt, ... ) { return(0); } /* for gcj compiles */ jboolean gnu::io::RXTXPort::nativeSetCallOutHangup( jboolean NoHup ) { return( true ); } jboolean gnu::io::RXTXPort::nativeGetCallOutHangup( ) { return( true ); } jboolean gnu::io::RXTXPort::nativeSetLowLatency( ) { return( true ); } jboolean gnu::io::RXTXPort::nativeGetLowLatency( ) { return( true ); } jboolean gnu::io::RXTXPort::nativeSetUartType( jstring ty, jboolean te ) { return( true ); } jstring gnu::io::RXTXPort::nativeGetUartType( ) { return JvNewStringUTF( "RXTX-2.1-7pre13 SAM I AM" ); } ./rxtx-2.2pre2/CNI/CommPortIdentifier.java0000644000175000017500000003403310614033754020273 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.FileDescriptor; import java.util.Vector; import java.util.Enumeration; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class CommPortIdentifier extends Object /* extends Vector? */ { public static final int PORT_SERIAL = 1; // rs232 Port public static final int PORT_PARALLEL = 2; // Parallel Port public static final int PORT_I2C = 3; // i2c Port public static final int PORT_RS485 = 4; // rs485 Port public static final int PORT_RAW = 5; // Raw Port private String PortName; private boolean Available = true; private String Owner; private CommPort commport; private CommDriver RXTXDriver; static CommPortIdentifier CommPortIndex; CommPortIdentifier next; private int PortType; private final static boolean debug = false; static Object Sync; Vector ownershipListener; /*------------------------------------------------------------------------------ static {} aka initialization accept: - perform: load the rxtx driver return: - exceptions: Throwable comments: static block to initialize the class ------------------------------------------------------------------------------*/ // initialization only done once.... static { if(debug) System.out.println("CommPortIdentifier:static initialization()"); Sync = new Object(); try { CommDriver RXTXDriver = (CommDriver) Class.forName("gnu.io.RXTXCommDriver").newInstance(); RXTXDriver.initialize(); } catch (Throwable e) { System.err.println(e + " thrown while loading " + "gnu.io.RXTXCommDriver"); } String OS; OS = System.getProperty("os.name"); if(OS.toLowerCase().indexOf("linux") == -1) { if (debug) System.out.println("Have not implemented native_psmisc_report_owner(PortName)); in CommPortIdentifier"); } /* System.loadLibrary( "rxtxSerial" ); */ } CommPortIdentifier ( String pn, CommPort cp, int pt, CommDriver driver) { PortName = pn; commport = cp; PortType = pt; next = null; RXTXDriver = driver; } /*------------------------------------------------------------------------------ addPortName() accept: Name of the port s, Port type, reverence to RXTXCommDriver. perform: place a new CommPortIdentifier in the linked list return: none. exceptions: none. comments: ------------------------------------------------------------------------------*/ public static void addPortName(String s, int type, CommDriver c) { if(debug) System.out.println("CommPortIdentifier:addPortName("+s+")"); AddIdentifierToList(new CommPortIdentifier(s, null, type, c)); } /*------------------------------------------------------------------------------ AddIdentifierToList() accept: The cpi to add to the list. perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ private static void AddIdentifierToList( CommPortIdentifier cpi) { if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList()"); synchronized (Sync) { if (CommPortIndex == null) { CommPortIndex = cpi; if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() null"); } else { CommPortIdentifier index = CommPortIndex; while (index.next != null) { index = index.next; if(debug) System.out.println("CommPortIdentifier:AddIdentifierToList() index.next"); } index.next = cpi; } } } /*------------------------------------------------------------------------------ addPortOwnershipListener() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public void addPortOwnershipListener(CommPortOwnershipListener c) { if(debug) System.out.println("CommPortIdentifier:addPortOwnershipListener()"); /* is the Vector instantiated? */ if( ownershipListener == null ) { ownershipListener = new Vector(); } /* is the ownership listener already in the list? */ if ( ownershipListener.contains(c) == false) { ownershipListener.addElement(c); } } /*------------------------------------------------------------------------------ getCurrentOwner() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public String getCurrentOwner() { if(debug) System.out.println("CommPortIdentifier:getCurrentOwner()"); return( Owner ); } /*------------------------------------------------------------------------------ getName() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public String getName() { if(debug) System.out.println("CommPortIdentifier:getName()"); return( PortName ); } /*------------------------------------------------------------------------------ getPortIdentifier() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { if ( debug ) System.out.println("not found!" + s); throw new NoSuchPortException(); } } /*------------------------------------------------------------------------------ getPortIdentifier() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException { if(debug) System.out.println("CommPortIdentifier:getPortIdentifier(CommPort)"); CommPortIdentifier c = CommPortIndex; synchronized( Sync ) { while ( c != null && c.commport != p ) c = c.next; } if ( c != null ) return (c); if ( debug ) System.out.println("not found!" + p.getName()); throw new NoSuchPortException(); } /*------------------------------------------------------------------------------ getPortIdentifiers() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ static public Enumeration getPortIdentifiers() { if(debug) System.out.println("static CommPortIdentifier:getPortIdentifiers()"); return new CommPortEnumerator(); } /*------------------------------------------------------------------------------ getPortType() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public int getPortType() { if(debug) System.out.println("CommPortIdentifier:getPortType()"); return( PortType ); } /*------------------------------------------------------------------------------ isCurrentlyOwned() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public synchronized boolean isCurrentlyOwned() { if(debug) System.out.println("CommPortIdentifier:isCurrentlyOwned()"); return(!Available); } /*------------------------------------------------------------------------------ open() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public synchronized CommPort open(FileDescriptor f) throws UnsupportedCommOperationException { if(debug) System.out.println("CommPortIdentifier:open(FileDescriptor)"); throw new UnsupportedCommOperationException(); } private native String native_psmisc_report_owner(String PortName); /*------------------------------------------------------------------------------ open() accept: application makeing the call and milliseconds to block during open. perform: open the port if possible return: CommPort if successfull exceptions: PortInUseException if in use. comments: ------------------------------------------------------------------------------*/ private boolean HideOwnerEvents; public synchronized CommPort open(String TheOwner, int i) throws gnu.io.PortInUseException { if(debug) System.out.println("CommPortIdentifier:open("+TheOwner + ", " +i+")"); if (Available == false) { synchronized (Sync) { fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED); try { wait(i); } catch ( InterruptedException e ) { } } } if (Available == false) { throw new gnu.io.PortInUseException(getCurrentOwner()); } if(commport == null) { commport = RXTXDriver.getCommPort(PortName,PortType); } if(commport != null) { Owner = TheOwner; Available=false; fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNED); return commport; } else { throw new gnu.io.PortInUseException( native_psmisc_report_owner(PortName)); } } /*------------------------------------------------------------------------------ removePortOwnership() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ public void removePortOwnershipListener(CommPortOwnershipListener c) { if(debug) System.out.println("CommPortIdentifier:removePortOwnershipListener()"); /* why is this called twice? */ if(ownershipListener != null) ownershipListener.removeElement(c); } /*------------------------------------------------------------------------------ internalClosePort() accept: None perform: clean up the Ownership information and send the event return: None exceptions: None comments: None ------------------------------------------------------------------------------*/ synchronized void internalClosePort() { if(debug) System.out.println("CommPortIdentifier:internalClosePort()"); Owner = null; Available = true; commport = null; /* this tosses null pointer?? */ notifyAll(); fireOwnershipEvent(CommPortOwnershipListener.PORT_UNOWNED); } /*------------------------------------------------------------------------------ fireOwnershipEvent() accept: perform: return: exceptions: comments: ------------------------------------------------------------------------------*/ void fireOwnershipEvent(int eventType) { if(debug) System.out.println("CommPortIdentifier:fireOwnershipEvent( " + eventType + " )"); if (ownershipListener != null) { CommPortOwnershipListener c; for ( Enumeration e = ownershipListener.elements(); e.hasMoreElements(); c.ownershipChange(eventType)) c = (CommPortOwnershipListener) e.nextElement(); } } } ./rxtx-2.2pre2/CNI/Makefile0000644000175000017500000000255707624703211015332 0ustar twernertwerner CFLAGS=-Wall -g -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -O2 -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec javafiles=$( wildcard *.java ) classfiles=$( patsubst %.java,gnu/io/%.class,$( wildcard *.java ) ) objects=$( patsubst %.java,gnu/io/%.o,$( wildcard *.java ) ) all: Simple Simple: librxtx.so librxtx.a #gcj *.o librxtx.a -static -lgcj -lpthread -ldl -lz -o Simple --main=Simple ln -s Simple.Java Simple.java gcj --classpath RXTX.jar -d . -C Simple.java rm Simple.java gcj -g -classpath RXTX.jar -d . -c Simple.class gcj -g *.o gnu/io/*.o -static -lgcj -lpthread -ldl -lz -o Simple --main=Simple librxtx.a: gnu/io/SerialImp.o gnu/io/fuserImp.o objects ar rs librxtx.a gnu/io/*.o *.o librxtx.so: gnu/io/SerialImp.o gnu/io/fuserImp.o objects g++ -g -shared gnu/io/*.o *.o -lpthread -Wl,-soname -Wl,librxtx-0.0-1.so -o librxtx-0.0-1.so rm -f librxtx.so && ln -s librxtx-0.0-1.so librxtx.so objects: classfiles (cd gnu/io && gcj -g -classpath ../.. -d gnu/io -c *.class ) gnu/io/SerialImp.o: classfiles g++ $(CFLAGS) -I . -c SerialImp.c gnu/io/fuserImp.o: classfiles g++ $(CFLAGS) -I . -c fuserImp.c classfiles: rm -f Simple.java gcj -d . -C *.java for i in gnu/io/*.class;do gcjh -d . `echo $$i|sed s/.class//g`;done jar -cf RXTX.jar gnu/io/*.class clean: rm -f gnu/io/* rm -f *.a *.o *.so *.class Simple *.jar rmdir gnu/io rmdir gnu ./rxtx-2.2pre2/CNI/Zystem.java0000644000175000017500000001557510614033754016035 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 2003-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.RandomAccessFile; public class Zystem { public static final int SILENT_MODE = 0; public static final int FILE_MODE = 1; public static final int NET_MODE = 2; public static final int MEX_MODE = 3; public static final int PRINT_MODE = 4; public static final int J2EE_MSG_MODE = 5; static int mode; static { /* The rxtxZystem library uses Python code and is not included with RXTX. A seperate library will be released to avoid potential license conflicts. Trent Jarvi taj@www.linux.org.uk */ //System.loadLibrary( "rxtxZystem" ); mode = SILENT_MODE; } private static String target; public Zystem( int m ) throws UnSupportedLoggerException { mode = m; startLogger( "asdf" ); } public void startLogger( ) throws UnSupportedLoggerException { if ( mode == SILENT_MODE || mode == PRINT_MODE ) { //nativeNetInit( ); return; } throw new UnSupportedLoggerException( "Target Not Allowed" ); } /* accept the host or file to log to. */ public void startLogger( String t ) throws UnSupportedLoggerException { target = t; /* if ( mode == NET_MODE ) { nativeNetInit( ); } if ( nativeInit( ) ) { throw new UnSupportedLoggerException( "Port initializion failed" ); } */ return; } public void finalize() { /* if ( mode == NET_MODE ) { nativeNetFinalize( ); } nativeFinalize(); */ mode = SILENT_MODE; target = null; } public void filewrite( String s ) { try { RandomAccessFile w = new RandomAccessFile( target, "rw" );; w.seek( w.length() ); w.writeBytes( s ); w.close(); } catch ( Exception e ) { System.out.println("Debug output file write failed"); } } public boolean report( String s) { if ( mode == NET_MODE ) { // return( nativeNetReportln( s ) ); } else if ( mode == PRINT_MODE ) { System.out.println( s ); return( true ); } else if ( mode == MEX_MODE ) { // return( nativeMexReport( s ) ); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( s ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } return( false ); } public boolean reportln( ) { boolean b; if ( mode == NET_MODE ) { // b= nativeNetReportln( "\n" ); // return(b); } else if ( mode == PRINT_MODE ) { System.out.println( ); return( true ); } else if ( mode == MEX_MODE ) { // b = nativeMexReportln( "\n" ); // return(b); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( "\n" ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } return( false ); } public boolean reportln( String s) { boolean b; if ( mode == NET_MODE ) { // b= nativeNetReportln( s + "\n" ); // return(b); } else if ( mode == PRINT_MODE ) { System.out.println( s ); return( true ); } else if ( mode == MEX_MODE ) { // b = nativeMexReportln( s + "\n" ); // return(b); } else if ( mode == SILENT_MODE ) { return( true ); } else if ( mode == FILE_MODE ) { filewrite( s + "\n" ); } else if ( mode == J2EE_MSG_MODE ) { return( false ); } return( false ); } /* private native boolean nativeInit( ); private native void nativeFinalize(); */ /* open and close the socket */ /* private native boolean nativeNetInit( ); private native void nativeNetFinalize(); */ /* dumping to a remote machine */ /* public native boolean nativeNetReport( String s ); public native boolean nativeNetReportln( String s ); */ /* specific to Matlab */ /* public native boolean nativeMexReport( String s ); public native boolean nativeMexReportln( String s ); */ } ./rxtx-2.2pre2/CNI/SerialImp.h0000644000175000017500000003653710614033754015736 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ /* gnu.io.SerialPort constants */ #ifdef WIN32 #include "win32termios.h" #endif /* WIN32 */ #define JDATABITS_5 5 #define JDATABITS_6 6 #define JDATABITS_7 7 #define JDATABITS_8 8 #define JPARITY_NONE 0 #define JPARITY_ODD 1 #define JPARITY_EVEN 2 #define JPARITY_MARK 3 #define JPARITY_SPACE 4 #define STOPBITS_1 1 #define STOPBITS_2 2 #define STOPBITS_1_5 3 #define FLOWCONTROL_NONE 0 #define FLOWCONTROL_RTSCTS_IN 1 #define FLOWCONTROL_RTSCTS_OUT 2 #define FLOWCONTROL_XONXOFF_IN 4 #define FLOWCONTROL_XONXOFF_OUT 8 /* gnu.io.SerialPortEvent constants */ #define SPE_DATA_AVAILABLE 1 #define SPE_OUTPUT_BUFFER_EMPTY 2 #define SPE_CTS 3 #define SPE_DSR 4 #define SPE_RI 5 #define SPE_CD 6 #define SPE_OE 7 #define SPE_PE 8 #define SPE_FE 9 #define SPE_BI 10 #define PORT_SERIAL 1 #define PORT_PARALLEL 2 #define PORT_I2C 3 #define PORT_RS485 4 #define PORT_RAW 5 /* glue for unsupported linux speeds see also win32termios.h */ #if !defined(__APPLE__) && !defined(__FreeBSD__) /* dima */ /* this is now handled in SerialImp.c #define B14400 1010001 #define B28800 1010002 #define B128000 1010003 #define B256000 1010004 */ #endif /* dima */ struct preopened { char filename[40]; int fd; struct preopened *next; struct preopened *prev; }; struct event_info_struct { int fd; /* flags for events */ int eventflags[11]; int initialised; int ret, change; unsigned int omflags; char message[80]; int has_tiocsergetlsr; int has_tiocgicount; int eventloop_interrupted; /* JNIEnv *env; jobject *jobj; jclass jclazz; jmethodID send_event; jmethodID checkMonitorThread; */ struct event_info_struct *next, *prev; fd_set rfds; struct timeval tv_sleep; int closing; #if !defined(TIOCSERGETLSR) && !defined(WIN32) int writing; int output_buffer_empty_flag; #endif /* !TIOCSERGETLSR !WIN32 */ # if defined(TIOCGICOUNT) struct serial_icounter_struct osis; #endif /* TIOCGICOUNT */ }; /* Ports known on the OS */ #if defined(__linux__) # define DEVICEDIR "/dev/" # define LOCKDIR "/var/lock" # define LOCKFILEPREFIX "LCK.." # define FHS #endif /* __linux__ */ #if defined(__QNX__) # define DEVICEDIR "/dev/" # define LOCKDIR "" # define LOCKFILEPREFIX "" #endif /* qnx */ #if defined(__sgi__) || defined(sgi) # define DEVICEDIR "/dev/" # define LOCKDIR "/usr/spool/uucp" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __sgi__ || sgi */ #if defined(__FreeBSD__) # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/uucp" # define LOCKFILEPREFIX "LK." # define UUCP #endif #if defined(__APPLE__) # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/uucp" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __FreeBSD__ */ #if defined(__NetBSD__) # define DEVICEDIR "/dev/" # define LOCKDIR "/usr/spool/uucp" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __NetBSD__ */ #if defined(__unixware__) # define DEVICEDIR "/dev/" /* really this only fully works for OpenServer */ # define LOCKDIR "/var/spool/uucp/" # define LOCKFILEPREFIX "LK." /* this needs work.... Jonathan Schilling writes: This is complicated because as I said in my previous mail, there are two kinds of SCO operating systems. The one that most people want gnu.io for, including the guy who asked the mailing list about SCO support a few days ago, is Open Server (a/k/a "SCO UNIX"), which is SVR3-based. This uses old-style uucp locks, of the form LCK..tty0a. That's what I implemented in the RXTX port I did, and it works correctly. The other SCO/Caldera OS, UnixWare/Open UNIX, uses the new-style SVR4 locks, of the form LK.123.123.123. These OSes are a lot like Solaris (UnixWare/Open UNIX come from AT&T SVR4 which had a joint The other SCO/Caldera OS, UnixWare/Open UNIX, uses the new-style SVR4 locks, of the form LK.123.123.123. These OSes are a lot like Solaris (UnixWare/Open UNIX come from AT&T SVR4 which had a joint heritage with Sun way back when). I saw that you added support for this form of lock by RXTX 1.4-10 ... but it gets messy because, as I said before, we use the same binary gnu.io files for both UnixWare/Open UNIX and OpenServer. Thus we can't #ifdef one or the other; it would have to be a runtime test. Your code and your macros aren't set up for doing this (understandably!). So I didn't implement these; the gnu.io locks won't fully work on UnixWare/Open UNIX as a result, which I mentioned in the Release Notes. What I would suggest is that you merge in the old-style LCK..tty0a lock code that I used, since this will satisfy 90% of the SCO users. Then I'll work on some way of getting UnixWare/Open UNIX locking to work correctly, and give you those changes at a later date. Jonathan FIXME The lock type could be passed with -DOLDUUCP or -DUUCP based on os.name in configure.in or perhaps system defines could determine the lock type. Trent */ # define OLDUUCP #endif #if defined(__hpux__) /* modif cath */ # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/uucp" # define LOCKFILEPREFIX "LCK." # define UUCP #endif /* __hpux__ */ #if defined(__osf__) /* Digital Unix */ # define DEVICEDIR "/dev/" # define LOCKDIR "" # define LOCKFILEPREFIX "LK." # define UUCP #endif /* __osf__ */ #if defined(__sun__) /* Solaris */ # define DEVICEDIR "/dev/" # define LOCKDIR "/var/spool/locks" # define LOCKFILEPREFIX "LK." /* # define UUCP */ #endif /* __sun__ */ #if defined(__BEOS__) # define DEVICEDIR "/dev/ports/" # define LOCKDIR "" # define LOCKFILEPREFIX "" # define UUCP #endif /* __BEOS__ */ #if defined(WIN32) # define DEVICEDIR "//./" # define LOCKDIR "" # define LOCKFILEPREFIX "" # define OPEN serial_open # define CLOSE serial_close # define WRITE serial_write # define READ serial_read # define SELECT serial_select #else /* use the system calls for Unix */ # define OPEN open # define CLOSE close # define WRITE write # define READ read # define SELECT select struct timeval snow, enow, seloop, eeloop; #define report_time_start_rs( ) \ { \ gettimeofday(&snow, NULL); \ } #define report_time_end_rs( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #ifdef DEBUG_TIMING struct timeval snow, enow, seloop, eeloop; #define report_time_eventLoop( ) { \ if ( seloop.tv_sec == eeloop.tv_sec && seloop.tv_usec == eeloop.tv_usec ) \ { \ gettimeofday(&eeloop, NULL); \ seloop.tv_sec = eeloop.tv_sec; \ seloop.tv_usec = eeloop.tv_usec; \ mexPrintf("%8i sec : %8i usec\n", eeloop.tv_sec - seloop.tv_sec, eeloop.tv_usec - seloop.tv_usec); \ } \ } #define report_time( ) \ { \ struct timeval now; \ gettimeofday(&now, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec\n", __TIME__, __LINE__, now.tv_sec, now.tv_usec); \ } #define report_time_start( ) \ { \ gettimeofday(&snow, NULL); \ mexPrintf("%8s : %5i : %8i sec : %8i usec", __TIME__, __LINE__, snow.tv_sec, snow.tv_usec); \ } #define report_time_end( ) \ { \ gettimeofday(&enow, NULL); \ mexPrintf("%8i sec : %8i usec\n", enow.tv_sec - snow.tv_sec, enow.tv_sec - snow.tv_sec?snow.tv_usec-enow.tv_usec:enow.tv_usec - snow.tv_usec); \ } #else #define report_time_eventLoop( ){}; #define report_time( ) {} #define report_time_start( ) {} #define report_time_end( ) {} #endif /* DEBUG_TIMING */ /* #define TRACE */ #ifdef TRACE #define ENTER(x) report("entering "x" \n"); #define LEAVE(x) report("leaving "x" \n"); #else #define ENTER(x) #define LEAVE(x) #endif /* TRACE */ #endif /* WIN32 */ /* allow people to override the directories */ /* #define USER_LOCK_DIRECTORY "/home/tjarvi/1.5/build" */ #ifdef USER_LOCK_DIRECTORY # define LOCKDIR USER_LOCK_DIRECTORY #endif /* USER_LOCK_DIRECTORY */ #ifdef DISABLE_LOCKFILES #undef UUCP #undef FHS #undef OLDUUCP #endif /* DISABLE_LOCKFILES */ /* That should be all you need to look at in this file for porting */ #ifdef LFS /* Use a Lock File Server */ # define LOCK lfs_lock # define UNLOCK lfs_unlock #elif defined(UUCP) # define LOCK uucp_lock # define UNLOCK uucp_unlock #elif defined(OLDUUCP) /* We can handle the old style if needed here see __unixware__ above. defaulting to rxtx-1.4-8 behavior for now. see also __sco__ in SerialImp.c when changing this for a possible bug FIXME */ # define LOCK fhs_lock # define UNLOCK fhs_unlock #elif defined(FHS) # define LOCK fhs_lock # define UNLOCK fhs_unlock #else # define LOCK system_does_not_lock # define UNLOCK system_does_not_unlock #endif /* UUCP */ /* java exception class names */ //#define UNSUPPORTED_COMM_OPERATION "gnu/io/UnsupportedCommOperationException" #define UNSUPPORTED_COMM_OPERATION "UnsupportedCommOperationException" #define ARRAY_INDEX_OUT_OF_BOUNDS "java/lang/ArrayIndexOutOfBoundsException" #define OUT_OF_MEMORY "java/lang/OutOfMemoryError" #define IO_EXCEPTION "java/io/IOException" #define PORT_IN_USE_EXCEPTION "gnu/io/PortInUseException" /* some popular releases of Slackware do not have SSIZE_MAX */ #ifndef SSIZE_MAX # if defined(INT_MAX) # define SSIZE_MAX INT_MAX # elif defined(MAXINT) # define SSIZE_MAX MAXINT # else # define SSIZE_MAX 2147483647 /* ugh */ # endif #endif /* Flow Control defines inspired by reading how mgetty by Gert Doering does it */ #ifdef CRTSCTS #define HARDWARE_FLOW_CONTROL CRTSCTS #else # ifdef CCTS_OFLOW # define HARDWARE_FLOW_CONTROL CCTS_OFLOW|CRST_IFLOW # else # ifdef RTSFLOW # define HARDWARE_FLOW_CONTROL RTSFLOW|CTSFLOW # else # ifdef CRTSFL # define HARDWARE_FLOW_CONTROL CRTSFL # else # ifdef CTSCD # define HARDWARE_FLOW_CONTROL CTSCD # else # define HARDWARE_FLOW_CONTROL 0 # endif # endif # endif # endif #endif /* PROTOTYPES */ #ifdef DEBUG_MW extern void mexWarnMsgTxt( const char * ); extern void mexErrMsgTxt( const char * ); #ifndef __APPLE__ extern int mexPrintf( const char *, ... ); # define printf mexPrintf #endif #endif /* DEBUG_MW */ #ifdef __APPLE__ # define mexPrintf printf #endif #ifdef __BEOS__ struct tpid_info_struct *add_tpid( struct tpid_info_struct * ); data_rate translate_speed( jint ); int translate_data_bits( data_bits *, jint ); int translate_stop_bits( stop_bits *, jint ); int translate_parity( parity_mode *, jint ); #else int spawn_write_thread( int, char *, int ); int translate_speed( jint ); int translate_data_bits( tcflag_t *, jint ); int translate_stop_bits( tcflag_t *, jint ); int translate_parity( tcflag_t *, jint ); #endif void system_wait(); void finalize_event_info_struct( struct event_info_struct * ); int read_byte_array( int, unsigned char *, int, int ); int get_java_var( char *, char * ); jboolean is_interrupted( struct event_info_struct * ); int send_event(gnu::io::RXTXPort *, struct event_info_struct *, jint, int ); void dump_termios(char *,struct termios *); void report_verbose(char *); void report_error(char *); void report_warning(char *); void report(char *); void throw_java_exception( char *, char *, char * ); int lock_device( const char * ); void unlock_device( const char * ); int is_device_locked( const char * ); int check_lock_status( const char * ); int lfs_unlock(const char *, int ); int lfs_lock( const char *, int); void fhs_unlock(const char *, int ); int fhs_lock( const char *, int); void uucp_unlock( const char *, int ); int uucp_lock( const char *, int ); int system_does_not_lock( const char *, int ); void system_does_not_unlock( const char *, int ); int check_group_uucp(); int check_lock_pid( const char *, int ); int printj(wchar_t *fmt, ...); #define UNEXPECTED_LOCK_FILE "RXTX Error: Unexpected lock file: %s\n Please report to the RXTX developers\n" #define LINUX_KERNEL_VERSION_ERROR "\n\n\nRXTX WARNING: This library was compiled to run with OS release %s and you are currently running OS release %s. In some cases this can be a problem. Try recompiling RXTX if you notice strange behavior. If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n" #define UUCP_ERROR "\n\n\nRXTX WARNING: This library requires the user running applications to be in\ngroup uucp. Please consult the INSTALL documentation. More information is\navaiable under the topic 'How can I use Lock Files with rxtx?'\n" ./rxtx-2.2pre2/CNI/PortInUseException.java0000644000175000017500000000734210614033754020302 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * The port requested is currently in use * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public class PortInUseException extends Exception { /** the owner of the port requested. */ public String currentOwner; /** * create a instance of the Exception and store the current owner * * @param str detailed information about the current owner */ PortInUseException( String str ) { super( str ); currentOwner=str; } public PortInUseException() { super(); } } ./rxtx-2.2pre2/CNI/COPYING0000755000175000017500000007231510614033754014730 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ The original GNU Lesser General Public License Follows. GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! ./rxtx-2.2pre2/CNI/CVS/0000755000175000017500000000000011126534454014317 5ustar twernertwerner./rxtx-2.2pre2/CNI/CVS/Template0000644000175000017500000000000011126534452016001 0ustar twernertwerner./rxtx-2.2pre2/CNI/CVS/Tag0000644000175000017500000000001711126534454014753 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/CNI/CVS/Root0000644000175000017500000000007511126534452015165 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/CNI/CVS/Entries0000644000175000017500000000315011126534454015652 0ustar twernertwerner/COPYING/1.1.2.2/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommDriver.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommPort.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommPortEnumerator.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommPortIdentifier.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /CommPortOwnershipListener.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /Makefile/1.1.2.1/Wed Feb 19 13:28:41 2003//Tcommapi-0-0-1 /NoSuchPortException.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /PortInUseException.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /README/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /RXTXCommDriver.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /RXTXPort.java/1.1.2.4/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /RXTXVersion.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /SerialImp.c/1.1.2.7/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /SerialImp.h/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /SerialPort.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /SerialPortEvent.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /SerialPortEventListener.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /Simple.Java/1.1.2.1/Wed Feb 19 13:32:04 2003//Tcommapi-0-0-1 /UnSupportedLoggerException.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /UnsupportedCommOperationException.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /Zystem.java/1.1.2.3/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /config.h/1.1.2.1/Wed Feb 19 13:28:42 2003//Tcommapi-0-0-1 /fuserImp.c/1.1.2.1/Wed Feb 19 13:28:42 2003//Tcommapi-0-0-1 D ./rxtx-2.2pre2/CNI/CVS/Repository0000644000175000017500000000001711126534452016415 0ustar twernertwernerrxtx-devel/CNI ./rxtx-2.2pre2/CNI/RXTXPort.java0000644000175000017500000015153510614033754016211 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; import java.util.TooManyListenersException; import java.lang.Math; /** * An extension of gnu.io.SerialPort * @see gnu.io.SerialPort */ final public class RXTXPort extends SerialPort { /* I had a report that some JRE's complain when MonitorThread tries to access private variables */ protected final static boolean debug = false; protected final static boolean debug_read = false; protected final static boolean debug_read_results = false; protected final static boolean debug_write = false; protected final static boolean debug_events = false; protected final static boolean debug_verbose = false; private static Zystem z; static { try { z = new Zystem( Zystem.PRINT_MODE ); } catch ( Exception e ) {}; if(debug ) z.reportln( "RXTXPort {}"); /* System.loadLibrary( "rxtxSerial" ); */ Initialize(); } /** Initialize the native library */ private native static void Initialize(); boolean MonitorThreadAlive=false; /** * Open the named port * @param name the name of the device to open * @throws PortInUseException * @see gnu.io.SerialPort */ public RXTXPort( String name ) throws PortInUseException { if (debug) z.reportln( "RXTXPort:RXTXPort("+name+") called"); /* commapi/javadocs/API_users_guide.html specifies that whenever an application tries to open a port in use by another application the PortInUseException will be thrown I know some didnt like it this way but I'm not sure how to avoid it. We will just be writing to a bogus fd if we catch the exeption Trent */ // try { fd = open( name ); this.name = name; MonitorThreadLock = true; monThread = new MonitorThread(); monThread.start(); waitForTheNativeCodeSilly(); MonitorThreadAlive=true; // } catch ( PortInUseException e ){} timeout = -1; /* default disabled timeout */ if (debug) z.reportln( "RXTXPort:RXTXPort("+name+") returns with fd = " + fd); } private native synchronized int open( String name ) throws PortInUseException; /** File descriptor */ protected int fd = 0; /** a pointer to the event info structure used to share information between threads so write threads can send output buffer empty from a pthread if need be. */ int eis = 0; /** pid for lock files */ int pid = 0; /** DSR flag **/ static boolean dsrFlag = false; /** Output stream */ private final SerialOutputStream out = new SerialOutputStream(); /** * get the OutputStream * @return OutputStream */ public OutputStream getOutputStream() { if (debug) z.reportln( "RXTXPort:getOutputStream() called and returning"); return out; } /** Input stream */ private final SerialInputStream in = new SerialInputStream(); /** * get the InputStream * @return InputStream * @see java.io.InputStream */ public InputStream getInputStream() { if (debug) z.reportln( "RXTXPort:getInputStream() called and returning"); return in; } /** * Set the SerialPort parameters * 1.5 stop bits requires 5 databits * @param b baudrate * @param d databits * @param s stopbits * @param p parity * @throws UnsupportedCommOperationException * @see gnu.io.UnsupportedCommOperationException * If speed is not a predifined speed it is assumed to be * the actual speed desired. */ private native int nativeGetParity( int fd ); private native int nativeGetFlowControlMode( int fd ); public synchronized void setSerialPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { if (debug) z.reportln( "RXTXPort:setSerialPortParams(" + b + " " + d + " " + s + " " + p + ") called"); if ( nativeSetSerialPortParams( b, d, s, p ) ) throw new UnsupportedCommOperationException( "Invalid Parameter" ); speed = b; if( s== STOPBITS_1_5 ) dataBits = DATABITS_5; else dataBits = d; stopBits = s; parity = p; if (debug) z.reportln( "RXTXPort:setSerialPortParams(" + b + " " + d + " " + s + " " + p + ") returning"); } /** * Set the native serial port parameters * If speed is not a predifined speed it is assumed to be * the actual speed desired. */ private native boolean nativeSetSerialPortParams( int speed, int dataBits, int stopBits, int parity ) throws UnsupportedCommOperationException; /** Line speed in bits-per-second */ protected int speed=9600; /** * @return int representing the baudrate * This will not behave as expected with custom speeds */ public int getBaudRate() { if (debug) z.reportln( "RXTXPort:getBaudRate() called and returning " + speed); return speed; } /** Data bits port parameter */ protected int dataBits=DATABITS_8; /** * @return int representing the databits */ public int getDataBits() { if (debug) z.reportln( "RXTXPort:getDataBits() called and returning " + dataBits); return dataBits; } /** Stop bits port parameter */ protected int stopBits=SerialPort.STOPBITS_1; /** * @return int representing the stopbits */ public int getStopBits() { if (debug) z.reportln( "RXTXPort:getStopBits() called and returning " + stopBits); return stopBits; } /** Parity port parameter */ protected int parity= SerialPort.PARITY_NONE; /** * @return int representing the parity */ public int getParity() { if (debug) z.reportln( "RXTXPort:getParity() called and returning " + parity ); return parity; } /** Flow control */ protected int flowmode = SerialPort.FLOWCONTROL_NONE; /** * @param flowcontrol FLOWCONTROL_NONE is default * @see gnu.io.SerialPort#FLOWCONTROL_NONE */ public void setFlowControlMode( int flowcontrol ) { if (debug) z.reportln( "RXTXPort:setFlowControlMode( " + flowcontrol + " ) called"); if(monThreadisInterrupted) { if( debug_events ) z.reportln( "RXTXPort:setFlowControlMode MonThread is Interrupeted returning" ); return; } try { setflowcontrol( flowcontrol ); } catch( IOException e ) { e.printStackTrace(); return; } flowmode=flowcontrol; if (debug) z.reportln( "RXTXPort:setFlowControlMode( " + flowcontrol + " ) returning"); } /** * @return int representing the flowmode */ public int getFlowControlMode() { if (debug) z.reportln( "RXTXPort:getFlowControlMode() returning " + flowmode ); return flowmode; } native void setflowcontrol( int flowcontrol ) throws IOException; /* linux/drivers/char/n_hdlc.c? FIXME taj@www.linux.org.uk */ /** * Receive framing control * @param f framming * @throws UnsupportedCommOperationException */ public void enableReceiveFraming( int f ) throws UnsupportedCommOperationException { if (debug) z.reportln( "RXTXPort:enableReceiveFramming() throwing exception"); throw new UnsupportedCommOperationException( "Not supported" ); } /** */ public void disableReceiveFraming() { if (debug) z.reportln( "RXTXPort:disableReceiveFramming() called and returning (noop)"); } /** * @returns true if framing is enabled */ public boolean isReceiveFramingEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveFrammingEnabled() called and returning " + false ); return false; } /** * @return int representing the framing byte */ public int getReceiveFramingByte() { if (debug) z.reportln( "RXTXPort:getReceiveFrammingByte() called and returning " + 0 ); return 0; } /** Receive timeout control */ protected int timeout; /** * @return int the timeout */ public native int NativegetReceiveTimeout(); /** * @return bloolean true if recieve timeout is enabled */ private native boolean NativeisReceiveTimeoutEnabled(); /** * @param time * @param threshold * @param InputBuffer */ private native void NativeEnableReceiveTimeoutThreshold(int time, int threshold,int InputBuffer); /** */ public void disableReceiveTimeout() { if (debug) z.reportln( "RXTXPort:disableReceiveTimeout() called"); timeout = -1; NativeEnableReceiveTimeoutThreshold( timeout , threshold, InputBuffer ); if (debug) z.reportln( "RXTXPort:disableReceiveTimeout() returning"); } /** * @param time */ public void enableReceiveTimeout( int time ) { if (debug) z.reportln( "RXTXPort:enableReceiveTimeout() called"); if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { throw new IllegalArgumentException ( "Unexpected negative timeout value" ); } if (debug) z.reportln( "RXTXPort:enableReceiveTimeout() returning"); } /** * @return boolean true if recieve timeout is enabled */ public boolean isReceiveTimeoutEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveTimeoutEnabled() called and returning " + NativeisReceiveTimeoutEnabled() ); return( NativeisReceiveTimeoutEnabled() ); } /** * @return int the timeout */ public int getReceiveTimeout() { if (debug) z.reportln( "RXTXPort:getReceiveTimeout() called and returning " + NativegetReceiveTimeout() ); return(NativegetReceiveTimeout( )); } /** Receive threshold control */ private int threshold = 0; /** * @param thresh threshold */ public void enableReceiveThreshold( int thresh ) { if (debug) z.reportln( "RXTXPort:enableReceiveThreshold( " + thresh + " ) called"); if(thresh >=0) { threshold=thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { throw new IllegalArgumentException ( "Unexpected negative threshold value" ); } if (debug) z.reportln( "RXTXPort:enableReceiveThreshold( " + thresh + " ) returned"); } /** */ public void disableReceiveThreshold() { if (debug) z.reportln( "RXTXPort:disableReceiveThreshold() called and returning"); enableReceiveThreshold(0); } /** * @return int the recieve threshold */ public int getReceiveThreshold() { if (debug) z.reportln( "RXTXPort:getReceiveThreshold() called and returning " + threshold); return threshold; } /** * @return boolean true if receive threshold is enabled */ public boolean isReceiveThresholdEnabled() { if (debug) z.reportln( "RXTXPort:isReceiveThresholdEnable() called and returning" + (threshold > 0) ); return(threshold>0); } /** Input/output buffers */ /** FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... */ private int InputBuffer=0; private int OutputBuffer=0; /** * @param size */ public void setInputBufferSize( int size ) { if (debug) z.reportln( "RXTXPort:setInputBufferSize( " + size + ") called"); if( size < 0 ) throw new IllegalArgumentException ( "Unexpected negative buffer size value" ); else InputBuffer=size; if (debug) z.reportln( "RXTXPort:setInputBufferSize( " + size + ") returning"); } /** */ public int getInputBufferSize() { if (debug) z.reportln( "RXTXPort:getInputBufferSize() called and returning " + InputBuffer ); return(InputBuffer); } /** * @param size */ public void setOutputBufferSize( int size ) { if (debug) z.reportln( "RXTXPort:setOutputBufferSize( " + size + ") called"); if( size < 0 ) throw new IllegalArgumentException ( "Unexpected negative buffer size value" ); else OutputBuffer=size; if (debug) z.reportln( "RXTXPort:setOutputBufferSize( " + size + ") returned"); } /** * @return in the output buffer size */ public int getOutputBufferSize() { if (debug) z.reportln( "RXTXPort:getOutputBufferSize() called and returning " + OutputBuffer ); return(OutputBuffer); } /* =================== cleaned messages to here */ /** * Line status methods */ /** * @returns true if DTR is set */ public native boolean isDTR(); /** * @param state */ public native void setDTR( boolean state ); /** * @param state */ public native void setRTS( boolean state ); private native void setDSR( boolean state ); /** * @return boolean true if CTS is set */ public native boolean isCTS(); /** * @return boolean true if DSR is set */ public native boolean isDSR(); /** * @return boolean true if CD is set */ public native boolean isCD(); /** * @return boolean true if RI is set */ public native boolean isRI(); /** * @return boolean true if RTS is set */ public native boolean isRTS(); /** * Write to the port * @param duration */ public native void sendBreak( int duration ); protected native void writeByte( int b, boolean i ) throws IOException; protected native void writeArray( byte b[], int off, int len, boolean i ) throws IOException; protected native boolean nativeDrain( boolean i ) throws IOException; /** RXTXPort read methods */ protected native int nativeavailable() throws IOException; protected native int readByte() throws IOException; protected native int readArray( byte b[], int off, int len ) throws IOException; /** Serial Port Event listener */ private SerialPortEventListener SPEventListener; /** Thread to monitor data */ private MonitorThread monThread; /** Process SerialPortEvents */ native void eventLoop(); /** * @return boolean true if monitor thread is interrupted */ boolean monThreadisInterrupted=true; private native void interruptEventLoop( ); public boolean checkMonitorThread() { if (debug) z.reportln( "RXTXPort:checkMonitorThread()"); if(monThread != null) { if ( debug ) z.reportln( "monThreadisInterrupted = " + monThreadisInterrupted ); return monThreadisInterrupted; } if ( debug ) z.reportln( "monThread is null " ); return(true); } /** * @param event * @param state * @return boolean true if the port is closing */ public boolean sendEvent( int event, boolean state ) { if (debug_events) z.report( "RXTXPort:sendEvent("); /* Let the native side know its time to die */ if ( fd == 0 || SPEventListener == null || monThread == null) { return(true); } switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( debug_events ) z.reportln( "DATA_AVAILABLE " + monThread.Data + ")" ); break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( debug_events ) z.reportln( "OUTPUT_BUFFER_EMPTY " + monThread.Output + ")" ); break; case SerialPortEvent.CTS: if( debug_events ) z.reportln( "CTS " + monThread.CTS + ")" ); break; case SerialPortEvent.DSR: if( debug_events ) z.reportln( "DSR " + monThread.Output + ")" ); break; case SerialPortEvent.RI: if( debug_events ) z.reportln( "RI " + monThread.RI + ")" ); break; case SerialPortEvent.CD: if( debug_events ) z.reportln( "CD " + monThread.CD + ")" ); break; case SerialPortEvent.OE: if( debug_events ) z.reportln( "OE " + monThread.OE + ")" ); break; case SerialPortEvent.PE: if( debug_events ) z.reportln( "PE " + monThread.PE + ")" ); break; case SerialPortEvent.FE: if( debug_events ) z.reportln( "FE " + monThread.FE + ")" ); break; case SerialPortEvent.BI: if( debug_events ) z.reportln( "BI " + monThread.BI + ")" ); break; default: if( debug_events ) z.reportln( "XXXXXXXXXXXXXX " + event + ")" ); break; } if( debug_events && debug_verbose ) z.reportln( " checking flags " ); switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( monThread.Data ) break; return(false); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return(false); case SerialPortEvent.CTS: if( monThread.CTS ) break; return(false); case SerialPortEvent.DSR: if( monThread.DSR ) break; return(false); case SerialPortEvent.RI: if( monThread.RI ) break; return(false); case SerialPortEvent.CD: if( monThread.CD ) break; return(false); case SerialPortEvent.OE: if( monThread.OE ) break; return(false); case SerialPortEvent.PE: if( monThread.PE ) break; return(false); case SerialPortEvent.FE: if( monThread.FE ) break; return(false); case SerialPortEvent.BI: if( monThread.BI ) break; return(false); default: System.err.println( "unknown event: " + event); return(false); } if( debug_events && debug_verbose ) z.reportln( " getting event" ); SerialPortEvent e = new SerialPortEvent(this, event, !state, state ); if( debug_events && debug_verbose ) z.reportln( " sending event" ); if(monThreadisInterrupted) { if( debug_events ) z.reportln( " sendEvent return" ); return(true); } if( SPEventListener != null ) { SPEventListener.serialEvent( e ); } if( debug_events && debug_verbose ) z.reportln( " sendEvent return" ); if (fd == 0 || SPEventListener == null || monThread == null) { return(true); } else { return(false); } } /** * Add an event listener * @param lsnr SerialPortEventListener * @throws TooManyListenersException */ boolean MonitorThreadLock = true; boolean MonitorThreadCloseLock = true; public void addEventListener( SerialPortEventListener lsnr ) throws TooManyListenersException { /* Don't let and notification requests happen until the Eventloop is ready */ if (debug) z.reportln( "RXTXPort:addEventListener()"); if( SPEventListener != null ) { throw new TooManyListenersException(); } SPEventListener = lsnr; if( !MonitorThreadAlive ) { MonitorThreadLock = true; monThread = new MonitorThread(); monThread.start(); waitForTheNativeCodeSilly(); MonitorThreadAlive=true; } if (debug) z.reportln( "RXTXPort:Interrupt=false"); } /** * Remove the serial port event listener */ public void removeEventListener() { if (debug) z.reportln( "RXTXPort:removeEventListener() called"); waitForTheNativeCodeSilly(); //if( monThread != null && monThread.isAlive() ) if( monThreadisInterrupted == true ) { z.reportln( " RXTXPort:removeEventListener() already interrupted"); monThread = null; SPEventListener = null; Runtime.getRuntime().gc(); return; } else if( monThread != null && monThread.isAlive() ) { if (debug) z.reportln( " RXTXPort:Interrupt=true"); monThreadisInterrupted=true; /* Notify all threads in this PID that something is up They will call back to see if its their thread using isInterrupted(). */ MonitorThreadCloseLock = true; if (debug) z.reportln( " RXTXPort:calling interruptEventLoop"); interruptEventLoop( ); if (debug) z.reportln(" RXTXPort:waiting on closelock"); while( MonitorThreadCloseLock ) { if (debug) z.reportln(" ."); try { Thread.sleep(100); } catch( Exception e ) {} } if (debug) z.reportln(" RXTXPort:set closelock"); if (debug) z.reportln( " RXTXPort:calling monThread.join()"); try { monThread.join(1000); } catch (Exception ex) { /* yikes */ ex.printStackTrace(); } if (debug) z.reportln( " RXTXPort:waiting on isAlive()"); while( monThread.isAlive() ) { if ( debug ) z.reportln( " MonThread is still alive!"); try { monThread.join(1000); Thread.sleep( 1000 ); } catch( Exception e ){} //monThread.stop(); } } if (debug) z.reportln( " RXTXPort:calling gc()"); monThread = null; SPEventListener = null; Runtime.getRuntime().gc(); MonitorThreadLock = false; MonitorThreadAlive=false; if (debug) z.reportln( "RXTXPort:removeEventListener() returning"); } /** * Give the native code a chance to start listening to the hardware * or should we say give the native code control of the issue. * * This is important for applications that flicker the Monitor * thread while keeping the port open. * In worst case test cases this loops once or twice every time. */ protected void waitForTheNativeCodeSilly() { while( MonitorThreadLock ) { try { Thread.sleep(100); } catch( Exception e ) {} } } /** * @param enable */ private native void nativeSetEventFlag( int fd, int event, boolean flag ); public void notifyOnDataAvailable( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnDataAvailable( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.DATA_AVAILABLE, enable ); monThread.Data = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnOutputEmpty( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnOutputEmpty( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.OUTPUT_BUFFER_EMPTY, enable ); monThread.Output = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnCTS( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnCTS( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.CTS, enable ); monThread.CTS = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnDSR( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnDSR( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.DSR, enable ); monThread.DSR = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnRingIndicator( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnRingIndicator( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.RI, enable ); monThread.RI = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnCarrierDetect( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnCarrierDetect( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.CD, enable ); monThread.CD = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnOverrunError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnOverrunError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.OE, enable ); monThread.OE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnParityError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnParityError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.PE, enable ); monThread.PE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnFramingError( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnFramingError( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.FE, enable ); monThread.FE = enable; MonitorThreadLock = false; } /** * @param enable */ public void notifyOnBreakInterrupt( boolean enable ) { if (debug) z.reportln( "RXTXPort:notifyOnBreakInterrupt( " + enable+" )"); waitForTheNativeCodeSilly(); MonitorThreadLock = true; nativeSetEventFlag( fd, SerialPortEvent.BI, enable ); monThread.BI = enable; MonitorThreadLock = false; } /** Close the port */ private native void nativeClose( String name ); /** */ boolean closeLock = false; public synchronized void close() { if (debug) z.reportln( "RXTXPort:close( " + this.name + " )"); if( closeLock ) return; closeLock = true; if ( fd <= 0 ) { z.reportln( "RXTXPort:close detected bad File Descriptor" ); return; } setDTR(false); setDSR(false); if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) setting monThreadisInterrupted"); if ( ! monThreadisInterrupted ) { removeEventListener(); } if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) calling nativeClose"); nativeClose( this.name ); if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) calling super.close"); super.close(); if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) calling System.gc"); fd = 0; Runtime.getRuntime().gc(); closeLock = false; if (debug) z.reportln( "RXTXPort:close( " + this.name + " ) leaving"); } /** Finalize the port */ protected void finalize() { if (debug) z.reportln( "RXTXPort:finalize()"); if( fd > 0 ) close(); z.finalize(); } /** Inner class for SerialOutputStream */ class SerialOutputStream extends OutputStream { /** * @param b * @throws IOException */ public void write( int b ) throws IOException { if (debug_write) z.reportln( "RXTXPort:SerialOutputStream:write(int)"); if( speed == 0 ) return; /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ waitForTheNativeCodeSilly(); if ( fd == 0 ) throw new IOException(); writeByte( b, monThreadisInterrupted ); if (debug_write) z.reportln( "Leaving RXTXPort:SerialOutputStream:write( int )"); } /** * @param b[] * @throws IOException */ public void write( byte b[] ) throws IOException { if (debug_write) { z.reportln( "Entering RXTXPort:SerialOutputStream:write(" + b.length + ") "/* + new String(b)*/ ); } if( speed == 0 ) return; /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ if ( fd == 0 ) throw new IOException(); waitForTheNativeCodeSilly(); writeArray( b, 0, b.length, monThreadisInterrupted ); if (debug_write) z.reportln( "Leaving RXTXPort:SerialOutputStream:write(" +b.length +")"); } /** * @param b[] * @param off * @param len * @throws IOException */ public void write( byte b[], int off, int len ) throws IOException { if( speed == 0 ) return; if( off + len > b.length ) { throw new IndexOutOfBoundsException( "Invalid offset/length passed to read" ); } byte send[] = new byte[len]; System.arraycopy( b, off, send, 0, len ); if (debug_write) { z.reportln( "Entering RXTXPort:SerialOutputStream:write(" + send.length + " " + off + " " + len + " " +") " /*+ new String(send) */ ); } if ( fd == 0 ) throw new IOException(); /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ waitForTheNativeCodeSilly(); writeArray( send, 0, len, monThreadisInterrupted ); if( debug_write ) z.reportln( "Leaving RXTXPort:SerialOutputStream:write(" + send.length + " " + off + " " + len + " " +") " /*+ new String(send)*/ ); } /** */ public void flush() throws IOException { if (debug) z.reportln( "RXTXPort:SerialOutputStream:flush() enter"); if( speed == 0 ) return; if ( fd == 0 ) throw new IOException(); /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { return; // FIXME Trent this breaks //throw new IOException( "flush() Port has been Closed" ); } */ waitForTheNativeCodeSilly(); /* this is probably good on all OS's but for now just sendEvent from java on Sol */ if ( nativeDrain( monThreadisInterrupted ) ) sendEvent( SerialPortEvent.OUTPUT_BUFFER_EMPTY, true ); if (debug) z.reportln( "RXTXPort:SerialOutputStream:flush() leave"); } } /** Inner class for SerialInputStream */ class SerialInputStream extends InputStream { /** * @return int the int read * @throws IOException * @see java.io.InputStream * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available timeout > 0, * threshold = 0, blocks until timeout occurs, returns -1 * on timeout *>0 >0 blocks until timeout, returns - 1 on timeout, magnitude * of threshold doesn't play a role. *0 >0 Blocks until 1 byte, magnitude of threshold doesn't * play a role */ public synchronized int read() throws IOException { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read() called"); if ( fd == 0 ) throw new IOException(); waitForTheNativeCodeSilly(); if ( monThreadisInterrupted ) z.reportln( "+++++++++ read() monThreadisInterrupted" ); int result = readByte(); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStrea:read() returns byte = " + result ); return( result ); } /** * @param b[] * @return int number of bytes read * @throws IOException * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available *>0 0 blocks until timeout occurs, returns 0 on timeout *>0 >0 blocks until timeout or reads threshold bytes, returns 0 on timeout *0 >0 blocks until reads threshold bytes */ public synchronized int read( byte b[] ) throws IOException { int result; if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + ") called"); /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ waitForTheNativeCodeSilly(); result = read( b, 0, b.length); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read() returned " + result + " bytes" ); return( result ); } /* read(byte b[], int, int) Documentation is at http://java.sun.com/products/jdk/1.2/docs/api/java/io/InputStream.html#read(byte[], int, int) */ /** * @param b[] * @param off * @param len * @return int number of bytes read * @throws IOException * *timeout threshold Behavior *------------------------------------------------------------------------ *0 0 blocks until 1 byte is available *>0 0 blocks until timeout occurs, returns 0 on timeout *>0 >0 blocks until timeout or reads threshold bytes, returns 0 on timeout *0 >0 blocks until either threshold # of bytes or len bytes, whichever was lower. */ public synchronized int read( byte b[], int off, int len ) throws IOException { if (debug_read) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") called" /*+ new String(b) */ ); int result; /* * Some sanity checks */ if ( fd == 0 ) { z.reportln("+++++++ IOException()\n"); throw new IOException(); } if( b==null ) { z.reportln("+++++++ NullPointerException()\n"); throw new NullPointerException(); } if( (off < 0) || (len < 0) || (off+len > b.length)) { z.reportln("+++++++ IndexOutOfBoundsException()\n"); throw new IndexOutOfBoundsException(); } /* * Return immediately if len==0 */ if( len==0 ) return 0; /* * See how many bytes we should read */ int Minimum = len; if( threshold==0 ) { /* * If threshold is disabled, read should return as soon * as data are available (up to the amount of available * bytes in order to avoid blocking) * Read may return earlier depending of the receive time * out. */ int a = nativeavailable(); if( a == 0 ) Minimum = 1; else Minimum = Math.min( Minimum, a ); } else { /* * Threshold is enabled. Read should return when * 'threshold' bytes have been received (or when the * receive timeout expired) */ Minimum = Math.min(Minimum, threshold); } /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ waitForTheNativeCodeSilly(); result = readArray( b, off, Minimum); if (debug_read_results) z.reportln( "RXTXPort:SerialInputStream:read(" + b.length + " " + off + " " + len + ") returned " + result + " bytes" /*+ new String(b) */); return( result ); } /** * @return int bytes available * @throws IOException */ public synchronized int available() throws IOException { /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ if ( debug_verbose ) z.reportln( "RXTXPort:available() called" ); int r = nativeavailable(); if ( debug_verbose ) z.reportln( "RXTXPort:available() returning " + r ); return r; } } /** */ class MonitorThread extends Thread { /** Note: these have to be separate boolean flags because the SerialPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL */ private volatile boolean CTS=false; private volatile boolean DSR=false; private volatile boolean RI=false; private volatile boolean CD=false; private volatile boolean OE=false; private volatile boolean PE=false; private volatile boolean FE=false; private volatile boolean BI=false; private volatile boolean Data=false; private volatile boolean Output=false; MonitorThread() { if (debug) z.reportln( "RXTXPort:MontitorThread:MonitorThread()"); } /** * run the thread and call the event loop. */ public void run() { if (debug) z.reportln( "RXTXPort:MontitorThread:run()"); monThreadisInterrupted=false; eventLoop(); if (debug) z.reportln( "eventLoop() returned"); } protected void finalize() throws Throwable { if (debug) z.reportln( "RXTXPort:MonitorThread exiting"); } } /** * A dummy method added so RXTX compiles on Kaffee * @deprecated deprecated but used in Kaffe */ public void setRcvFifoTrigger(int trigger){}; /*------------------------ END OF CommAPI -----------------------------*/ private native static void nativeStaticSetSerialPortParams( String f, int b, int d, int s, int p ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetDSR( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsDSR( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsDTR( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsRTS( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsCTS( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsCD( String port ) throws UnsupportedCommOperationException; private native static boolean nativeStaticIsRI( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetBaudRate( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetDataBits( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetParity( String port ) throws UnsupportedCommOperationException; private native static int nativeStaticGetStopBits( String port ) throws UnsupportedCommOperationException; private native byte nativeGetParityErrorChar( ) throws UnsupportedCommOperationException; private native boolean nativeSetParityErrorChar( byte b ) throws UnsupportedCommOperationException; private native byte nativeGetEndOfInputChar( ) throws UnsupportedCommOperationException; private native boolean nativeSetEndOfInputChar( byte b ) throws UnsupportedCommOperationException; private native boolean nativeSetUartType(String type, boolean test) throws UnsupportedCommOperationException; native String nativeGetUartType() throws UnsupportedCommOperationException; private native boolean nativeSetBaudBase(int BaudBase) throws UnsupportedCommOperationException; private native int nativeGetBaudBase() throws UnsupportedCommOperationException; private native boolean nativeSetDivisor(int Divisor) throws UnsupportedCommOperationException; private native int nativeGetDivisor() throws UnsupportedCommOperationException; private native boolean nativeSetLowLatency() throws UnsupportedCommOperationException; private native boolean nativeGetLowLatency() throws UnsupportedCommOperationException; private native boolean nativeSetCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException; private native boolean nativeGetCallOutHangup() throws UnsupportedCommOperationException; /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * This is only accurate up to 38600 baud currently. * * @param port the name of the port thats been preopened * @return BaudRate on success * @throws UnsupportedCommOperationException; * This will not behave as expected with custom speeds * */ public static int staticGetBaudRate( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetBaudRate( " + port + " )"); return(nativeStaticGetBaudRate( port )); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return DataBits on success * @throws UnsupportedCommOperationException; * */ public static int staticGetDataBits( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetDataBits( " + port + " )"); return(nativeStaticGetDataBits( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return Parity on success * @throws UnsupportedCommOperationException; * */ public static int staticGetParity( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetParity( " + port + " )"); return( nativeStaticGetParity( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * @param port the name of the port thats been preopened * @return StopBits on success * @throws UnsupportedCommOperationException; * */ public static int staticGetStopBits( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticGetStopBits( " + port + " )"); return(nativeStaticGetStopBits( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Set the SerialPort parameters * 1.5 stop bits requires 5 databits * @param f filename * @param b baudrate * @param d databits * @param s stopbits * @param p parity * * @throws UnsupportedCommOperationException * @see gnu.io.UnsupportedCommOperationException */ public static void staticSetSerialPortParams( String f, int b, int d, int s, int p ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetSerialPortParams( " + f + " " + b + " " + d + " " + s + " " + p ); nativeStaticSetSerialPortParams( f, b, d, s, p ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set DSR. remove lockfile and do not close * This is so some software can appear to set the DSR before 'opening' * the port a second time later on. * * @return true on success * @throws UnsupportedCommOperationException; * */ public static boolean staticSetDSR( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetDSR( " + port + " " + flag ); return( nativeStaticSetDSR( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set DTR. remove lockfile and do not close * This is so some software can appear to set the DTR before 'opening' * the port a second time later on. * * @return true on success * @throws UnsupportedCommOperationException; * */ public static boolean staticSetDTR( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetDTR( " + port + " " + flag ); return( nativeStaticSetDTR( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * Open the port and set RTS. remove lockfile and do not close * This is so some software can appear to set the RTS before 'opening' * the port a second time later on. * * @return none * @throws UnsupportedCommOperationException; * */ public static boolean staticSetRTS( String port, boolean flag ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticSetRTS( " + port + " " + flag ); return( nativeStaticSetRTS( port, flag ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return RTS without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsRTS( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsRTS( " + port + " )" ); return( nativeStaticIsRTS( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return CD without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsCD( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsCD( " + port + " )" ); return( nativeStaticIsCD( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return CTS without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsCTS( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsCTS( " + port + " )" ); return( nativeStaticIsCTS( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return DSR without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsDSR( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsDSR( " + port + " )" ); return( nativeStaticIsDSR( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return DTR without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsDTR( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsDTR( " + port + " )" ); return( nativeStaticIsDTR( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * * find the fd and return RI without using a Java open() call * * @param String port * @return boolean true if asserted * @throws UnsupportedCommOperationException; * */ public static boolean staticIsRI( String port ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:staticIsRI( " + port + " )" ); return( nativeStaticIsRI( port ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return int the Parity Error Character * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public byte getParityErrorChar( ) throws UnsupportedCommOperationException { byte ret; if ( debug ) z.reportln( "getParityErrorChar()" ); ret = nativeGetParityErrorChar(); if ( debug ) z.reportln( "getParityErrorChar() returns " + ret ); return( ret ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param b Parity Error Character * @return boolean true on success * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public boolean setParityErrorChar( byte b ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "setParityErrorChar(" + b + ")" ); return( nativeSetParityErrorChar( b ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return int the End of Input Character * @throws UnsupportedCommOperationException; * * Anyone know how to do this in Unix? */ public byte getEndOfInputChar( ) throws UnsupportedCommOperationException { byte ret; if ( debug ) z.reportln( "getEndOfInputChar()" ); ret = nativeGetEndOfInputChar(); if ( debug ) z.reportln( "getEndOfInputChar() returns " + ret ); return( ret ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param b End Of Input Character * @return boolean true on success * @throws UnsupportedCommOperationException; */ public boolean setEndOfInputChar( byte b ) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "setEndOfInputChar(" + b + ")" ); return( nativeSetEndOfInputChar( b ) ); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @param type String representation of the UART type which mayb * be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" * or "16750". * @param test boolean flag to determin if the UART should be tested. * @return boolean true on success * @throws UnsupportedCommOperationException; */ public boolean setUARTType(String type, boolean test) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setUARTType()"); return nativeSetUartType(type, test); } /** * Extension to CommAPI * This is an extension to CommAPI. It may not be supported on * all operating systems. * @return type String representation of the UART type which mayb * be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2" * or "16750". * @throws UnsupportedCommOperationException; */ public String getUARTType() throws UnsupportedCommOperationException { return nativeGetUartType(); } /** * Extension to CommAPI * @param int BaudBase The clock frequency divided by 16. Default * BaudBase is 115200. * @return boolean true on success * @throws UnsupportedCommOperationException */ public boolean setBaudBase(int BaudBase) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setBaudBase()"); return nativeSetBaudBase(BaudBase); } /** * Extension to CommAPI * @return int BaudBase * @throws UnsupportedCommOperationException */ public int getBaudBase() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getBaudBase()"); return nativeGetBaudBase(); } /** * Extension to CommAPI * @param int Divisor; * @throws UnsupportedCommOperationException */ public boolean setDivisor(int Divisor) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setDivisor()"); return nativeSetDivisor(Divisor); } /** * Extension to CommAPI * @returns int Divisor; * @throws UnsupportedCommOperationException */ public int getDivisor() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getDivisor()"); return nativeGetDivisor(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean setLowLatency() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setLowLatency()"); return nativeSetLowLatency(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean getLowLatency() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getLowLatency()"); return nativeGetLowLatency(); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean setCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:setCallOutHangup()"); return nativeSetCallOutHangup(NoHup); } /** * Extension to CommAPI * returns boolean true on success * @throws UnsupportedCommOperationException */ public boolean getCallOutHangup() throws UnsupportedCommOperationException { if ( debug ) z.reportln( "RXTXPort:getCallOutHangup()"); return nativeGetCallOutHangup(); } /*------------------------ END OF CommAPI Extensions -----------------------*/ } ./rxtx-2.2pre2/CNI/CommPortOwnershipListener.java0000644000175000017500000000713210614033754021675 0ustar twernertwerner /*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ package gnu.io; import java.util.*; /** * @author Trent Jarvi * @version %I%, %G% * @since JDK1.0 */ public interface CommPortOwnershipListener extends EventListener { public static final int PORT_OWNED =1; public static final int PORT_UNOWNED =2; public static final int PORT_OWNERSHIP_REQUESTED =3; public abstract void ownershipChange( int type ); } ./rxtx-2.2pre2/debian/0000755000175000017500000000000011126534467014501 5ustar twernertwerner./rxtx-2.2pre2/debian/changelog0000644000175000017500000000216607443225671016361 0ustar twernertwernerMon Mar 11 15:18:22 MST 2002 Note: Debian packages are not maintained in the rxtx tree. For the latest package, please go to: ftp://ftp.debian.org/debian/pool/contrib/r/rxtx/ Maintainer: Mario Joussen ------------------- Old ChangeLog ---------------------------------- rxtx (1.3.8-1) unstable; urgency=low * New upstream release -- Christian Leutloff Thu, 18 Nov 1999 21:23:57 +0100 rxtx (1.3.3-4) unstable; urgency=low * control: depends on jdk1.1 (>= 1.1.7v2) -- Christian Leutloff Sun, 4 Jul 1999 12:48:05 +0200 rxtx (1.3.3-3) unstable; urgency=low * fixed package layout -- Christian Leutloff Sun, 4 Jul 1999 12:47:06 +0200 rxtx (1.3.3-2) unstable; urgency=low * improve generation of the needed links (could be improved further) and package layout -- Christian Leutloff Wed, 30 Jun 1999 10:25:58 +0200 rxtx (1.3.3-1) unstable; urgency=low * Initial Release. -- Christian Leutloff Mon, 28 Jun 1999 11:47:41 +0200 Local variables: mode: debian-changelog End: ./rxtx-2.2pre2/debian/README.debian0000644000175000017500000000135407446410214016576 0ustar twernertwernerMon Mar 11 15:18:22 MST 2002 Note: Debian packages are not maintained in the rxtx tree. For the latest package, please go to: ftp://ftp.debian.org/debian/pool/contrib/r/rxtx/ Maintainer: Mario Joussen ------------------------------ old README ------------------------------------ The Debian Package rxtx ----------------------- rxtx is a native interface to serial ports in java by Trent Jarvi . This is a native lib for jdk 1.1.*/1.2.*. Copies of the latest RXTX will be on http://www.frii.com/~jarvi/rxtx/download.html The primary source for information/support is http://www.frii.com/~jarvi/rxtx/. Christian Leutloff , Mon, 28 Jun 1999 11:47:41 +0200 ./rxtx-2.2pre2/debian/CVS/0000755000175000017500000000000011126534467015134 5ustar twernertwerner./rxtx-2.2pre2/debian/CVS/Template0000644000175000017500000000000011126534467016620 0ustar twernertwerner./rxtx-2.2pre2/debian/CVS/Tag0000644000175000017500000000001711126534467015570 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/debian/CVS/Root0000644000175000017500000000007511126534467016004 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/debian/CVS/Entries0000644000175000017500000000017611126534467016474 0ustar twernertwerner/README.debian/1.1.2.3/Thu Mar 21 16:55:40 2002//Tcommapi-0-0-1 /changelog/1.1.2.2/Mon Mar 11 22:12:09 2002//Tcommapi-0-0-1 D ./rxtx-2.2pre2/debian/CVS/Repository0000644000175000017500000000002211126534467017230 0ustar twernertwernerrxtx-devel/debian ./rxtx-2.2pre2/Makefile.in0000644000175000017500000006100511126554370015321 0ustar twernertwerner# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL TODO \ config.guess config.sub install-sh ltconfig ltmain.sh missing \ mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print VPATH = @srcdir@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLASSPATH = @CLASSPATH@ COMPILE = @COMPILE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTENSION = @EXTENSION@ F77 = @F77@ FFLAGS = @FFLAGS@ GLIBTOOL = @GLIBTOOL@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAR = @JAR@ JAVAC = @JAVAC@ JAVADOC = @JAVADOC@ JAVAH = @JAVAH@ JAVAH_FIX = @JAVAH_FIX@ JAVAINCLUDE = @JAVAINCLUDE@ JAVAINCLUDEDIR = @JAVAINCLUDEDIR@ JAVANATINC = @JAVANATINC@ JAVA_CLASS_PATH = @JAVA_CLASS_PATH@ JAVA_CLASS_VERSION = @JAVA_CLASS_VERSION@ JAVA_HOME = @JAVA_HOME@ JAVA_LIBRARY_PATH = @JAVA_LIBRARY_PATH@ JAVA_VENDOR = @JAVA_VENDOR@ JAVA_VERSION = @JAVA_VERSION@ JHOME = @JHOME@ JPATH = @JPATH@ LDFLAG = @LDFLAG@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_FIX = @LIBTOOL_FIX@ LIB_EXTENSION = @LIB_EXTENSION@ LINK = @LINK@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJECT_EXTENSION = @OBJECT_EXTENSION@ OBJEXT = @OBJEXT@ OS_ARCH = @OS_ARCH@ OS_NAME = @OS_NAME@ OS_VERSION = @OS_VERSION@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RXTX_PATH = @RXTX_PATH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TARGETLIB = @TARGETLIB@ THREAD_FLAG = @THREAD_FLAG@ TOP = @TOP@ VERSION = @VERSION@ WINDOWS_JAVA_INCLUDE = @WINDOWS_JAVA_INCLUDE@ XCODE_SELECT = @XCODE_SELECT@ abs_builddir = @abs_builddir@ abs_srcdir = $(TOP)/@srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ ########################################################################### # RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. # RXTX is a native interface to serial ports in java. # Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who # actually wrote it. See individual source files for more information. # # A copy of the LGPL v 2.1 may be found at # http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is # here for your convenience. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # An executable that contains no derivative of any portion of RXTX, but # is designed to work with RXTX by being dynamically linked with it, # is considered a "work that uses the Library" subject to the terms and # conditions of the GNU Lesser General Public License. # # The following has been added to the RXTX License to remove # any confusion about linking to RXTX. We want to allow in part what # section 5, paragraph 2 of the LGPL does not permit in the special # case of linking over a controlled interface. The intent is to add a # Java Specification Request or standards body defined interface in the # future as another exception but one is not currently available. # # http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface # # As a special exception, the copyright holders of RXTX give you # permission to link RXTX with independent modules that communicate with # RXTX solely through the Sun Microsytems CommAPI interface version 2, # regardless of the license terms of these independent modules, and to copy # and distribute the resulting combined work under terms of your choice, # provided that every copy of the combined work is accompanied by a complete # copy of the source code of RXTX (the version of RXTX used to produce the # combined work), being distributed under the terms of the GNU Lesser General # Public License plus this exception. An independent module is a # module which is not derived from or based on RXTX. # # Note that people who make modified versions of RXTX are not obligated # to grant this special exception for their modified versions; it is # their choice whether to do so. The GNU Lesser General Public License # gives permission to release a modified version without this exception; this # exception also makes it possible to release a modified version which # carries forward this exception. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # All trademarks belong to their respective owners. ############################################################################ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign INCLUDES = -I$(TOP) -I$(DEST) -I. $(JAVAINCLUDE) $(JAVANATINC) ####################### vars for rxtx-1.4->1.5 transition JARTARGET = RXTXcomm.jar CLASSDIR = gnu.io CLASSTOP = gnu CLASSDEST = gnu/io ####################### tools LIBTOOLC = $(GLIBTOOL) --mode=compile $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(VERBOSE_IOEXCEPTIONS) -c LIBTOOL_INST = $(GLIBTOOL) --mode=install $(INSTALL_PROGRAM) ####################### dirs SPATH = $(abs_srcdir)/src DEST = $(target_triplet) ####################### rules CLASSES = $(patsubst $(SPATH)/gnu/io/%.java,$(TOP)/$(CLASSDEST)/%.class,$(wildcard $(SPATH)/gnu/io/*.java)) javafiles = $(wildcard $(SPATH)/gnu/io/*.java) javahfiles = $(patsubst $(SPATH)/gnu/io/%.java,%,$(wildcard $(SPATH)/gnu/io/*.java)) ####################### CLEANFILES = $(TOP)/*.class $(TOP)/$(CLASSDEST)/*.class $(TOP)/$(JARTARGET) all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-am all-am: Makefile config.h installdirs: install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am am--refresh check check-am clean clean-generic \ clean-libtool dist dist-all dist-bzip2 dist-gzip dist-shar \ dist-tarZ dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am # for SCO builds everything else is currently using lib%.la below # I'm thinking about taking libtool out completely. See also Mac OS X builds. $(target_triplet)/lib%.so: $(SPATH)/%Imp.@EXTENSION@ $(CLASSES) $(COMPILE) $(SPATH)/$*Imp.@EXTENSION@ -o $(TOP)/$(DEST)/$*Imp.o $(LINK) -G -o lib$*.so $(TOP)/$(DEST)/$*Imp.o # compile src/SerialImp.c and similar files into libraries. # LIBTOOL_FIX handles problems encountered on some OS's. See configure.in # If a LIBTOOL_FIX is added be sure to provide a trailing ';' in configure.in $(target_triplet)/librxtx%.@LIB_EXTENSION@: $(SPATH)/%Imp.c $(CLASSES) $(SPATH)/%Imp.h ( \ $(LIBTOOL_FIX) \ cd $(DEST); \ $(LIBTOOLC) $(SPATH)/$*Imp.@EXTENSION@ -o \ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@; \ if [ "$*" = "Serial" ]; then \ $(LIBTOOLC) $(SPATH)/fuserImp.@EXTENSION@ -o \ $(TOP)/$(DEST)/fuserImp.@OBJECT_EXTENSION@; \ @LINK@ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@ \ $(TOP)/$(DEST)/fuserImp.@OBJECT_EXTENSION@; \ else \ @LINK@ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@; \ fi; \ ) # compile src/RXTXPort.java and similar files into classes # then create the .jar file $(CLASSES): $(javafiles) $(TOP)/Makefile $(JAVAH_FIX) $(JAVAC) $(javafiles) $(JAVAH) `(for i in $(javahfiles);do \ if grep > /dev/null native.*\( $(SPATH)/gnu/io/$$i.java; then \ echo $(CLASSDIR).$$i; \ fi; \ done)` $(JAR) cf $(JARTARGET) $(CLASSTOP)/* # install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its # proper location install: all @$(LIBTOOL_INST) \ `for i in $(TARGETLIB);do \ if [ -f $$i ];then \ echo $$i; \ fi; \ done` $(RXTX_PATH) $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/ clean-generic: rm -rf $(DEST) $(TOP)/$(CLASSTOP) -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) all: $(TARGETLIB) # create the javadoc files. docs: $(CLASSES) $(JAVADOC) $(javafiles) ################ WIN32 CrossCompiling from here down ####################### $(DEST)/rxtxSerial.dll: $(CLASSES) $(TOP)/Makefile gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/SerialImp.c -o $(DEST)/SerialImp.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/termios.c -o $(DEST)/termios.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/fixup.c -o $(DEST)/fixup.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/init.cc -o $(DEST)/init.o ld --base-file $(DEST)/Serial.base --dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base echo EXPORTS >$(DEST)/Serial.def;for i in `nm $(DEST)/rxtxSerial.dll | grep "T _Java"|cut -b 13-`;do echo -n $$i|sed s#@.*##;echo "="$$i;done >> $(DEST)/Serial.def dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxSerial.dll --def $(DEST)/Serial.def --base-file $(DEST)/Serial.base --output-exp $(DEST)/Serial.exp ld --base-file $(DEST)/Serial.base $(DEST)/Serial.exp -dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxSerial.dll --def $(DEST)/Serial.def --base-file $(DEST)/Serial.base --output-exp $(DEST)/Serial.exp ld $(DEST)/Serial.exp -dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base $(DEST)/rxtxParallel.dll: $(CLASSES) $(TOP)/Makefile gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/ParallelImp.c -o $(DEST)/ParallelImp.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/termios.c -o $(DEST)/termios.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/fixup.c -o $(DEST)/fixup.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/init.cc -o $(DEST)/init.o ld --base-file $(DEST)/Parallel.base --dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base echo EXPORTS >$(DEST)/Parallel.def;for i in `nm $(DEST)/rxtxParallel.dll | grep "T _Java"|cut -b 13-`;do echo -n $$i|sed s#@.*##;echo "="$$i;done >> $(DEST)/Parallel.def dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxParallel.dll --def $(DEST)/Parallel.def --base-file $(DEST)/Parallel.base --output-exp $(DEST)/Parallel.exp ld --base-file $(DEST)/Parallel.base $(DEST)/Parallel.exp -dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxParallel.dll --def $(DEST)/Parallel.def --base-file $(DEST)/Parallel.base --output-exp $(DEST)/Parallel.exp ld $(DEST)/Parallel.exp -dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ./rxtx-2.2pre2/config.sub0000755000175000017500000007730010466646770015260 0ustar twernertwerner#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ./rxtx-2.2pre2/config.guess0000755000175000017500000012626010466646770015615 0ustar twernertwerner#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[3456]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[3456]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ./rxtx-2.2pre2/INSTALL0000644000175000017500000007421511113576250014311 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2008 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ This is the INSTALL file for RXTX. Thu Nov 27 18:32:26 CET 2008 If, while following the instructions, you find this file unclear or incorrect please make a note and email the details to taj@www.linux.org.uk. A note about rxtx 2.1 and later: rxtx 2.1 replaces the entire CommAPI. Every effort is made to conform to CommAPI but out of respect for our friends at Sun the package name of 2.1 has been moved to gnu.io. A script is offered in contrib/ChangePackage.sh that will switch source tree's between javax.comm and gnu.io. See Sun's CommAPI license for more details on why this decision was made. If you would like to use javax.comm, use rxtx 1.4 with Sun's CommAPI. A note on Mac OS X: Go to the README.OSX file for install instructions. 1. INSTALL INSTRUCTIONS IN OTHER LANGUAGES A. Japanese 2. BUILDING COMMAPI SUPPORT A. Quick Install B. Uninstalling Sun's comm.jar C. installing javax.comm.properties. D. Add RXTXcomm.jar to your CLASSPATH. E. Build and Install the jar. F. Where did everything end up? G. Compiling for Win32 support 3. COMMON PROBLEMS A. java.lang.UnsatisfiedLinkError: nSetOwner while loading driver gnu.io.RXTXCommDriver B. Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path C. I Can Not Open the Port. D. java.lang.NoClassDefFoundError: gnu/io/CommPort E. The Compiler Cannot Find Java Include Files F. Configure says 'unterminated sed command' and stops G. Java Can Not Find libstdc++-libc6.0-1.so.2 H. BlackBox Can Not Handle all the ports! I. Illegal use of nonvirtal function call! J. My libc5 Linux system is generating SIGSEGV K. AM_PROG_LIBTOOL not found in library L. Problems with RMISecurityManager() M. Which Wires Should be Connected? N. Which Device Should be Used? O. It Did Not Work! P. Which jdk should be used? Q. How does rxtx detect ports? Can I override it? R. How can I use Lock Files with rxtx? S. How can I tell which version of rxtx is installed? T. What Type of Latency can I expect with RXTX U. I got rxtx working on a new OS but I can't read from the port V. My ThinkPad is Not Working! 4) APPLETS A. Using Applets ------------------------------------------------------------------------------- 1. INSTALL INSTRUCTIONS IN OTHER LANGUAGES A. Japanese Instructions are available in Japanese at The instructions are fairly old but should help. http://www.geocities.co.jp/Technopolis/4789/settei.htm#id1 Thanks to Masayuki "Tencho" Yamashita home page http://www.geocities.co.jp/Technopolis/4789/ A copy of these install instructions is provided in install-japanese.html We will gladly include instructions in any language provided. Tencho was the first to contribute instructions in another language. 2. BUILDING COMMAPI SUPPORT The following is concerned with building and installing commapi support with Sun's CommAPI package. A full stand alone version of rxtx is in the CVS archive for interested developers. A. Quick Install The following packages are used to build rxtx: autoconf-2.59 automake-1.9.5 libtool-1.5.18 gnu make-3.79.1 On some systems like FreeBSD this is called gmake jdk 1.3 or newer With the packages installed, proceed to build and install rxtx. $ tar -xzvf rxtx-2.1.tar.gz $ cd rxtx-2.1 $ ./configure (follow the instructions) $ make install (gmake if your system uses that convention) Read "R. How can I use Lock Files with rxtx?" One catch that has showed up... you cannot have spaces in the path. for instance: /home/jarvi/test build/rxtx/... will cause problems. ----^ If that does not work or you do not want a script messing with the system, read on.. B. Uninstalling Sun's comm.jar Sun's comm.jar is not required. It is a valid option on some platforms. IT WILL CREATE CHAOS if you have it installed while trying to build rxtx 2.1. http://java.sun.com/products/javacomm/index.html C. Installing javax.comm.properties. javax.comm.properties is not currently required by rxtx-2.1 D. Add RXTXcomm.jar to your CLASSPATH. jdk-1.1: make sure /usr/local/java/lib/RXTXcomm.jar is in your CLASSPATH. If you want to use apps that require RXTXcomm.jar. in bash: $ export CLASSPATH=/usr/local/java/lib/RXTXcomm.jar:. jdk-1.2 and newer: No changes are needed. E. Build and Install the jar. configure configure supports build directories. configure requires javac in its path or JAVA_HOME set to grab some java system properties. make to build RXTXcomm.jar and the libraries make install to place the jar and libraries in the correct location You may select the JDK you wish to build with using $JAVA_HOME For example: export JAVA_HOME=/usr/local/java Otherwise, configure grabs the JDK from your PATH. F. Where did everything end up? Lets assume the top java directory is /usr/local/java jdk-1.2 the files go in /usr/local/java/jre/lib/ext/RXTXcomm.jar /usr/local/java/jre/lib/$(ARCH)/librxtxSerial.so. /usr/local/java/jre/lib/$(ARCH)/librxtxParallel.so. /usr/local/java/jre/lib/$(ARCH)/lib/... jdk-1.1.* the files go in /usr/local/java/lib/RXTXcomm.jar /usr/lib/librxtxSerial.so. /usr/lib/librxtxParallel.so. /usr/lib/... The librxtxSerial.so librxtxParallel.so are placed in /usr/lib so people don't have to change with their LD_LIBRARY_PATH. G. Compiling for Win32 support Get the Sun CommAPI if you want a plug-in solution. The code is provided for people that may have demanding needs and coding ability. There is only serial port code at this time. Three ways of compiling win32 libraries are offered: mingw32 tools in DOS lcc tools in DOS cross-compiling from Linux ----------------- mingw32 tools in DOS ----------------------- Install a jdk http://java.sun.com/j2se Install mingw32 http://www.mingw.org Make sure the ming32\bin and jdk\bin directories are in your path. Run a DOS command prompt (not MSYS!) in the rxtx top directory to the following: mkdir build-mingw copy Makefile.mingw32 build-mingw\Makefile cd build-mingw edit the Makefile and make sure the directories are correct. execute the following: mingw32-make SHELL=cmd mingw32-make SHELL=cmd install -------------- MS Visual Studio in Windows ------------------- Install a jdk http://java.sun.com/j2se Install Visual Studio (Express edition will do) Open a Visual Studio command prompt (with env.vars set) In the rxtx top directory to the following: mkdir build-msvc copy Makefile.msvc build-msvc\Makefile cd build-msvc edit the Makefile and make sure the directories are correct. execute the following: nmake nmake install ----------------- lcc tools in DOS --------------------------- Install a jdk http://java.sun.com/j2se Install lcc http://www.cs.virginia.edu/~lcc-win32/ A make file (Makefile.lcc) for compiling rxtx with lcc contributed by Valentin Pavlov You will need a config.h file in the src directory. Other builds usually generate them automatically. The following should work. #define HAVE_FCNTL_H #define HAVE_SIGNAL_H #undef HAVE_SYS_FCNTL_H #undef HAVE_SYS_FILE_H #undef HAVE_SYS_SIGNAL_H #undef HAVE_TERMIOS_H #undef HAVE_SYS_TIME_H if you know how to create the above in a dos Makefile send in the changes. the following commands should then work fine on the command line. cd src make -f ..\Makefile.lcc ----------------- cross-compiling from Linux ----------------- Grab ming32: Wayne Roberts contributed the version used by the maintainer. (Wayne is largely responsible for bringing rxtx back to win32.) http://www.linuxgrrls.org/~taj/crossmingw32-2.95-1.i386.rpm A more current version can be obtained: http://www.devolution.com/~slouken/SDL/Xmingw32/crossgcc/index.html prebuilt Binaries: http://www.devolution.com/~slouken/SDL/Xmingw32/mingw32-linux-x86-glibc-2.1.tar.gz I built the dll with jdk-1.2.2 for linux using jdk-1.2.2 include files from the win32 JDK. Make sure that ming32 bin dir is the first in your path (at least before /usr/bin/gcc) $ export PATH=" \ /usr/local/cross-tools/i386-mingw32/bin/: \ $PATH:/usr/X11R6/bin:/usr/local/java/bin: \ /usr/local/java/jre/bin/:" Place Sun jdk 1.2.2 win32 include files in a known location. $ mkdir /home/jarvi/win32java $ cp -r /mnt/win98//java/include /home/jarvi/win32java If you are developing win32 support you may want to export the location to make the config script non interactive $ export WIN32INCLUDE=/home/jarvi/tools/win32-include run configure to generate a Makefile $ cd /home/jarvi/rxtx-* $ mkdir build $ cd build $ ../configure --target=i386-mingw32 \ --host=i386-redhat-linux build the class files and dll. $ make the files will be located in rxtx-*/build/... If you're looking at rxtx as an example of cross-compiling you may be interested in looking at the examples provided at: ftp.xraylith.wisc.edu /pub/khan/gnu-win32/mingw32/misc/java-jni-examples.zip 3. COMMON PROBLEMS A. I get java.lang.UnsatisfiedLinkError: nSetOwner while loading driver gnu.io.RXTXCommDriver when using rxtx. SetOwner appears to be some win32 call. Do not use Sun's win32 CommAPI files. Get the Solaris version. "javacomm20-x86.tar.Z" and rxtx-1.4 if you want Sun's solution. See Also: 2-B. Installing Sun's comm.jar (IE its not needed at all) B. Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path librxtxSerial.so is located in the wrong directory. Here is an example $ mv /usr/local/java/jre/lib/i386/librxtxSerial* /usr/local/lib $ java BlackBox Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path at java.lang.ClassLoader.loadLibrary(Compiled Code) at java.lang.Runtime.loadLibrary0(Compiled Code) at java.lang.System.loadLibrary(Compiled Code) at gnu.io.NativePort.(NativePort.java:32) at gnu.io.RXTXPort.(Compiled Code) at gnu.io.RXTXCommDriver.getCommPort(Compiled Code) at gnu.io.CommPortIdentifier.open(Compiled Code) at SerialPortDisplay.openBBPort(Compiled Code) at SerialPortDisplay.(Compiled Code) at BlackBox.addPort(Compiled Code) at BlackBox.main(Compiled Code) ... lets fix it. Solution 1: move the file to a place that works $ mv /usr/local/lib/librxtxSerial.* /usr/local/java/jre/lib/i386/ Solution 2: add the location of librxtxSerial to LD_LIBRARY_PATH $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ Solution 3: pass the location in on the command line $ java -Djava.library.path=/usr/local/lib/ ... C. I Can Not Open the Port. If you're not able to open the port (read the errors carefully) then you may not have permission to use the device. Redhat Linux ships with the following permissions: crw-r--r-- /dev/ttyS? Users need to be able to read and write with serial communication... chmod 666 /dev/ttyS? should fix the problem. Be sure to check the file CommAPI for common mistakes. Make sure that the user can create lock files see R. D. java.lang.NoClassDefFoundError: gnu/io/CommPort RXTXcomm.jar is probably not in your classpath or not located in the proper directory. for example, lets not include RXTXcomm.jar export CLASSPATH=../java/lib/classes.zip $ java BlackBoxException in thread "main" java.lang.NoClassDefFoundError: gnu/io/CommPort E. The Compiler Cannot Find Java Include Files Check to top of the Makefile to make sure we agree on the location of the include files that came with the jdk. Specifically: JAVAINCLUDE = -I /usr/local/java/include/ JAVANATINC = -I /usr/local/java/include/genunix also check the classpath CLASSPATH = ... F. Configure says 'unterminated sed command' and stops Unterminated sed command errors usually result from `find` producing unexpected results. If you are unsure remove all comm.jar and configure to place in in the correct place. G. Java Can Not Find libstdc++-libc6.0-1.so.2 jdk-1.2 on redhat systems may note that Java complains about not being able to find libstdc++-libc6.0-1.so.2. A symbolic link can be used to get around this feature. ln -s /usr/lib/libstdc++ /usr/lib/libstdc++-libc6.0-1.so.2 ls -l /usr/lib/libstdc++-libc6.0-1.so.2 /usr/lib/libstdc++-libc6.0-1.so.2 -> libstdc++.so.2.8.0 H. BlackBox Can Not Handle all the ports! BlackBox has a hard coded limit in BlackBox.java that prevents it from running if you don't specify a port. We are considering alternative ways of handling the large number of port names in Unix. The line in question is: portDisp = new SerialPortDisplay[50]; just change 50 to say 256. I. Illegal use of nonvirtal function call! Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXCommDriver.getCommPort(Compiled Code) at gnu.io.CommPortIdentifier.open(Compiled Code) at SerialPortDisplay.openBBPort(Compiled Code) at SerialPortDisplay.(Compiled Code) at BlackBox.addPort(Compiled Code) at BlackBox.main(Compiled Code) "1.1 compilers sometimes generate code that won't verify under 1.2. If you don't have the sources for the offending class to recompile with a 1.2 javac, the only solution I know of is to launch the VM with the -noverify option. Louis" In other words start with a fresh build directory, rebuild, and reinstall to avoid the problem. J. My libc5 Linux system is generating SIGSEGV Older Linux Systems (libc5) should upgrade to a glibc system with libpthread-0.7 or newer. We have run into many problems with older libraries. SIGSEGV was the most common symptom. Reported by Peter Bennett K. AM_PROG_LIBTOOL not found in library cd. && aclocal aclocal:configure.in: 23: macro 'AM_PROG_LIBTOOL' not found in library make:***[aclocal.m4]Error 1 If you're positive things are setup right you may try the autogen.sh script to try regenerating the scripts with your tools. L. Problems with RMISecurityManager() Please see the file RMISecurityManager.html M. Which Wires Should be Connected? With the DB25 use 2 (TX), 3 (RX) and 7 (GD) to connect to the device. With the DB9 use 2 (RX), 3 (TX) and 5 (GD) to connect to the device. You will need to hook up more than that for hardware flow control. N. Which Device Should be Used? Linux serial ports should use /dev/ttyS? specialx, cyclades and isdn4 linux have been reported to work. as many as 64 ports have worked at one time. FreeBSD uses cuaa? netbsd uses tty0? Irix uses ttyd? ttym? ttyf? HP-UX uses tty0p? tty1p? BeOS uses /dev/ports/serial? Win32 uses COM? O. It Did Not Work! There are sure to be bugs. The goal is to make the install as painless as possible. Send back comments if something could be easier. If you run into a problem building the rxtx package please include the output generated by the following script. ---------------clip----------------- #!/bin/sh which java java -version uname -a autoconf --version automake --version libtool --version make --version ---------------clip----------------- Here's what's on my system for comparison. Older make is known to cause problems. java 1.4 autoconf-2.53 automake-1.6.3 libtool-1.4.2 gnu make-3.79.1 mail any bugs to taj@www.linux.org.uk. P. Which jdk should be used? Ideally any jdk would be fine. Here is a list of jdk's tried on RedHat 6.0/kernel 2.2.17pre13 with various versions of glibc. Sun IBM Blackdown 2.1.2_006 1.3.0 1.1.8v1 green native green native green native ------------------------------------------ glibc-2.1.1-6 | OK | *1 | *2 | *2 | OK | *3 | ------------------------------------------- glibc-2.1.2-11 | OK | *1 | OK | OK | OK | OK | ------------------------------------------- glibc-2.1.2-17 | OK | *1 | OK | OK | OK | OK | ------------------------------------------- glibc-2.1.3-15 | OK | *1 | OK | OK | OK | OK | ------------------------------------------- 1) BlackBox (a demo application shipped with CommAPI locks after multiple open()/close() 2) java wont start "Unable to load /usr/local/java/jre/bin/libhpi.so: symbol sem_wait, version GLIBC_2.1 not defined in file libpthread.so.0 with link time reference Could not create the Java virtual machine." 3) java wont start "error in loading shared libraries: /usr/local/java/bin/../lib/i686/native_threads/libjava.so: symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with link time reference" Conclusion? Avoid Sun's native threads unless you can figure out whats going wrong. Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. R. How can I use Lock Files with rxtx? Redhat users. Note that Redhat changed group uucp to group lock with Redhat 7.2. Mandrake users. Note that /var/lock needs to be group uucp for this to work. Mac OS X users: Starting at version 2.1.8 rxtx no longer uses lockfiles on OSX. RXTX uses lock files by default. configure --disable-lockfiles to generate rxtx libraries without lock files. Its strongly recommended that you do use lock files to prevent rxtx from stomping on other programs using serial ports. Lock files are used to prevent more than one program accessing a port at a time. Lock files require a bit of sysadmin to work properly.. Rxtx has support for lock files on Linux only. It may work on other platforms but read the source before blindly trying it. Before you use lock files you need to do one of two things: 1. Be the root or uucp user on your machine whenever you use rxtx 2. add the specific user that needs to use rxtx to the group uucp. (preferred) To add a user to the uucp group edit /etc/group as root and change the following: uucp::14:uucp to something like: uucp::14:uucp,jarvi In this case jarvi is the login name for the user that needs to use lock files. Do not change the number (14). Whatever is in your group file is correct. User jarvi in this case can now use rxtx with lock files. The lock file code does not support kermit style lock files or lock files in /var/spool. Its sure to fail if you're using subdirectories in /dev or do not have /dev. Still cant get things to run under a root account? Vadim Tkachenko writes: "Maybe you remember - couple of months back I've run into inability to run the JDK 1.3+ from under root account. Today, absolutely suddenly, something clicked in my head and the cause was found: libsafe. To make JDK work, it is enough to disable libsafe (unset LD_PRELOAD)." As another option it is possible to use a Lock File Server. In this case, a server runs in group uucp or lock and rxtx then connects to localhost to lock and unlock the port. The server and install instructions can be found in src/lfd. RXTX will need to be configured to use the server: configure --enable-lockfile_server Any user can then lock the ports if they are not already locked. S. How can I tell which version of rxtx is installed? Version information is not documented in Sun's CommAPI so this is probably unique to RXTX. As of rxtx-1.5-4 and rxtx-1.4-6 a class has been added to allow developers to check which version of rxtx is installed. The class is RXTXVersion. The static method: System.out.println(RXTXVersion.getVersion()); will print the rxtx version as a String in the following format: "RXTX-MAJOR.MINOR-PATCH". an example would be: "RXTX-1.5-4" A change in the MAJOR version would suggest you're in trouble. Odd MINOR version are reserved for development. Even MINOR versions are reserved for 'stable' releases. PATCH is used to differentiate incremental releases of the MINOR releases. CommPortIdentifier is expected to support getVersion() in the RXTX-1.5 series. T. What Type of Latency can I expect with RXTX frantz put RXTX under a scope and found the following: RXTX currently has a latency of 150-200ms on a PII at 450mhz. The latency can be reduced to 70-80ms by reducing the usleep() value in SerialImp.c:eventLoop() to usleep(5000)). Much lower latencies should be possible but the maintainer does not have equipment to test changes. He is going to look at this further. He needs 20 ms or less latency. U. I got rxtx working on a new OS but I can't read from the port > Now my java program starts up nicely without complaining. However, it does > never read any data from the serial port. It looks like it can write data, > because if I start a terminal program after I tried to run my program, I get > all the return stuff from the modem that my program wrote. > > I hacked around abit and found out that it hangs in the select() call which > simply never returns. > On Sun, 28 Jan 2001, Baldur Norddahl wrote: > HPUX 11: > > As I wrote to the mailinglist I had some wierd problems where it apparently > could write data to the modem, but not read anything back. My terminal > programs had no problem using the port. A few days after I reported the > problem to the mailinglist, I had given up for now, but then I noticed that > it suddenly worked! So it remains a mystery what was wrong as I did not > change anything at all, neither in my program nor on the host. > > Baldur > I suspect two java applications had the port open. Its easy to do while developing. Perhaps z instead of c was entered. This is the reason for adding lockfile support to rxtx. If another application has opened the port, a second application will appear to not be able to read or get only part of the data. ..because the first one is reading. Only one of the select()s are waken. Its possible to put lockfile support in for HPUX if it is known where other applications place their lockfiles. The easiest way to find out where is to fire up minicom, kermit, ... and see where its lockfile is placed. Here are the known suspects: const char *lockdirs[]={ "/etc/locks", "/usr/spool/kermit", "/usr/spool/locks", "/usr/spool/uucp", "/usr/spool/uucp/", "/usr/spool/uucp/LCK", "/var/lock", "/var/lock/modem", "/var/spool/lock", "/var/spool/locks", "/var/spool/uucp",NULL }; freebsd uses /var/spool/uucp/, linux uses /var/lock those are the only two I've done so far. Adding the support is trivial once a directory is decided upon. Lockfiles are rather simple. when an application opens a port it first checks if there is a file with the ports name. If there is it grabs the PID from the file. If that PID is still active the application does not open the port. If the PID is not active or there is no lockfile, the application creates one with its own PID in it. The confusion starts when you have to decide where (see above) to put the lockfile, what the name format is for the file and how to store the PID. rxtx follows The File System Hierarchy Standard http://www.pathname.com/fhs/ on linux. I'm not positive what is normal on other OS's. more reading: The File System Hierarchy Standard http://www.pathname.com/fhs/ FSSTND ftp://tsx-11.mit.edu/pub/linux/docs/linux-standards/fsstnd/ Proposed Changes to the File System Hierarchy Standard ftp://scicom.alphacdc.com/pub/linux/devlock-0.X.tgz "UNIX Network Programming", W. Richard Stevens, Prentice-Hall, 1990, pages 96-101. more reading: V. My ThinkPad is Not Working! Scott Burleigh writes: For your files, and in case anybody asks in the future, IBM Thinkpads ship with the external serial port *disabled* by default. The Thinkpad configuration utility supplied with the machine (under Windows) says it's enabled, and the device manager in the System dialog of the Control panel says it's enabled, but they lie. In order to enable the port you have to use the old DOS ps2.exe bios configuration utility which, under Windows 2000, is in c:\Program Files\Thinkpad\utilities: ps2 sera enable Until you do, "setserial -ga /dev/ttyS0" will always tell you the UART is unknown. 4. APPLETS More info is needed on signing applets. This is an exchange from the rxtx mail- list. A. Using Applets prashantg10@yahoo.com asked: Hi All ! I am trying to use applet on thin terminal which has Linux base Kernel.For testing I am using Linux machine.I have install all the required components. e.g. JDK, RXTX. Everthing is fine. BlackBox runs ,even my application runs. When It comes to applet, everything is halts. It does not even show the listing of ports. Is it because applet can't run under root account or what might be the reasons. Can anybody tell me solution. Son To replied: Java applets run withing the sandbox of the security manager. Applets must be signed to access the com port, but for development purposes you can put user_pref("signed.applets.codebase_principal_support", true); in your prefs.js located in ~/.mozilla/default/XYYrandomDirName I didn't use Java applet for my application. I used XUL and CSS for the GUI development and used mozilla Javascript SOAP library to communicate with apache Axis webservice backend which uses RXTX to access the com port. -- Trent Jarvi taj@www.linux.org.uk ------------------------------------------------------------------------------- You made it this far.. what is one more line. Sun, Solaris and Java are registered trademarks of Sun Microsystems, Inc. reminder: redhat 7.1 needs: export LD_ASSUME_KERNEL=2.2.5 ./rxtx-2.2pre2/BeOS0000644000175000017500000000234007167435317013775 0ustar twernertwernerBeOS serial support is in the early stages. configure and the resulting Makefile should work properly. Initial readbyte/writebyte type support is included. Test.java in contrib/ works on BeOS. rxtx.proj in contrib/ is included for people using the IDE that BeOS uses. Initially we tried to use the standard POSIX functions to get BeOS working. It became obvious the BeOS kernel API (See Serial.h on BeOS) would have to be used to get Events working. With simple build and read/write functionality we are releasing the work in case anyone wants to help contribute to the project. src/SerialImp.cpp is the BeOS support. List of functions ported: (Thanks to Brian Hindman) ========================= RXTXPort.open RXTXPort.nativeClose RXTXPort.nativeSetSerialPortParams translate_speed translate_data_bits translate_stop_bits translate_parity RXTXPort.writeByte RXTXPort.writeArray (untested) RXTXPort.drain RXTXPort.isDSR RXTXPort.isCD RXTXPort.isCTS RXTXPort.isRI RXTXPort.isRTS (not available in BeOS) RXTXPort.setRTS RXTXPort.setDSR (not available in BeOS) RXTXPort.isDTR (not available in BeOS) RXTXPort.setDTR RXTXPort.readByte (untested) RXTXPort.nativeavailable RXTXPort.setflowcontrol get_java_var throw_java_exception report ./rxtx-2.2pre2/Makefile.macosx0000644000175000017500000004242010614033753016203 0ustar twernertwerner # We are having problems with GNU tools generating good Makefiles. Here # Is a Makefile that works for Joseph. # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. ########################################################################### # RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. # RXTX is a native interface to serial ports in java. # Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who # actually wrote it. See individual source files for more information. # # A copy of the LGPL v 2.1 may be found at # http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is # here for your convenience. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # An executable that contains no derivative of any portion of RXTX, but # is designed to work with RXTX by being dynamically linked with it, # is considered a "work that uses the Library" subject to the terms and # conditions of the GNU Lesser General Public License. # # The following has been added to the RXTX License to remove # any confusion about linking to RXTX. We want to allow in part what # section 5, paragraph 2 of the LGPL does not permit in the special # case of linking over a controlled interface. The intent is to add a # Java Specification Request or standards body defined interface in the # future as another exception but one is not currently available. # # http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface # # As a special exception, the copyright holders of RXTX give you # permission to link RXTX with independent modules that communicate with # RXTX solely through the Sun Microsytems CommAPI interface version 2, # regardless of the license terms of these independent modules, and to copy # and distribute the resulting combined work under terms of your choice, # provided that every copy of the combined work is accompanied by a complete # copy of the source code of RXTX (the version of RXTX used to produce the # combined work), being distributed under the terms of the GNU Lesser General # Public License plus this exception. An independent module is a # module which is not derived from or based on RXTX. # # Note that people who make modified versions of RXTX are not obligated # to grant this special exception for their modified versions; it is # their choice whether to do so. The GNU Lesser General Public License # gives permission to release a modified version without this exception; this # exception also makes it possible to release a modified version which # carries forward this exception. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # All trademarks belong to their respective owners. ############################################################################ SHELL = /bin/sh top_srcdir = . prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/Serial pkglibdir = $(libdir)/Serial pkgincludedir = $(includedir)/Serial top_builddir = . ACLOCAL = aclocal AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = powerpc-apple-darwin1.3.7 build_triplet = powerpc-apple-darwin1.3.7 host_alias = powerpc-apple-darwin1.3.7 host_triplet = powerpc-apple-darwin1.3.7 target_alias = powerpc-apple-darwin1.3.7 target_triplet = powerpc-apple-darwin1.3.7 AS = @AS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = cc CFLAGS = -g -O2 -D_BSD_SOURCE -bundle CLASSPATH = -classpath .:$(TOP):$(TOP)/src:$(JPATH)/lib/ext/RXTXcomm.jar:.: DATADIRNAME = @DATADIRNAME@ DLLTOOL = @DLLTOOL@ EXTENSION = c GENCAT = @GENCAT@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ INSTOBJEXT = @INSTOBJEXT@ INTLDEPS = @INTLDEPS@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ JAR = $(JPATH)/bin/jar JAVAC = $(JPATH)/bin/javac $(CLASSPATH) -d $(TOP)/ -O JAVADOC = $(JPATH)/bin/javadoc JAVAH = $(JPATH)/bin/javah $(CLASSPATH) -d $(DEST) -jni JAVAH_FIX = JAVAINCLUDE = -I $(JAVAINCLUDEDIR) JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/../../../Headers JAVANATINC = -I $(JAVAINCLUDEDIR)/./ JAVA_CLASS_PATH = JAVA_CLASS_VERSION = JAVA_HOME = JAVA_LIBRARY_PATH = JAVA_VENDOR = Apple Computer, Inc. JAVA_VERSION = 1.3.1 JHOME = /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext JPATH = /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home LDFLAG = LDFLAGS = -module -framework JavaVM -framework IOKit -framework CoreFoundation LIBTOOL = $(SHELL) $(top_builddir)/libtool LIBTOOL_FIX = sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool; LN_S = ln -s MAKEINFO = /Volumes/Medon/Personal/joseph/Developer/RXTX/rxtx-1.5/merged/missing makeinfo MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJDUMP = @OBJDUMP@ OS_ARCH = ppc OS_NAME = Mac OS X OS_VERSION = 1.3.7 PACKAGE = Serial POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = ranlib RXTX_PATH = /usr/lib/java TARGETLIB = $(target_alias)/librxtxSerial.la THREAD_FLAG = TOP = /Volumes/Medon/Personal/joseph/Developer/RXTX/rxtx-1.5/merged USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = 1.2.10 WINDOWS_JAVA_INCLUDE = l = @l@ srcdir = . AUTOMAKE_OPTIONS = foreign INCLUDES = -I $(TOP) -I $(DEST) -I . $(JAVAINCLUDE) $(JAVANATINC) ####################### vars for rxtx-1.4->1.5 transition JARTARGET = RXTXcomm.jar CLASSDIR = gnu.io CLASSTOP = gnu CLASSDEST = gnu/io ####################### tools LIBTOOLC = $(TOP)/libtool --mode=compile $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(VERBOSE_IOEXCEPTIONS) -c LIBTOOL_INST = $(TOP)/libtool --mode=install $(INSTALL_PROGRAM) LINK = $(TOP)/libtool --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -version-info 1:0:1 ####################### dirs SPATH = $(srcdir)/src DEST = $(target_alias) ####################### rules CLASSES = $(patsubst $(SPATH)/%.java,$(TOP)/$(CLASSDEST)/%.class,$(wildcard $(SPATH)/*.java)) javafiles = $(wildcard $(SPATH)/*.java) javahfiles = $(patsubst $(SPATH)/%.java,%,$(wildcard $(SPATH)/*.java)) ####################### CLEANFILES = $(TOP)/*.class $(TOP)/$(CLASSDEST)/*.class $(TOP)/$(JARTARGET) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ Makefile.am Makefile.in TODO acconfig.h acinclude.m4 aclocal.m4 \ config.guess config.h.in config.sub configure configure.in install-sh \ ltconfig ltmain.sh missing mkinstalldirs DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gnutar GZIP_ENV = --best all: all-redirect .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status $(ACLOCAL_M4): configure.in acinclude.m4 cd $(srcdir) && $(ACLOCAL) config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) config.h: stamp-h @if test ! -f $@; then \ rm -f stamp-h; \ $(MAKE) stamp-h; \ else :; fi stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status @echo timestamp > stamp-h 2> /dev/null $(srcdir)/config.h.in: $(srcdir)/stamp-h.in @if test ! -f $@; then \ rm -f $(srcdir)/stamp-h.in; \ $(MAKE) $(srcdir)/stamp-h.in; \ else :; fi $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h cd $(top_srcdir) && $(AUTOHEADER) @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null mostlyclean-hdr: clean-hdr: distclean-hdr: -rm -f config.h maintainer-clean-hdr: tags: TAGS TAGS: distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist -rm -rf $(distdir) GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz mkdir $(distdir)/=build mkdir $(distdir)/=inst dc_install_base=`cd $(distdir)/=inst && pwd`; \ cd $(distdir)/=build \ && ../configure --srcdir=.. --prefix=$$dc_install_base \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) dist -rm -rf $(distdir) @banner="$(distdir).tar.gz is ready for distribution"; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes" dist: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) dist-all: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) distdir: $(DISTFILES) -rm -rf $(distdir) mkdir $(distdir) -chmod 777 $(distdir) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am all-recursive-am: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive install-exec-am: install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall: uninstall-am all-am: Makefile config.h all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: mostlyclean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-hdr mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-hdr clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-hdr distclean-generic clean-am -rm -f libtool distclean: distclean-am -rm -f config.status maintainer-clean-am: maintainer-clean-hdr maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am -rm -f config.status .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ tags distdir info-am info dvi-am dvi check check-am installcheck-am \ installcheck all-recursive-am install-exec-am install-exec \ install-data-am install-data install-am install uninstall-am uninstall \ all-redirect all-am all installdirs mostlyclean-generic \ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean # compile src/SerialImp.c and similar files into libraries. # LIBTOOL_FIX handles problems encountered on some OS's. See configure.in # If a LIBTOOL_FIX is added be sure to provide a trailing ';' in configure.in # The stuff below tries to do this without running into the link problems # $(LINK) -o lib$*.la -rpath $(RXTX_PATH) \ # $(TOP)/$(DEST)/$*Imp.lo $(TOP)/$(DEST)/fuserImp.lo; \ $(target_alias)/lib%.la: $(SPATH)/%Imp.c $(CLASSES) $(SPATH)/%Imp.h @( \ $(LIBTOOL_FIX) \ cd $(DEST); \ touch it1; \ $(LIBTOOLC) ../$(SPATH)/$*Imp.c -o $(TOP)/$(DEST)/$*Imp.lo; \ touch it2; \ if [ "$*" = "rxtxSerial" ]; then \ $(LIBTOOLC) ../$(SPATH)/fuserImp.c \ -o $(TOP)/$(DEST)/fuserImp.lo; \ mkdir -p $(TOP)/$(DEST)/.libs; \ cc -bundle -undefined warning \ -o .libs/librxtxSerial.jnilib \ $(TOP)/$(DEST)/SerialImp.lo \ $(TOP)/$(DEST)/fuserImp.lo \ -framework JavaVM -framework IOKit; \ echo "# librxtxSerial.la - a libtool library file" > $(TOP)/$(DEST)/librxtxSerial.la; \ echo "# librxtxSerial.la - a libtool library file" > $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "# Generated by ltmain.sh - GNU libtool 1.3.5 (1.3 2000/11/22 00:47:10)" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "# Generated by ltmain.sh - GNU libtool 1.3.5 (1.3 2000/11/22 00:47:10)" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "dlname='librxtxSerial.jnilib'" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "dlname='librxtxSerial.jnilib'" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "library_names='librxtxSerial.jnilib'" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "library_names='librxtxSerial.jnilib'" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "old_library=''" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "old_library=''" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "dependency_libs=''" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "dependency_libs=''" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "current=1" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "current=1" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "age=1" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "age=1" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "revision=0" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "revision=0" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "installed=yes" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "installed=yes" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ echo "libdir='/usr/lib/java'" >> $(TOP)/$(DEST)/librxtxSerial.la; \ echo "libdir='/usr/lib/java'" >> $(TOP)/$(DEST)/.libs/librxtxSerial.lai; \ (cd .libs && rm -f librxtxSerial.la && ln -s ../librxtxSerial.la librxtxSerial.la); \ else \ $(LINK) -o lib$*.la -rpath $(RXTX_PATH) \ $(TOP)/$(DEST)/$*Imp.lo $(FUSER); \ fi; \ ) # compile src/RXTXPort.java and similar files into classes # then create the .jar file $(CLASSES): $(javafiles) $(TOP)/Makefile $(JAVAH_FIX) $(JAVAC) $(javafiles) @$(JAVAH) `(for i in $(javahfiles);do \ if grep -q native.*\( $(SPATH)/$$i.java; then \ echo $(CLASSDIR).$$i; \ fi; \ done)` $(JAR) cf $(JARTARGET) $(CLASSTOP)/* # install libSerial.so into the proper directory and copy $(JARTARGET) to its # proper location install: all @$(LIBTOOL_INST) \ `for i in $(TARGETLIB);do \ if [ -f $$i ];then \ echo $$i; \ fi; \ done` $(RXTX_PATH) $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/ clean-generic: rm -rf $(DEST) $(TOP)/$(CLASSTOP) -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) all: $(TARGETLIB) # create the javadoc files. docs: $(CLASSES) $(JAVADOC) $(javafiles) ./rxtx-2.2pre2/ChangeLog0000644000175000017500000007052411142441142015022 0ustar twernertwernerThis is ChangeLog Wed Feb 4 17:32:37 EST 2009 rxtx-2.1 and rxtx-2.0 changes are kept in the same file. skip to the version you downloaded. 2.2 ??? Solaris static libgcc link configure fix. 64 bit JNI Fixes Dan Sandberg http://mailman.qbang.org/pipermail/rxtx/2007-June/3676251.html Maintain DTR=false during setSerialPortParams Beat Arnet http://mailman.qbang.org/pipermail/rxtx/2009-January/3682508.html http://bugzilla.qbang.org/show_bug.cgi?id=104 Avoid debug sprintf overflows on win32. http://mailman.qbang.org/pipermail/rxtx/2009-January/3682496.html Luis Pires disable dcb.fDtrControl to avoid unexpected behavior. Beat Arnet http://bugzilla.qbang.org/show_bug.cgi?id=104 threshold fix Alexandre Rusev http://bugzilla.qbang.org/show_bug.cgi?id=85 RXTX close deadlocks in REXTXPort.finalize Joachim Buechse http://bugzilla.qbang.org/show_bug.cgi?id=53 Add ACM serial devices to all known ports. Duncan Pierce http://bugzilla.qbang.org/show_bug.cgi?id=51 Concurrency fixes for SMP/multicore systems U. George http://bugzilla.qbang.org/show_bug.cgi?id=100 Fixes for MAC systems with no drivers installed. 1.5 stop bit fix Enable universal library builds for Mac OS X Andre-John Mas ajmas@sympatico.ca http://mailman.qbang.org/pipermail/rxtx/2007-December/1793319.html Do not remove and ignore interrupts. Joachim Buechse http://bugzilla.qbang.org/show_bug.cgi?id=45 find ports which were added after program startup on Mac OS X. Martin Oberhuber http://bugzilla.qbang.org/show_bug.cgi?id=48 Clean up CommPort Ownership code, avoid possible deadlocks, fix lost commport ownership events. Martin Oberhuber http://bugzilla.qbang.org/show_bug.cgi?id=83 rxtx does not compile against JDK-1.6 Nebojソa http://bugzilla.qbang.org/show_bug.cgi?id=84 configure script failed at line UTS_RELEASE megov http://bugzilla.qbang.org/show_bug.cgi?id=80 code cleanup patch (extra ';' creates bug for if statements + new String() calls removed) Xavier Le Vourch http://bugzilla.qbang.org/show_bug.cgi?id=77 Wont compile on linux ppc with glibc 2.5 - no sys/io.h Brian Johnson http://bugzilla.qbang.org/show_bug.cgi?id=72 rxtx overwrites System properties Andrew Gillett Nektarios K. Papadopoulos Nebojソa http://bugzilla.qbang.org/show_bug.cgi?id=64 Solaris ACM port support Dave Cleal http://bugzilla.qbang.org/show_bug.cgi?id=59 Setting of non-standard baud rate fails. Andrew Prunicki http://bugzilla.qbang.org/show_bug.cgi?id=58 RXTX uses lockfiles on MacOS X (instead of ioctl TIOCEXCL) Joachim Buechse http://bugzilla.qbang.org/show_bug.cgi?id=50 JavaDoc fixes Joachim Buechse http://bugzilla.qbang.org/show_bug.cgi?id=49 need to review: http://bugzilla.qbang.org/show_bug.cgi?id=53 http://bugzilla.qbang.org/show_bug.cgi?id=46 http://bugzilla.qbang.org/show_bug.cgi?id=41 2.1-7 Jan 29 2006 Mac OS X x86/universal binaries/install fixes Dmitry Markman http://mailman.qbang.org/pipermail/rxtx/20060128/002169.html catch exceptions on flush() so close() works. Adam Walsh http://mailman.qbang.org/pipermail/rxtx/20060118/002131.html more close() performance fixes リyvind Harboe http://mailman.qbang.org/pipermail/rxtx/20060119/002135.html Blue Tooth Support cleanup writeByte so close works, send the original exceptions so people can see the exception. Paul http://mailman.qbang.org/pipermail/rxtx/20051229/002014.html http://mailman.qbang.org/pipermail/rxtx/20060108/002053.html %s/\`which java\`/\\\`which java\\\`/g in configure.in Takeshi "Ken" Hamasaki http://mailman.qbang.org/pipermail/rxtx/20060105/002039.html System.gc() slows down close() too much. リyvind Harboe http://mailman.qbang.org/pipermail/rxtx/20060103/002025.html Configure.java message correction User serial_close and serial_open in termios.c JNI_OnLoad and JNI_OnUnload are in SerialImp.c now so remove them from init.c Gerrit Telkamp http://mailman.qbang.org/pipermail/rxtx/20051230/002018.html 2.1-7pre22 Mar 25 2005 CNI retry on EINTR CNI Ignore SIGXCPU as GCJ garbage collection uses this too. Mark Anderson CNI Patch to avoid having the SIGPWR signal interrupt select() Mark Anderson CNI debug message cleanups and fd fix Mark Anderson Dont override system properties Klaus Kierer W32 build fixes and Locking fixes Dave Acker Mac OS X auto* build fixes liblockdev support 2.1-7pre21 Oct 16 2004 dereferencing type-punned pointer will break strict-aliasing rules. Fixed. 2.1-7pre20 Oct 16 2004 x86_64 Linux Fixes fixes BlackBox Serial now runs switch to JNI_VERSION_1_2 -- many people are still using 1.3 JREs 2.1-7pre19 Oct 12 2004 Thread safer nativeDrain()/flush() method. Philip Gladstone Don't look for unexpected lockfiles in expected places Philip Gladstone adding the new properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts insead of overriding the system properties and uses them only as default values Klaus Kierer 2.1-7pre18 Oct 11 2004 release locks when device is unavailable. Tico Ballagas J2SE java.util.loggin and property file to match Stephane Cachat termios stack overflow fix for Linux caused by including termbits.h Bill Holmes Support for USB frobs in Linux (reports are that this does not work exactly as expected with some kernels) Christopher R. Wren configure fix for jdk 1.5 2.1-7pre17 Oct 17, 2003 merged with 2.0 and took small changes from cvs. 2.1-7pre16 Mar 27, 2003 remove debug "Condition" warnings used to debug NT4 issues. 2.1-7pre15a build without requiring rxtxZystem.dll. Add back the TIOCGICOUNT #define for breaks. 2.1-7pre15 100 fold speedup of read(byte) and read(byte[] ...) 10 fold speedup of available() implementented read(byte[],offset,length,terminator[2]); -- not tested. 2.1-7pre14 select fix that could cause crashes in read and the eventLoop -- cleaner patch is pending but not tested as mentioned to Melissa and Jauhar. Tried to cause exceptions for possible NT4SP6 writes -- this was the "Three Blind Mice" test Changed build tool chain for XP problems (?). -- "XP Blows up" Support for COM1-256 port reenumeration for people that change win32 port assignments CommPortIdentifier:getPortIdentifiers() 2.1-7pre13 Isolated lockup on w32 read. Added possible fix for w32 write lockups throw error on impossible write situations. - small input buffer, large writes. 2.1-7pre12 All input stream methods are synchronized now. I had this in before cleaning up but thought it was not needed (nothing failed here). read() will toss an IOException (caught in the examples below but not in this library) if read thinks there will be a deadlock. Some small fixes found while merging with rxtx 2.0 for public release. Just sanity checks for library versions and such. - everything is in synch with the public CVS and public prerelease bins are out and being tested. 2.1-7pre11 fix for lockup found. removed Python and Cygwin code (ZystemImp.c) removed extra attempts to fix lockup removed previous attempts to fix tcrash - the solution before was to avoid using the API but now it appears to work with it -crazy 2.1-7pre10 wrote Zystem (probably will be a seperate library) for logging over the network. Some attempts to fix lockup bugs. -pedantic compile passes. 2.1-7pre9 termios.c cleanup (w32) 2.1-7pre8 More LPT support for w32 2.1-7pre7 initial LPT support for w32 2.1-7pre6 tlockup.m does not lock but fails (?) (W2K SP2) tcrash.m does not crash (W2K SP2) suite serial passes (W2K SP2) debug for flow control and parity switched off. 2.1-7pre5 Later stage tinkering with flowcontrol and parity fixes. Possibly bugs (w32 has many ways this can be setup). 2.1-7pre4 testRead() now uses //./COM9 to verify port is usable (fixes bug introduced in pre3) build used java/jar/javac 1.3.1_06-b01 -- initial tinkering with parity -- 2.1-7pre3 fixed //./COM?? so matlab can do s=serial('COM16') -- needed to test tcrash.m 2.1-7pre2 support for COM1-16 on w32 using //./COM?? 2.1-7pre1 Mark/Space parity fixes on w332 2.1-6 Solaris Enumeration fixes 2.1-6 Sep 7, 2002 read(byte) does not timeout read(byte[]) returns 0 on timeout (Fixes DalSemi iButtons) Dave Dribin QNX Port Bill Smith read() fixes - should be the same as Sun's CommAPI now. timout and threshold fixes for above Bill Smith All QA tests passed. Debian lock file fix "Villa Valerio" HP-UX port enumeration fixes. Sheikh, Awais 2.1-5 Aug 15, 2002 AM_MAINTAINER_MODE for auto* fixes 2.1-[2-4] Aug 13, 2002 A series of minor bug fixes compile fixes Custom speed fixes Unix control of buadbase and divisor updated tools for builds First release since the QA. 2.1-1 Apr 5, 2002 'Works for me' release. Results of QA. Win CE port Michal Hobot Mac OS X fixes Dmitry Markman Multiple runtime fixes. timeout fixes and other fixes lock file server more portable output buffer empty detection Compile fixes for jdk 1.3+ 1.5-8 Dec 4, 2001 True64 Port Finbarr O'Kane FreeBSD fixes Peter C. Verhage UnixWare and OpenUNIX fixes, fixes for Unexpected Lock files Jonathan Schilling --disable-lockfiles fixed. Same exception messages as Sun's CommAPI for baudrate errors. pthread writes for OS's other than Linux and Win32 OUTPUT_BUFFER_EMPTY for OS's other than Linux and Win32 Win32 port enumeration fixes for COM1-8 Win32 speed fixes. More thread fixes. fixes for applications not using Monitor Threads. lock file support for Redhat 7.2. Full CommAPI support for Win32, Linux and Solaris. Many more forgotten. Several days worth of testing (ongoing). 1.5-7 Nov 2, 2001 UnixWare and OpenUNIX ports Jonathan Schilling autotool support for Mac OS X Dmitry Markman Asynch write fixes setParityErrorChar() and setEndOfInputChar() added getParityErrorChar() and getEndOfInputChar() added Lots of tickles a few wacks more error debug info fixes by the buckets. Thread fixes for open/close/monitorthread/native code win32 fixes for NT and win9? 1.5-6 Oct 14, 2001 Mac OS X port to Code Warrier Documentation of the above possible double deletion fix all by Dmitry Markman Specified port fixes Santiago Nicolau Merged with rxtx-1.4 comm.jar renamed to RXTXcomm.jar to avoid confusion. port enumeration fixes multiple win32 fixes lockfile fixes for native threads thread fixes, thread test added. user defined lock directory support. Many more forgotten. 1.5-5 Oct 4, 2001 Lock file fixes and other null termination of strings in lock_file If you had problems with green threads jdk the above will probably help. Documentation of libsecure issues while running as root Vadim Tkachenko Code Warrior build files for Mac OS X Dmitry Markman win32 fixes and enhancments. win32 fixes Initial Solaris port initial Mac OS X port Joseph Goldstone Paul Tokarchuk package renamed to gnu.io Memory leak Cleanups cross-compile fixes more windows fixes. more ioctl support for windows more fcntl suppport for windows misc changes to windows Makefile for building on mingw32 systems in DOS uucp_lock file support Many thanks to Mathworks for Making it happen. symbolic link lock files now work (Mandrake) peter.beelen@philips.com Configure.in fixes for permission issues Vadim Tkachenko Closed memleaks on open()/close() registered port support. Joseph Goldstone 1.5-4 Jan 26, 2001 Irix build fixes (still needs CFLAGS fixed?) Michael Delgadillo Windows build support with lcc Valentin Pavlov Windows build fixes with mingw (both need more code) put enough support into win32 termios to allow BlackBox to run but not work BeOS opens and closes serial ports hpux build fixes merged merge with rxtx-1.4 fixes and features backed out Vector port enumeration Futher Documentation 1.5-3 Oct 4, 2000 Initial BeOS Support Brian D. Hindman Win32 cross build fixes Documentation changes D. Bahi Kaffe Support freebsd build fixes Makefile fixes Merged changes from 1.4-5 1.5-2 Jul 16, 2000 Merged changes from 1.4-4 Added RawIO classes and read/write/open/close functions. Jim Garvin 1.5-1 Mar 7, 2000 RS485 write support. comm.jar implemented. Stallion Card support Greg Luck CommPort enumeration with rxtx's comm.jar 2.0-7 Oct 17, 2003 see rxtx-2.1-7 2.0-6 skipped to sync with 2.1 2.0-5 Sep 7, 2002 see rxtx-2.1-6 2.0-4 Aug 15, 2002 see rxtx-2.1-5 2.0-[23] Aug 13, 2002 see rxtx-2.1-[2-4] 2.0-1 Apr 5, 2002 see rxtx-2.1-1 1.4-15 Dec 4, 2001 see rxtx-1.5-8 1.4-14 Oct 18, 2001 see rxtx-1.5-7 1.4-13 Oct 14, 2001 see rxtx-1.5-6 1.4-12 Oct 10, 2001 see rxtx-1.5-6 1.4-11 Oct 4, 2001 see rxtx-1.5-6 1.4-10 Aug 31, 2001 see rxtx-1.5-5 1.4-9 Jun 21, 2001 Steve Drach Minor fix of error reporting in lockfiles Mac OS X port Joseph Goldstone enumeration speedups Wayne Roberts Documentation changes for lockfiles build fixes for jdk 1.1.8, kaffe 0.61 automation of build tests with support for $JAVA_HOME sync with 1.5 1.4-8 Jan 8, 2001 irix build fixes (fine tuning required) Tom Mander more lockfile code with testing from "Roberto" and Chris Portal bsd and linux default to lockfile support some documentaion clarifications. 1.4-7 Nov 13, 2000 HP-UX fixes for port enumeration Cathrine Guiollot CLASSPATH build fixes Dale Seaburg 1.4-6 Oct 26, 2000 support for explicitly-specified lists of ports Martin Pool Documentation for explicitly-specified lists of ports Martin Pool Clarification of accessReadWrite() Martin Pool RXTXVersion.java was added HP-UX fixes for Serial Support (it may need some fine tuning) Cathrine Guiollot Documentation of RXTX lantency frantz Filesystem Hierarchy Standard 2.1 sec 5.6 lock files. UUCP style lock support is needed. removed extra files not used in 1.4 merged config/Makefile fixes from 1.5 merged win32 fixes from 1.5 cleanup of ParallelImp.c eventLoop (more needed) merged documentation changes from 1.5 that are related. 1.4-5 Aug 18, 2000 RXTXPort constructor to set the name to the port being opened. RXTXPort.removeEventListener() fixes/work arounds all by Chris Hamlett SGI Irix build fixes Thorsten Schmidt Corrected SerialPortEvent.getNewValue() open()/close() fixes. Chris Hamlett SerialPortInstructions.txt contributed by Vaibhav Andleigh/Athena inputBuffer does not dictate read size. Makefile cleanup. 1.5 stop bit support. 1.4-4 Jun 15, 2000 An attempt to get eventLoop() to exit properly. Chris Portal data accessed by multiple threads declared volatile. 1.4-3 Jun 14, 2000 synchronization fixes(?) Chris Portal get rid of annoying kenrel version messages Joey Armstrong Allow Event loop to die silently after closing the fd. LPRPort open() throws PortInUseException not IOException cleanup of LPRPort java variable access. 1.4-2 Jun 13, 2000 Documentation changes Bryce Nesbitt 1.4-1 Jun 6, 2000 HP-UX build fixes (still a messed up compile flag I think) "Peter Pastrnak" if you get HP-UX working please let peter know. redo of RXTXPort's read() "Bertrand Renuart" Many println's replaced with appropriate exceptions "Bertrand Renuart" Suse build fixes. Jean-Francois Fels jdk-1.3 build fix (lost the email that pointed this out) took out extra code from 1.5 development to simplify the package. 1.3-13 Mar 26, 2000 patches for Cyclades support and other multi-port cards that do not support TIOCGICOUNT or TIOCSERGETLSR Jac Kersing Stallion Card Support Greg Luck ~20 additions devices added for linux. 1.3-12 Mar 7, 2000 Added Calls to DeleteLocalRef to functions get_java_var and throw_java_exception to avoid FATAL ERROR in native method: Out of memory when expanding local ref table beyond capacity W. Craig Trader and Gareth Lee fixed flush() for printer ports. Robert Perry work around for missed DSR events (incomplete?). Ken Eisner readArray behavior fix Gareth Lee 1.3-11 Jan 28, 2000 Added notification of output buffer empty. Chris Portal tracked down a bug in open() (introduced in rxtx-1.3-10) Tim Groner Ken Eisner <019769e@dragon.acadiau.ca> Fix for people reporting lost bytes. Wayne Robers Douglas Baker 1.3-10 Jan 16, 2000 Tracked down threshold bugs and Linux configure fixes. Brent J. Nordquist Moxa Driver Support read/write examples libc5 build fixes. Peter Bennett Free-BSD configure and compile fixes Soren Dayton Tracked down racing event loops. Alejandro P. Revilla 1.3-9 Dec 1, 1999 Japanese install instructions Thanks to Masayuki "Tencho" Yamashita IBM JDK support. Thanks for bug reports from Herber Carl Meyer and Scott Simms Warning messages when kernel does not match headers Alejandro P. Revilla Documentation of libc5 bugs. Peter Bennett Warning when there are multiple jni include file paths. Win32 code now builds. Thanks to Wayne Roberts for the changes to termios.c. Free-BSD serial comm is working. 1.3-8 Oct 25, 1999 Introduced Wayne Roberts Win32 code. CLOCAL added to c_cflags. (How did it get out?) -thanks to Bertrand Renuart Several configure fixes for common problems. -thanks to Andrew Baerst for comments fixes for larger writes. Mark Lindsey Free-BSD fixes Stuart Anderson Linux port enumeration fixes. Several configure fixes for common problems. Parity fixes. Wayne Roberts 1.3-7 Aug 15, 1999 More Threshold and Timeout fixes. Tried to get Printer support working with linux-2.2.11. More work needed there. Comtrol card support by Ken Thompson thompson@milestonesolutions.com. 1.3-6 Aug 3, 1999 Threshold and Timeout typo fixes in SerialImp.c. 1.3-5 Jul 26, 1999 Threshold and Timeout implemented on native side. default on open is to block. Hope this doesn't fill the mailbox. 1.3-4 Jul 26, 1999 Printer port fixes Holger Lehmann minor build fixes intelligent port identification merge of many small changes from cvs. moved to automake-1.4a libtool-1.2f make-3.77 1.3-3 Apr 29, 1999 flow Control corrections Neil Darlow and Chris Kakris software flow control implementation Neil Darlow close fixes and exception cleanup Douglas Lau build modifications Documentation updates counter roll over fixes for events Neil Darlow Minor changes to read 1.3-2 Mar 27, 1999 When throwing exceptions, include the method name in the message string. Douglas Lau fixes for close() drop DSR and DTR call super.close() Wayne Roberts and Douglas Lau fixes for readArray() used IndexArrayOutOfBoundsException return 0 on readArray(0); Douglas Lau and Will Kassebaum fix for drain(). retry on EINTR Daniel Lintjens fixes for configure.in/Makefile.am using System.getProperty ParallelImp.c implementation of isPaperOut,isPrinterBusy, isPrinterError,isPrinterSelected,isPrinterTimedOut, 1.3-1 Mar 20, 1999 added Stubs for Printer Support and CommPortIdentifiers. Several minor Makefile Modifications for the above and some quirks that showed up in 1.1.7 javah. 1.3 Mar 17, 1999 Imported Douglas Lau's changes Merged build files with 1.2 tree. 1.2BETA2Jan 31, 1999 RXTXPort.java: Stop Bit fix Stephen Martin SerialImp.c: Set Speed fix. Stephen Martin RXTXCommDriver.java: Specialix card support. configure: remove -ansi for libc5 Linux hardware flow control error message fix. 1.2BETA1Dec 28, 1998 extensive native code rewrite. 1.2pre12Dec 20, 1998 SerialImp.c cleanup. ASYNC is now default. irix is running. Thanks to Steve Swicord and Bob Carpenter. 1.2pre11Dec 20, 1998 multi-port bug fix. Event Notification (FE PE BI OE) 1.2pre10Dec 11, 1998 public release of pre9 work. 1.2pre9 Dec 11, 1998 Series of non-public releases to work out sgi-irix build problems. Thanks to Steve Swicord and Bob Carpenter for the feedback. Some multi-port fixes. 1.2pre8 Nov 30, 1998 Wayne Roberts Contributed read timeout fix binary read fix libtool-1.2b is now used multi-port use is in. Yeun-Ping Leung contributed Free-BSD support 1.2pre7 Oct 14, 1998 Various Fixes 1.2pre6 Oct 6, 1998 cleaned up documentation. Pulled out win32 support. Makefile.am remove full path from JAR command. 1.2pre5 Aug 12, 1998 Added David Atkinson's support for which implements event notification, hardware flow control (tested with a modem), multiple bytes reads etc. Needs to be converted back to termios calls. Claims to work with blackbox. .cvsignore - Added to ignore generated files such as "config.h". It just cleans up CVS reports of what's new and different. Makefile.am - Add a "jcl.jar" target to make a JAR file for JCL. SerialImp.c - Implemented SerialInputStream_skip(). If it runs out of memory it uses a slower algorithm which uses almost no memory. - Support for baud rates of 38400. - Rename get_speed to bps2speed_t (bits-per-second to speed_t constant) to remove ambiguity. - The GetSpeed functions now correctly return the bps speed rather than the speed_t constant. This means JCL will now return the correct speed. - Add speed_t2bps to be the reverse of bps2speed_t. - Fix the spelling of "receive". Added /dev/modem to the list of ports because it's very common. Added comments from Suns NullDriver sample, giving credit where necessary. (Sheldon Young - sheldon_young@yahoo.com) Commented SerialImp.c (taj@www.linux.org.uk) 1.2pre4 Aug 12, 1998 The CommAPI has changed in the newest beta from Sun, now named "javacomm20-ea". I have attached RXTXPort.java, which I have modified so it now compiles. Sheldon Young sheldon@intergate.bc.ca 1.2pre3 July 5, 1998 libtool 1.0h, automake 1.3, (redhat-5.1 defaults) added JDK_HOME as and option to configure. missing string control to termios (in progress). documentation changes/updates (doc and JDK_HOME changes suggested by fred@rodan.moremagic.com) IOExeption work. 1.2pre2 Jun 5, 1998 termios control from java (overdue) 1.2pre1 May 19, 1998 CommAPI start 1.1.5 Mar 17, 1998 mingw (win32) support 1.1.3p7 Feb 26, 1998 change how configure.in finds JAVANATINC 1.1.3p6 Feb 24, 1998 SunOS support (further) thanks to Gilles Paquet Gilles.Paquet@ulb.ac.be Added libtool support. This should fix most Unix porting problems. added automake. I'm not convinced it was a good idea. 1.1.3p4 Jan 30, 1998 SunOS support (initial) thanks to Michael.Forte@Corp.Sun.COM makeraw() fix 1.1.3p3 Jan 18, 1998 added termios(3) functions and FD class javadoc'ed 1,1.3p2 Jan 16, 1998 Complete rewrite. Now have SerialIn/Output.class's 1,1.3p1 Jan 15, 1998 Speed was not being changed properly 1.1.3p0 Jan 13, 1998 jdk-1.1.3 fixes. 1.1.1p2 May 23, 1997 Replaced termio with termios. 1.1.1p1 May 22, 1997 obj dirs for different os's. per request. 1.1.1p0 May 21, 1997 Support for jdk 1.1.1. Dropped support for 1.0.2 because of the jni in 1.1.1. The native code required many changes. 0.50 Mar 17, 1997 Buffered input/output use of FileDescriptors. Removed most of the native code. deleted RO.java. 0.22 Mar 14, 1997 Everything is now controlled from Main.java. renamed classes for easier reading. debug info for open(), write(). prevent reading from bad fd. dump hex for RX as an example in RO.java. 0.21 Mar 12, 1997 Removal of hard coded vars Makefile Removed the last remnants of my GPS program. Fixed Main.java by making it wait for TX to finish (thanks to oliver) Irix support. (thanks to oliver) 0.2 Mar 11, 1997 added autoconf ability 0.1 Mar 10, 1997 Just tossed the stuff together ./rxtx-2.2pre2/RMISecurityManager.html0000644000175000017500000006162207453365504017630 0ustar twernertwerner Yahoo! Mail
 Check Mail
 Compose
 Folders
 Addresses
 Search
 Options
 Help Desk
 Sign Out
 

Faxes
Voicemail

Send A Greeting
Get Y! Messenger
   
Read Message Help
Click Here for Wingspanbank.com

Download Attachments
    Next | Inbox
From Alejandro P. Revilla Tue Dec 7 08:47:36 1999
X-Apparently-To: taj@www.linux.org.uk via mdd301.mail.yahoo.com
Received: from csd.cs.com.uy (HELO ms.cs.com.uy) (206.99.51.136) by mta123.mail.yahoo.com with SMTP; 7 Dec 1999 16:47:50 -0000
Received: from apr.cs.com.uy (apr.cs.com.uy [206.99.51.131]) by ms.cs.com.uy (8.9.1/8.9.1) with ESMTP id NAA41246 for <taj@www.linux.org.uk>; Tue, 7 Dec 1999 13:50:04 -0300
Received: (from apr@localhost) by apr.cs.com.uy (8.8.5/8.8.5) id NAA05191 for taj@www.linux.org.uk; Tue, 7 Dec 1999 13:47:37 -0300
Date: Tue, 7 Dec 1999 13:47:36 -0300
From: "Alejandro P. Revilla" <apr@cs.com.uy>  | Block address
To: Trent Jarvi <taj@www.linux.org.uk>
Subject: Forward of JINI-USERS thread
Message-ID: <19991207134736.M24226@cs.com.uy>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=+QahgC5+KEYLbs62
X-Mailer: Mutt 0.95.4i
Content-Length: 9771

Hi Trent,

   There's a problem accesing CommAPI after setting an
RMISecurityManager(). I did not have time to find out where
the problem is, just went thru a simple workaround. Now I
see somebody else on JINI-USERS reporting the same problem
and it happens not to appear on Windoze machines.

Just for your information and for you to be aware of it
I am attaching two messages (original message and my response)
to JINI-USERS.

I personally think the problem may well be at comm.jar
solaris implementation.

Best regards
--Alejandro

Attachment: Forwarded Message

Return-Path: <owner-jini-users@JAVA.SUN.COM>
Received: from localhost (localhost [127.0.0.1]) by apr.cs.com.uy (8.8.5/8.8.5) with ESMTP id TAA10006 for <apr@localhost>; Sun, 5 Dec 1999 19:12:49 -0300
Received: from csd.cs.com.uy by localhost with POP3 (fetchmail-4.7.6) for apr@localhost (single-drop); Sun, 05 Dec 1999 19:12:49 -0300 (EST)
Received: from cs.cs.com.uy (cs.cs.com.uy [206.99.51.130]) by ms.cs.com.uy (8.9.1/8.9.1) with SMTP id TAA53622 for <apr@csd.cs.com.uy>; Sun, 5 Dec 1999 19:14:30 -0300
Received: (qmail 18134 invoked by alias); 5 Dec 1999 22:12:10 -0000
Delivered-To: cs-com-uy-apr@CS.COM.UY
Received: (qmail 42448 invoked from network); 5 Dec 1999 22:12:08 -0000
Received: from mail.javasoft.com (HELO mail.java.sun.com) (204.160.241.28) by cs.cs.com.uy with SMTP; 5 Dec 1999 22:12:08 -0000
Received: from mail (mail.java.sun.com [204.160.241.28]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA28872; Sun, 5 Dec 1999 14:07:56 -0800 (PST)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2782139 for JINI-USERS@JAVA.SUN.COM; Sun, 5 Dec 1999 14:03:53 -0800
Received: from catwalk.los-gatos.net ([207.214.112.33]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA28480 for <jini-users@java.sun.com>; Sun, 5 Dec 1999 14:03:51 -0800 (PST)
Received: from catwalk.los-gatos.net (localhost [127.0.0.1]) by catwalk.los-gatos.net (8.8.7/8.8.7) with SMTP id NAA07234 for <jini-users@java.sun.com>; Sun, 5 Dec 1999 13:57:01 -0800
X-Mailer: KMail [version 1.0.28]
Content-Type: text/plain
References: <99120505155801.00629@catwalk.los-gatos.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Approved-By: Doug Sutherland <doug@LOS-GATOS.NET>
Message-ID: <99120513570007.00629@catwalk.los-gatos.net>
Date: Sun, 5 Dec 1999 13:48:52 -0800
Reply-to: doug@los-gatos.net
Sender: "A mailing list for discussing Sun's Jini (tm) Technology" <JINI-USERS@JAVA.SUN.COM>
From: Doug Sutherland <doug@los-gatos.net>
Organization: The Cats Net
Subject: Re: Fwd: RMI Security Manager prevents access to other classes?
To: JINI-USERS@JAVA.SUN.COM
In-Reply-To: <99120505155801.00629@catwalk.los-gatos.net>

Hi,

Allow me to clarify this problem further. I am aware of the Java 2
security policies, and I am starting both the server and client with
the -Djava.security.policy=policy parameter, where policy contains
the usual

   permission java.security.AllPermission

The code works fine on Windows with the win32com.dll driver for
Javacomm API. But on Linux the same code fails when trying to load
the RXTXCommDriver (native driver for javacomm on linux). Seems
like it might be a bug in gnu.io.RXTXCommDriver, either that or
RMISecurityManager is not behaving the same way on Linux.

Any Ideas?

Thanks,
Doug


> Correction: I meant to say:
>
>  - if I comment out System.setSecurityManager(new
RMISecurityManager())
>                                                   ^^^
>    the serial port access works fine. But with the RMI security
manager
>    the loading of serial port drivers fails.
>
> Doug
>
>
>
> ----------  Forwarded Message  ----------
> Subject: RMI Security Manager prevents access to other classes?
> Date: Sun, 5 Dec 1999 04:49:54 -0800
> From: Doug Sutherland <doug@los-gatos.net>
>
>
> Hi There,
>
> I am working with JDK1.2 (blackdown) on Linux kernel 2.0.36 (Redhat
5.2).
> I have an RMI client application that connects to an RMI server,
grabs
> some data, and sends it out the serial port to an LCD display using
the
> Java commapi for Linux. I have a situation where:
>
>  - if I comment out System.setSecurityManager(new SecurityManager())
>    the serial port access works fine, I write out characters to the
>    display no problem. The program finds the serial ports using
>    getPortIdentifier and is able to open the serial port.
>
>  - if I put back in the RMI security manager, the application does
>    not find the serial ports, instead it throws an exception while
>    trying to load the serial drivers:
>
>      caught java.lang.IllegalArgumentException: name can't be null
>      while loading driver gnu.io.RXTXCommDriver
>
> It appears that the RMI security manager is somehow messing with the
> loading of the native serial port driver (RXTX for linux). I assume
> that this is a feature not a bug. What do I need to do to get the
> RMI security manager to allow access to other classes? In this case
> the serial driver consists of a native shared library:
>
>  /usr/local/java/jdk1.2/jre/lib/i386/libSerial.so
>
> And java classes that reside here:
>
>  /usr/local/java/jdk1.2/jre/lib/ext/jcl.jar
>  /usr/local/java/jdk1.2/jre/lib/ext/comm.jar
>
> Anyone have any ideas? Do you have commapi working in an app
> that also does RMI? Any tips would be appreciated.
>
> Thanks,
> Doug

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the
body
of the message "signoff JINI-USERS".  For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

To view past JINI-USERS postings, please see:
http://archives.java.sun.com/archives/jini-users.html

To participate in the community, please visit:
http://www.jini.org

Attachment: Forwarded Message

Return-Path: <owner-jini-users@JAVA.SUN.COM>
Received: from localhost (localhost [127.0.0.1]) by apr.cs.com.uy (8.8.5/8.8.5) with ESMTP id NAA04642 for <apr@localhost>; Tue, 7 Dec 1999 13:07:42 -0300
Received: from csd.cs.com.uy by localhost with POP3 (fetchmail-4.7.6) for apr@localhost (single-drop); Tue, 07 Dec 1999 13:07:43 -0300 (EST)
Received: from cs.cs.com.uy (cs.cs.com.uy [206.99.51.130]) by ms.cs.com.uy (8.9.1/8.9.1) with SMTP id NAA20040 for <apr@csd.cs.com.uy>; Tue, 7 Dec 1999 13:09:33 -0300
Received: (qmail 42616 invoked by alias); 7 Dec 1999 16:07:10 -0000
Delivered-To: cs-com-uy-apr@CS.COM.UY
Received: (qmail 21107 invoked from network); 7 Dec 1999 16:07:07 -0000
Received: from mail.javasoft.com (HELO mail.java.sun.com) (204.160.241.28) by cs.cs.com.uy with SMTP; 7 Dec 1999 16:07:07 -0000
Received: from mail (mail.java.sun.com [204.160.241.28]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA01760; Tue, 7 Dec 1999 08:01:25 -0800 (PST)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2820739 for JINI-USERS@JAVA.SUN.COM; Tue, 7 Dec 1999 07:19:24 -0800
Received: from ms.cs.com.uy (csd.cs.com.uy [206.99.51.136]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA22568 for <JINI-USERS@JAVA.SUN.COM>; Tue, 7 Dec 1999 07:19:18 -0800 (PST)
Received: from apr.cs.com.uy (apr.cs.com.uy [206.99.51.131]) by ms.cs.com.uy (8.9.1/8.9.1) with ESMTP id MAA16516; Tue, 7 Dec 1999 12:21:03 -0300
Received: (from apr@localhost) by apr.cs.com.uy (8.8.5/8.8.5) id MAA03834; Tue, 7 Dec 1999 12:18:39 -0300
Mail-Followup-To: Doug Sutherland <doug@los-gatos.net>, JINI-USERS@JAVA.SUN.COM
References: <99120505155801.00629@catwalk.los-gatos.net> <99120513570007.00629@catwalk.los-gatos.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.4i
Approved-By: "Alejandro P. Revilla" <apr@CS.COM.UY>
Message-ID: <19991207121838.A24226@cs.com.uy>
Date: Tue, 7 Dec 1999 12:18:38 -0300
Reply-to: "Alejandro P. Revilla" <apr@CS.COM.UY>
Sender: "A mailing list for discussing Sun's Jini (tm) Technology" <JINI-USERS@JAVA.SUN.COM>
From: "Alejandro P. Revilla" <apr@CS.COM.UY>
Subject: Re: Fwd: RMI Security Manager prevents access to other classes?
Comments: To: Doug Sutherland <doug@los-gatos.net>
To: JINI-USERS@JAVA.SUN.COM
In-Reply-To: <99120513570007.00629@catwalk.los-gatos.net>; from Doug Sutherland on Sun, Dec 05, 1999 at 01:48:52PM -0800

>
> The code works fine on Windows with the win32com.dll driver for
> Javacomm API. But on Linux the same code fails when trying to load
> the RXTXCommDriver (native driver for javacomm on linux). Seems
> like it might be a bug in gnu.io.RXTXCommDriver, either that or
> RMISecurityManager is not behaving the same way on Linux.
>
> Any Ideas?
>
I've experienced that very same problem. My work around was
to install RMISecurityManager _after_ fetching the desired
CommPortIdentifier (and of course I can perform I/O on the ports
after setting RMISecurityManager)

This is not necessary a problem with RXTXCommDriver,
there are other components involved such as 'comm.jar'.

--Alejandro

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the
body
of the message "signoff JINI-USERS".  For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

To view past JINI-USERS postings, please see:
http://archives.java.sun.com/archives/jini-users.html

To participate in the community, please visit:
http://www.jini.org

     Next | Inbox
Download Attachments
Privacy Policy - Terms of Service - Guidelines
Copyright © 1994-1999 Yahoo! Inc. All rights reserved.
./rxtx-2.2pre2/install-sh0000755000175000017500000001272106674241607015271 0ustar twernertwerner#! /bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 ./rxtx-2.2pre2/config.h.in0000644000175000017500000000420110132522030015252 0ustar twernertwerner/* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_GRP_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_PWD_H /* Define to 1 if you have the header file. */ #undef HAVE_SIGNAL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FILE_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SIGNAL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_TERMIOS_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION ./rxtx-2.2pre2/COPYING0000644000175000017500000007231510614033753014313 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ The original GNU Lesser General Public License Follows. GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! ./rxtx-2.2pre2/configure0000755000175000017500000272676211126554371015210 0ustar twernertwerner#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string="`eval $cmd`") 2>/dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/SerialImp.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GREP EGREP LN_S ECHO AR RANLIB STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WINDOWS_JAVA_INCLUDE JAVAINCLUDEDIR JAVAINCLUDE JAVANATINC CLASSPATH TOP TARGETLIB LDFLAG THREAD_FLAG OS_NAME OS_ARCH OS_VERSION JAVA_VERSION JAVA_VENDOR JAVA_HOME JAVA_LIBRARY_PATH JAVA_CLASS_PATH JAVA_CLASS_VERSION JAVAH_FIX JPATH JHOME RXTX_PATH JAVAH JAVAC JAR JAVADOC EXTENSION LIBTOOL_FIX LINK COMPILE OBJECT_EXTENSION LIB_EXTENSION GLIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT XCODE_SELECT LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-static[=PKGS] build static libraries [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-PRINTER PRINTER support (experimental) default=yes --disable-lockfiles disable lock files (experimental) default=no --enable-liblock=x enable liblock default=no --enable-lockfile_server Enable interaction with a lock file server default=no --enable-DEBUG Print debugging info from SerialImp.c default=no --disable-universallib Disable building of universal libraries (MacOS X) default=no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking target system type" >&5 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 echo "$as_me: error: invalid value of canonical target" >&2;} { (exit 1); exit 1; }; };; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- { echo "$as_me:$LINENO: WARNING: Trying libtool. If the following fails install libtool" >&5 echo "$as_me: WARNING: Trying libtool. If the following fails install libtool" >&2;} ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Comment these two lines out when compiling on SCO # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=no fi # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac esac fi done IFS="$lt_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | kfreebsd*-gnu | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case "$host_cpu" in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 3750 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; esac need_locks="$enable_libtool_lock" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for *BSD fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris* | sysv5*) symcode='[BDRT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # # Check for any special shared library compilation flags. # lt_prog_cc_shlib= if test "$GCC" = no; then case $host_os in sco3.2v5*) lt_prog_cc_shlib='-belf' ;; esac fi if test -n "$lt_prog_cc_shlib"; then { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : else { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} lt_cv_prog_cc_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_prog_compiler_static" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6387: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:6391: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-static' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic='-Kpic' lt_prog_compiler_static='-dn' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6649: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:6653: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6711: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:6715: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp $SED '/^$/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* ) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec=' ' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=no hardcode_shlibpath_var=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no hardcode_shlibpath_var=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4.2uw2*) archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=no hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec= hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 8093 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which librarie types wil actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_CXX=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX=' ' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_CXX='+b $libdir' hardcode_libdir_separator_CXX=: ;; ia64*) hardcode_libdir_flag_spec_CXX='-L$libdir' ;; *) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case "$host_cpu" in hppa*64*|ia64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sco*) archive_cmds_need_lc_CXX=no case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) archive_cmds_need_lc_CXX=no ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-static' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC*) lt_prog_compiler_pic_CXX='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11281: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:11285: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11343: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:11347: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp $SED '/^$/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 11858 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-static' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_F77='-Kpic' lt_prog_compiler_static_F77='-dn' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13683: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13687: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13745: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13749: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp $SED '/^$/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs_F77=no fi ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* ) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_F77=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77=' ' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; ia64*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; *) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; sco3.2v5*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4.2uw2*) archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_F77='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv5*) no_undefined_flag_F77=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec_F77= hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 15107 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15887: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15891: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-static' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_GCJ='-Kpic' lt_prog_compiler_static_GCJ='-dn' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16149: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16153: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp $SED '/^$/d' conftest.err >conftest.er2 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16211: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16215: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp $SED '/^$/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs_GCJ=no fi ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* ) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_GCJ=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ=' ' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; ia64*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; *) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; sco3.2v5*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4.2uw2*) archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_GCJ='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv5*) no_undefined_flag_GCJ=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec_GCJ= hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 17593 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion # end of SCO fixes am__api_version='1.10' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=Serial VERSION=2.2pre1 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi for ac_header in fcntl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/fcntl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/file.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/time.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/signal.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in signal.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in termios.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in grp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in pwd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_c_compiler_gnu = yes; then { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } if test "${ac_cv_prog_gcc_traditional+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_pattern="Autoconf.*'x'" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi # ftsoy { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE JHOME= RXTX_PATH= EXTENSION="c" OBJECT_EXTENSION="lo" LIB_EXTENSION="la" COMPILE="cc " TOP="`pwd`" GLIBTOOL="\$(SHELL) \$(TOP)/libtool" LINK="\$(GLIBTOOL) --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)" case "$host_os" in *-gnu) CFLAGS=$CFLAGS" -D_POSIX_SOURCE";; *);; esac # Check whether --enable-PRINTER was given. if test "${enable_PRINTER+set}" = set; then enableval=$enable_PRINTER; echo $enable_PRINTER else enable_PRINTER="yes" fi if test x$enable_PRINTER = xyes; then TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la \ \$(target_triplet)/librxtxI2C.la \ \$(target_triplet)/librxtxRaw.la \ \$(target_triplet)/librxtxRS485.la" else TARGETLIB="\$(target_triplet)/librxtxSerial.la" fi # Check whether --enable-lockfiles was given. if test "${enable_lockfiles+set}" = set; then enableval=$enable_lockfiles; if test x$lockfiles = xyes; then echo "Using lock files" else echo "Disabling lock files" CFLAGS=$CFLAGS" -DDISABLE_LOCKFILES" fi fi # Check whether --enable-liblock was given. if test "${enable_liblock+set}" = set; then enableval=$enable_liblock; if test "x$liblock" != "xno"; then echo "Using liblock" CFLAGS=$CFLAGS" -DLIBLOCKDEV" LDFLAGS=$LDFLAGS" -llockdev" else echo $liblock echo "Disabling liblock" fi fi # Check whether --enable-lockfile_server was given. if test "${enable_lockfile_server+set}" = set; then enableval=$enable_lockfile_server; if test x$enable_lockfile_server = xyes; then CFLAGS=$CFLAGS" -DLFS" fi fi # Check whether --enable-DEBUG was given. if test "${enable_DEBUG+set}" = set; then enableval=$enable_DEBUG; if test x$enable_DEBUG = xyes; then CFLAGS=$CFLAGS" -DDEBUG" fi fi # Check whether --enable-universallib was given. if test "${enable_universallib+set}" = set; then enableval=$enable_universallib; if test x$universallib = xyes; then echo "Disabling universal lib" fi fi # Extract the first word of "xcode-select", so it can be a program name with args. set dummy xcode-select; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XCODE_SELECT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $XCODE_SELECT in [\\/]* | ?:[\\/]*) ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_XCODE_SELECT" && ac_cv_path_XCODE_SELECT="no" ;; esac fi XCODE_SELECT=$ac_cv_path_XCODE_SELECT if test -n "$XCODE_SELECT"; then { echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5 echo "${ECHO_T}$XCODE_SELECT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi find_java_native_include() { JAVANATINC="-I\$(JAVAINCLUDEDIR)/`cd $JAVAINCLUDEDIR; find . -name $1|sed s#$1##|head -n1`" if test `cd $JAVAINCLUDEDIR; find . -name $1|wc -l` != "1" ; then echo 1>&2 echo WARNING: configure is having a hard time determining which 1>&2 echo directory contains the file $1. Edit Makefile and fix the 1>&2 echo variable JAVANATINC to point to the correct directory. 1>&2 echo 1>&2 echo The following options are available: 1>&2 find $JAVAINCLUDEDIR -name $1|sed s#jni_md\.h## 1>&2 echo 1>&2 echo If there are more than one option available the first was selected. 1>&2 echo 1>&2 fi } build_conftest() { cat > conftest.java << EOF /* this may be usefull for getting around java cobwebs during build */ public class conftest { public static void main(String[] args) { System.out.println(System.getProperty(args[0])); } } EOF CLASSPATH=.:$CLASSPATH if test x$JAVA_HOME = x; then javac -classpath .:$CLASSPATH: conftest.java else $JAVA_HOME/bin/javac -classpath .:$CLASSPATH: conftest.java fi } run_conftest() { echo $ECHO_N checking $1 " " 1>&6 if test x$JPATH = x; then VAR=`java -classpath .:$CLASSPATH: conftest $1` else VAR=`$JPATH/bin/java -classpath .:$CLASSPATH: conftest $1` fi echo $VAR 1>&6 echo $VAR return } build_conftest if test x$JAVA_HOME = x; then JPATH=`run_conftest java.home| sed s#\/jre\\$##g` else JPATH=$JAVA_HOME echo $JAVA_HOME { echo "$as_me:$LINENO: WARNING: using JAVA_HOME environmental variable" >&5 echo "$as_me: WARNING: using JAVA_HOME environmental variable" >&2;} fi if test x$JPATH = x; then { { echo "$as_me:$LINENO: error: Make sure java is in your path before running configure" >&5 echo "$as_me: error: Make sure java is in your path before running configure" >&2;} { (exit 1); exit 1; }; } fi echo adjusted java.home is $JPATH if test "$target_alias" = i386-mingw32 ;then OS_NAME=WIN32 else OS_NAME=`run_conftest os.name` fi OS_ARCH=`run_conftest os.arch` #JAVA_CLASS_PATH=`run_conftest java.class.path` #JAVA_LIBRARY_PATH=`run_conftest java.library.path` JAVA_VENDOR=`run_conftest java.vendor` JAVA_VERSION=`run_conftest java.version` rm -f conftest.java rm -f conftest.class echo $ECHO_N checking os.version " " 1>&6 OS_VERSION=`uname -r` echo $OS_VERSION 1>&6 check_prefix() { if test $prefix != "/usr";then echo 1>&2 echo "WARNING: configure was not run with option --prefix=/usr" 1>&2 echo " Unless /usr/local/lib or the specified prefix is in" 1>&2 echo " the linkers path this will cause problems later on." 1>&2 echo 1>&2 fi } # an attempt to compile on libc5 linux machines check_java_headers() { cat > conftest.c << EOF #include #include #include int main(int argc, char *argv) { #if defined (__GLIBC__) printf("%i\n",__GLIBC__); #else printf("0\n"); #endif exit(0); } EOF cc conftest.c -o conftest if test `./conftest` -lt 2 ;then echo 1>&2 echo " WARNING: Older libc on linux detected. Patching a local copy of jni_md.h" 1>&2 echo 1>&2 ln -s `find $JAVAINCLUDEDIR -name jni.h` . cp `find $JAVAINCLUDEDIR -name typedefs_md.h` . # not pretty. could be cleaned up patch << EOF --- typedefs_md.h Tue Jan 11 14:17:08 2000 +++ typedefs_md.h.patchtaj Tue Jan 11 14:15:53 2000 @@ -17,9 +17,6 @@ */ /* sbb: Johan Vos, why isn't this #ifndef inside the solaris header guard? */ -#ifndef BITSPERCHAR -#define BITSPERCHAR 8 -#endif #ifndef _SOLARIS_TYPES_MD_H_ #define _SOLARIS_TYPES_MD_H_ @@ -28,50 +25,19 @@ #include #include "bool.h" -#if defined(__alpha__) -typedef unsigned long ptr_int; -#define PTR_IS_64 1 -#define LONG_IS_64 1 -#else typedef unsigned int ptr_int; #define PTR_IS_32 1 -#endif /* don't redefine typedef's on Solaris 2.6 or Later */ -#if !defined(_ILP32) && !defined(_LP64) - -#ifndef _UINT64_T -#define _UINT64_T -#ifdef LONG_IS_64 -typedef unsigned long uint64_t; -#else typedef unsigned long long uint64_t; -#endif -#define _UINT32_T typedef unsigned int uint32_t; -#if defined(__linux__) typedef unsigned int uint_t; -#endif -#endif -#ifndef __BIT_TYPES_DEFINED__ -#ifdef (__i386__) -/* that should get Linux, at least */ #ifndef _INT64_T #define _INT64_T -#ifdef LONG_IS_64 -typedef long int64_t; -#else typedef long long int64_t; -#endif -#define _INT32_T -typedef int int32_t; -#if defined(__linux__) -typdef int int_t; -#endif -#endif -#endif /* i386 */ +typedef int int_t; #endif /* __BIT_TYPES_DEFINED__ */ #endif /* !defined(_ILP32) && !defined(_LP64) */ @@ -110,27 +76,15 @@ #endif -/* On Intel these conversions have to be method calls and not typecasts. - See the win32 typedefs_md.h file */ -#if ((defined(i386) || defined (__i386)) && defined(__solaris__)) || defined(__powerpc__) - -extern int32_t float2l(float f); -extern int32_t double2l(double d); -extern int64_t float2ll(float f); -extern int64_t double2ll(double d); - -#else /* not solaris x386 or linux powerpc*/ - #define float2l(f) (f) #define double2l(f) (f) #define float2ll(f) ((int64_t) (f)) #define double2ll(f) ((int64_t) (f)) -#endif /* i386 */ - #define ll2float(a) ((float) (a)) #define ll2double(a) ((double) (a)) +#define double2ll(f) ((int64_t) (f)) /* comparison operators */ #define ll_ltz(ll) ((ll)<0) @@ -148,13 +102,7 @@ extern void ll2str(int64_t a, char *s, char *limit); -#if defined(ppc) || defined(__ppc__) || defined(__alpha__) || defined(__sparc__) -#ifndef HAVE_ALIGNED_DOUBLES +#if defined(ppc) || defined(__ppc__) || defined(__alpha__) #define HAVE_ALIGNED_DOUBLES -#endif -#ifndef HAVE_ALIGNED_LONGLONGS #define HAVE_ALIGNED_LONGLONGS #endif -#endif - -#endif /* !_SOLARIS_TYPES_MD_H_ */ EOF fi rm -f conftest.c rm -f conftest } check_kernel_headers() { cat > conftest.c << EOF #include #include #include #include int main(int argc, char *argv) { printf(UTS_RELEASE"\n"); exit(0); } EOF cc conftest.c -o conftest if test `uname -r` != `./conftest` ;then echo 1>&2 echo " WARNING: Kernel include files do not match the current kernel" 1>&2 echo 1>&2 fi rm -f conftest.c rm -f conftest } #fix_mac_groups() #{ #this is what the Mac OS X installer does... untested # sudo mkdir /var/spool/uucp # sudo chmod 775 /var/spool/uucp # sudo niutil -destroyval / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'` # sudo niutil -appendprop / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'` #} fix_comm_jar() { if test -f $1 ;then echo "------------------------------------------------------" 1>&2 echo "WARNING: A comm.jar file is already installed" 1>&2 echo "make sure your CLASSPATH points to RXTXcomm.jar!" 1>&2 echo 1>&2 echo $1 echo 1>&2 echo "------------------------------------------------------" 1>&2 fi; } case $OS_NAME in Mac\ OS\ X) JAVAINCLUDEDIR=$JPATH/../../../Headers ;; *) JAVAINCLUDEDIR=$JPATH/include ;; esac JAVAINCLUDE="-I\$(JAVAINCLUDEDIR)" if test "$CC" = "gcc" || test "$CC"="egcs"; then case $JAVA_VENDOR in Tran*) find_java_native_include jni.h JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni" JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3" JAR="\$(JPATH)/bin/jar" JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)" CFLAGS=$CFLAGS" -D_BSD_SOURCE" JAVAINCLUDE="" JAVAH_FIX="if test ! -d \$(target_triplet);then mkdir \$(target_triplet);fi;" JHOME=$JPATH"/share/kaffe/" RXTX_PATH=$JPATH"/lib/kaffe/" ;; *) find_java_native_include jni_md.h JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni" JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3" JAR="\$(JPATH)/bin/jar" JAVADOC="\$(JPATH)/bin/javadoc" CFLAGS=$CFLAGS" -D_BSD_SOURCE" ;; esac fi if test -d $JPATH/share/kaffe/ then fix_comm_jar $JPATH/share/kaffe/comm.jar elif test -d $JPATH/jre/lib/ext then fix_comm_jar $JPATH/jre/lib/ext/comm.jar elif test -d $JPATH/lib/ext then fix_comm_jar $JPATH/lib/ext/comm.jar elif test -d $JPATH/lib then fix_comm_jar $JPATH/lib/comm.jar fi # http://www.tolstoy.com/samizdat/sysprops.html case $OS_NAME in Linux) LDFLAGS=$LDFLAGS" -lpthread" #check_kernel_headers check_java_headers CFLAGS=$CFLAGS" -D__need_timespec" case $JAVA_VERSION in 1.1*) CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \ if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp] elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp] fi`":"` if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name RXTXcomm.jar elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name RXTXcomm.jar fi` if test x"$RXTX_PATH" = x;then # We are not using Kaffe #fix_parameters $JPATH/lib/javax.comm.properties check_prefix RXTX_PATH="\$(prefix)/lib/" JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;"; else # Kaffe CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar` echo "Warning! Kaffe's comm.jar does not support rxtx" echo "See INSTALL for details" fi; if test x"$JHOME" = x;then JHOME=$JPATH/"lib" fi ;; *) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` JHOME=$JPATH"/jre/lib/ext" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ;; esac # Cross Compilers #echo ---------------------------- #echo $target_os #echo ---------------------------- case $target_os in linux*) ;; beos*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" EXTENSION="cpp" LDFLAGS=$LDFLAGS" -ldevice" #echo ---------------------------- #echo $target_os #echo ---------------------------- ;; freebsd*) ;; solaris*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" #echo ---------------------------- #echo $target_os #echo ---------------------------- ;; esac ;; *BSD) LDFLAGS=$LDFLAGS" -lc_r" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" case $JAVA_VERSION in 1.1*) check_prefix #fix_parameters $JPATH/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \ if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp] elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp] fi`":"` if [ -d $JPATH/share/kaffe/ ]; then find $JPATH/share/kaffe/ -name RXTXcomm.jar elif [ -d $JPATH/lib/ ]; then find $JPATH/lib/ -name RXTXcomm.jar fi` if test x"$RXTX_PATH" = x;then # We are not using Kaffe #fix_parameters $JPATH/lib/javax.comm.properties check_prefix RXTX_PATH="\$(prefix)/lib/" JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;"; else # Kaffe CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar` echo "Warning! Kaffe's comm.jar does not support rxtx" echo "See INSTALL for details" fi; RXTX_PATH="\$(prefix)/lib" JHOME=$JPATH/"lib" ;; *) #fix_parameters $JPATH/jre/lib/javax.comm.properties CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1` RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"jre/lib/ext" ;; esac ;; Irix*) JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -I/usr/include" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(JPATH)/lib/\$(OS_ARCH)" TARGETLIB="\$(target_triplet)/librxtxSerial.la" ;; # since the os.name is different for UnixWare and OpenUNIX we could use it to # differentiate the lock files See SerialImp.h for comments on the lock files # in SCO. Currently that would be a build time fix though. # FIXME UnixWare|OpenUNIX) LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent" JHOME=$JPATH/"jre/lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1 -D__unixware__" CLASSPATH="-classpath .:\$(TOP):\$(TOP)/src:\$(JPATH)/jre/lib/rt.jar:\$(JPATH)/jre/lib/ext/comm.jar" TARGETLIB="\$(target_triplet)/librxtxSerial.so \ \$(target_triplet)/librxtxParallel.so" COMPILE="\$(CC) \$(INCLUDES) \$(CPPFLAGS) \$(CFLAGS) \$(VERBOSE_IOEXCEPTIONS) -c " LINK="\$(CC) \$(CFLAGS) \$(LDFLAGS)" echo "In UnixWare, CLASSPATH is $CLASSPATH" ;; HP-UX) LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent" CFLAGS=$CFLAGS" -g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" TARGETLIB="\$(target_triplet)/librxtxSerial.la" case $JAVA_VERSION in HP-UX\ Java\ C.01.2*|HP-UX\ Java\ C.01.3*) #fix_parameters $JPATH/jre/lib/javax.comm.properties JHOME=$JPATH"/jre/lib/ext" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/jre/lib/ext/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works. ;; HP-UX\ Java\ C.01.1*) #fix_parameters $JPATH/lib/javax.comm.properties JHOME=$JPATH/"lib" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" ;; *) #fix_parameters $JPATH/lib/javax.comm.properties JHOME=$JPATH"/lib" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" echo WARNING $JAVA_VERSION is untested please email this message to taj@www.linux.org.uk and let me know if it works. ;; esac case $OS_ARCH in PA-RISC) ;; *) ;; esac case $OS_VERSION in B.10.20) ;; *) ;; esac case $JAVA_VENDOR in Hewlett\ Packard\ Co\.) ;; *) ;; esac ;; BeOS) echo WARNING: BeOS support is in RXTX-1.5 JHOME=$JPATH"/share/kaffe" RXTX_PATH="\$(JPATH)/lib/" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/../src:\$(JPATH)/share/kaffe/Klasses.jar:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" TARGETLIB="\$(target_triplet)/librxtxSerial.la" EXTENSION="cpp" LDFLAGS=$LDFLAGS" -ldevice" # sigh, from ltconfig # beos*) # if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then # allow_undefined_flag=unsupported # # Joseph Beckenbach says some releases of gcc # # support --undefined. This deserves some investigation. FIXME LIBTOOL_FIX="sed s/deplibs_check_method=\\\"unknown\\\"/deplibs_check_method=\\\"pass_all\\\"/1 libtool > libtool.tmp; sed s/allow_undefined_flag=\\\"unsupported\\\"/allow_undefined_flag=\\\"supported\\\"/1 libtool.tmp > libtool;rm libtool.tmp;" ;; WIN32) case $JAVA_VERSION in 1.1*) CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" RXTX_PATH="\$(prefix)/lib/" JHOME=$JPATH/"lib" ;; *) CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH" JHOME=$JPATH"/jre/lib/ext" ;; esac if test x$WIN32INCLUDE = x; then echo "We need to know what directory the windows java include files" echo "are located in. Please enter the directory now." echo echo "example /home/jarvi/win32java/include" echo read REPLY WINDOWS_JAVA_INCLUDE="-I$REPLY -I$REPLY/win32" else WINDOWS_JAVA_INCLUDE="-I$WIN32INCLUDE -I$WIN32INCLUDE/win32" fi TARGETLIB="\$(target_triplet)/rxtxSerial.dll \$(target_triplet)/rxtxParallel.dll" echo "$WINDOWS_JAVA_INCLUDE" ;; Mac\ OS\ X) #fix_mac_groups #fix_parameters $JPATH/lib/javax.comm.properties if test $XCODE_SELECT = no; then SDKPATH="/Developer" else SDKPATH=`$XCODE_SELECT -print-path` fi SDK="$SDKPATH/SDKs/MacOSX10.4u.sdk" if test "x$enable_universallib" != xno; then if test -d "/Developer/SDKs/MacOSX10.5.sdk"; then echo "library os.arch... universal (i386 x86_64 ppc)" SDK="$SDKPATH/SDKs/MacOSX10.5.sdk" CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.5 -isysroot $SDK -arch i386 -arch x86_64 -arch ppc" LDFLAGS="$LDFLAGS -isysroot $SDK -arch i386 -arch x86_64 -arch ppc " else if test -d "/Developer/SDKs/MacOSX10.4u.sdk"; then echo "library os.arch... universal (i386 ppc)" CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.4 -isysroot $SDK -arch i386 -arch ppc" LDFLAGS="$LDFLAGS -isysroot $SDK -arch i386 -arch ppc " else echo "Warning: no universal SDK, will not build universal" echo "library os.arch... "${OS_ARCH} fi fi else echo "User disabled building of universal library" echo "library os.arch... "${OS_ARCH} fi GLIBTOOL="\$(SHELL) glibtool" LINK="cc $LDFLAGS -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " OBJECT_EXTENSION="o" LIB_EXTENSION="jnilib" TARGETLIB="\$(target_triplet)/librxtxSerial.jnilib" RXTX_PATH="/usr/lib/java" JHOME=$JPATH"/lib/ext" CFLAGS=$CFLAGS" -bundle" LDFLAGS=$LDFLAGS" -module -framework JavaVM -framework IOKit -framework CoreFoundation" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/ext/RXTXcomm.jar:$CLASSPATH" # email taj@www.linux.org.uk if you know a nicer fix. Needed anymore? # this fix was really old taj 6/05 # LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;" ;; Solaris*) + LDFLAGS=$LDFLAGS" -lpthread" TARGETLIB="\$(target_triplet)/librxtxSerial.la \ \$(target_triplet)/librxtxParallel.la" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" case $JAVA_VERSION in 1.1*) RXTX_PATH="\$(JPATH)/lib/" ;; *) RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" ;; esac ;; OS*2) # Place marker only TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; AIX) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; Compaq\'s\ Digital\ Unix | OSF1 ) LDFLAGS=$LDFLAGS" -lpthread" TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; NetWare*) # Place marker only TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; MPE*) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; #os.name reported "QNX" #java.vendor reported "IBM Corporation" #java.version reported "1.3.0 subset" # #Originally nothing was reported. javac is called j9c and java is called #j9 with the #j9 vm. I created symbolic links temporarily to get by that. Currently #I'm puking when #it tries to jar things up since j9 doesn't ship with a jar tool. #All right. Here is how things stand on porting 2.1 to QNX. (This is were #I stumble and fall) #I decided to try it without any mods initially. It made through #./configure fine except for #finding the java include dir. Since we are using j9, the include dir is #under bin. I set #JAVANATINC to point to it in Makefile and then ran make. J9 then puked #on the -O arg to javac, #so I removed it. Now it is puking on importing java.awt. What is the #best way to filter out/ #isolate the gui pieces since I won't be using them on qnx? QNX) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; *) TARGETLIB="\$(target_triplet)/librxtxSerial.la" RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)" JHOME=$JPATH/"lib" CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1" CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH" ;; esac ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim target!$target$ac_delim target_cpu!$target_cpu$ac_delim target_vendor!$target_vendor$ac_delim target_os!$target_os$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim STRIP!$STRIP$ac_delim CPP!$CPP$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim WINDOWS_JAVA_INCLUDE!$WINDOWS_JAVA_INCLUDE$ac_delim JAVAINCLUDEDIR!$JAVAINCLUDEDIR$ac_delim JAVAINCLUDE!$JAVAINCLUDE$ac_delim JAVANATINC!$JAVANATINC$ac_delim CLASSPATH!$CLASSPATH$ac_delim TOP!$TOP$ac_delim TARGETLIB!$TARGETLIB$ac_delim LDFLAG!$LDFLAG$ac_delim THREAD_FLAG!$THREAD_FLAG$ac_delim OS_NAME!$OS_NAME$ac_delim OS_ARCH!$OS_ARCH$ac_delim OS_VERSION!$OS_VERSION$ac_delim JAVA_VERSION!$JAVA_VERSION$ac_delim JAVA_VENDOR!$JAVA_VENDOR$ac_delim JAVA_HOME!$JAVA_HOME$ac_delim JAVA_LIBRARY_PATH!$JAVA_LIBRARY_PATH$ac_delim JAVA_CLASS_PATH!$JAVA_CLASS_PATH$ac_delim JAVA_CLASS_VERSION!$JAVA_CLASS_VERSION$ac_delim JAVAH_FIX!$JAVAH_FIX$ac_delim JPATH!$JPATH$ac_delim JHOME!$JHOME$ac_delim RXTX_PATH!$RXTX_PATH$ac_delim JAVAH!$JAVAH$ac_delim JAVAC!$JAVAC$ac_delim JAR!$JAR$ac_delim JAVADOC!$JAVADOC$ac_delim EXTENSION!$EXTENSION$ac_delim LIBTOOL_FIX!$LIBTOOL_FIX$ac_delim LINK!$LINK$ac_delim COMPILE!$COMPILE$ac_delim OBJECT_EXTENSION!$OBJECT_EXTENSION$ac_delim LIB_EXTENSION!$LIB_EXTENSION$ac_delim GLIBTOOL!$GLIBTOOL$ac_delim MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$ac_delim XCODE_SELECT!$XCODE_SELECT$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi ################################ END ######################################## # Toys. Gota lovem. #echo $ECHO_N checking java.library.path " " #JAVA_LIBRARY_PATH=`java conftest "java.library.path"` #echo $JAVA_LIBRARY_PATH #echo $ECHO_N checking java.class.version " " #JAVA_CLASS_VERSION=`java conftest "java.class.version"` #echo $JAVA_CLASS_VERSION ./rxtx-2.2pre2/Makefile.mingw320000644000175000017500000002177511113606560016206 0ustar twernertwerner#*------------------------------------------------------------------------- # RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. # RXTX is a native interface to serial ports in java. # Copyright 1997-2008 by Trent Jarvi tjarvi@qbang.org and others who # actually wrote it. See individual source files for more information. # # A copy of the LGPL v 2.1 may be found at # http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is # here for your convenience. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # An executable that contains no derivative of any portion of RXTX, but # is designed to work with RXTX by being dynamically linked with it, # is considered a "work that uses the Library" subject to the terms and # conditions of the GNU Lesser General Public License. # # The following has been added to the RXTX License to remove # any confusion about linking to RXTX. We want to allow in part what # section 5, paragraph 2 of the LGPL does not permit in the special # case of linking over a controlled interface. The intent is to add a # Java Specification Request or standards body defined interface in the # future as another exception but one is not currently available. # # http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface # # As a special exception, the copyright holders of RXTX give you # permission to link RXTX with independent modules that communicate with # RXTX solely through the Sun Microsytems CommAPI interface version 2, # regardless of the license terms of these independent modules, and to copy # and distribute the resulting combined work under terms of your choice, # provided that every copy of the combined work is accompanied by a complete # copy of the source code of RXTX (the version of RXTX used to produce the # combined work), being distributed under the terms of the GNU Lesser General # Public License plus this exception. An independent module is a # module which is not derived from or based on RXTX. # # Note that people who make modified versions of RXTX are not obligated # to grant this special exception for their modified versions; it is # their choice whether to do so. The GNU Lesser General Public License # gives permission to release a modified version without this exception; this # exception also makes it possible to release a modified version which # carries forward this exception. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # All trademarks belong to their respective owners. #-------------------------------------------------------------------------*/ # This Makefile works on windows 98/NT with mingw32 in a DOS shell. # Do not run in MSYS! Last tested on WinXP with MinGW-5.1.4 # (gcc-3.4.5, binutils-2.17.50, mingw32-make-3.81, w32api-3.12). # # SET PATH=c:\mingw\bin;c:\jdk142\bin;C:\WINDOWS\SYSTEM32 # mkdir build-mingw # copy ..\Makefile.mingw32 build-mingw\Makefile # cd build-mingw # REM Edit Makefile settings to change user variables as needed # mingw32-make SHELL=cmd # mingw32-make SHELL=cmd install ###################### # user defined variables ###################### # path to the source code (directory with SerialImp.c) Unix style path SRC=../src # path to the jdk directory that has include, bin, lib, ... Unix style path JDKHOME=D:\Apps\Java\j2sdk1.4.2_17 #path to mingw32 MINGHOME="D:\mingw" # path to install RXTXcomm.jar DOS style path COMMINSTALL="$(JDKHOME)\jre\lib\ext" # path to install the shared libraries DOS style path LIBINSTALL="$(JDKHOME)\jre\bin" # path to the mingw32 libraries (directory with libmingw32.a) DOS style path LIBDIR="$(MINGHOME)\lib" # path to the junit library. Only needed for running the tests. JUNIT_JAR=D:\Apps\junit3.8.2\junit.jar ###################### # End of user defined variables ###################### ###################### # Tools ###################### AS=as CC=gcc LD=ld DLLTOOL=dlltool # this looks like a nice tool but I was not able to get symbols in the dll. DLLWRAP=dllwrap CLASSPATH=-classpath ".;C:\jdk13\lib\RXTXcomm.jar;c:\BlackBox.jar;$(JDKHOME)\lib\classes.zip;$(JDKHOME)\jre\lib\rt.jar" JAVAH=$(JDKHOME)\bin\javah JAR=$(JDKHOME)\bin\jar JAVAC=$(JDKHOME)\bin\javac -source 1.2 -target 1.2 -g #JAVAC=$(JDKHOME)\bin\javac -g JAVA=$(JDKHOME)\bin\java -ea -esa ###################### # Tool Flags ###################### CFLAGS_CYGWIN= -O2 $(INCLUDE) -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -Wall CFLAGS= -O2 $(INCLUDE) -mno-cygwin -DWIN32 -D_JNI_IMPLEMENTATION_ -D __int64="long long" -mno-fp-ret-in-387 -Wall #CFLAGS= -O2 $(INCLUDE) -mno-cygwin -DWIN32 -D_JNI_IMPLEMENTATION_ -D __int64="long long" -mno-fp-ret-in-387 -Wall -D TRENT_IS_HERE_DEBUGGING_ENUMERATION -DTRENT_IS_HERE_DEBUGGING_THREADS INCLUDE= -I c:\matlab6p5/extern/include/ -I . -I $(JDKINCLUDE) -I $(JDKINCLUDE)/win32 -I $(SRC) -I include -I $(MINGINCLUDE) LIBS=-L . -L $(LIBDIR) -LC:/tmp/rxtx5/build -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmoldname -lcrtdll # -lmex # path to the java native interface headers (directory with jni.h) JDKINCLUDE=$(JDKHOME)/include MINGINCLUDE=$(MINGHOME)/include JAVAFILES = $(wildcard $(SRC)/gnu/io/*.java) TESTFILES = $(wildcard $(SRC)/../tests/gnu/io/rxtx/tests/*.java) CFILES=$(wildcard $(SRC)/*.c) $(wildcard $(SRC)/*.cc) TARGETLIBS= rxtxSerial.dll rxtxParallel.dll #TARGETLIBS= rxtxSerial.dll rxtxParallel.dll rxtxZystem.dll DLLOBJECTS= fixup.o SerialImp.o termios.o init.o fuserImp.o PARALLELOBJECTS= ParallelImp.o termios.o init.o all: $(TARGETLIBS) # rebuild rebuild will force everything to be built. rebuild: -rmdir /s /q gnu -del /q RXTXcomm.jar rxtxSerial.* rxtxParallel.* *.o # FIXME make 3.79.1 behaves really strage if we use %.o rules. init.o: $(SRC)/init.cc $(CC) $(CFLAGS) -c $(SRC)/init.cc -o init.o fixup.o: $(SRC)/fixup.c $(CC) $(CFLAGS) -c $(SRC)/$*.c -o fixup.o #ZystemImp.o: config.h # $(CC) $(CFLAGS_CYGWIN) -c $(SRC)/ZystemImp.c -o ZystemImp.o SerialImp.o: $(SRC)/SerialImp.c $(SRC)/SerialImp.h $(SRC)/win32termios.h config.h gnu_io_RXTXPort.h $(CC) $(CFLAGS) -c $(SRC)/SerialImp.c -o SerialImp.o fuserImp.o: $(SRC)/fuserImp.c config.h gnu_io_CommPortIdentifier.h $(CC) $(CFLAGS) -c $(SRC)/fuserImp.c -o fuserImp.o termios.o: $(SRC)/termios.c $(SRC)/win32termios.h config.h $(CC) $(CFLAGS) -c $(SRC)/$*.c -o termios.o ParallelImp.o: $(SRC)/ParallelImp.c $(SRC)/ParallelImp.h $(SRC)/win32termios.h config.h gnu_io_LPRPort.h $(CC) $(CFLAGS) -c $(SRC)/$*.c -o ParallelImp.o # This file is a pain in the rear to generate. If your looking at this you # need to install cygwin. rxtxZystem.dll: RXTXcomm.jar $(DLLOBJECTS) $(SRC)/ZystemImp.c #ZystemImp.o gcc -c -DBUILDING_DLL=1 -D_DLL=1 -I. -Ic:/jdk13/include -Ic:/jdk13/include/win32 -Wall -O2 -D __int64="long long" -o ZystemImp.o $(SRC)/ZystemImp.c dllwrap --verbose --no-default-excludes --export-all-symbols --output-exp Zystem.exp --output-def Zystem.def --add-stdcall-alias --driver-name gcc -o rxtxZystem.dll ZystemImp.o -Wl,-e,__cygwin_noncygwin_dll_entry@12 -s rxtxSerial.dll: RXTXcomm.jar $(DLLOBJECTS) gcc -mno-cygwin -shared -o $@ $(DLLOBJECTS) -lmingw32 -Wl,--kill-at rxtxParallel.dll: $(PARALLELOBJECTS) gcc -mno-cygwin -shared -o $@ $(PARALLELOBJECTS) -lmingw32 -Wl,--kill-at gnu_io_RXTXPort.h gnu_io_CommPortIdentifier.h gnu_io_LPRPort.h gnu_io_RXTXVersion.h: RXTXcomm.jar $(JAVAH) $(CLASSPATH) -jni gnu.io.RXTXPort gnu.io.CommPortIdentifier gnu.io.LPRPort gnu.io.RXTXVersion RXTXcomm.jar: $(JAVAFILES) $(JAVAC) $(CLASSPATH) -d . $(JAVAFILES) $(JAR) -cf RXTXcomm.jar gnu config.h: Makefile echo "#define HAVE_FCNTL_H 1" > config.h echo "#define HAVE_SIGNAL_H 1" >> config.h echo "#define HAVE_SYS_FCNTL_H 1" >> config.h echo "#define HAVE_SYS_FILE_H 1" >> config.h echo "#undef HAVE_SYS_SIGNAL_H" >> config.h echo "#undef HAVE_TERMIOS_H" >> config.h testcp\stamp: RXTXcomm.jar $(TESTFILES) -mkdir testcp $(JAVAC) -classpath RXTXcomm.jar;$(JUNIT_JAR) -d testcp $(TESTFILES) echo > testcp\stamp tests: all testcp\stamp $(JAVA) -classpath RXTXcomm.jar;testcp;$(JUNIT_JAR) gnu.io.rxtx.tests.RXTXTestSuite install: all xcopy /Y RXTXcomm.jar $(COMMINSTALL) @REM xcopy RXTXcomm.jar "e:\matlab~1\java\jarext\commapi\win32" xcopy /Y rxtx*.dll $(LIBINSTALL) @REM xcopy $(TARGETLIBS) "e:\matlab~1\bin\win32" uninstall: del $(COMMINSTALL)\\\RXTXcomm.jar del $(LIBINSTALL)\\\rxtx*.dll clean: -rmdir /s /q gnu -rmdir /s /q testcp -del /Q *.o RXTXcomm.jar rxtxSerial.dll rxtxParallel.dll config.h gnu_io_*.h ./rxtx-2.2pre2/CVS/0000755000175000017500000000000011142441150013672 5ustar twernertwerner./rxtx-2.2pre2/CVS/Template0000644000175000017500000000000011126534440015365 0ustar twernertwerner./rxtx-2.2pre2/CVS/Tag0000644000175000017500000000001711126534452014340 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/CVS/Root0000644000175000017500000000007511126534440014551 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/CVS/Entries0000644000175000017500000000465111142441150015234 0ustar twernertwerner/.cvsignore/1.1.1.1.2.4/Mon Jun 5 15:22:06 2006//Tcommapi-0-0-1 /AUTHORS/1.16.2.20/Sun Nov 18 16:41:02 2007//Tcommapi-0-0-1 /BeOS/1.1.2.1/Fri Oct 6 20:49:19 2000//Tcommapi-0-0-1 /COPYING/1.1.1.1.2.1/Thu Apr 26 05:26:03 2007//Tcommapi-0-0-1 /INSTALL/1.12.2.38/Thu Nov 27 20:01:44 2008//Tcommapi-0-0-1 /Makefile.am/1.21.2.40/Sun Sep 14 21:36:27 2008//Tcommapi-0-0-1 /Makefile.lcc/1.1.2.8/Fri Apr 5 18:21:56 2002//Tcommapi-0-0-1 /Makefile.macosx/1.2.2.9/Thu Apr 26 05:26:03 2007//Tcommapi-0-0-1 /Makefile.mingw32/1.1.2.26/Thu Nov 27 21:13:20 2008//Tcommapi-0-0-1 /Makefile.msvc/1.1.2.4/Thu Nov 27 21:13:20 2008//Tcommapi-0-0-1 /PORTING/1.5.2.7/Thu Nov 27 20:01:44 2008//Tcommapi-0-0-1 /README/1.6.2.9/Thu Apr 26 05:26:03 2007//Tcommapi-0-0-1 /README.IPAQ/1.1.2.1/Tue Jun 11 13:55:01 2002//Tcommapi-0-0-1 /README.OSX/1.1.2.2/Tue Jun 20 09:46:47 2006//Tcommapi-0-0-1 /README.SCO/1.1.2.1/Fri Apr 5 20:32:47 2002//Tcommapi-0-0-1 /RMISecurityManager.html/1.1.2.2/Fri Apr 5 18:21:56 2002//Tcommapi-0-0-1 /SerialPortInstructions.txt/1.1.2.1/Thu Jan 18 23:32:57 2001//Tcommapi-0-0-1 /TODO/1.14.2.16/Fri Apr 5 22:17:35 2002//Tcommapi-0-0-1 /acinclude.m4/1.1.1.1.2.1/Tue Jul 5 08:25:26 2005//Tcommapi-0-0-1 /autogen.sh/1.1.1.1.2.5/Tue Aug 6 21:28:49 2002//Tcommapi-0-0-1 /buildtest/1.1.2.2/Thu Jul 26 20:52:11 2001//Tcommapi-0-0-1 /buildwin32/1.1.2.8/Sun Oct 17 09:48:56 2004//Tcommapi-0-0-1 /config.h.in/1.4.2.10/Mon Oct 11 15:17:44 2004//Tcommapi-0-0-1 /install-japanese.html/1.1/Wed Dec 1 17:16:05 1999//Tcommapi-0-0-1 /install-sh/1.1.1.1/Thu Mar 18 18:18:47 1999//Tcommapi-0-0-1 /ltconfig/1.4.2.3/Thu Aug 16 19:23:32 2001//Tcommapi-0-0-1 /missing/1.1.1.1.2.1/Sun Aug 18 15:36:03 2002//Tcommapi-0-0-1 /mkinstalldirs/1.1.1.1/Thu Mar 18 18:18:47 1999//Tcommapi-0-0-1 /rxtx.spec/1.3.2.4/Tue Mar 23 01:51:34 2004//Tcommapi-0-0-1 /stamp-h.in/1.1.1.1/Thu Mar 18 18:18:47 1999//Tcommapi-0-0-1 D/CNI//// D/MACOSX_IDE//// D/WinCE//// D/contrib//// D/debian//// D/src//// D/tests//// /configure.in/1.35.2.80/Wed Dec 31 02:28:37 2008//Tcommapi-0-0-1 /configure/1.35.2.70/Wed Dec 31 02:29:13 2008//Tcommapi-0-0-1 /Makefile.in/1.24.2.47/Wed Dec 31 02:29:12 2008//Tcommapi-0-0-1 /aclocal.m4/1.6.2.14/Wed Dec 31 02:29:10 2008//Tcommapi-0-0-1 /config.guess/1.4.2.9/Thu Aug 10 15:17:12 2006//Tcommapi-0-0-1 /config.sub/1.4.2.9/Thu Aug 10 15:17:12 2006//Tcommapi-0-0-1 /ltmain.sh/1.4.2.11/Wed Mar 22 00:06:55 2006//Tcommapi-0-0-1 /ChangeLog/1.24.2.63/Thu Feb 5 01:35:30 2009//Tcommapi-0-0-1 ./rxtx-2.2pre2/CVS/Repository0000644000175000017500000000001311126534440015775 0ustar twernertwernerrxtx-devel ./rxtx-2.2pre2/TODO0000644000175000017500000002275207453421177013760 0ustar twernertwernerThis is TODO Tue Nov 13 14:54:06 MST 2001 ---------------------------------------------------------------------------- HIGH PRIORITY TODO's ---------------------------------------------------------------------------- Win32 Frame Parity CD and RI events. TIOCGICOUNT is commented out in win32termios.h to avoid SIG11's. The source of these has not been identified. I could not figure this one out. If BlackBox is run on COM1 and COM2 and you plug in a null modem cable between the ports things blow up. I dont know if variables is on the native side get gc'd or if there is a bad pointer someplace. The next bug is also report using BlackBox on Win32: "Using all of the default settings, if I click auto-transmit it runs for about half a second and then crashes. I've attached the log file it gave. Sometimes it runs a little longer than others. If you enable and disable auto-transmit repeatedly it seems to help it crash faster. This looks like a fairly repeatable way to cause the problem so hopefully debugging would be easier." I'm going to try looking at this tonight. And the final bug report is reported on FreeBSD 4.5 with some in house software: "Okay, now the application runs. I don't get a sig11, but my application freezes when it tries to talk to the modem. The user has access to the modem as minicom works on that modem. This application works well under windows with the JavaComm from Sun." Sat Jul 28 09:55:37 MDT 2001 ---------------------------------------------------------------------------- REMAINING TODOS ---------------------------------------------------------------------------- The following TODO's are known to need work but will not be implmented in the near future. DSR does not work reliably for some people. contrib/DSR-workaround.java contains a workaround the Ken Eisner contributed. If you are able to reproduce the problem and find a fix for RXTX please let the maintainer know. Buffer Size is just a var. No memory is allocated. This was done to duplicate the behavior in the behavior table in javax.comm.CommPort.html. Its not clear to me if the buffers are just mallocs or modem buffers. Any experts there? (its probably refering to fopen()/fread()/fwrite()/fclose() which may or may not be of interest to someone) While looking through the blackdown mail list, it was obvious that some people really want printer support. Here is a chance to put it in themselves. ParallelPort and CommPortIdentifier files are provided so you can start implementing right away without worrying about how automake works. They are not written in stone. If you want to do it differently feel free. The good side is the stuff compiles as is. Write was tested on a printer. Currently (rxtx-1.4-5) sun's jdk (version 1.2.2_006) with native threads is locking up with multiple open()/closes(). Its ugly. The stack trace is useless. No insight from jdb. The green threads are working. I'd suggest avoiding native threads with 1.2.2_006 unless you can figure out whats going wrong. ---------------------------------------------------------------------------- Porting Status. ---------------------------------------------------------------------------- Irix SerialPort support I've heard it works. I didnt get an exact diff back but it should work. rxtx-1.5 has not been tested. Last report was that the library built but there was unsatified link errors when an application was run. The following showed up in the build: /usr/include/standards.h:128: warning: `_NO_POSIX' redifined /usr/include/standars.h:156: warning: `_NO_XOPEN4' redefined ld32: WARING 84: /usr/lib32/libc.so is not used for resolving any symbol *BSD SerialPort support freebsd serial works. kernel specific implementations possibly a buggy event loop. AIX It has not been confirmed that AIX works. I've heard of people building it though WinCE WinCE should work now The following should work with Serial communication. Sometimes breakage slips in. Solaris (x86/Sparc), OpenUnix, UnixWare, Digital Unix, True64, Mac OS X, HP-UX, Win32. If you would like to donate ssh access for any of these for compile tests before release contact taj@www.linux.org.uk. We have Solaris x86 2.6 and 2.8. Also a DEC UDB without an OS. Binaries will be offered if access to build boxes is provided. Win95/98/ME/NT/2K/XP with mingw32 Long story there. Ever put together a few hundred lines of code for fun and then have to support it 4 years later? It started as mentioned with some toy code while playing with cross compilers. The Wayne Roberts provided many improvements. Another big push was made after this. The code should be fairly good now. Some of the builds are hairy. The library was tested (rxtx-1.5-4). The library built and installed using lcc and mingw32(on windows and from linux) The library passed multiple tests after rxtx-1.5-7. files: SerialImp.c termios based JNI code SerialImp.h "" termios.c termios implementation for win32 win32termios.h "" init.c lcc dll support init.cc mingw32 dll support fixup.c mingw32 dll support Makefile.lcc static Makefile for building with lcc Makefile.cc static Makefile for building with mingw32 The following other options are possible but not started use cygwin.dll and release rxtx under the GPL replace SerialImp.c/h with something that does not use termios. win32 API documentation: ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe Microsoft Online Library: http://msdn.microsoft.com/ Serial API doc: http://msdn.microsoft.com/library/techart/msdn_serial.htm BeOS BeOS support is in the early stages. It should read and write bytes See the BeOS documentation for more information. See rxtx-2.1 for details. This effort is mostly abandoned. ---------------------------------------------------------------------------- File specific thoughts ---------------------------------------------------------------------------- RXTXPort.java framing control -?- buffer control -?- look for FIXME ParallelPort support. Needs some code. files: ParallelImp.c stubs A large fraction of the stubs are filled in now. ParallelImp.h LPRPort.java similar to RXTXPort.java + stubs. Printer support is working with simiple print tests. Full support for printing will be put in when 2.4 linux kernels are mainstream. ---------------------------------------------------------------------------- From This point on, You need to use rxtx 1.5. All of this work is being done in the development branch of the cvs archive. cvs checkout -r commapi-0-0-1 rxtx-devel gets the recent work. ---------------------------------------------------------------------------- RS485 Support This is intended to be an rs232->rs485 driver. The basic layout is in place with no native implementation. devices are not coded into RXTXDriver.java see /dev/ttyS0 and gang for examples. Nothing is carved in stone. Changes will probably be needed in several of the files. So far the only significant difference between RS485Imp.c and RXTXImp.c is writeByte and writeArray raise and drop DTR as needed. I've not spent a large amount of time on this. It compiles. I need to find an RS485 device to test this. I could picture enumerating the devices on the bus similar to enumerating ports with 232 comm. It could be possible to build the packets with vendor specific bits. files: RS485.java RS485Port.java RS485PortEvent.java RS485PortEventListener.java I2C Support The basic layout is in place with no native implementation. devices are not coded into RXTXDriver.java see /dev/ttyS0 and gang for examples. Nothing is carved in stone. Changes will probably be needed in several of the files. I want I2C support for a recycling infusion mash system (home brewery) I'm looking at building. Who said there isnt free beer? files: I2C.java I2CPort.java I2CPortEvent.java I2CPortEventListener.java I'll be returning to this after I order the parts for dallas semi. CommPortIdentifier support. Needs some code. This is starting to shape up. Maybe 100 lines from a the full montey. Grep for FIXME for known bad spots. Ownership needs work. BlackBox fires up, finds the ports and read/writes with the rxtx implemented comm.jar. This has actually expanded to a complete comm.jar implementation. Contact the maintainer if you have interest in working on this. While automatic enumeration of ports needs some work you can open specific ports. Plenty of example code can be found in commapi/samples/porting Please don't send in Sun's code. files: CommDriver.java CommPort.java CommPortEnumerator.java CommPortIdentifier.java CommPortOwnershipListener.java SerialPort.java SerialPortEvent.java SerialPortEventListener.java UnsupportedCommOperationException.java NoSuchPortException.java OwnershipEventThread.java ParallelPort.java ParallelPortEvent.java ParallelPortEventListener.java PortInUseException.java ------------------ backwards compatibility for older Linux systems. ------------------ non Linux specific implementations ------------------ allow the library to catch sigint so it can shut down the port properly when sent ------------------ Add more documentation. ------------------ ---------------------------------------------------------------------------- IDEAS ---------------------------------------------------------------------------- Make rxtx apps capable of being spawned from mgetty. Lock file server for multiple users: see src/lfd. ./rxtx-2.2pre2/Makefile.am0000644000175000017500000002417111063301733015304 0ustar twernertwerner########################################################################### # RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. # RXTX is a native interface to serial ports in java. # Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who # actually wrote it. See individual source files for more information. # # A copy of the LGPL v 2.1 may be found at # http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is # here for your convenience. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # An executable that contains no derivative of any portion of RXTX, but # is designed to work with RXTX by being dynamically linked with it, # is considered a "work that uses the Library" subject to the terms and # conditions of the GNU Lesser General Public License. # # The following has been added to the RXTX License to remove # any confusion about linking to RXTX. We want to allow in part what # section 5, paragraph 2 of the LGPL does not permit in the special # case of linking over a controlled interface. The intent is to add a # Java Specification Request or standards body defined interface in the # future as another exception but one is not currently available. # # http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface # # As a special exception, the copyright holders of RXTX give you # permission to link RXTX with independent modules that communicate with # RXTX solely through the Sun Microsytems CommAPI interface version 2, # regardless of the license terms of these independent modules, and to copy # and distribute the resulting combined work under terms of your choice, # provided that every copy of the combined work is accompanied by a complete # copy of the source code of RXTX (the version of RXTX used to produce the # combined work), being distributed under the terms of the GNU Lesser General # Public License plus this exception. An independent module is a # module which is not derived from or based on RXTX. # # Note that people who make modified versions of RXTX are not obligated # to grant this special exception for their modified versions; it is # their choice whether to do so. The GNU Lesser General Public License # gives permission to release a modified version without this exception; this # exception also makes it possible to release a modified version which # carries forward this exception. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # All trademarks belong to their respective owners. ############################################################################ srcdir = @srcdir@ abs_srcdir=$(TOP)/@srcdir@ VPATH = @srcdir@ AUTOMAKE_OPTIONS = foreign INCLUDES= -I$(TOP) -I$(DEST) -I. $(JAVAINCLUDE) $(JAVANATINC) ####################### vars for rxtx-1.4->1.5 transition JARTARGET=RXTXcomm.jar CLASSDIR=gnu.io CLASSTOP=gnu CLASSDEST=gnu/io ####################### tools LIBTOOLC=$(GLIBTOOL) --mode=compile $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(VERBOSE_IOEXCEPTIONS) -c LIBTOOL_INST=$(GLIBTOOL) --mode=install $(INSTALL_PROGRAM) ####################### dirs SPATH = $(abs_srcdir)/src DEST=$(target_triplet) ####################### rules CLASSES = $(patsubst $(SPATH)/gnu/io/%.java,$(TOP)/$(CLASSDEST)/%.class,$(wildcard $(SPATH)/gnu/io/*.java)) javafiles = $(wildcard $(SPATH)/gnu/io/*.java) javahfiles = $(patsubst $(SPATH)/gnu/io/%.java,%,$(wildcard $(SPATH)/gnu/io/*.java)) ####################### CLEANFILES = $(TOP)/*.class $(TOP)/$(CLASSDEST)/*.class $(TOP)/$(JARTARGET) # for SCO builds everything else is currently using lib%.la below # I'm thinking about taking libtool out completely. See also Mac OS X builds. $(target_triplet)/lib%.so: $(SPATH)/%Imp.@EXTENSION@ $(CLASSES) $(COMPILE) $(SPATH)/$*Imp.@EXTENSION@ -o $(TOP)/$(DEST)/$*Imp.o $(LINK) -G -o lib$*.so $(TOP)/$(DEST)/$*Imp.o # compile src/SerialImp.c and similar files into libraries. # LIBTOOL_FIX handles problems encountered on some OS's. See configure.in # If a LIBTOOL_FIX is added be sure to provide a trailing ';' in configure.in $(target_triplet)/librxtx%.@LIB_EXTENSION@: $(SPATH)/%Imp.c $(CLASSES) $(SPATH)/%Imp.h ( \ $(LIBTOOL_FIX) \ cd $(DEST); \ $(LIBTOOLC) $(SPATH)/$*Imp.@EXTENSION@ -o \ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@; \ if [ "$*" = "Serial" ]; then \ $(LIBTOOLC) $(SPATH)/fuserImp.@EXTENSION@ -o \ $(TOP)/$(DEST)/fuserImp.@OBJECT_EXTENSION@; \ @LINK@ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@ \ $(TOP)/$(DEST)/fuserImp.@OBJECT_EXTENSION@; \ else \ @LINK@ $(TOP)/$(DEST)/$*Imp.@OBJECT_EXTENSION@; \ fi; \ ) # compile src/RXTXPort.java and similar files into classes # then create the .jar file $(CLASSES): $(javafiles) $(TOP)/Makefile $(JAVAH_FIX) $(JAVAC) $(javafiles) $(JAVAH) `(for i in $(javahfiles);do \ if grep > /dev/null native.*\( $(SPATH)/gnu/io/$$i.java; then \ echo $(CLASSDIR).$$i; \ fi; \ done)` $(JAR) cf $(JARTARGET) $(CLASSTOP)/* # install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its # proper location install: all @$(LIBTOOL_INST) \ `for i in $(TARGETLIB);do \ if [ -f $$i ];then \ echo $$i; \ fi; \ done` $(RXTX_PATH) $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/ clean-generic: rm -rf $(DEST) $(TOP)/$(CLASSTOP) -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) all: $(TARGETLIB) # create the javadoc files. docs: $(CLASSES) $(JAVADOC) $(javafiles) ################ WIN32 CrossCompiling from here down ####################### $(DEST)/rxtxSerial.dll: $(CLASSES) $(TOP)/Makefile gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/SerialImp.c -o $(DEST)/SerialImp.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/termios.c -o $(DEST)/termios.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/fixup.c -o $(DEST)/fixup.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/init.cc -o $(DEST)/init.o ld --base-file $(DEST)/Serial.base --dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base echo EXPORTS >$(DEST)/Serial.def;for i in `nm $(DEST)/rxtxSerial.dll | grep "T _Java"|cut -b 13-`;do echo -n $$i|sed s#@.*##;echo "="$$i;done >> $(DEST)/Serial.def dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxSerial.dll --def $(DEST)/Serial.def --base-file $(DEST)/Serial.base --output-exp $(DEST)/Serial.exp ld --base-file $(DEST)/Serial.base $(DEST)/Serial.exp -dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxSerial.dll --def $(DEST)/Serial.def --base-file $(DEST)/Serial.base --output-exp $(DEST)/Serial.exp ld $(DEST)/Serial.exp -dll -o $(DEST)/rxtxSerial.dll $(DEST)/termios.o $(DEST)/SerialImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Serial.base $(DEST)/rxtxParallel.dll: $(CLASSES) $(TOP)/Makefile gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/ParallelImp.c -o $(DEST)/ParallelImp.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/termios.c -o $(DEST)/termios.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/fixup.c -o $(DEST)/fixup.o gcc -DWIN32 -D __int64="long long" -mno-fp-ret-in-387 -b$(target_alias) -I $(TOP) -I $(DEST) -I . $(WINDOWS_JAVA_INCLUDE) -I $(SPATH) -Wall -c $(SPATH)/init.cc -o $(DEST)/init.o ld --base-file $(DEST)/Parallel.base --dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base echo EXPORTS >$(DEST)/Parallel.def;for i in `nm $(DEST)/rxtxParallel.dll | grep "T _Java"|cut -b 13-`;do echo -n $$i|sed s#@.*##;echo "="$$i;done >> $(DEST)/Parallel.def dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxParallel.dll --def $(DEST)/Parallel.def --base-file $(DEST)/Parallel.base --output-exp $(DEST)/Parallel.exp ld --base-file $(DEST)/Parallel.base $(DEST)/Parallel.exp -dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base dlltool -b$(DEST) --as=as --dllname $(DEST)/rxtxParallel.dll --def $(DEST)/Parallel.def --base-file $(DEST)/Parallel.base --output-exp $(DEST)/Parallel.exp ld $(DEST)/Parallel.exp -dll -o $(DEST)/rxtxParallel.dll $(DEST)/termios.o $(DEST)/ParallelImp.o $(DEST)/fixup.o $(DEST)/init.o -luser32 -lgdi32 -lcomdlg32 -lkernel32 -ladvapi32 -lmingw32 -lmoldname -lcrtdll -e _dll_entry@12 --base-file $(DEST)/Parallel.base ./rxtx-2.2pre2/README.OSX0000644000175000017500000000562110445742007014605 0ustar twernertwerner$Id: README.OSX,v 1.1.2.2 2006-06-20 09:46:47 jarvi Exp $ For uptodate information about RXTX goto http://www.rxtx.org ------------------------ Installation on MacOSX ----------------------- WARNING: Please read this section until the end. ---- The unsafe way of using RXTX on OS X: ---- RXTX can be installed by putting the files libSerial.jnilib RXTXcomm.jar into the folder /Library/Java/Extensions This is NOT RECOMMENDED as it creates versioning conflicts among applications. However you may be forced to install it this way if an application was written for Windows or Linux, requires RXTX and you are not able to change its starter. ---- The safe way of using RXTX on OS X: ---- Make sure that you have no (older) version of RXTX installed in /Library/Java/Extensions /System/Library/Java/Extensions /usr/lib/java Put libSerial.jnilib in the directory of the application (the JavaVM will find it there). Add RXTXComm.jar to the application classpath or include the classes in the application jar. (Some applications already include the RXTX classes in their application jar, in which case only the file libSerial.jnilib is required). ---- History ---- Up to version 2.0.7/2.1.7 RXTX used lockfiles on MacOSX. The creation of lockfiles required special permissions for the user executing an application based on RXTX. To simplify the setup RXTX came with an installer modifying group permissions and installing RXTX in the global location /Library/Java/Extensions. However this was prune to versioning conflicts and is no longer recommended. --------------------- Build instructions for OSX XCode ------------------- contributed by Joachim Buechse original version by Dmitry Markman System requirements for building: MacOSX 10.4 XCode 2.3 open MACOSX_IDE/XCode/LibSerialUniversal.xcodeproj choose libSerial.jnilib target build After the build you will find RXTXcomm.jar and libSerial.jnilib files in the directory build/Development. In case you can't find RXTXcomm.jar build the RXTXcomm target manually. In case of (serious) problems feel free to contact joachim@buechse.de . --------------------- Gnu Tool Builds ----------------------- If you are going to try building rxtx on Mac OS X, we recommend you use rxtx 1.5. 1.4 would require substantial modification to the Makefile to get the build to work. Mac OS X has some issues with libtool at this time. This makes building rxtx much more difficult. The current solution is to take an automatically generated Makefile and then manually edit it. One such Makefile is provided to help build rxtx. The file will probably need to be edited to match your system configuration. If you would like to add more information for other Mac OS X users please email taj@www.linux.org.uk. We are sorry the build process is not easier. A great deal of effort was put into trying to automate the builds without luck. ./rxtx-2.2pre2/contrib/0000755000175000017500000000000011126534456014715 5ustar twernertwerner./rxtx-2.2pre2/contrib/SimpleSnuV1.java0000644000175000017500000001110507443223760017704 0ustar twernertwerner/* * This class is one end of a test pair of programs * SimpleRead.class is the other end. * To run the test requires two com ports * and a null modem cable. * Start SimpleSnuV1 and then run SimpleRead * on the other machine/com port. * This code is supplied for demonstration purposes only. * You are free to use it as you please. */ import java.io.*; import java.util.*; import gnu.io.*; public class SimpleSnuV1 implements Runnable, SerialPortEventListener { static CommPortIdentifier portId; static Enumeration portList; InputStream inputStream; OutputStream outputStream; SerialPort serialPort; Thread readThread; int numBytes = 0; String num = "021891383"; String rst = "atz"; String dial ="atd"; String outData = ""; String outDataBuff = ""; boolean running = true; boolean process = true; boolean waitForInput = true; public static void main(String[] args) { if (args.length < 1) { System.out.print("SimpleSnuV1.class /dev/ttyxx\n"); System.exit(-1); } portList = CommPortIdentifier.getPortIdentifiers(); while (portList.hasMoreElements()) { portId = (CommPortIdentifier) portList.nextElement(); if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { if (portId.getName().equals(args[0])) { SimpleSnuV1 reader = new SimpleSnuV1(); } } } } public SimpleSnuV1() { try { serialPort = (SerialPort) portId.open("SimpleSnu", 2000); } catch (PortInUseException e) {} try { inputStream = serialPort.getInputStream(); outputStream = serialPort.getOutputStream(); } catch (IOException e) {} try { serialPort.setSerialPortParams(19200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); } catch (UnsupportedCommOperationException e) {} byte[] readBuffer = new byte[20]; try { serialPort.addEventListener(this); } catch (TooManyListenersException e) { System.out.print("To Many Event Listeners\n"); System.exit(-1); } serialPort.notifyOnDataAvailable(true); readThread = new Thread(this); readThread.start(); } public void run() { int resetCount = 0; int numBytes = 0; byte[] readBuffer = new byte[20]; String sReadBuff = ""; boolean connected = false; while (running) { if (!connected) { try { while (inputStream.available() > 0) { numBytes = inputStream.read(readBuffer); String tmpR = new String(readBuffer); sReadBuff += tmpR.substring(0, numBytes); } } catch (IOException e) { System.exit(1); } if (!sReadBuff.equals("")) { System.out.print(sReadBuff + "\n"); } else { } int pos = 0; if ((pos = sReadBuff.indexOf("atz")) != -1) { try { Thread.sleep(1000); } catch (InterruptedException e) {} try { outputStream.write(new String("OK").getBytes()); outputStream.write((byte)0x0D); outputStream.write((byte)0x0A); System.out.print("OK Sent\n"); } catch (IOException e) { System.exit(1); } sReadBuff = ""; } else if ((pos = sReadBuff.indexOf("atd")) != -1) { sReadBuff = ""; try { Thread.sleep(1000); } catch (InterruptedException e) {} try { outputStream.write(new String("CONNECT 9600").getBytes()); outputStream.write((byte)0x0D); outputStream.write((byte)0x0A); // connected = true; } catch (IOException e) { System.exit(1); } try { Thread.sleep(2000); } catch (InterruptedException e) {} } } else { } try { Thread.sleep(100); } catch (InterruptedException e) {} } System.out.print("Normal Exit...\n"); } public void serialEvent(SerialPortEvent event) { // try { // Thread.sleep(500); // } catch (InterruptedException e) {} switch(event.getEventType()) { case SerialPortEvent.BI: System.out.print("BI\n"); break; case SerialPortEvent.OE: System.out.print("OE\n"); break; case SerialPortEvent.FE: System.out.print("FE\n"); break; case SerialPortEvent.PE: System.out.print("PE\n"); break; case SerialPortEvent.CD: System.out.print("CD\n"); break; case SerialPortEvent.CTS: System.out.print("CTS\n"); break; case SerialPortEvent.DSR: System.out.print("DSR\n"); break; case SerialPortEvent.RI: System.out.print("RI\n"); break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: System.out.print("Out Buff Empty\n"); break; case SerialPortEvent.DATA_AVAILABLE: // waitForInput = false; System.out.print("Data Available\n"); break; } } } ./rxtx-2.2pre2/contrib/testSerial.c0000644000175000017500000001025110614033754017173 0ustar twernertwerner/*------------------------------------------------------------------------- | RXTX License v 2.1 - LGPL v 2.1 + Linking Over Controlled Interface. | RXTX is a native interface to serial ports in java. | Copyright 1997-2007 by Trent Jarvi tjarvi@qbang.org and others who | actually wrote it. See individual source files for more information. | | A copy of the LGPL v 2.1 may be found at | http://www.gnu.org/licenses/lgpl.txt on March 4th 2007. A copy is | here for your convenience. | | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public | License as published by the Free Software Foundation; either | version 2.1 of the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | An executable that contains no derivative of any portion of RXTX, but | is designed to work with RXTX by being dynamically linked with it, | is considered a "work that uses the Library" subject to the terms and | conditions of the GNU Lesser General Public License. | | The following has been added to the RXTX License to remove | any confusion about linking to RXTX. We want to allow in part what | section 5, paragraph 2 of the LGPL does not permit in the special | case of linking over a controlled interface. The intent is to add a | Java Specification Request or standards body defined interface in the | future as another exception but one is not currently available. | | http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface | | As a special exception, the copyright holders of RXTX give you | permission to link RXTX with independent modules that communicate with | RXTX solely through the Sun Microsytems CommAPI interface version 2, | regardless of the license terms of these independent modules, and to copy | and distribute the resulting combined work under terms of your choice, | provided that every copy of the combined work is accompanied by a complete | copy of the source code of RXTX (the version of RXTX used to produce the | combined work), being distributed under the terms of the GNU Lesser General | Public License plus this exception. An independent module is a | module which is not derived from or based on RXTX. | | Note that people who make modified versions of RXTX are not obligated | to grant this special exception for their modified versions; it is | their choice whether to do so. The GNU Lesser General Public License | gives permission to release a modified version without this exception; this | exception also makes it possible to release a modified version which | carries forward this exception. | | You should have received a copy of the GNU Lesser General Public | License along with this library; if not, write to the Free | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | All trademarks belong to their respective owners. --------------------------------------------------------------------------*/ #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int i, fd ; struct termios ttyset; if (argc < 1 ) { printf("usage ./testSerial /dev/ttyS0\n"); exit(1); } fd = open (argv[1], O_RDWR | O_NOCTTY | O_NONBLOCK ); // wait for minicom/rxtx to start and user to press a key // You can set up the port in minicom/rxtx now. Dont // exit minicom until you have hit a key to continue. fgetc(stdin); // get the attributes. tcgetattr( fd, &ttyset ); /* print the attributes */ fprintf(stderr, "c_iflag=%#x\n", ttyset.c_iflag); fprintf(stderr, "c_lflag=%#x\n", ttyset.c_lflag); fprintf(stderr, "c_oflag=%#x\n", ttyset.c_oflag); fprintf(stderr, "c_cflag=%#x\n", ttyset.c_cflag); fprintf(stderr, "c_cc[]: "); for(i=0; imy TestMonitorThread"); TestMonitorThread thisTestMonitorThread = new TestMonitorThread(); System.out.println("tmp ; mv tmp {} \; for i in `find . -name Root`; do cat $i | sed s/$1/$2/ > tmp; mv tmp $i; done ./rxtx-2.2pre2/contrib/MAcOSX/0000755000175000017500000000000011126534456015747 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/0000755000175000017500000000000011126534464020431 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/AuthKit.jar0000755000175000017500000015637110407447142022515 0ustar twernertwernerPK^ / META-INF/ハPKPK^ /META-INF/MANIFEST.MFチ1 タ揆?旭l筱ォ{#5HKl朔゙@BQ-)コ9Lヨャ7C驪ョekvィ葫"ムチ-ュjP.a#=;n|カフ/YcヘPKMコモ醜\PK ^ /app/PK ^ / app/authkit/PK ^ /app/authkit/envoy/PK^ /app/authkit/envoy/Envoy.classオW{|Sユ椦47Mo 挽R゙iメ4(メIa(4hゥTクmoK ノ酵eホ*:uPt:-(崑$-TEンヲホケ6~ソヤヘラ讎nメ4Mヒリ?モ゚=ソs~ラ99ノァa[悍ク淬2>k」ス<ト灣 カムル#2mX6蒹 励チ|:{ cp价|キ竏G哇 _ト6LナqI0ナ フp締xd楪モシ:ナ{マ0,+{ホセト{_約+楾a^`ォ セ&4_dヨッロセチ瀑゚,タ|狭ソヘ;鯨邑゚c}?`Cッリp!~dナ少ッイ?オ稟2~.2~iCCハ_15ヌ72~+縢6ャ豌ュツ咎2hb蔆2bC3エ箟}挫 枋7ャキ祟oルミチto[ハ@aロヨ5ュシm踊ス~サoォコ]ユpッァ5 кム =境痊サLhD4格SヒレKィoy"セEハラMhトQic[ =リ・ニz咾}溝メ抜i Gqメァゥ!:ホ 5'籐-$m臀 オゥアmDィS 鞍フVk\'bEdS[廓゚ヲ豹_c邸Ifテストラ顆 Lフl5xW57アSV屯4ッkkYラfナ{ル<^ハフチソ&:H戒7E.ウンレヨワbナァjフホRノ詩cc^ンN+n vア/ヨRョカゥ戡レア, e&モノレホHミ5ユ%ゥmKT゚チ 09ユ"jT纒ム」!蔦Crb[ 9ツヅィ梭p宥{)ヒメメ@ミ 'BZ4柄ャvュ+ョG洛@A彭オ k幗hヒネzKzオィ伜ィ>{蚰&チTヘノamGje汽グ・ケタヲ頗Kャ`侘HE6ン鏗+ヲkミza開a:ァニf*シaoク寰m0mニ袰ネ伯P0拮ユH$罸゙ョyX驚Qトャb俥:シ!PqfヨF賚gメ欽@戦kユム.「掴ヒ鳩l「lQEqハXyュo*ラ2リ江 ョテ叶чZc慥S(E棆(リIツ)|Zチmフ};ゼpウ.tキ。、-祭vj哥縄ン叶U寛E(「青夕Gd0)リュ  nタE僧ク7ノ「X%bb;リ;ラb"JナdELSQ&ヲQユ郊ミ jスj¬>メ"ゥメz剖+b:ヒゥ`Kr3ュJ1Cチ攤KU釜)f)bカ魯e1~イ1mシ櫺qフn1WチユクFチ=シキgp+搖yクJタ3ワ%オiyオ ̄、ヨオ+オp゚`0ァオャMjWUskユzrE衝ユ脆!&Y!オK常ャ%ョ贍9イ*{菖$U壗スRSケI=cI壁0ロ3樂 4(韃tgクリFwkカ=FmエツロR"熹U+ツ),ヤnテ籘hTヒL鏗D膏Sイrモレ占鱆[G芝HzEヤ 8G晩udK>w'wx=ミ1ナナw楓UYqmg<テ登`Zクサ>ンタ騏V5wn・鶲マ##)<$メBメ"オ4ウ螢 カ/ラ(&扁紀拠fmgo)1Cz セ*#ゥォ]ロレ「j6r鱠君ノ゙ユ鯆悔 懶; ヌ上=@ヲ晒lェ鰊ム逓Rc)Tタ1&MEgノアキqiA&b劵 G*ーK.聢s ニ5ヨ、G5oFン、1ユBv根x荀 LゥH」ユcM$)殱)2族hW$T茹竺XキMホィ葎=g?^Rzムリ頁)?メrセuコuJ\マ}キd /ル]TcdォL/? ∋)0,1「オ」ムxsr回%ワ晁メ2誉ンxoヲウス弦ァメンBコ拵タ^瑳a゙YLハЭ竡*ゥムb8n永q9醍リリ`4 m4GオH+ト爍サタhハノ菰!cハゥ-マ|喩t)fメマ依」 峅*a&゙刔O、コ5 Z絳ウ明fセN搾6綣`゚zツCYx;矣,\'<着_Ax4 マツoマツwミNテ山Yリ]tQツvモセ卆uヌ |ヌ 5 チヤ1ウ゚戰槿刋 ャ(サ腸ケk(尸6薯+ェ0嫖 \IrホB5訂:攵シE1z岻y鞐%ハ狢ソ眸8H灸8%噺ヌIミ 6ァ8篠」├dQ ハa肪ネァッ=ヘキ傀$鮫."\ j@ロ;;+fAウQ$訌著K'ラfヤ/Jォ檗b企ソトI`ツqリsE,YォXア年vg"晉ムキヒ>ム>i・M.モ &'1ナ?┼ョァPVov嚴c壞|X鑼吏)「モヒフITナlァモハォdェ'0m/フGエi゙L,!ーφ#Fユ。趨ォノ &&Lヘ)ZP-ヨQ俚アXt`娩ソリfq:隰Spyミォ3m8G}マ'劉X瘡xヌVノg攵」a壼rレg_kノィr畋,$fラ嵳フT8sツメ{ 2ラ6ユウ+!モr7・縻リナ ({P)nツレs魚Iス9Sコト*ツlト3Dコ*。p:8e滂fS]棠ホBユ、゚_cJツノ念チU/ラ繁Iヤ8ヒノ$キ{オIx榁6uy・y{ゥ芟弌[f.) O<,1」5イTgqイ櫓Qヤ浄zAXハャァウx蝸ZQVjI磴Tト鵄・姪ョ jオKqO&[1獄()Q]タq?ヲP!ニ\懌絵)酪q kィ;レD池9ヘ$tマ育q踊トi<$^ト聹% 蒲)倖$N'ー"暎<ハキHニ o蓋咽 ゥ鏡ワa崘>ョ#9ュトヤ嗤罸F==b<%>Rア,U |ョ疆\x、ゥ謾゚I Z4咫+モエ゚劔cT硬IハC嬰チDゥ紐fJ%/M$e淆'ヌqpe祉メyDJ?」ニ!謦.&メロ2cツナホcク8Vメ低ヘUメ*ネメjI再|{ツyニVu a59ロ8アfセモ敦4 ツ+ャ、6sア゚カ茂8+<ァ掛ョ!4萄G湛ヒ-廛kmIャsルロ道w・ヘネ典フ:1W鵤オヤM驥VZz佃ノ[タa乱rn_O jウオ)-nC宮-!メ& :\R 谷?マメZョLkYI6>盾!t椙 ァF+ン老圻+B&ヲ 刺曩*Jツユ(粍ナ$i7iソ踪ラc其K・アBコ4゚導イ'レ痛「ノソq ケ_1祈ネヨニdリクKGWf6ャ纖鎧植キチ"ン餒*゙サネィサ1]コUメ>フ賑c冲/シメ}クX:@ムユエa率 ;/Weルゥィ8ゥdミ苒Qォ<鎧1,逃M~Hオケt4擘モ{ノ}PK逮カ%レ ラPK^ /app/authkit/envoy/Task.classE蔀チ@ESTIトハ7エ fgモ附D"ア`ナjヤィ。:馴L>ヘツ(1ン6鈑゙シw|!タQ>aィ:コLTkgオウ NvП sR襷佛ユラシフルニY跌*/r'ハクウ遶エlゥ芸p+U&KB」慄トBmyu6cョN鳩コウニ%9テEdカK エミLォォ。 xvミ/ル韋}PKdャトエユPK^ /app/authkit/envoy/Tool.class氷 |蝠ソア、ヒ#J"$rHDY6I  |;Cッア2靦r|゚窖セ 'eシs/lシ瓲/~袷T#/ハe<,テ_ノイ蓋シィニ ^゙ラ2D毟7[ ァ碌5シナ"ユ稟xMラUシ。粡^ヌ*ノ及xAナ?{Q捷/2ォ鍋ソォ/DPS6ソトロ^4譱Uシ#マ_ノョ垣k/謀鉐i_ ソ)釋゚jx_O例wnd4 ソW:bャ"*knラH選S適%キF/.ヨI柊藤\#ックQFコF粉^・QオF5M等マKモi曜if戳ウトナ/ヒ媽」モ5坏Q戳sリ4W・y^ x。zル>_゙ホPiCエPE"LdXャQ」<*5iツ「fZT:K朏TZ鵙囑キT:[ク#テr>&マs5:O」ーJ+シリK輒t[E+エJ」 Yaj褸ムj!^#テZ ヌTZ躬y 濟ナ橈Z・玖b鞭ョjレ/7v-1#>ヤメ笛F紊+o賺kャ撤ン惚晞痿3ルkヌxE5w'bF4N5yk、オK(憚橦」hj%。ャAヲjツLZノaツフヒJヒ #冀チ m2%懲扼$,ロNZシ?オpf eKウS肆ョヨtj;a~テ鬻。リPレ與-/姶Z苴阜^i、「V|。メ豁介、9ンmツ・ヤ,!ゥ5nナ#踰、1フアxニリ彬qヨ錬粛キリー^#9dイノ %フj+ヘサz8mァV岶夏黎|@箜ィTKェオnwトL庵6。fリリaョ具エャア8ロ|} Fノ e・TヤKXチルタヒンッハ拙低恍餤4ヨイル研ャ腮犯ィen蹇5ャ8S tナ'!Rヌ鎖スε1ゥtメワgVコヨホハ算-mD:ナフLcxナトbW:UX蝣ッf!vd{フLx49<o`CSI#nヌ卦6トヲmCヲ党ォKbc{}2i7ァ「]`羽v_ホ撰2「ゥVメ磊チハ3hDc柱チメuf[ケ腰!"H$ュアb)ヘ0=ミモロユホ1 OEisァRlAgMア&:= &抒Rソ1鞍「頚+-。uzPフユヨ鬘N]=、モ擁婬仆tテq?」;ホユ唆ハ ゙X・C:="E|ヲ蝉巨ヶ9ヲV=vハネZi>^j'ョnQワ啜!&-K,ウ」ホ=Kロ 23ノ皰Ndゥ己酌、1 Muc9ヲ&Eu5+gフホヒト、d/マーuヲtOMゥWフWlヒlnナOUKYルnJv.9ウ-]。cェ,フ懈kV~ッ。ツ _:TR渺盖シト饋ェ1聾、腰]莟士ケ笂]uハヌ出/扼?ソOクミル },_@レ穽ハKTァ:hB/轎リ逡V2fJq=jr-ウケ8ラ*清娩テ n゚ォ&mミm3オム臂Y郢カノフ鉛amヤYCCR_*\),5゚^J]U& +[蝟ツ1nキュX:efyCチ末5gWDオ3唇["ノkセ/メ S%懌 ヘo椈ゥ,現aUェ6ェ;緻g5キニ境I,ォ牀ゥ:ロ]l禪VモkeW規\J゙q軍タf''rル 絶ケJ ャ空嵶゚LkK~pオ;5隷ンa%ヘワ]ァセタ薬oンN6g9w 惧ヒ2セW肥キ墓エヘ+譽゙-睥剴j仆サミ・ニW」y池;ンo*ミフカオJ0b・)eッ萩ラ gcホ6ロ>芭yラHR゙lトメfQ,Q]滑」ヤ蜑k&>ヒ帝 ・喝ハルrチGネキ涕カカナ苛サ窿w劉a;?ィAクwy?3P樞wツン;s<=ル'Pw、」騙gc(ケ纔ヌ酒カ髦ヒユホヴq嵳bWX膂XリOォシ3ヲxg祟e<~Syル>囚セ牾Qフ,[A XZvン'碯サル3Gyネホ`チ>ユコど炒ヨfaリCィ送gアィ=トリ83xdツFxy%出ウ&ー7x隣゚ニルx犢XアソcュR盲ェ%隷q4ーュ菌テ4Nb鍍hT雨ェ簣鞘+ケヘLYラ連0X7ヲホミpモォリWニコz フムxi.ェhjh>y #ャs」 q轆緝 爾・捍ヨィヌ沈<猪2遅兀 ヲQ,;ホウウ笈ホ族lハ^ホG1}鉞IホdTcナ マチゥ,W冒ケェ/莉pュa痢ウkオoヘCSャミ槁Q5a胙ンヌテルキ ュ?ツセ87?ッ0tョヘセZfjナ9エ=エ;i=n「愚]ぅヤ曳ィ ッR7゙郊カ瀲゙b>Kx|_ヘナf桾ウΕT9視|召クイFe@ユFソ* オ◆「ロ%~雰_ 3キ゚鄭サ_ヘ/ャ槌kE、\4タ─「ィァ套J熙Xソ=ホナ壌ラ薤j*~ク弁ィP鷄テ~%タ|ヌt趣ロ,キぁ2爭セwユア[wネQ ユe[ェu琵 ラコdチ]ホ.ヤコjト=羃_bWФIラ莎ーテZル4オレrYKネロ8メ}苞コm ;Gアォgーw_91卮ヲシ"餉0ケSル襟9cヨcウ.ef(。NiCスイg()Xェt稷薐ャT6e36)[q决Lナタ^%Ly~2ネニ羯ネ験$ラ46嬲2リ特怖+セマdp弗唄ア躍>+uヤ:9タ臙{5#剽ウMF免オfpヘ←eZメナV_7Aホ>9イER)吻Qゥナiハュl蚓X、g ト蚣lQAZケo H榁ウケ`^マチ{コ8跨釧'Q!ミコ_コ堪X|C淪faリUw詐6w蜊Bcc委Rサッフ篌tSQQPG9鯡#hVcヌ ャ< 'ムゥf子#廼K@ハwウモ敘寰ュ蔕c思nm蝨Q蕃+ンヒ=[リ]カワ3ヲZマRWa>;ロ、v Kヘン遑ZOテ莊qワメ鉚.饉ェ贇,ュunン6丸3ク」rn6。Θ憫レ7筑'芦Dヒm8ニ@Rk!Vh!゙むツハカaPbー西嗤aィyラNスd逾2ミhヘゥッtフ`愈"ミウ乂\スウS S$@ 急E勘マY雫%禹ヲネmイPKs閲vアPK^ /app/authkit/test/AuthTest.classュW |Sユ6ノ -粕 ヨ匁ムゥ%B Hエ-クV;タMoロロ4&5ケAp7{マヌワK:[q:lKォ8@ァlsケレワ悳マmnモ=ヤ)キ體X[y|轆マ8釛G_ソJツエ 蘂[<ク[=hニ6 WJN r*nw緞鱇-Lq匝ッ;<ク捺>痺>腆%>\鐘」ョ。erレnヤ1NトMメ|\?眸'e)7>-嫺イS喙、!クマ謂ュイvロフツ>A@T4 wz9貞マヒ n金n7 ,l抱「wサq秋|IテスセチR 歓Bワ'」]メ|Eヲ__妬^F >ン/ヘ~Yx` u績A|8、瓣 )ク%R メレE+8モ]ヲツエヲDハlノv6」#I丸2ウヨ栢ユ」ーヲカ)梃醂L"Uo栖9aユヒJ:萄メー鰆メヲMニ」>i、糢ュル祠7MseテZラヲh#rLナ喚q嶇!p橘恐Kュ $カ@Q3kfウ\キCヲ哲P忖徨液},ユ竜(jスカィgユヨNウOxイワ ラヨ麓ロメ 'ニ噌V,ヌAルリskGー0Zゥa,oBωcn編Uッ.Jレ「 ーけXfsk_メH0ウニrエdメWネ 1莖ヨt.モiョNネ渦.nnc}]ヌZャ+劈ゥ:ニ#&セ・"Pz甓⊆(eBevCG} '盾%燮FrE&橄5Sヨァt}Y8*h侮リ聟x簸ぇp「キO }G。~ExフZリ゙{x・叭カ"?セォ縵セ熈 s'マ6:x懽L」k・iネチUYトゥ:~kxLヌOD7.jq猿溪qoヌ;fN恵CョサロフH霖'、而4ReXUB剏C!使 ソトウカd 。リJ掾ソツウ:榲ッY テI&1S@::aoJjkHT4FヌoアNヌィ釈Tモ曵ァ禧)ニゥJwWul耋オQ側絨x^チY#(JェH#1ニネ魯g嚴Eカ6g香カ匁/"ソIヌ_ナ#尅レ :&モソ ミ"^メOK[X ?xYヌ+2zUFナk ~」ッo$*rゥユgソBナh(ヨvl2;ヌ纏キe-度ヒx\ョヒ、フ厳ヘ>カ璽鼡椢i$剽迪d6O・3f」5゚ホ7=4SqノGセbャノ「ラiォモFi巧#ヒS絋ユbメヨD(アN儻トRYヒHuRjFX!マ訴鑓ノネZヒz、hム?,袖ノUフ&33|チ.リ6キZォ懲ワE書mヲ ┏ テkヲ2ヨ埼h ユュzヌゾiXワX}+iv詩ン,拜 」0bオ,曽アナH$^n&5'サ婀サamn+=廨紊2Jルeョ#呵蛍ムk介兮。ョj^ラカ^眛ノフ="FO w&モ懲モィコユフ老S!/rf庁妨nLーヌ&チ2,ヒ囲ホ;ffOn閘9ーコ臍I2[オ]魘 |dGq碧 タキ椡ョ %=.$-<2Zニワbfト ウ矯}mNm$ォ・q汗ク情d.+オnfーi}C祈鉞カ!%8ォ#bムナ史~zエ@シPrオウス正豚レウnj/ oeイ!カュh+ー゙'ワ[シ%Aoノ JpD・g?ヤ|諮マyZ慙絢ョAhD5ソニムァ9C8エwハ ケ |2zwアoリラp済:B yフ:ホティ;シUyT拿n鈕dNB莚ノc>轌,リ3bg.4カwメサ在サ闍サニ{iR\Vー:硫#ーミ{ ラ1オゥオネィ怩F蒲ハ,j&「帋 #\モ.ヤ=\x逸ポ{>D賑v「ォ&ェ篤oT-X@ーチノ#エs:貪nLGuヤケ.ソ`ヤE舟'Shワ袍kon:#f??0#Xツリヤy賢3} 謎~囿マ浅Yr>>ヌI.xgー{{ヒ ゥKタXエ磆テセd〃嶮ス%\8「KpニAルOドツム-認Xトe!欸レカCS>MJ%ルO;ャ誂リ講ー}態鈴ツWXッb)^テrシ遮Jk。ルヌンvm窮m='/`,%j蛄呀ウAb[2!ミハc$ "、J^#ハ.]p `ルホ室ョ`ネ19マサ8W0t*オSヲvlノwU ッ噤ケハ5 ユ,悲カキゥ`Ipレg0ア油惺フ鉚;嬶トYQq\ュ4粽Gュマ駸ン ヘ迪hL穢エW$渠7゚'C^Qv8ャノcロョER蜑イk迪Aゥソe謐%ヌー; Tpgワチ]ヌp憮@qfサ#8ハ切ヘ旻')ニス-g~ホサ壅ェ`嗹3.,)ユuメ+サ俣I(ナ 爍 祷「J|傷It-+佝狽Gク'箜フ2ト騁b3'hghユ+Mw敖「馼オAロ%/訃Υ 瓠キdf揚ォヨ1ラルf槫M曼mレ9攬スニサウッKn)リ嚏[ェヲンゥ[ヲ'm=GcmQkn 2JEヨS7Cヤッz1(Sユ*2ヤ9YマcMネSw /"Jt桐伉K<ギr oH2ィ慚PKワ孟{[+PK^ /!app/authkit/test/TestAttach.classュVse~カルdキ鰛B、@ ィ%$Mェ(Q」「-`侠ロv.臙ウiOシTMォU佯倉IeGgo/゚w&ア ヌ8$3゚~゙ヌス゚マラァaC゚8ア-シャ叢ッ塗-2緘ォmXヒサuシャg哈eエヒ鑵b晴ム泳ヨュニ&2!ェ君'コミф遷「イイホ莽シロR 「,c8$d$eォ ・d傲椁ミヌ:カIリ.a灯f薑$<*1'YワIケ<チヒN^vノxRニn{d<%緤{Yマイュ躪諍 8qン\*タ譚ウNク"ムュ ィiヨ聚黎ャS3レヤホ(Qト亂ヌLnh゙ャゥ Q5ih5 =Yト幹ゥ・フヲエル+.os$IkトkP牡E70ェゥ'站ニ垪易ェ、f$傾ソzテ牌「モエコリ菠ゥ、ヨ゚ミ+Pr'ノc゙ク柯XCD店サz擯俺ム・ン。s橘クハMヲゥvYZチR4*x/R゚Gォ/Oh)ヌOネ」%シ,ッ5~y]チリッ潼 PユTヒシH8-シ-`噛L「f5絮p$葬ネ゙9!Ow"ョアァXョ僞草ァK済6=撓ヌHヌ=fッ橙ォロA )8C+x好[ヲ|ィ#dチヌシ +*8劃 籏マp\タク@タSt ワ糠:俺臀?x<桎C7ゥD\現q準コ1ヘYWeモコWnメ箪<ョム ウ冠G」ZD6奏L魚Iラ実"ワRBスn#BM57「q3愼ゥL ヲS(タ:リア樢ィC趁,ト& A勅+セgム党;\ラ喋「 '*h%:鞐フノ 按ヨマユサ&dQ;'ナ81ユzラ$スレ?暇Yク3漏淒uP|~レLノ8Sウ亳゙6_フニヤ郭1}キ(ヤ梶モ.;.?税Lqセ=ロH1fQ1jゥ"ラS)ャ*nY?GセゥH緩蚕チ|nGホリ砂B襭6!ム-aカx4dwロsメー6カ」 悗[ゥホz栫ラz9「lツ$ZwRva桷サqタ奨ィタ{アマS[zョ・!l鮹、榁~「ミwツ#)シM槲%/ノテaBy塵L( セAmYヤg ョ>aA刈.Wオ1「ヌx|Nz・盛ウ WIマーイ#ミ>形サ_Dテ n ル}n{}タ-Rス術ユ8れ ワ!ユS:吊ウ%魚?飽P6フタ控贅3ウ モ:Hヤaヤ訂巳ホ斉wト梺チ ュ9レル<満e|フ春jk橄V靡ョ払フフシ"フD「v/,pl 「兔@キXk'ャCソマrウリ" `ヤレン"a<痊q>:タマ皹蕃9:ヨソムI扼マ違O悸カEォHカォPK攵xPK^ /app/authkit/test/TestAuth.class拗 |盤?軫゚L>^C 1<ю(ッAyaf>秩ノL!T・Zュレ~エナWナ_ 強kルjkォkmkkサンョンヨGwuンユv+?゚73僮「s蟒悳=s螂O9NETヘ淑悍ョァヒNz゙M6洪栴n:A(ウノ蹙'ス荐bYア?ム鐺ルァフMッミォ.ノE+57抂?イラ暉 !・冬・ムオ&モo懼ヲ諺変企滄ツE7ヘ「ワッ2{ヒI非゚4w9鶲Fヨ鑪材Fj曦鷹j_ツ繃>栴ソ5Pニム5HヲkWヲムノw>拓、ニ、1cハハノENカケi%ロ5v);5ヨdt サ5.鵬ラxミ`萩^瞋肖リ#把。 8ケヤM[リ誨|堡綟コy9y「ニ電軼!泙アO罠Oモxコニ3ワ|:マt,才a~-|*d蓙Jョrrオニs`yョム.。イサ 椨qュニgj|免蕈/ミx。p]$ー゚ノ襟|6泪7]ハK5^跏:ョ祐陵g,7握+5^%タjン4AアF縱攵緬Y゚ミイ・。a=堵ホタ@M$mッiNニテムナL#棉「嬰 嗟 DR匿ョオョQカ5mjィロワイ塰!テ[イ&噛6キ狃ェ_遖オ uヘ 亊hhnルエ。 ウヨMヘタモムシ~テュXTuオュチ餃ョホ栩#ルmQ:a 飜キ 貧v+ヨ良BkヤレpヤX溲ワnト[ロ#タ8ホGテノ%」\雍、践ヨ・LォヒラカGレSホィ ウ+悽装X<シ7 ヌ「窮イ#BFご-チ4濡ハAZ ムj導8モャU7l゚ 籐* Gj,Bニ閑#L セ゚Fa ナ壺Fタ4逋套_雕ュr逾鱈=A」ヒ4挙ラ1wヌテI」ルニ ャホ.ネ慇Jキ~1}Oオノノ攵チ4JォOマbヘムXlッУ(ミ坪イ副カスA(ロKナθハー,刺ノDレ操ib鳳.溏!溪IH4gホ撥x」ホ嶌1>X糶ヤF\ァt?"シ@TソO゙膩攅yエ鮠聞1y]]9$麑Zr。ナ「ノ鸛 n頡瓠a@07ツk{6 ・リ|I銛晟ヲuセ/メ9タロuz脊L3リus4ラ"A 丿 鞁?]シ=ユiD9J&メヨルL」ソリ、_轅コ゚ノ:yァホサ8「s'ガ現tセ倥ル酵&ユ9チ亜稻ubネF匹ムル寰u殪1 Cヨサナjコ_ηc=めテ=(/ ニ|ニエK9 、*uz3ァユイ褒]smキ8ィ9ンサwッNヌフiサぉ鑛搭レcIソマBF2Y餾アリオZ:箜nォ祟竇ヲxx7bイR熏8*吏ニ王oU%゙チXク/ユ2゙gイェネ _.Δ'鍼擶牘黥%_ナT:}コマハq_8wыク_結_罩uセFワ2゙?ォ糟ル辱ツ6p鑼オ:攸疎モ%MQッG_ッ シ妬gg1<斡コ宅ラ&z峨nsv[ -ユーメ・K ?s。#ヨi+9f捐畆勗 X゙6+cホ@~テ錚ャY9z娟マPソ登ラ廏-H0y<樓J趺、_ヲキyソ難ミNコEヤ惶=ヘ箸メmP,(蔑ーサ具ホ8-4瑛q@:゚テロt゚;\儿nヌ`ト掟湮1_エnナ< `樌ju(`tニ「N>ィ慓薪秣1Cーホ秋イ候%ャ(リ゙Ε}ノ/リ私t~ヤt讓アァ 瑛"=セ,i=!多フ3ヲ/珈atヒアアh(8N)hル A5nネ3ュoh 茅>トコヘィハ#ア%zniァエホタ.テ*キg Grェ&╂ナ(ャQ5瞻ト竄jg] ェハrq>LR楞ユD.ト「イ1 -ウ0L%蕕 hAタtツゥ「)2篷r1dロ躄gロヨ5オ8qィ s dナ痲y/イハ笏a ヤウキ「ム!#5s|セlケメjケ@z,-マソ5Dムサ禳゚拷#;vu践C疾tXbネ4Hfネロ3 ヒq*I 換ャァ ス; メ場$ヨナ簇Pクcウ-麿 Fィ蛍(ナ゚キ逐レメZム}咳ヨ火クユYdカ5ケO冽ヌ湛9ラ0m.R>テ立<喝Gヲロ咸ミマチa)zヲ+彜禄ウィ}櫑mZb,ャlムニ\3ベVgナ艪]コ6[箍7夐汳。hヲォ=-p簫ai>Omォキnク#レ.噴${P~キFB垤z悟ロヘy0マThフXカ j」I|Nkクツ7(ナfb)啄「シヨ'姑!A椚衣2\ヒ?WuDfエ巛E サニrR<闡$`ェ&A冉メ38'a@リi?鉈Y>K6ユdnノDチ@ァN,tYL[ l匪fリミヘマiル"挾`aqAl/|ホ・ヌ蛯リャlュxハ- pyK`:gPEンWナcゥョS培騎jyBzGゥ#ステn>_Pエ0ヌ輅堊"]cG$鼻 ;サ$k4賦騷"Iコ遭n、ネイ{ス莅%ュ予ス菷j?cAッ肩隘憎Q@チVヲ戞|?";舗7哢ァケt呈ウP燎啾xaF4コ「1マQ4 4トルリE」リ ,椒吽X>蝠OPi/際RQYンGァ・ゥトoレ賜7MnソンkヌフSfハァフヌミxs,遼莱、ノ>テモィ携ミ4曵ウx碼jq-B廖'R#*ェhb/MZ゚O呑ェ樹ムソ-ME^[/メ4」Me・i"BナSTメKモ#Mcス6ッスラ$8晞雌oネ児・;h賠ワマGメ'助レソGウ静蘓GQュ゚哇ヌl」‰君ッSfUX:=ユ&ヌル-sカX4jメ|:Hマ0IOマ槻J kモ1hマ4iGVTzカ>:+Mo9ッ9?M?r♂e"‐丿cタ.ハテ叮†ー8M7yv4ケ、ケ4M! 吏ネ イホッyオハΧ&ォPス(蒄5ハ.-^Wッカ#鋏ム幾'U~XXB齠irカ9wy]詬b午踟Z2~ミツィ5dB%ェE囲#/^Dァ94由/CZヤム"^Nヒk膓ヤトォi3ッ。 \ puF慓J)>情皴t委ァ錏z/「ラ8Hr>t津訃\ツQ楪]<<輯シ微ケxニo覓"<ラw%楪C|_宏オ|゚゚ヘxセンハマzバ釶゙頴c=シ?J 9、テ!:廬ツFhnテ8UイRイ`]ム4昏ェ弋 ソイ'UソU冗rz2芋s」ネ鯢hニ)8枝ホサ ハ/狼uヘJSY?ュlォ噪jh捕V畉オチm クモ4ハウセネs ネ4メ0#i螯飭佩V:ユォ1エQyエメo3-7ヌ齡_>晢キUMェ犹タャPナ"マi*ョーコタE^ロ繞アェヲR霜A.UN・ェ&ィ圍ホ*UKgゥヲ0・>|乗|ラ緬テEYロ、lムQヤシ成kホョェ」岡ェ蜒XヒアワQ^齪o饐]菖需h壤lゥnr`フ7 ラーナイ「オzァクニ逕P{F凰Iュ6ツ-T「ZノォレhイレJSユ鵤Z「.*pヌ3ヤ櫑"?pP+iョコヤオエF]Gヘ黝レヲn&鷁キミ裲vレッモス鶩鶸wムマユスヲ:HQメヌ*ヘ、ウ]=ト營ン輯OイWイOLu鉢ユ1ョUマユマ-鷓゙ェ市サz檜ォCセ脉゚「^;ユォ|PスニGヤcソ「~ヘッォ7。ナフ[PKT /イ PK^ /!app/authkit/test/TestDetach.class抖NQ-liWタRョ*" n/エ 7ケ麿蜥MДウエイPカdサE筌覦!挺>拝fゥカJト9gホ|3゚フホ出Wpa^エ。焦S^イy厳襴!>YDリg@Aヤ |y0ネニ!桀1」 ニリ8ョ uモiリ3.-pマ袵R1a腕オpク#ュM}'K。nュレvb_?ヨcYンフト6lヒ03S ロ2oヌ ゙コeY剔i/-陀f 直b:スv迎r約Eキ骨顱}ソk&%サウU掾w#WーRrム`コ惚s^レzj/バ*レム。b モTテ゚ルツョエG榾n/1」熾陥印eVナ覿,`Q焉~t!+躓ムヌテエ・・ァloーD VワO-8ル斟2鉱,ォxヒ$゚!!ミ」 MスDOヲNRI2◇rIヒYjセ檮[卍。4 マUャ tワ`ヘE3/「{ィHセ 敬U嘶ラ。i「靨、/ゥ官゙xツ5廟ヨve緩d、=臨y’ュァJq瑳-ヌホ][レM?P菲Qヨ咄頬」4ゥKw朱ヘX攬ロQwt姆ヲrウメホム^j[」ス提譫方フk┗キd^跿N、ム`L ァエn゙$喋t{DZ整 戮慯:彭拂G=:.Z ィ逆\\&q ラsクオEヤ輝嬉Q%|ョ┛セツ 溘゙)kCィFy晩タCrオ「uヲcc廸エ鏨エエモィ瓲,QHメヘMコ2゙サ愚泙i%rタ)<ォ、マネD[Eウ」h)裲、「@Kニル涼[タ ub<コゥCラ9"T$躅C瘁"Z,eニ N カ)ヨG'イミスス?PK 、PK^ /&app/authkit/test/TestExternalize.classTmWA~Fタ]ラ-4ΥP*MH+5ー |7R ォ」~Zaムe,Ι?馮=yN?ユ骼rエu?フ攷oマs釵听~テb 孤:(9KCフ@@)2テjWKBテ3ヲ2(Qマ5シ0p /uヌьW:男20荷jFテC、p|テ犁bモg霾 /ラハ[ワ[ウキメヒカpX巍m{マN8カ[J荀'ワRJカK^暮奩コ竰-9・'sツ&蜴 eャxb゚未筥6圦1r伏礼sBavュQホルo畜ョ}W!&>CシMウbノHUレ椄txワト[、Md0Mトマテejナ"ィヤx%#&f0ォaホト<ヤマ「%シc畏ササァナィj(0霙・?;/Md曖.#Yィク 邏皷=*ソトU・iカ w/$#邦ャ`付朞P、」「ムH守=.#ナ蓋N奢r&ヨノトguZ。 ワUユuVrヌa雜嗹D/ロ;\y3シh誡]」iト惱ァM纛7:マ,+[ロ仄{エメ_/IF20x6Tュュヌハエ!" ラキ,チノ]゚ヒVLノ8U7マ」學~ス.*ゥtコh媼ニ'軣柞P1サ、コ 爾健=*ヲ0ュ竈フェリヌ<メJオX莪チv,o7Sa。,テV癶";.<>y0&~蛔ア「皮c=ワ0ヨッ獵憙UiヌAク VEマvlマMッhノチ梦:6メノ-Vc33X 拔ル゙s戮q*q$a抜2ヌ槃ヒアJKtb。Yィレカsh/ノ8V=~籍」ハ。リ"逾「m 溶9ラp穣眼Iェカ枹愾7ネ薑セ^0]B@ロFF$9e:kVH.ハ$夬、久メ[遒帛 E巷%iTスモO、tLn W/D遼、苓;竝wnヒムWt1q壜.ws雑慥Cjメイqタ崔ア+淦8粃6}慱昃zチUoニヤエ摂轌ツg%ッ 雍肬Kgェ!p姙LK6 !褸ナ林;ヘ」ス$9]?Aレ"ュ\迸g派アフ*Vp#\i゚Eォムレサ%6*IE゚9復タム$kt_&鑓憺ゥ屓.1Iヨヘ挺&^@z$゙ア'p!X1ロH.ヘ{ZW 。sAw =5ネ鱇タイ/ム粘\:z蛙z:Ee6cリ@+ メZナユカ,カ1SテX弧 造 ;T撮ヲ1Mタ葹 {討[ク塾イvM4e=lタュj紕磁ワHLフヲァエ「-、ラ姨ア:R蹣Hルj*v6t}(btケI"Lャミ歳Aォ ヨ`f@ライ!z&ヨ゙ネdサオ73ルュLVヨ゙ホd咢N&;ミ」ナ3マム}セ]「4~HsPK慶ヲ2mPK^ / app/authkit/test/TestPrivs.classT[SモPmi銭ケ 銚エEタQ(rq: ネ ハ。JメIOy_メ22G9・@ォ趁lホキ゚ルowマ&?~~メxォc4Lイ}ネヒ」(0┓ゥ#$ソ・x刳"ュテ`w髢(ft罠g:f7s譽X鐔t=W- フトョ@8H∇シノwユ党8%Bツ'狩 屐Gホゥcッhmォタ該>リュdE-Wユ-証sfセX*V%ケ-タcWY競\゚ヒ~lF゚ォAAョケャルウC1゚i%テdキ1*0゙D9'3aヌ+ハ ネd2^タ6税"%{Sb・zx(*Z.vワタK,Eハタk,fナ@ォcNケ|YWh] hョァd煤7X#rkbセ'))撩-`&漂能柚シx6ーハョMrナ鬩麺2ー」-Iq9,Nラ、dゥ$0dカoッvKf フカ」ヨh^H\zSmマキ8晤kzカ重〉ユ崖蕭NZ9`^=レウ7$.NKBS"0hカ午C*ー゚ m 林サ塊ラ琿ハ9喞ウMォZ+ロLb>ンもqァu計綸ルHイ豹ミレル」 wヲFルXヌB 磬9"{utニ「5hゥコjミk&9 rワJナz5ニj」I?$t、0I」X佚41卓`イ鉅゚KラウテHp4|ECu 5YテラYヘ q蹣}:c渡X$o懺LPKツ47V(PK^ /#app/authkit/test/TestReattach.classTmSロF~lK・$BワpKレ vCiレ44N(チ!M陋[A<ケa:フIf:ワユ魄沫h>槹}voo鋏溯ヌ*ニa髦f拂1」aヨ@7躪 9ン`1ッ cX0%njハタcソfロ[:lヨ,nw4ワユートe Eカ\aqOテェ@カx齊@ソ5ス#森 +R`ィQォセ'」イウ醺N「xタUkキツユ)NP-lォネ ェ詰8ィdS-キTm3 MォTォ-Iヌ6ob Mャc(Tlヒ<テネホ奢4猫<ト#^l奢[悁ハnK7*サFuロトclk(孰<4gノe(惡'{£代*O=當ルWツ@sテト3<7ア ?傀? Lシサ狼嵩7|_Vルueウケz靆CL契ホェWシ紫S8& d゙ハ競2yj%}_`ヤ漢FスHF ,トA.鵺 .リタlャ}搨ン蜩届スメ%ョzUェ゚i6ュモヲ斛ナs!コV 。ォーサ#0bス#ト0E6フFER桜=キ5ス[0ケャ5yXクラェ7ネミ=紀uキリゥッK`ツァ$渫|/PKル鬣}ァPK^ /&app/authkit/test/TestReleaseSelf.class攻ンSW]リd蓉)ヤォ、ユM億mPZィゥAミミZ*ヒ&ャ.fs」L。>:胖ケ晩s樗`謂>惶|ンs{c#HH1g蹟1a"ツト 罧セcpSヌ、 I゙タ綣n廁9モ:0魄テ唾O f フ1g?3XミqO zヌ <5#ミo'ミ讚%)0Tィセス)テgモ'憾xタy{スメyd}'ィd*ぬ4+朿イヲfjk) )サP+uIャCトW槎2ウz:ハォモkスヘ佛j=t=殉枉!娑、/撓,Jソ彗 W誨|v2葎)'Td.橡Xクv7W/容Hゥ~W.a! :-<ツ-<ニ>ウウs g幔 チB+(:ョイ+(・トァ"-UIQ:杙ォ#ヌ考uイネセャ8ャハZmaラ;,ba ヒT繊yM タ3 マツツ゚r霓ヲェW$輿ョ、2;~$u視「チPメホルスjl;ッ$K L9iNhBノケ J髷スJzァ;悋ヘ淋・X濠TセSォ ロU崙.-ュ綵ェレ「ミャレG薊bォtヒs)ア/Eウ`_$'*u雅9ヤ+5<塵Zウ睫ロ 鑽wヌo^ +ウイV゚^hレヲェ・J/I垓イヌJウ畷sワ=・ホ>bッマア] 愨済寥 獲 {ネト&宍9ュpレ$イ溯ム去オ5ラテヨ%ヌ(mラチ癌(.#ゥキ{#p描エIナニu[4ЁハタLャobZ"ォo埼  4`6p敢`cp1Mヤ/メ羈。Tァcg意qチ=!i做!客zZ鑷チmワト]L剃7クヨO。゙9ュ,sレ_"ネ>ホ蠅(cbI4-i滷\嬋 梛ヲb耜クヨタWト^j.キ・:ワ=Q曚違l_トvトS$x洽y>$ホ"ム預モVヘメコシUフメヒm 「コキEレラIッPK#(fPK^ /app/authkit/test/TestTwo.class攻mSW~nHリヘイ「Fュ6辛ォX。"ナB AイI.ノツfテ$ア゙゚稟:50eニ[g」:='IAフLス{゙樒悳ケラ[`紙ヒク飄キT|ノ_p[チ スクゥb顔サセニ=^ナyH(クッゥァル|Fナ7`VチCs,ヨ渋フkタ#゚iアタ峡^ナc椏ャ^RDナイ・イ[親 ̄2o遶イl91ウv,76KsゥlfコVノI゙キヒ 庄 x蹕9)ミ浙、Zフネrハフリ$Mヒ ?On/ヘ藁:リェK。 vseナ裄ヒYOOC゙ヲキ拝@N災ョ_)[/-[詁b田iォ・j9+Yフ_Oソヤ^)ハー:セタ5WpU珱 N0<U\ウ殄4ェ)樣XE2o襠ーコオナEV<、c 6t4l黜テ跟1W.Wャ -Z+ヒfヨユ#~"モVRケ#艶ヲ瀏ソタクリス<'Тri譲QGY9ミj yム窓DノO`RGmq~モイ9ノm隹Qグcヘ1媾dnUV6ユЧ 原父狷魘ケメカテ抂瓜4w$[ ワd ヌ楝・倩鞜yッノ映9ウ-ウトUヘKwホ6+*y}ラコ0ムム。コ・D濬クンョnムシk ァ_童ケチ-フiソケキ靤}pイイ畢36ユョ]ソイテ轌|蓐ア}K+ゥエタXキKKVe妄W」藹齔ロ快ヲ沛ノFチハR%ョ杙 &`上 O;l7ヤOチ~タ]s6E <@@タテ 鰻^ZS「:}$4kニ!゙タウ_キセAz}@ウモG絎ソ,I=4゚ ツ+甃。7}%ィヨ熄ヤユミWクレ#Hq&7j8轡' 」TSム罕QLヲI2C"Mタ゚ ミG「'<繙ムセテ掻裟クwト{庵}ヨ■>゚8ツpz#qッ`ヤ`mcケO メ」wョI T幽コBメga杳モクC v/ー@ンモテォIiュI2s9oヌ&hセ匣Pテナラj0T1T樮!\ ,ケ踪S ヘ6A メ!(<PKbミgハPK ^ /app/authkit/tools/PK^ /)app/authkit/tools/AppBundleLockdown.class晃wUワkイ暉1mZカ/(f7ル ・n彫i n幄ヲゥm宋イ{統fwf恙Mメェ | 7「ヲ袿「モHl*9俊雑押ナ昊8&t」ァ!コ典T榁ェcJy/]Qヲvワ涯騫'ゥ#レ.!!v4彪$Mミ>%ョャ梟ャ4{Xsロ鳩:リ<ヌ26\Mマ>フJルィエxリヤヨニaCxォ OAIキТ9ロ 巡YK8=ァQカOcヌ9ャ卮*エンp4・ワネ縛駁ハヘiサr幕*サ})鳥h["筍5K%bR スo9gミF栄W2イロ=txクExpSハS英H!> {ク<ス¥ミモ>ロネウYb3yWvgツGノハォ籬舫/サ PKqP)N PK^ /%app/authkit/tools/PerformAsRoot.class攻mSW~.yル/トPAォ%dn6Eーリ)D,セエウ$ラー夥ンルl [ァ3?鼇8モホリ(ケ!エルq哈懃<惶楙zラK0勝礬竄客 烽>Tネ・A\G F s Iヌ0C&S>Rヲ上3|ョー/4\峨4セT岷ヤ跡ー讚笠Mテ"Cェリ>-Bzj!シ$ヒゃd゙vトz」カ#シ「オS%$\ウl盒~/ネレウフェ薺フM゚ウ斂Sヤ\=膿!セ)^Iャリハ-Q8T )罫蝌ト モ耶啖テ゚}lヲ/eオnヒqモ_ 9姉ア、:ヌ2V"nン吶セc逸リ自&H3モムフgO>ノ,ォ待<レqャ&ヌネkX綛ヌ- ーチア"テ・Jオメ廼7エロ算IマE迫%磅カt8nc九~蒭ニ]ム罎w=ケッ寒8ユュ7ロv,f喪ヲコ9b?G8テャ槎撼徇ゥS&マ゙」RWィリ大オBq帋lソN勇釵} テ サ槿ウム痢ヨ゚%里艸黎ワ'レMQfネ]逐kタbゥY拾ォ-ノZヘrH7ス滲^'シtMQ&Na驕o。*xイ$黏=ユ耽Eォ杓ノSXp&宍-ヘΜIマ1Oセ rH6|ョ;}ヒW、ラケ=Pク ゙jヌhj圃0ナカFQZ鷸埼ゥzh「餬ロMa<瓔ィ- ラ(フーセェgzyンg爺[・]Eス巓ツ ス$ヤ_L マメn廓Fsトx レ0s偃P/嫡B゚リ~$ムB9マw=゙@C梧?YK?Gエ1来オ0弌{' 好%N$8嫐a(N'テ- g#F2メツノi瞞!ョ濟6l(緝 cヌ1sヒ黻mCテヒFMFノji筺yェSd{FケOQ7辛マィ桧チ・キIャc犯寤PCB耿テ&Q、jm>メリ。゚蜂eーゥ%="%歎Jヘヌッリヌh底 `_PK、Z゚lPK ^ /app/authkit/tools/tasks/PK^ /3app/authkit/tools/tasks/AppBundleLockdownTask.class拔mSU~nイ麗R`i雛カヲXm ゥィTュ銚h ェ竰lツBイ7サシ飯O~闌?齬斜8ホ8:レェ。ヨio?ィ辭迅hィ収癧{マ=郢鋏マンス「リ拝qテヌy/ 」2s >.ネミM4\犧(ソ$6唐シ*ホ^kB稜j劃Z侘Hクツ1ヒ鯛倥x拂枋√ 4ヌ"ヌU79゙窗嫩峨 噪ei61O0ィノUm]43K9カa諛塢-ウhヲ3ッ\旄'ノト\b味j#}゚・ヒモU>ス0ナ1Lテ9マ ヘ3xヌュ,。エ$ S殲桐コ=ァ-nIキs望d 5N yWァeLs摯5テ燕キl纎9ワ7Iヲ柢7テG2墹rハr鯨チv叙Jcョ-鍼+ウ矛6フ9ュシ6 0トpFBFAコン\キカヨtス40岨J9妙KXQ``複cユcn.ァロ G8竄xPチ 0X()鍜┫xjt「0、PgE .l e\qカホミ4r>ワ0恤セi8チ  サチミコ゚ ェwフ-ロアeJtホ0ウtUt&サI蛹啝葬 BgォD懷トZd汪Pオu<エQKネUQf・h':;CZnエム「脾KセョL7レ門0DオRゥ^lヌイ 蝌C.ヌ磨。 qォXエjJ'゚F mEmMOP$3カアN厖SxgB 衽ャ[PネMZ 摸Γヌ.勧h{?F橄y"輹ァセ 4ra即汲ヨE" }lワdwャス =ェ7\ヲRA3コ屆麺rル1懋ト%ト5|Enフュイ」S;yt嵌#ーォmX"ヲCコV$ュ'ンIウ蒡鰒モョoR&L$Nメポン。 aレB3d1ゥエ滅V@府I 「マメ8qFヷサE A「ェp願sxセヲ'决FXヲ"QOユ{セ!ッgネ&0.?スI4uID*+8~ばm(js龍#Cセc設Yカ腸uソー? 項ォコテSh'z nメ3t灣矜Kト5セ。渫キク[佚ミスz`?bw>ル\ヌ=ハ スmオタu8愁+h宮テ]^ニnCュ}ラア゙ス綾シ暸 W=J$爿 P !W;M便ソ。ソ怒Pnマヨヒr途-セヨテミ鐸ィO、メ^オ3崩ゥヘゥエ_J・%オ;墓jO*ン鷂返絅ケzI日$QY ヲセ"Bス)ムLG-オ」S」ァ算4セuf X%Qォ}メ?PK#'~ワ_PK^ /(app/authkit/tools/tasks/CommonTask.class攻KsロTK魅ェヘモih。-サ営h!ァッ4MZ乱、Ihメ笠(%!]5 S和チー`aXイbt2タtXア`ヒ瀏ホ[q テhF鉤ワ|輹マユO~イp5 !ロ渦4シ係トエX旃*^サc*^ラpohネc\シホゥ8ッ.jミq) !/k估。曷`Zネォ \イ篌7UフィxKナャ9モ6 アt讎yメ)1 ]3ヲヘfμ:膜u4\マ)E賺ワ x_腹イ{ョe亳dzfヒクc,テ.ケgレ蚋チ8ユ/mzホ]Ani~ーsフ、ラMヲ江+トヒNl:ケMル崇沸イ悶j32oテ*ニレ([蛟ム2g|sロ荵 虫g>0ク鰄!カ^閃屬ニ]哲・籀Kソ=*リt<#*誥フ繙8「c 7tシ*n鷙ニ且[Vオ Aナ嚴wp[ナサ:゙テ: ャKhDpモハユRb條「會サ!。イRハシ<7-覲セ:ハリTaリアl5⇔「@ T卆枴Gキl8エユ霖ワヤス"sEQ$m&Qー9Q.g・犧蘯濠rヌアァ既ケf$t7Y贍キX@ヤ勺w戔ケ}リナ>guフG<ルh<ユjキ詑#j ハ嫖K1教!,{スSッン坏Qワ^"kJ;1(JムrlQ鑼fヲ5アス мァアf蟾憩ンB nOSサリワャスVfシ袋罩ョ&gイ, 騅'>j19t[縵\ユ付攝ォネ鍼8ショe&%廬ッ]nサオレ~2WWテサ・blウ+ォ#sセbF鬪nサロdro〔:j珂 訟咄<ヌロM、ムxDc3#・Srラ0エ繞ラiA>ンB絨_G飫H王r1、i!9zヌC)z?縦u鎹レロiチ蚋惠耒「:ェ=<\B>zノ辷"0イシミ枡8エ捷gケJ,ラ挨@,ラIs/ヨYヨ'劵ヤ゚席ヒア1蛔 痔荀rコ莞oム)黙ナO)ゥ、'゚WJ。畫(4_F'VミUェd#クM賛Bコ鎔$ィイタテ泛賊y霍zコk"・Tq0枕ノ述(Oナ・゙ョ*コォ rムKノH_ 2;N6`#1李ィd %ヤ;y・c'~コヨ=Cノ娯ス?、d>ヲセ~B<、g佛躪タ0%8セ"岷ノYBホ(ナー;FPKン、PCTPK^ /"app/authkit/tools/tasks/None.classm廠NA蜆D@M,Z♂lG11&&& V ャ酊ア{ルロ%ムgイア2ア|(聢(16?3ヘフホ釋彗ッBVムアb裡tョエr Aウuヒーqeヲ庁゙SZb,H慶ェヤkヲ~"モ『駅9ヌ&メ>サ`4{3ア<:磴g侮コス(湿、 醋Krcユウpハ鈩。24゙N莊ハヨ眉Fヒv6ァ"J "I~圄1qハ扎)マ@ニハチx&'アゥ玲縁ィヌ(ミt";' );"g菁モ7ーW 6IKy╋弧 =X。瑯ラ$ンBu 袍、ロル j゚PKuTi、PK^ /$app/authkit/tools/tasks/RunEat.classRノNA}ヘリ槨LXツツf イY2(\E叶,Y N 4Cヌ柤ォン ゚葱88R|・塲Bbノ^UソゥzUユユW\"タ2゙シツ睡f]~. ナテホタヒホタヌネタf等雄bヌネタャ。ニネタ笨汳ハネタ等隷W圀濃著+(ハO)MN-/-)(-ォ獣d ホ/-JNuヒゥ*ヘJe%%0ー0ー22ネ%'末ddg冶嶺鉗$gC披W燠Xツネタt.010の値@,診メャZロ7 @ ,ィ $98。J・J儿ヨゥモ箪`」ケPKワ4畛フPK ^ /app/hex/PK^ /app/hex/Dump.class}T]sRW]'ワ{ケ深(F蛮リ"7 #エ探碁リヨ鵁"cDテ゜ァ鶸#鼬/Ng>カム咨テt i怦゙>g涎ルg=シ}z>Lb%Q|@轤Hチ61。、SAH+債弩ォ ハ\T謦BMq eセU;゚+5全イ?fク"`\ョ:UwVタ<朽VィW、タHゥネ蛆柩Tセキホ域ハMW ,=,o晩eg-}ヒmV攘懌帚p@nVS}lオ杰!ミ%\北ケワノ*It@ス3妬ユG」a t|puシUo7W蕋U=&0ラョ5ヲヤツqDクj~,フ!. ハ;.゚セ_6kチツハ\Gムツ",廃テツ2n*nヤツi$,愧クSR慾馭a)ヒXLe 」ヤ^<1ソ<利T麾Un4メ|nZU)0シキス.7BTク衞;Woォホ [猜ー゙P;V襌u Nz:Zメ-Igヘ}ミ+D:併鷸ユm LャnO灼"{ゥ3゙ムイル「'帖スロN& 氈冢ス8: ]c懺Qィマ。レK{そ8=; =オ シ茄Dィセ。「豼Ju珈GyリL=Aニゥ董磧顕ヨ×2 R8}パミ塵`jlテ湫S6/e係(Fu_fT?互恢ナg陦P⊥Qス m(ムチ-CD 聘s ER `1ヒ霧サナn/bソ 徇タイ1D8チ'Q艝yカ,邵ト1冏wア ~ハ%ヒヨ閾6v,゙ナ。ッ゙! +b<フ芭t1rP儷ェP繃ニ涵タソムE(|ク却?ョcホ_0撕Ph6樮|Nヌ/aト2Zム#ZG#znF焦+3アサツyレ,ムヨX姪ヲヤゥGカ4ゥD九メ&fΗlR舵lル~ァ>OィハSf8KセPKKモFゥPK^ /app/hex/Hex.class}SンnA=Sカォャィ蟋リqル未オユ(ユ1F*「I於 6-ヤメニニ&}ッL|ス。Dタw0ニメo"ニ"南73゚徭|゚~+<ネ煕 顛ミ靤PDRニE^L河エXヘ0I\BJヒ"ッヒHヒ0|+Vンr0x )゚X チ「U逾誚叺マフe|5<蕘 スPH7ヘ=3サeヨkル5ヌカオ8X|0wvx}ンe/鬧墸*キsκス#オ+q゚ェYホ.テ病2ハZ」iWKT'C ェホォc怺フ90。b ネハク「*U\テ抽e\g%渟 セ殷琴bOハ崗祓Iウl=n昼ィ>トッ゚it3 。8B光s モ6+キ姥mリnッシ篌萠i<ァレySシUメ"鴉カ!Fルタ}Q奬yチDッ(紗.A3Y-ネ%E泝廖:顴g a贄F「ア6、ヲ]ツx床H画ネx_ナ障+e&緡ネ-[ケ+;Gワyz閙zy泊 A98メエ6ヤ6ホエpeR~sュァ シ{゚抱ミa"?フMメクE^rbウクMレQトzレO #Pコ Kッ渉メ_レ匪」屯ソ欒_%膝莇8#E^ュ@$NPK錐?8PK ^ / app/util/PK^ /app/util/BasicAlert.class彪wUヲY&儂。ィfT[Wミ生エR [l-.8$春h:S&QqTq゚幡 ヨヌ羶3。逃9'w赭ww゙暝゙漱>\過\菌 aソン!絲~ワ・瀟l窯O;XO漕Pーテ jヒリ・# ョA6LbT匿ヌBリヘOKF.[A1ホo!皃{9pC゙+cソぇク/ャァ(テo+xイA畭V 絏<ニ糂0楝,アS<匡V泄恁軻シ 絋 ユ掵スノ蔕ョセュ、 5擱袖5テミイyP蟷m竟ロニ&IB9"aNr6ョオhvKG゙カM」MPケGツ\odォリcキ[B」ア瀚ンミオヨトスnKmョ榕鍬Kソm颶ヲmロlSOOOw N3-$ヤ%uClホ情ヨVmG,ィ6"ホg柏WYQアコ鼬ースミhシイWhフフ鮓n沫フbP7メ襯慕ルカ仄aエ3f┯虜鋭uZ翫キkァi濠エ%%@b\vKサ耡ナmS3矜wf)ケ束潸ヤケ 4ョル廢0X昴ェ貉Lロ琶;uカ】・峯8~FLナjャQ9NH ー鞄ア 鏖q _。ウZ#ソラ圭ソー*NcRFAナセR5ホネ8ォVセナw2セWVゥォd、稟V~a+聯gシナ9gコレリXK゙ヨウ-゙J年ツ・QBcナ錆9娵ユ=7~ル|ツN#凡#D竃N療]/ }゙テ駟5'>怠ケサ?$ト驪ヲgd0[モワ0クk.aQIラカI3エLシ。秧チ#2aクM)擽YメjKfMハヨmェッ>9s、mf坤cヲ!オ;エヤHニ2}Ps肄●&qヒ?」ァJpェ ァ+ュロ.;>bルロg、l[Qノ(au GxエB8フ]゙^ウラ{ヲ#Vワy%ヘ疲コ・ク;,サ.理梟ツエッw0ウ9箘tW):2Y1caヲュエルッeqQa舩邵Sミ0ヘN 0oニ吼ZノァセワFKホネ)Kテナ邉ヌ嫦$^歌ホOM1,フーヘ=ァァ{ ヌム。N邇D'イB$9ン 9ュ鉅モサ"G斂輛1ンョEョテt驩a%VAツ | タ墾キ冶mァマyァ=麦54カ$;闔ミ ェノW「驫ニ)H吋U _セトY|セ) "EBセzu 汎ィ.@ F蟐VハgQ34レV%ヲ廢ン請桎Sィ鄲Dフ Dノア9嶋$N#B鑚c ソ0o0家R紙。ネ)ト&ア色R)玉挿 ,t hL$ 。*「万禺:Inテ|掴t'l゛ヘ!."嚔シ俺5DT75Ho"ハ$ェM王g コp_%「{S U\uェ穴C$7」B\'ケeレuiム5舸ヨユ袱I゙:sセ)(w;Jイソン雌ソ玳袋゚鴇AOpPK症ク。[ PK^ /app/util/FileDialogger.class俵msU~.ルdキロM[- 6R@ ヘォエひメJi-Tモ$4リメも6,髢$巍lハt?煬テwu8」v徠ロ*ZGチq ノ゚。椽ヘK_ツ_ボs9マyyケロ゚゚ョツ0 hツ鯖8.」}Nネム/b@ツ NJ廃Jツ推a/ハd?ツナi.ホネナK2瀑.b"ニdエ"ホNrミウ\桑Hノ8WdL`脹ホ鋸b臣加睛テ」 l斑=d芫繭キ&ヤlIs+6λ$ラI'.'ヌノテ ア9u^糠ユ|&坿L=滄ch(炉!ョ豢"CSNスヲ崎YmXWウF。ラソ譴^キ「#&mZgS%daネク「14ヌシ/蘿4:踏キYハッ菖?「閹ニンb:。輹k碾塘ゥモ」ョ ェ・8k\gpケ"扎gヒ腕ハ(冓サg 杙ヘ継 qA4椛Hナきヤ1ヌタ"}ン悚h シツ シゥ&寵ZBヌ-W?迴タ2|璽ツ"zくBwッモ|!セty]紹フ}或ァ'ムdッス.ロ_`ュス弥8v逓*六 e)v3エ縱オムvGho゚オ゚ V佳青序ツOク─下_P「ウ廁椨VワiモHェ+ー{寤 |ヌ〃ワ癇゚蜥/痣|>^カvシツ瘍ッレc^ミ1委ナニヌぃx|.86灸鈔回P`4.@ h 豐]ホ齠rヲィ嶐ツムリD「ャテルuレヘア吋 殞S刻渚oアZkリO刀ネD3儡}籤リ8gumc sl垉ホ リ[ M。aホサY1沁&FB英畝B♂ト1)蕷筅勤康D 衣85莞繿0艾エル`lFネF」&ヘフスnマ寐w蛇竃ァ-]@ロNチqワ諷惴\#゙Ac';支ョィ%ノエ法・K趙&゚w8s0黄|:アィ螳愉a\栓フH)~&n%シカ86シ!甌\ツ[x[ツ;ワ「8:|Bツ%,Iネ`ルw% 6 JイィゥJ_4/&4ケュ/.W4 >P瑛ヲLNロモ2T\X爭U 「サFゥ゙rZV餘鐓靡゙゚%痾RツッV%, -.%|~-7H :s9z堰透Nづ。s\C>挺1~+Wk A[.赦_R探cニマ ・凹鈎5シ,Qモウ-゙口チJAW夜JsヘッXF,rマ@ウタk zワDスp #ゥD<+ス苓"2|相? 「モ[く紮ヌ;ー1ツ?ャテq!シOレ」ッョ1ト勾Is c ?L7。。T5鶩繪CX゚jア>'拱フコウ壯モD蓉サ檎ス郛ソ+チセVォ-r驪、U鮪ナh゙ンマ゙C'W)。マpD}_i モセ}蹟-ャ6ハ!トヤ牛h巵孀Hl!ャ9憾Q6哦>Acテ刹ユキク,Cサ蜿 |%vナ 寨RBモ藩ツコb.*V咯ヨマxゥs棹z痳シ8H?Ёム閤「トй_盧リ蒋薯/_ッ誣[字キeX、フハ72廛バ 4モmH/Bュy 庠DS3粹Rp片イ+ヌtREv迅勒Tヨ:Hッ檍o|=」ォ8ン@レィヌni/チEPョュ」3!*5ンィo- 役・^_ 收ヘKoォナル~糞コイ゚_S ]~vMォ8ギ2キQvハイッユ.&nロVサoンSrリ\lヘ區t`/モ~`3ヤ`ーウ)bO」嫋хヘ0KSq- ヒ,ヒヒ#チ."モ0Kl麟3x餅ト ミ*{ッア&サCゥ。マw%チ/Wiェ リ{7_オ蜻オ麻Q棯柆<用ネマト: リu険ユjサlセQツ莱KTu=uロ"エZz)ハクィカ*ユヘチ>B=壑ァ鐡ワ游e8O'ル_H:kワZケPK[ゥnロ|PK ^ /glguerin/authkit/imp/PK ^ /glguerin/authkit/imp/macosx/PK^ /1glguerin/authkit/imp/macosx/AuthProcess$FIn.class控kOモ`~コu(蟯チイqtd"  I「&ツァ2コQンレ・M'xdシトx過#ムoニkG點;囗eマyシマ9酲9Mソ\7#."ョ*q斑1 ツ[C/zE ム蠹 彭0タョO pロ44ョ |跏ヤ慊チモ ン#.「t_。7IV7ュレナ|fAウfユ41セ、nィiンヲ'ZヨヨM#',eZ埃鐔RY!2?。(腦、ヘ%3f゙JhS:+V?楾.[fBヒ褝ョェラU 孟F A4I鐐少h醪タ」コU.U:抵8+サネ0m靴謄MォF*:c[コ霜ネ'答E~&-ヒ0ロ$恵乎9 1ホミホ!)装h&ヌ ヒE;i^|Hラ 9キ「m+i8ヨキY戻ツ褂愚トBsヤヒa\=^P琳u])u キoセM怫「BUワOQウ\@(チ=礦5T AシAセテ*0ムトケェR5A゙.「カ:妨1ム シ。魄秩"q%tdャ」俾ィ(I悍,トd9エム#エオ゙1ー3モ |$ 淤ナWレ7コN廏アォサ G悃w4E8?}sPPK9ニァネPK^ /2glguerin/authkit/imp/macosx/AuthProcess$FOut.class控kOモ`~゙ュ[サR. pcハ(頼*7aノ"&ツァ2コQンレ・~4奢Ld1ン粢董ユトx゙N.&ヲ9ァマ9y棍モ羆キ睇022" !+ワ\碧s1 Aト! !」Oと5nFケケホモc"n虻ノ犢-γキ疎JO矢2ー,CpレエLw眠tvケ{玉囓MヒクW-mホ埓Y$Dハ尠^4欒鎔Jyq7g脳モカ*"n1vモ・ャ俥ネdス^―ムョ"ッレU'g,匸Oヒ|ユンセリ9」Ryィ?ヨt 。m 「hWミテサ礎h蠣ヘエオハ1I^瀘キケロ"&yCサW[ヤュじ:ヲUネTyテ!=去cル)モ倔fVチフq框。BアP5ィ^モIラ#モユフRY+9サイォ搨レキエRuiRタGマ吃`エ朦イ苓iワォツ>*シ賑澳縵ソ&!F6'イ湲/hチW翫HミA゙「苦oャヨ  z7Jμ稚woミa惺U}?lM。タI&ケ゚!ゥyワ*襍JiU",@~:_「チ虻]MQ。R\カレ 2aaOG7PK」VヘィPK^ /-glguerin/authkit/imp/macosx/AuthProcess.class控kOA=モラカ・<螂bEi RヘSiRBP!A?-、ョnw巛Y(J $ンe<ロBi陏。ホワ9wケ鉋マ゚涸ニCl&ム' 筰gIニ檢^&kn4,ニア妊ヒqャトアヌ+ ッ5ャ D o=%*Z釦6Lンu・+.-々xGッJ=/。7uォ鶴U斬UB!Cヘテホュ圦x(*テカp忍レ縦ヒeィU¢L釁ナbv焼62Kn勿ェメ呼鋪 fイAフz+RオスvR!ク砂O)洶|隕聒ホT;メ Uー嵋兆町)テカ\  Y7ヤ柤z、ュ払ォク†ev)~Zgヌフ9"2Z2m>段峠カ逕dチ幢[ヤ轂讃聴;邉LfRト逝Lナャx"舫「セ*oTkェ^インzセ-q鑑6Rニ安オィ] 」ク)誓ヤスh坿「嫐NナォJKオ4 ロ{メUe8tセd~ユ7l衛_コニサケuリミヤテyニPヤ|、ァケcヒAwマチホgントvln竟ルマル 誕ナP掴62 Bナ(N思ォ剏鋒足]ZJ308し廴驗ハP゙ヲ・ヤ四イ_5z梅扛TウIV5]355cp_JヨLレ3、カ YユミRQ.メフh裡紘コ:ヨ・aC-ーリク「7(ム2 #寒躅ワC(+ョ+Z^XZ9tW|Pム档ュnP5ヤD゙亳^ャm;ョ(ムャゥ鰉覽6ゥ蟹ャg.4ロァ;z4゙クケY謬ヤ謫j<ッニ`0ァァ+ゥ”キIホ麑WrフPヲコH0マヒ9u85G}ョ萬jワPヘ655`RfV%ュ 5ejヌ4ユ瓊ェk、)f.ョ`_#O`ENPス*゚{、h「dHモiォ% 鬯1ェIイt_」・6メi'!シジ2「\X、ゥ)EキZア(リJーケXKEレLNスシ@ホ3ノaリラc蓚Ng査レ「vュlW笶ンGキZ$ツムH霙:ム(盻xRツ} 嶋I8テエ)Qツァミ%L」Wiャёt0l壤PォN儷cz0Ey悪テヲ僻u仇ン=v圏k8桧 3兼Y s81ィヲクハ蘗 ッ貪@゙3」SMF"J"ゥ・V"皹クM*Y]、項6GケトQ}^ハワツキt2ゥ、h鬼-糀/$呉テヨ%ィエ舊4ゥトモ剴Qセeフq$廃 Nb斑w7面PエクF5恕j゚4 龍AキIテ」 歹。 (qSQ%<ト%<蹙|)+釧嵒?セ尚u冢fリートb曹GI$aH疉U(Iェニ啻メオGャO_アEW2|カ ォ<ユ疇G瑣ュN゙|チヨ゙コヘtNB・]ホ/^ナuU1Kヤムフ<ヌ{/マ窯Q 鴈?ョニヘzS緞n皷1W゙Eコ=w フ鸞ン5 e4ヲ6巣ヒトYFdナ^ソ LM光!jモロメJo恵ェトンg_ー燗ウP 苓DC1Fア.C肖-DD5ミH&~cチ>笵 /璞゚Zタ|4ュg。エVメ;圷D'糖ム齣'チdヌ'ョ[ラィn「e璞「98q ナ4Wzミkロi蛆ホU7>フ[q・ムlkカ誠敦jラ5ホS{d9T3 ヌ$徨hョ易,L7オ街カ kリCィb独トl 丗ウ%(コセタ~「Gムg+oオ瞥t窟t^モアu6砧t. uTツヨ9g<rンDコホ。D7~ツヲ_10ケM"eサ=aサンKYf+霊tmウJiオ カヌシM粃9゙tjロ|ローulu「`Dネ`ュ是、形0 Yx9槁対マヒ」0汰)^幗M甓kカ-換※;&「pォ sUツEl.。Vクフd~%e兩゚ャ俸アヨJW#k・寰オメントZ騷ツ打 y|ヨゥ*廓<1ミszwtニ\゙ouニ款゚潔゙撈1キキセ&ハヲーヒサ{{飾ゥルッ"結$}ムt戌?PK$yOPK ^ /glguerin/authkit/imp/plain/PK^ /5glguerin/authkit/imp/plain/DenyAllAuthorization.classU]sモV=ラ#ナqH0$RHJ リ墺笏6游ヨモPfBxケアo廳dY#_gH゚゙ミ鴟c&枴偬ュQ {e坤ネェy9ャマ槹=サ{ラ゚H棗1閲>3y"Lワラマ「E _、詑_錫,セJ#%ヒ&Vメテェ5/(!%ョ:`,ソ糺シミVメ.<箝]ナキmQd^博T歎9テミJウ&ニヒメ象肯=モD間Z.゚霧TRエテoォンヲ' ホ弑ョロカ、Sミ=ゥ OK[ヤEヨマクeフフミ 」イオエマ・ン=4OM(^ン・I,ソ炸サツ[遙ヌ%j=2 0m蕋ヲャ9ク樽lノ朖[蜉ェV/ユtノ從=アZT{4ロV揚sァ^リP$V/ 3aテmナ*^ウ*Zュbwq「 UN]3gz然M8JH疂ソr[ヒW]Rヨヨイ6p「W7ォvp5骰fロォ隔ゥキ3ス*怎%ロ^ 尸ラMepモ ラヺ饐CmuUク:a*:ワr{gGw9uB{囚里v.バPヨm杖D劉P?輔c喰ァp.Ιクホpュァ魴yッルTnョ腫C/オ}B乍l\s舳フ/OヒlミEユ キ獺"qf2\ヒケ バ舷ウxc楠W「ェムMユFhlォ檬庫クウ'Zソ臠Xタメ@モロ」O胖咒ハ鯔陌コムン'ホチツ|寒^ィ我/^択f゙] ムk9BbノヘイゥC マツ8ルチネ?「ツ9X HxJx:Mトv挺 ョシiヘム瑚;ラp=ヘ`听"d厘B.T[O歔Q゙ フシ+Hオ3Gロフ椢Ov0ヘ択&ノu3l蟻[&エ-ノ;ニD假ュp&$91u詒ツnトヒ4ヮヲuュ畧 ?ニ?1n゙ッ/L|メ綫=ニ諮ン0:8'F」[ヒ.+PK;)ケ PK^ /6glguerin/authkit/imp/plain/GrantAllAuthorization.classVKoUョトホx怫モ<徃_c;際@Kiレ@懲ュゥモ8懺壓7ホ4ロ修AbチvP!アA(H`#R%サ. {「チ8w<イ]ヌY:゙sソsホwラテソ8gー%a3m澪ア{NY!贖w罨7f' リYVヤF冷ルq葫4ムォDウコ>kキユ*皃"cc21"#□5q\GaシJ5ェ甜U5メヤ源p7ノsツCo}郭ヘMチオロカ}s吉ホ$id/彩xッ 嚮ラM6p(wqゥE「カ擢6kNヲヒヘヲI7h袙泊ニySx陳Z|エl$コTテメ/[ムMT\.$M$&ヘE肯{悁$,ユ、ゥ眼8BUロノErコJ嚀f>bR赤Tハ枋zI抬F裴ン誂+ァV5励レL4慯ニT「Mn=fカャa8ヲナ「ァQ8E+ィヘメニ4誕WUスR゚。メJ4匹マcDl51q永タ}`p磯・];i露謝i懼祁)T 9ソ }彭ォus 惷Χ ュウンッ黴+$O盒 教シ庶ソ3,。ォ槎ラ$淞yロb,ソ儀Iセ洙リス 抓E」劾-ヨ庭%rヨ拇モ#?-O・緑タ眦剰テOt3ン^h0=M萼クhv・ぃo碾cTロ'{bホ+_ツ}クセツgxマy゚Sヘv9ソ逓綱ン捶<「サ?杏_й霊0KDヤt蓿∴r^層 }袙セ}'% VチJ幌瀋m鐶^郡フGキモ3EホEf&~ャヲイ!クル0コリi/敦+PKロ;Mリ楮^専ロx2寰ォ。豸「YカLムチフI{wハウコ>網 SM<WSヲ4Hjヨ;ョLwLubゥeDニメ6{ウ*)ホd< zV qコリ逃:テ"st4+」$Bdbー[*cヤ−--冤*畢幀ワOホQル;UG 髭UvAn ミD,ハ8N熨瓲 2フ=残{フdАキqC]ゥツ、ソ谷ゥQ歉。l$縻メリ5ナ{耙滉コメ督ク鋳4 榊傲3R}コ!LソRンレ:隘ワタ 'Svヘriオ3=ォキ闢ェ5随WDウ@6H<*h怖~ホイ n錯ヘW&yア濡wミ\+}D完6Q眩賀-Xヲ&/ヨa [ァ寳9リBB&ャWp1pU+8ク蒔dイ!゙)リォ 粭キsィアラメv コ9ヤャNォョ 莇NZCヨ|}Jk94イ3M>'ソ=>ラ>げサィnヘhY#Q#bgQ8ネ>M? マ2マ。 /浸/歎/Qソッ(^ナシFリ7qoAナロTェヌ備!槁GxWア5|uェN綵ヤユE+モO}絹ォ%「~B(+B。UンSィ4疽イ]8Vヲカsオ%ルイ4ZJォ~Eェ"TbミZK C尤ケ"zス8 >サU クV0ソラk9@ョ#I橦2Nウキフ\ニ諢-]Bv巷CサC鑼d^`Y}Jづニ_?ォ>]ィ&-|GセG ~サ想ァ q a格Fww>Tソモコ,$WoLコ\Sサ7眄{v^★ヨd cV6ウ"ハI籵|碑qァ;飩uWWァ_ヌP |E%w(オ4#jkカ軾(ョ」`aゥ」A{ヘヌ[チP僮-跌q#%゚(8MB1楓ヤV圦f'*カcョC。72ヨ}kZB9v、「T尽`オi_[ ヘソレノ%'+Dスcゲメェ.ア:BキモスンセsマrBI5O陟PK$VゥニPK^ /,glguerin/authkit/UnauthorizedException.class;oラ>f]^. ナナホタヘホタテネタf等雄bヌネ ェ癈氷蜜沒琉\R漠溶ュニネタ笨汳ハネタ等隷W圀濃著 ホ/-JNuヒq、BKK22ォRS\+担 J2@&0ー0ー22ィ・遉率祭)フホ,ムヌェ羨ノゥノ・E%頻YE&AI6 O(ホ、ルエエキ30nヒウ@噤AHri&NPKレワノPK ^ /glguerin/util/PK^ /'glguerin/util/CaptureOutputStream.classuS゚SWnvaテイ 「。H66`ユ"エjA `m」/,ノeサLネf望芙N扼ァマムg・ッuFゴ゙」9ノggセ{マケ゚=゚qソシモIu 眈 R:yメQdxヘ2L0L鼈`ェ'芯クネ0ュc_ムユot\ツ,テ怕ヒョDヒVン"Qァfわm駲kヌノン`マOnノ脾>9s5i n`訴'qハ@ テセタ%゚bルタ njホタ幽2ウォv I&N5ラ・ヌョR弊:O~<,ョキq3」燒))ニ^ォ^<ツオュ糴'ョfィq塋躇」セロ廱}ハ#Fャ3リ赧゚%便gy楫_v咢k[;イマサクツG。クPサキ2貮C("<チp・!メェ飢ツ8Y6ル ュs呷ルg゙ Rz・tuィァ/ウュ∬ヘ椀」ッg埜鑒0^ミU汝 4ツz炊 ホaだILc ウネ+A惡韵トbム[剽0樅-サキムユp%隸艙ヒサャbセニ1カ溌ノイツZ溌メg>フfQツ<蚯「GアHケp ワト監、Lm瘡J撚ヨi u<゙タ@ィ_「クwユM*66灸 >」|ツィ ヲタ @rwp?"~「4{> 枸 Ol?fチャ冑`0ム樫チLlロJ>,YWBu,gモ「=テフQ綰ユ6bjヌ3ヲn1オイ靭旗-チャR妾G0HクIモ,モS4ソm圷Mモspア=|vp<ネ+タ#過:*|>PKウモ@ァePK^ /glguerin/util/LibLoader.class昂sWンXョカ巉盲エNGIレレ卜ケシ[%&アC斂J鑑エItオセ潰^閑*i(エ -エシ槐シf胃V吹火 _烱ーdE X縱釛s~輌マン_ァ?G&(「3H狩クOヌ 'qハタュ8ュネ5|DテG5弉rV$ K斛ェ勵fQr湿qY4ーWゥ/hヤ)_Gムタ|LC」、#4ー eEホ8ァDメp^テヌu<ャ:>ゥツoNュ nォZJキン:bcホ/カTGUョ'ユ)~S8タ05b乃1J6截Qセd簍恰ッ噎マ噎マ廁^ク*疇L壓/メ圈歎ク 0ーa゚?ァBnbM、1k祚|タトユ2}&セカオyー慷)#{肭&罧亀ワトKxY糎LdpTテォ&.`ニトンj*コマ+Y。Sハ9馳岬βLチ=7O゙pW_霽U"紲23qキ穆ehZi4[ト"!_@K.zgJ&セ殴LW ヤT< ホモ査2H%スMX\ォTb齶;Gウ斤YEカ_HZナ「+童oV2逞スy炮ノフワAホュノaシチJナォxオ・頴瞻セc篏x肱イT-膨ユ$E撒Kd゚姐⇒畭ey![埠‐M糟?Wカfeク犢Jエ(冫]匚ワカ-K・=WrAza巾XS(9浴劈ホv5 ヌュ料EzワR( ノ麺:2jb゚リyオ「泓ルr^テL?レ翠6^~Z9E┥キ_voh晟j_ロ+スシJロ +CヒAニ*0アキt1鮓ワィ靄s3^)エ<[カ7瓜)QィK鼕ョw幼TRゥエ 蔕ーハ、ヌニ5?lカ^ニ}m穹[ラ鐐ユハ嗄ウム:リ^&紂カ莉蟆^シィタ]<8}EヤZA6ハェヲ0oシ潤rX{K K!?>セrユU"h・b*_トョUト.c雜ニョッ`[ VpC7V0クメW允Ubコタ]セEu)76カヒリ<ォiケi・j(ツラwヌ=?睾 アJ_ォコミ]C粒綸ラN?A]ツミ[粒艀ッbサ{*リ岔vS黍7=Q。ckク・鰤ソヲ゚キワ暾=イ入GUッW*Uナョ溂ヨ4ノllノセメ禀ヘb=アa脂 ニS痩リЩ Fェヒn衽`wノリ%ワv1ス鈷2カd紡、"ヒ鎭uウ$サi4ィ使ホ麌緇ユ1舜WG%R*ナ`貉ソーワハ:カ碌估?x%IE煬ーE「ョ熈エ隘~wエ舗ホc・cォx゚bi゙%,カア衷ュ涙=業n_テッ」e」8覃蟶 /PK。オ)vH PK^ /$glguerin/util/SinkOutputStream.classm章Jテ@マm」アZオu瓧。サXミ[ E! vq*垢M2找_ヒUチ澆駅){f懶r跂M「ーlリアMイ穿頒 n ホyy/+Yk3 u梼rクマJjV'遣/クxノトTヒイ傚,ョ^ワ,/gl 辻ィL\JK$イx=5:ムJ、謄)mチ゜リ軣#,"」e-Z ]k仕ユロ據v嶺ェソI_ワ75~ン)リ(x;[,8cル;'0]ザイRヲ☆L;薈iン鍮Yカ咢9モYヘ (eッXfOムリ[]リヒ嫺ラ*ル;t9枉 0]+f0ofヘb屋ルhスR!ko&VキXe亡ハモoクYワイ7ァc1蕁<'o.Zイ~GスMモ有"ェ」鵁gu|ム1(WCPqCヌM,ィXヤq キ・)I qI ワホJ:g゙mD忙腸ャ#;dウー髯l;盪V!qメラ[ゥ+ケm3OUzN]゚zカ]eク*ー,F)[,)ミロJ$wヒ*iノ、y ?`レ'=エRG#dBhヌtOヤV「|@8マE/ネ"h)QヘR・嗇P5;リリ5ャ燔マケヒタ夫ト80F+ F、ナ8ォT0裟`32.ムF\瀛6:)yヒ ナ:wp i2xセャLAhウニ!KツWEロ\70チmυネ?RE u奐U。 Ef軻ッュウO"4ハ>コeャWムNャ;O哄ミ渭,。クニセG9t#マyョsシチ箍0盈L。悪,礙゙ヒチ*\イ=Fwルテ/#沙v「裁^贓>Zヘィ「聳番3Fタjm5ヲ「逝Cz~ムτネ_&SホBン」ィ?ツ咆:サ#tァヌ*zニ6ッユマ$1yチ'|ソS?・゚kPK;.@PK^ /glguerin/util/VectorUtil.classm塚Nツ@マミB。V@ケ」.ヤr%ョトー1囗.D玄*ミ崇R、>/瞑票ン尉├&>升蠅Db鳬w93暝マ8d!タ'`V s"[ウyAヌカfh''ハ Nォヲ2x噛。塹舘.)ァrYVォ抃妁/ 蕭ノ鼕QマU、醯ヘhzv@ヲ濃ュヤ$o+ "キフvUンモャナ=лk.チ o7KIpテ#!CーョラMオュ續ユfd[6/率ミサコレT メdタDKtャウメミ(メ[*」jOvチhBg@」」/0=Dsd螽^`;Kコメノネ粧ン'籠/タ畿モ゙S貢ェォゥW,s;Тアワ籬 Do濳Gリッ9Knソ>~テトノS琺zク是耶mΥgーM「シン冩PKvIy梅EPK^ / META-INF/ハPK^ /Mコモ醜\=META-INF/MANIFEST.MFPK ^ /ラapp/PK ^ / app/authkit/PK ^ /#app/authkit/envoy/PK^ /逮カ%レ ラSapp/authkit/envoy/Envoy.classPK^ /dャトエユx app/authkit/envoy/Task.classPK^ /・ヨタツvapp/authkit/envoy/Tool.classPK ^ /_app/authkit/test/PK^ /s閲vアapp/authkit/test/AllTests.classPK^ /U.6' トQ"app/authkit/test/AuthTest.classPK^ /ワ孟{[+ナ,app/authkit/test/Digester.classPK^ /攵x!m0app/authkit/test/TestAttach.classPK^ /T /イ ・7app/authkit/test/TestAuth.classPK^ / 、!、Happ/authkit/test/TestDetach.classPK^ /jrフ&Kapp/authkit/test/TestExternalize.classPK^ /慶ヲ2m!FOapp/authkit/test/TestLoader.classPK^ /ツ47V( Tapp/authkit/test/TestPrivs.classPK^ /ル鬣}ァ#畄app/authkit/test/TestReattach.classPK^ /#(f&ッZapp/authkit/test/TestReleaseSelf.classPK^ /bミgハ膿app/authkit/test/TestTwo.classPK ^ /ェbapp/authkit/tools/PK^ /qP)N )レbapp/authkit/tools/AppBundleLockdown.classPK^ /、Z゚l%#japp/authkit/tools/PerformAsRoot.classPK ^ /mapp/authkit/tools/tasks/PK^ /#'~ワ_3/napp/authkit/tools/tasks/AppBundleLockdownTask.classPK^ /ン、PCT("sapp/authkit/tools/tasks/CommonTask.classPK^ /uTi、"サwapp/authkit/tools/tasks/None.classPK^ /Oイネ0ュレ$&yapp/authkit/tools/tasks/RunEat.classPK^ /ワ4畛フ$%{app/authkit/tools/tasks/RunOut.classPK ^ /C|app/hex/PK^ /KモFゥi|app/hex/Dump.classPK^ /錐?8app/hex/Hex.classPK ^ / fapp/util/PK^ /症ク。[ 高app/util/BasicAlert.classPK^ /ィ,ヨヌヤuapp/util/FileDialogger.classPK ^ / glguerin/PK ^ /ュglguerin/authkit/PK^ /[ゥnロ|$ワglguerin/authkit/Authorization.classPK ^ / glguerin/authkit/imp/PK ^ /<glguerin/authkit/imp/macosx/PK^ /9ニァネ1vglguerin/authkit/imp/macosx/AuthProcess$FIn.classPK^ /」Vヘィ2ケglguerin/authkit/imp/macosx/AuthProcess$FOut.classPK^ /Hシコi-譚glguerin/authkit/imp/macosx/AuthProcess.classPK^ /$yO5glguerin/authkit/imp/macosx/MacOSXAuthorization.classPK ^ /Rェglguerin/authkit/imp/plain/PK^ /;)ケ 5喬glguerin/authkit/imp/plain/DenyAllAuthorization.classPK^ / ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/0000755000175000017500000000000011126534456027264 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/0000755000175000017500000000000011126534457030557 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/preinstall0000755000175000017500000000040610407447142032655 0ustar twernertwerner#!/bin/sh curruser=$1 echo $curruser if [ ! -d /var/lock ] then mkdir /var/lock fi chgrp uucp /var/lock chmod 775 /var/lock if [ ! `niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then niutil -mergeprop / /groups/uucp users $curruser fi ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/README.txt0000755000175000017500000000033610407447142032255 0ustar twernertwernerlibAuthKit.jnilib and the following java packages glguerin.* app.authkit.* app.hex.* app.util.* are part of Greg Guerin's AuthKit see http://www.amug.org/~glguerin/sw/#authkit it released under "Artistic" license ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/artistic-license.html./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/artistic-licen0000755000175000017500000001273410407447142033421 0ustar twernertwerner The Artistic License

Artistic License

The "Artistic License"

Preamble

The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications.

Definitions:

  • "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification.

  • "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder.

  • "Copyright Holder" is whoever is named in the copyright or copyrights for the package.

  • "You" is you, if you're thinking about copying or distributing this Package.

  • "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.)

  • "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it.

1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers.

2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version.

3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following:

a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package.

b) use the modified Package only within your corporation or organization.

c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following:

a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version.

b) accompany the distribution with the machine-readable source of the Package with your modifications.

c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own.

6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package.

7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package.

8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission.

9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The End
./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/0000755000175000017500000000000011126534457031333 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/RXTXcomm.dat./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/RXTXcomm.d0000644000175000017500000033307110407447142033163 0ustar twernertwernerPK 餤U4 META-INF/ハPK 餤U4RぃWFFMETA-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.4.2_09 (Apple Computer, Inc.) PK 餤U4gnu/PK 餤U4gnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classハコセ.    getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort; initialize()V SourceFileCommDriver.javagnu/io/CommDriverjava/lang/ObjectPK 餤U4G\yアアgnu/io/CommPort.classハコセ.@ 2 34 356 789nameLjava/lang/String;debugZ ConstantValue()VCodeLineNumberTableenableReceiveFraming(I)V Exceptions:disableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByte()IdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeclosegetInputStream()Ljava/io/InputStream;;getOutputStream()Ljava/io/OutputStream;getName()Ljava/lang/String;toString SourceFile CommPort.java < => ?gnu/io/NoSuchPortException  gnu/io/CommPortjava/lang/Object(gnu/io/UnsupportedCommOperationExceptionjava/io/IOExceptiongnu/io/CommPortIdentifiergetPortIdentifier.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;internalClosePort!    !*キア #H !"#$%&'K*クL+ニ +W*クカァLア@B CGEH()*+,*-.*エーP/.*エーU01PK 餤U4Gウ22gnu/io/CommPortEnumerator.classハコセ.(      !"indexLgnu/io/CommPortIdentifier;debugZ ConstantValue()VCodeLineNumberTable nextElement()Ljava/lang/Object;hasMoreElements()Z SourceFileCommPortEnumerator.java # $% & ' gnu/io/CommPortEnumeratorjava/lang/Objectjava/util/Enumerationgnu/io/CommPortIdentifierSyncLjava/lang/Object;next CommPortIndex    !*キア )*f.イYLツ*エニ**エエオァ *イオ*エ+テーM+テ,ソ()),)689":);n2イYLツ*エニ*エエヌァ+テャイヌァ+テャM+テ,ソ-,--0-HJK-Mア&PK 餤U4Vヌ イ、、gnu/io/CommPortIdentifier.classハコセ. 7                      。「 」 、 ・ヲァ $ィ & ゥ 7ェォャ ュ +ョ ッ ー ア 7イ ウ エオ エカキ 5クケコ サ シス セソ タ PORT_SERIALI ConstantValue PORT_PARALLELPORT_I2C PORT_RS485PORT_RAWPortNameLjava/lang/String; AvailableZOwnercommportLgnu/io/CommPort; RXTXDriverLgnu/io/CommDriver; CommPortIndexLgnu/io/CommPortIdentifier;nextPortTypedebugSyncLjava/lang/Object;ownershipListenerLjava/util/Vector;HideOwnerEvents:(Ljava/lang/String;Lgnu/io/CommPort;ILgnu/io/CommDriver;)VCodeLineNumberTable addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)VAddIdentifierToList(Lgnu/io/CommPortIdentifier;)VaddPortOwnershipListener%(Lgnu/io/CommPortOwnershipListener;)VgetCurrentOwner()Ljava/lang/String;getNamegetPortIdentifier/(Ljava/lang/String;)Lgnu/io/CommPortIdentifier; Exceptions.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;getPortIdentifiers()Ljava/util/Enumeration; getPortType()IisCurrentlyOwned()Zopen+(Ljava/io/FileDescriptor;)Lgnu/io/CommPort;native_psmisc_report_owner&(Ljava/lang/String;)Ljava/lang/String;&(Ljava/lang/String;I)Lgnu/io/CommPort;removePortOwnershipListenerinternalClosePort()VfireOwnershipEvent(I)V SourceFileCommPortIdentifier.java _} MN KL PQ W@ VU RSgnu/io/CommPortIdentifier _` ef Z[ TU \]java/util/Vector チツ テト OLナ ニツgnu/io/NoSuchPortExceptiongnu.io.RXTXCommDriverヌ ネノ ハヒgnu/io/CommDriver フ}java/lang/Throwableヘ ホマjava/lang/StringBuffer ミム thrown while loading ミメ モjヤ ユヨgnu/io/CommPortEnumerator(gnu/io/UnsupportedCommOperationException ~ ラリjava/lang/InterruptedExceptiongnu/io/PortInUseException ij _ヨ ルz xy レツ ロ} ワqン ゙u ゚ヒ gnu/io/CommPortOwnershipListener java/lang/Objectos.name y jlinux  rxtxSerial ヨcontains(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)Vjava/lang/Stringequalsjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object; initializejava/lang/SystemerrLjava/io/PrintStream;append,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)Vwait(J)V getCommPort removeElement notifyAllelementsjava/util/EnumerationhasMoreElements nextElementownershipChange getProperty toLowerCaseindexOf(Ljava/lang/String;)I loadLibrary!7?@ABC@ADE@AFG@AHI@AJKLMNOLPQRSTUVUW@XNAYZ[\]^N_`aX$*キ*オ*+オ*,オ*オ*オ*オアb"V' WXYZ[#] cda+サY*,キ ク アb lm efa6イ YLツイ ヌ *ウ ァイ M,エニ ,エMァ,*オ+テァN+テ-ソア-0030b. y{ }~#&+5ghaN&*エ ヌ*サYキオ *エ +カ *エ +カアb。」%・ija*エーbアkja*エーbセ lma<イ Lイ YMツ+ニ+エ*カァ +エLァ,テァN,テ-ソ+ニ+ーサYキソ &)),)b"ヒヘ マムメ$ヤ.ユ4レn loaz6イ Lイ YMツ+ニ+エ*・ +エLァ,テァN,テ-ソ+ニ+ーサYキソ ##&#b" (,.n pqax@ウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#サ$Yキ%ーb  8 rsa*エャb!tua% *エァャb%!vwa サ&Yキ'ソb2n&xy!vza*エ%イ YNツ*カ(*カ)ァ:-テァ :-テソ*エサ+Y*カ,キ-ソ*エヌ**エ*エ*エケ.オ*エニ*+オ*オ*カ(*エーサ+Y**エキ/キ-ソ* ""&"bBEG ILNO)Q0S<UCWXY_[d\i]n^sbn+{ha1*エ ニ *エ +カ0Wアbrst |}aE*オ*オ*オ*カ1*カ(アb ~aY-*エ ニ(*エ カ2N-ケ3-ケ4タ5M,ケ6ァ豎b",}aWサ7Yキウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#8ク9K*カ:;カ<=ク>ア b* @ CDIF H>MDNQSVT1K 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classハコセ. PORT_OWNEDI ConstantValue PORT_UNOWNEDPORT_OWNERSHIP_REQUESTEDownershipChange(I)V SourceFileCommPortOwnershipListener.java gnu/io/CommPortOwnershipListenerjava/lang/Objectjava/util/EventListener    PK 餤U4⌒[サキキgnu/io/Configure$1.classハコセ.,     !"this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java # $ %&Save' ()* +gnu/io/Configure$1 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zgnu/io/Configure access$000     " *キ*+オアl:+カM,カ *エクアnopr PK 餤U4@6+ウgnu/io/Configure$2.classハコセ./       #$val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java %  & '() *+, -.gnu/io/Configure$2 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;gnu/io/Configure addCheckBoxes(Ljava/lang/String;)Vjava/awt/Frame setVisible(Z)V      '*キ*+オ*,オア4*エ+カカ*エカア " PK 餤U4lu綬gnu/io/Configure$3.classハコセ.D     ! "# $% &' &( )*+./val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java 0  1 234 567 89: ;<= >? @AB CAgnu/io/Configure$3 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/String substring(I)Ljava/lang/String;java/lang/IntegerparseInt(Ljava/lang/String;)Ignu/io/Configurecb[Ljava/awt/Checkbox;java/awt/CheckboxgetState()ZsetState(Z)Vjava/awt/Frame setVisible  '*キ*+オ*,オアnB+カカク=>「1*エエ2*エエ2カァカ *エカ ァミア 3;A-  PK 餤U4羣ユgnu/io/Configure$4.classハコセ.   this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFileConfigure.java   gnu/io/Configure$4 InnerClassesjava/awt/event/WindowAdapter()Vjava/lang/Systemexit(I)V   " *キ*+オア ヲ  !クア ィゥ PK 餤U4W$ュュgnu/io/Configure.classハコセ. [xyz {| }~ { [   {  } [ # #    [ 5 #} 5 + [。「 +} 」、・ +ヲァ 2 +ィゥ 5ェ 7ォ 5ィャ :ッ [ーア =イ =ウ =エオカ A} 5キク Eケコ Gサ Eシスセソ K}タ Nサ Kシチツテ +トナニ Wッ +ヌ +ネノ [cb[Ljava/awt/Checkbox;p1Ljava/awt/Panel; PORT_SERIALI ConstantValue PORT_PARALLELPortType EnumMessageLjava/lang/String;saveSpecifiedPorts()VCodeLineNumberTable addCheckBoxes(Ljava/lang/String;)Vmain([Ljava/lang/String;)V access$000(Lgnu/io/Configure;)V Synthetic SourceFileConfigure.java jkjava/lang/String java.homeハ ヒフ popath.separator: ヒヘfile.separator/line.separator gbjava/lang/StringBuffer pk ホマlibgnu.io.rxtx.SerialPorts ミムgnu.io.rxtx.ParallelPorts メモBad Port Type!ヤ ユojava/io/FileOutputStream ]^ ヨラ リム ルレ ロワ ンkjava/io/IOException IOException! _` ゙゚java/awt/Checkbox ホNORTH +gnu.io.rxtx.properties has not been detected. There is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save hijava/awt/Frame Configure gnu.io.rxtx.properties COM/dev/ java/awt/BorderLayout java/awt/Paneljava/awt/GridLayout pgnu/io/Configure$1 InnerClasses pt nojava/awt/TextArea p java/awt/Label Port Name: java/awt/TextField pgnu/io/Configure$2 p  Keep Portsjava/awt/Button1-gnu/io/Configure$3MoreSaveSouthCenterNorthgnu/io/Configure$4 gnu/io/Configurejava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintlngetState()ZgetLabelgetBytes()[Bwrite([B)Vcloseremove(Ljava/awt/Component;)V(I)Ljava/lang/StringBuffer;add<(Ljava/lang/String;Ljava/awt/Component;)Ljava/awt/Component; compareTo(Ljava/lang/String;)I setBounds(IIII)V setLayout(Ljava/awt/LayoutManager;)V(II)V(Ljava/lang/String;III)VsetSize setEditable(Z)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/lang/String;I)V%(Lgnu/io/Configure;Ljava/awt/Frame;)VaddActionListener"(Ljava/awt/event/ActionListener;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V setVisible [+]^_`abcdebcfgbhijkl{ サYクキMクN  ク: ク:*エ 0サYサ Yキ,カカカカカカキLァ2*エ !サYサ Yキ,カカカキLァ イカアイ+カサY+キ:6「D*エ2カ1サYサ Yキ*エ2カカ-カカキ:カカァコカカカァ :イ カアm^$ %&'%*-+Z.b/3469;・=イ?ヨA;DEJGIKnolh=「*エ2ニ*エ!*エ2カ"ァ=△<*エdサ#Yサ Yキ+カカ$カキ%S*エ!&*エd2カ'Wァテアm& O PQO%R.TOUaRgWpklセ*キ(*オ *サY)キオ*<=*ス#オサ+Y,キ-N  ク: カ. /:ァ0:-d2カ1-サ2Yキ3カ4*サ5Yキ6オ!*エ!サ7Yキ8カ9サ:Y*キ;:*カ<サ=Y*エ*2キ>:2カ?カ@サ5Yキ6:サAYBキCカDWサEYキF:  サGY*-キHカI カDWサ#YJキ%:  カDWスK: 6 6  △K  サKYサ YキLカ カ$カキMS  2サNY*-キOカP  2カDW h6 ァウサKYQキM: サKYRキM:  カP カP カDW カDW-SカTW-U*エ!カTW-VカTW-サWY*キXカY-カZアmカ-Z イ[\](^2`;bEcLePgZheipjkuv「xェyー{ケ|ネ}ユ~3DO[fqx。「」」ャ、クャスュ qrl% サ[Yキ\Wアm ーアstl*キアmuvwョ":GNWPK 餤U4HGムhhgnu/io/I2C$I2CInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileI2C.java 0 1 23 45  657 89 :5  ;< =5gnu/io/I2C$I2CInputStreamI2CInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/I2C access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 " *キ*+オアu-*エクW*エクャ w x! *++セカャ|゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ: '=DLT`ft| *エク ャ-  ,PK 餤U4mリ gnu/io/I2C$I2COutputStream.classハコセ.*     "this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileI2C.java   $ %& '( ) gnu/io/I2C$I2COutputStreamI2COutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/I2C access$1000(Lgnu/io/I2C;I)V access$1100(Lgnu/io/I2C;[BII)V access$1200     " *キ*+オアe % *エクア gh ( *エ++セクア j k ' *エ+クア m n $*エクア pq!  PK 餤U4ノト&&gnu/io/I2C$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileI2C.java           # N O#gnu/io/I2C$MonitorThreadjava/lang/Thread gnu/io/I2C eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ー ヲァィゥェ"ォ'ャ,ュ1ョ6ッ;ー"# $*エ カ ア! イウ$' *エ ャ!「(' *エ ャ!「)' *エャ!「*' *エャ!「+' *エャ!「,' *エャ!「-' *エャ!「.' *エャ!「/' *エャ!「0' *エャ!「12 *Zオ ャ!「32 *Zオ ャ!「42 *Zオャ!「52 *Zオャ!「62 *Zオャ!「72 *Zオャ!「82 *Zオャ!「92 *Zオャ!「:2 *Zオャ!「;2 *Zオャ!「<=& J%PK 餤U4ホ9gnu/io/I2C.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesI2CInputStreamI2COutputStreamfdIdsrFlagZoutLgnu/io/I2C$I2COutputStream;inLgnu/io/I2C$I2CInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/I2CPortEventListener; monThreadLgnu/io/I2C$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setI2CPortParams(IIII)VnativeSetI2CPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/I2CPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/I2C;I)V Synthetic access$1100(Lgnu/io/I2C;[BII)V access$1200(Lgnu/io/I2C;)V access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500 access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 SourceFileI2C.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/I2C$I2COutputStream wミ cdgnu/io/I2C$I2CInputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/I2CPortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/I2C$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネvrxtxI2C ]x uv ab gnu/io/I2Cgnu/io/I2CPortgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/I2CPort;IZZ)Vgnu/io/I2CPortEventListenerI2CEvent(Lgnu/io/I2CPortEvent;)Vstart interrupt access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>3@E[#_)c.g3l8=、BツGテLQ4Z5{|}~{|y*エ ーzAy*エーzFyK*キ*オ*オ*オ*オアzO PQRST{{y*エャz\y*エャz`y*エャzdy*エャzhyL*カァ M,カア*オアznro p qsty*エャzu{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アzァゥ ェョ$ーvy"*カ)アz イウy*エャzオy% *エァャzクy"*オアz ニヌ。y*エャzハ「y"*オアz ホマ」y*エャzメ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu !#ャ$ュ&コ'サ)ネ*ノ,-/01コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz789 :';{@シvyA*オ>*エ*ニ*エ*カE*オ*アz>? @ACスヲy" *エ*クFWアzEセヲy" *エ*クGWアzGソヲy" *エ*クHWアzIタヲy" *エ*クIWアzJチヲy" *エ*クJWアzKツヲy" *エ*クKWアzLテヲy" *エ*クLWアzMトヲy" *エ*クMWアzNナヲy" *エ*クNWアzOニヲy" *エ*クOWアzPヌvネvyD*カP*キQ*キR*キS*オアzVW XYZ[ノvy( *エ*カTアz ` aハヒy*キ アz"{フヘホy *+キアz"{フマミy*キアz"{フムメy*Zオャz"フモヤy*キャz"{フユヤy*エャz"フヨヤy*エャz"フラリy *+キャz"{フルヤy*キャz"{フレvy- UクVクWウXアz&'=ロワ\BY[Y] Y^PK 餤U43クgnu/io/I2CPort.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetI2CPortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener (Lgnu/io/I2CPortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFile I2CPort.java !gnu/io/I2CPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4|、ンiignu/io/I2CPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/I2CPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileI2CPortEvent.java !2   gnu/io/I2CPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U42レエヘヘ!gnu/io/I2CPortEventListener.classハコセ.   I2CEvent(Lgnu/io/I2CPortEvent;)V SourceFileI2CPortEventListener.javagnu/io/I2CPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4m pp"gnu/io/LPRPort$MonitorThread.classハコセ.+   ! " #$ %&'monErrorZ monBufferthis$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses!(Lgnu/io/LPRPort$MonitorThread;)Z access$100 access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 SourceFile LPRPort.java  ( ) *gnu/io/LPRPort$MonitorThreadjava/lang/Threadgnu/io/LPRPort eventLoopyield    8*キ*+オ*オ*オアJ HIJ+ *エカクアMN O*エャF*エャF*ZオャF*ZオャF #PK 餤U4b:[(gnu/io/LPRPort$ParallelInputStream.classハコセ.-       !"%this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I available SourceFile LPRPort.java & ' ()java/io/IOException * + ,"gnu/io/LPRPort$ParallelInputStreamParallelInputStream InnerClassesjava/io/InputStream()Vgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)IreadByte readArraynativeavailable   " *キ*+オア.6*エク サYキソ*エカャ 23:*エク サYキソ*エ++セカャ 789*エク サYキソ*エ+カャ =>6*エク サYキソ*エカャ BC$  #PK 餤U4} 腎t)gnu/io/LPRPort$ParallelOutputStream.classハコセ.*       !$this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile LPRPort.java  % &'java/io/IOException ( )#gnu/io/LPRPort$ParallelOutputStreamParallelOutputStream InnerClassesjava/io/OutputStreamgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)I writeByte writeArray     " *キ*+オア!;*エク サYキソ*エカア!>*エク サYキソ*エ++セカア!=*エク サYキソ*エ+カア#$%!/*エク サYキソア (*# "PK 餤U4pケョョgnu/io/LPRPort.classハコセ. = > 。 =「」 。 =、 =・ =ヲ =ァ =ィ =ゥ =ェォ ャ ュョッ ーアイ =ウ >エ =オ カキ カクケ コ =サ 1シ =ス 1セ 1ソ ュタチ "ツ "テ "ト "ナニ (ヌ ネノ2 ハヒフヘ /ホ 1。 1マ 1ミム 1メモ 1ヤ =エユ ュヨ =ラリル MonitorThread InnerClassesParallelInputStreamParallelOutputStreamdebugZ ConstantValuefdIout%Lgnu/io/LPRPort$ParallelOutputStream;in$Lgnu/io/LPRPort$ParallelInputStream;lprmodetimeout thresholdPPEventListener"Lgnu/io/ParallelPortEventListener; monThreadLgnu/io/LPRPort$MonitorThread; Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsレopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;getMode()IsetMode(I)Irestartsuspend setLPRMode(I)Z isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOut nativeClosecloseenableReceiveFraming(I)VdisableReceiveFramingisReceiveFramingEnabledgetReceiveFramingByteenableReceiveTimeoutdisableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizegetOutputBufferFree writeByteロ writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener%(Lgnu/io/ParallelPortEventListener;)VremoveEventListener notifyOnError(Z)VnotifyOnBufferfinalize access$200(Lgnu/io/LPRPort;)I Synthetic SourceFile LPRPort.java GH VU#gnu/io/LPRPort$ParallelOutputStream Vワ IJ"gnu/io/LPRPort$ParallelInputStream KL MH NH OH \] ン゙ hi(gnu/io/UnsupportedCommOperationException ゚U Irestart() is not implemented Wsuspend() is not implemented pU qU U U Not supported VW RS k PQ java/lang/StringBufferunknown event: gnu/io/ParallelPortEvent V  java/lang/Exception#java/util/TooManyListenersExceptiongnu/io/LPRPort$MonitorThread U U$notifyOnError is not implemented yet %notifyOnBuffer is not implemented yet  rxtxParallel W TUgnu/io/LPRPortgnu/io/ParallelPortgnu/io/PortInUseExceptionjava/io/IOException(Lgnu/io/LPRPort;)VnameLjava/lang/String;printStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintlnjava/lang/Runtime getRuntime()Ljava/lang/Runtime;gc isInterrupted access$000!(Lgnu/io/LPRPort$MonitorThread;)Z access$100errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/ParallelPort;IZZ)V gnu/io/ParallelPortEventListener parallelEvent(Lgnu/io/ParallelPortEvent;)Vjava/lang/Threadsleep(J)Vstart interrupt access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 loadLibrary0=> CDEFGHIJKLMHNHOHPQRS2 TUVWXr:*キ*サY*キオ*サY*キオ*オ *オ *オ **+キ オ*+オ アY& -IMR!&+;4<9AZ["\]Z[^_X*エーYJ`aX*エーYNbcX*エ ャYSdeXO*カWァ M,カャ*オ ャ YW[ X YZ\]ZfUX% イカアY abgUX% イカアY efhiZjklkmknkokpU!qUXP *エア*キ*キ*カ*オクカアYtu vwyz{rsX" サYキソYZtUXアYukXャYvcXャYwsX2 *オ ァ*オ アY xUX*オ アYykX% *エ ァャYzcX*エ ャY{sX3、 *オ ァ*オ アY |UX*オ アY}cX*エ ャY~kX&*エ 、ァャYscsccsZZUZcZcZZUkX1*エニ *エカャャYセソタ!Xカ*エ*エニ *エヌャォ:+*エクァ/ャ*エク ァ ャイ!サ"Yキ#$カ%カ&カ'カャサ(Y*ァキ)N*エニ *エ-ケ**エ*エニ *エヌャ+ク-ァ:ャゥッイ.YBヌノフ4マAミCメPモRユkヨmリレロワァ゙ゥエ!XT(*エニ サ/Yキ0ソ*+オ*サ1Y*キ2オ*エカ3アY 'Z/!UXA*オ*エニ*エカ4*オアY !X2イ5カ*エク6WアY!X2イ7カ*エク8WアY  UX( *エ*カ9アY  X*エャYUX) :ク;ク<アY#$%@1=?=A=BPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classハコセ.   (Ljava/lang/String;)VCodeLineNumberTable()V SourceFileNoSuchPortException.java   gnu/io/NoSuchPortExceptionjava/lang/Exception!"*+キア !" !*キア %&  PK 餤U4ェテテgnu/io/ParallelPort.classハコセ.3 ./0 LPT_MODE_ANYI ConstantValue LPT_MODE_SPP LPT_MODE_PS2 LPT_MODE_EPP LPT_MODE_ECPLPT_MODE_NIBBLE()VCodeLineNumberTablegetMode()IsetMode(I)I Exceptions1restartsuspend isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOutgetOutputBufferFreeaddEventListener%(Lgnu/io/ParallelPortEventListener;)V2removeEventListener notifyOnError(Z)VnotifyOnBuffer SourceFileParallelPort.java gnu/io/ParallelPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException!     *キア !"#$%&'()*+*,-PK 餤U4Pン`|gnu/io/ParallelPortEvent.classハコセ.#     ! PAR_EV_ERRORI ConstantValue PAR_EV_BUFFEROldValueZNewValue eventType(Lgnu/io/ParallelPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileParallelPortEvent.java "   gnu/io/ParallelPortEventjava/util/EventObject(Ljava/lang/Object;)V!      >*+キ*オ*オ*オア*+ ,-.*エャ1*エャ5*エャ9PK 餤U478」&gnu/io/ParallelPortEventListener.classハコセ.    parallelEvent(Lgnu/io/ParallelPortEvent;)V SourceFileParallelPortEventListener.java gnu/io/ParallelPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4咎Gqqgnu/io/PortInUseException.classハコセ.    currentOwnerLjava/lang/String;(Ljava/lang/String;)VCodeLineNumberTable()V SourceFilePortInUseException.java    gnu/io/PortInUseExceptionjava/lang/Exception!  + *+キ*+オア +, -  !*キア 01 PK 餤U4^狛&&gnu/io/Raw$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileRaw.java           # N O#gnu/io/Raw$MonitorThreadjava/lang/Thread gnu/io/Raw eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ョ 、・ヲァィ"ゥ'ェ,ォ1ャ6ュ;ョ"# $*エ カ ア! ーア$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4ナサヤhhgnu/io/Raw$RawInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileRaw.java 0 1 23 45  657 89 :5  ;< =5gnu/io/Raw$RawInputStreamRawInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/Raw access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 " *キ*+オアs-*エクW*エクャ u v! *++セカャz゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:~ '=DLT`ft| *エク ャ-  ,PK 餤U4ク聒 gnu/io/Raw$RawOutputStream.classハコセ.*     "this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileRaw.java   $ %& '( ) gnu/io/Raw$RawOutputStreamRawOutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/Raw access$1000(Lgnu/io/Raw;I)V access$1100(Lgnu/io/Raw;[BII)V access$1200     " *キ*+オアc % *エクア ef ( *エ++セクア h i ' *エ+クア k l $*エクア no!  PK 餤U4vウ蟋ァgnu/io/Raw.classハコセ.g [ [ [ [ [ [ [ [ [ \ [  [ [ [ [ [ [ [ [ [ [ [ [   [ [   [ [  [ [ C C C C C C C C C C  7 7 7 7 = [ !"# A$ C C% C& C' C( C) C* C+ C, C- C. C/ C0 [1 [2 [3 \4 [456 7 [8 [9:; MonitorThread InnerClassesRawInputStreamRawOutputStream ciAddressIdsrFlagZoutLgnu/io/Raw$RawOutputStream;inLgnu/io/Raw$RawInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RawPortEventListener; monThreadLgnu/io/Raw$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions<open(I)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRawPortParams(IIII)VnativeSetRawPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/RawPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize getVersion()Ljava/lang/String; access$1000(Lgnu/io/Raw;I)V Synthetic access$1100(Lgnu/io/Raw;[BII)V access$1200(Lgnu/io/Raw;)V access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500 access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 SourceFileRaw.java オ キク ob pb カ vb エx イウ ア yxgnu/io/Raw$RawOutputStream yヤ efgnu/io/Raw$RawInputStream gh ib jb kb lb mb nb qb= >? ab  java/io/IOException @x(gnu/io/UnsupportedCommOperationException Not supported yz A eBInvalid timeoutC Dz Invalid Threshold tu EF GF HF IF JF KF LF MF NF OF PBjava/lang/StringBufferunknown event: QR QS Tヘgnu/io/RawPortEvent yU rsV WX#java/util/TooManyListenersExceptiongnu/io/Raw$MonitorThread Yx Zx [\ ]\ ^\ _\ `\ a\ b\ c\ d\ e\ ァィ ェィ ノ ハx8$Id: Raw.java,v 1.1.2.13 2004/10/12 08:59:27 jarvi Exp $rxtxRaw fz wx cd gnu/io/Rawgnu/io/RawPortgnu/io/PortInUseExceptionjava/lang/IntegerparseInt(Ljava/lang/String;)IprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString(Lgnu/io/RawPort;IZZ)Vgnu/io/RawPortEventListenerRawEvent(Lgnu/io/RawPortEvent;)Vstart interrupt access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0[\abcdefghibjbkblbmbnbobpbqbrstuvbM wxyz{キc*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*+クオ**エキWア|B0>CY#])a.e3j8=「BタGチLQ1Y2b3}~}~{*エ ー|?{*エー|D{K*キ*オ*オ*オ*オア|M NOPQR}}{*エャ|Z{*エャ|^{*エャ|b{*エャ|f{L*カァ M,カア*オア|lpm n oqr{*エャ|s}{" サY キ!ソ|}x{ア|{ャ|{ャ|x{"*カ"ア| {J"*オ**エ*エカ#ァ イ$%カ&ア| !{*カ'ャ|{*カ(ャ|{M%*オ**エ*エ*エカ#ァ イ$)カ&ア|・ァ ィャ$ョx{"*カ*ア| ーア{*エャ|ウ。{% *エァャ|カ「{"*オア| トナ」{*エャ|ネ、{"*オア| フヘ・{*エャ|ミヲァィゥィェィォャュョッーア}イウ}エx}オ}カ}キク}ケxコサ{ ェネ 7JXftャコ*オ*エ+ク,ァ愕*エ+ク-ァ竺*エ+ク.ァア*エ+ク/ァrア*エ+ク0ァdア*エ+ク1ァVア*エ+ク2ァHア*エ+ク3ァ:ア*エ+ク4ァ,ア*エ+ク5ァアイ6サ7Yキ89カ:カ;カ<カ&アサ=Y*ァキ>N*エ?ニ *エ?-ケ@ア|n8=JKXYfgtu!ャ"ュ$コ%サ'ネ(ノ*+-./シス{P(*エ?ニ サAYキBソ*+オ?*サCY*キDオ+*エ+カEア|567 8'9}Aセx{A*オ?*エ+ニ*エ+カF*オ+ア|<= >?Aソィ{" *エ+クGWア|Cタィ{" *エ+クHWア|Eチィ{" *エ+クIWア|Gツィ{" *エ+クJWア|Hティ{" *エ+クKWア|Iトィ{" *エ+クLWア|Jナィ{" *エ+クMWア|Kニィ{" *エ+クNWア|Lヌィ{" *エ+クOWア|Mネィ{" *エ+クPWア|Nノハx{E*カQ*キR*キSW*キT*オア|TU VWXYヒx{!*カUア| ^_フヘ{!VL+ー| オカホマ{*キ ア|}ミムメ{ *+キア|}ミモヤ{*キア|}ミユヨ{*Zオャ|ミラリ{*キャ|}ミルリ{*エャ|ミレリ{*エャ|ミロワ{ *+キャ|}ミンリ{*キャ|}ミ゙x{- WクXクYウZア|#$;゚^C[][_ [`PK 餤U4ア#ミbbgnu/io/RawPort.classハコセ.6 123 DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT WRITE_SIZEIO_PORTx()VCodeLineNumberTablesetRawPortParams(IIII)V Exceptions4addEventListener (Lgnu/io/RawPortEventListener;)V5removeEventListener SourceFile RawPort.java #$gnu/io/RawPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException         !"#$%*キア&'()*+,)-.$/0PK 餤U41Fノiignu/io/RawPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RawPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRawPortEvent.java !2   gnu/io/RawPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U4訪Rヘヘ!gnu/io/RawPortEventListener.classハコセ.   RawEvent(Lgnu/io/RawPortEvent;)V SourceFileRawPortEventListener.javagnu/io/RawPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4?D1,44 gnu/io/RS485$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RS485.java           # N O#gnu/io/RS485$MonitorThreadjava/lang/Thread gnu/io/RS485 eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ュ 」、・ヲァ"ィ'ゥ,ェ1ォ6ャ;ュ"# $*エ カ ア! ッー$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFile RS485.java 0 1 23 45  657 89 :5  ;< =5gnu/io/RS485$RS485InputStreamRS485InputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/RS485 access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 " *キ*+オアr-*エクW*エクャ t u! *++セカャy゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:} ~'=DLT`ft| *エク ャ-  ,PK 餤U4い]--$gnu/io/RS485$RS485OutputStream.classハコセ.*     "this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFile RS485.java   $ %& '( ) gnu/io/RS485$RS485OutputStreamRS485OutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/RS485 access$1000(Lgnu/io/RS485;I)V access$1100(Lgnu/io/RS485;[BII)V access$1200     " *キ*+オアb % *エクア de ( *エ++セクア g h ' *エ+クア j k $*エクア mn!  PK 餤U4播>メ//gnu/io/RS485.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesRS485InputStreamRS485OutputStreamfdIdsrFlagZout Lgnu/io/RS485$RS485OutputStream;inLgnu/io/RS485$RS485InputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RS485PortEventListener; monThreadLgnu/io/RS485$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRS485PortParams(IIII)VnativeSetRS485PortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener"(Lgnu/io/RS485PortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/RS485;I)V Synthetic access$1100(Lgnu/io/RS485;[BII)V access$1200(Lgnu/io/RS485;)V access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500 access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 SourceFile RS485.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/RS485$RS485OutputStream wミ cdgnu/io/RS485$RS485InputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/RS485PortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/RS485$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネv rxtxRS485 ]x uv ab gnu/io/RS485gnu/io/RS485Portgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/RS485Port;IZZ)Vgnu/io/RS485PortEventListener RS485Event(Lgnu/io/RS485PortEvent;)Vstart interrupt access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>0=BX#\)`.d3i8=。BソGタLQ1Z2{|}~{|y*エ ーz>y*エーzCyK*キ*オ*オ*オ*オアzL MNOPQ{{y*エャzYy*エャz]y*エャzay*エャzeyL*カァ M,カア*オアzkol m npqy*エャzr{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アz、ヲ ァォ$ュvy"*カ)アz ッーy*エャzイy% *エァャzオy"*オアz テト。y*エャzヌ「y"*オアz ヒフ」y*エャzマ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu ャ!ュ#コ$サ&ネ'ノ)*,-.コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz456 7'8{@シvyA*オ>*エ*ニ*エ*カE*オ*アz;< =>@スヲy" *エ*クFWアzBセヲy" *エ*クGWアzDソヲy" *エ*クHWアzFタヲy" *エ*クIWアzGチヲy" *エ*クJWアzHツヲy" *エ*クKWアzIテヲy" *エ*クLWアzJトヲy" *エ*クMWアzKナヲy" *エ*クNWアzLニヲy" *エ*クOWアzMヌvネvyD*カP*キQ*キR*キS*オアzST UVWXノvy( *エ*カTアz ] ^ハヒy*キ アz{フヘホy *+キアz{フマミy*キアz{フムメy*Zオャzフモヤy*キャz{フユヤy*エャzフヨヤy*エャzフラリy *+キャz{フルヤy*キャz{フレvy- UクVクWウXアz#$:ロワ\BY[Y] Y^PK 餤U4コ1茉gnu/io/RS485Port.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetRS485PortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener"(Lgnu/io/RS485PortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFileRS485Port.java !gnu/io/RS485Portgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4Tユ蚩ognu/io/RS485PortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RS485Port;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRS485PortEvent.java !2   gnu/io/RS485PortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$34 567%&#*エャ$:'(#*エャ$>)(#*エャ$B*+PK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classハコセ.    RS485Event(Lgnu/io/RS485PortEvent;)V SourceFileRS485PortEventListener.javagnu/io/RS485PortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classハコセ. ミ マ    マ        マ     マ   マ  マ マ マ マ  $ $ $!"#$% *& - -' ( -) *+ ,- ,. - /01234 マ56789:;<=>? @ABC I IDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~。「」、・ヲァィゥェォャュョッーアイ マウエ シオ セカ キ クケコ サ シス シセソ マセタチツテトナニヌネdebugZ ConstantValuedeveldeviceDirectoryLjava/lang/String;osName()VCodeLineNumberTableregisterKnownPorts(I)ZisPortPrefixValid(Ljava/lang/String;)ZtestRead(Ljava/lang/String;I)ZgetDeviceDirectory()Ljava/lang/String;nativeGetVersiongetValidPortPrefixes(([Ljava/lang/String;)[Ljava/lang/String; checkSolaris(Ljava/lang/String;I)VregisterValidPorts*([Ljava/lang/String;[Ljava/lang/String;I)V initializeaddSpecifiedPortsregisterSpecifiedPortsregisterScannedPorts(I)V getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort;Report(Ljava/lang/String;)V SourceFileRXTXCommDriver.java ロワjava/lang/String ロノ ハヒ ロフ ヘホ マ ミム メモ ヤユ ヨ ラ リル レロ レルwindows ワンjava/lang/StringBuffer リル ゙゚ SolarisSunOS os.name ホ ゚ path.separator: java/util/StringTokenizer ロ   java.ext.dirsfile.separatorjava/io/FileInputStreamgnu.io.rxtx.propertiesjava/util/Properties       java/lang/Exceptiongnu.io.rxtx.SerialPortsgnu.io.SerialPortsgnu.io.rxtx.ParallelPortsgnu.io.ParallelPorts  Windows CECOM1:COM2:COM3:COM4:COM5:COM6:COM7:COM8:COM ゙LPT java/io/File /dev/term term/LinuxttySttySAttyUSBLinux-all-portscomxholtermodemrfcomm ttyircomm ttycosa0c ttycosa1cttyCttyCHttyDttyEttyFttyHttyIttyLttyMttyMXttyPttyRttySIttySRttyTttyVttyWttyXqnxserIrixttycttydttyfttymttyqtty4dtty4fmidiusFreeBSDcuaattyAcuaAcuaDcuaEcuaFcuaRstlNetBSDtty0cua/HP-UXtty0ptty1pUnixWareOpenUNIXtty00stty01stty02stty03s OpenServertty1Atty2Atty3Atty4Atty5Atty6Atty7Atty8Atty9Atty10Atty11Atty12Atty13Atty14Atty15Atty16Attyu1Attyu2Attyu3Attyu4Attyu5Attyu6Attyu7Attyu8Attyu9Attyu10Attyu11Attyu12Attyu13Attyu14Attyu15Attyu16ACompaq's Digital UNIXOSF1BeOSserialMac OS Xcu.KeyUSA28X191.tty.KeyUSA28X191.cu.KeyUSA28X181.tty.KeyUSA28X181.cu.KeyUSA19181.tty.KeyUSA19181.lplpt gnu/io/RXTXPortgnu/io/LPRPortgnu/io/PortInUseException   rxtxSerial   java/lang/ErrorStable Library)=========================================Native lib Version = Java lib Version = /WARNING: RXTX Version mismatch Jar version =  native lib Version = gnu/io/RXTXCommDriverjava/lang/Objectgnu/io/CommDriverjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V([C)Vconcat&(Ljava/lang/String;)Ljava/lang/String;gnu/io/CommPortIdentifier addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)Vlength()I substring(I)Ljava/lang/String; toUpperCase toLowerCase regionMatches(ILjava/lang/String;II)Zequals(Ljava/lang/Object;)ZindexOf(Ljava/lang/String;)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'(Ljava/lang/String;Ljava/lang/String;)VhasMoreElements()Z nextTokenload(Ljava/io/InputStream;)V setProperties(Ljava/util/Properties;)VkeySet()Ljava/util/Set; java/util/Setiterator()Ljava/util/Iterator;java/util/IteratorhasNextnext()Ljava/lang/Object; setProperty(I)Ljava/lang/StringBuffer;list()[Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintln loadLibrarygnu/io/RXTXVersion getVersion!マミムメモヤユヨモヤラリルレルロワン*キア゙$゚ ンQスM+ヌ>6+セ「%*+2キ,サY+2キSァレス:,ク,2ヌー゙. lo t uv"w3u9{?|H}NンsGシY[UN-aU-4{「3*+サY-キカキ+サY-キカ*ク -\4`旦ァヒア゙ *;Fァンb 66+ニ,ニ6+セ「ワ6,セ「フ,2:カ 6+2:カ 「ァヲカ カ : カ カ : カ  カァs*エカ カ%サYサYキ*エカカカキ: ァサYキ: *エカ*エカ * キァ* キ  *ク ァ3ァ#ア゙^ュョノヒフ"ワ(ン/゙5゚BNZruァイハヤ゙フヒ ワンh4*クオ**キオ<」*キ*キ*キ ァ羈゙"- .45 6(7-43;ンg7!"ク#Nサ$Y+-キ%:カ&カ':*キ*ク ァ牾゙?@DF"H,I6Lン@ヤMサYキ(クカ)クカカNサ*YサYキ-カ+カカキ,:サ-Yキ.:カ/ク0カ1ケ2:ケ3ケ4タ:カ5ク6WァンァNォA.8クYMヌ9クMァ:クYMヌ ;クMァ,ニ *,キ<ャャ7゙Rafg9hBiIjNkdlpmto{}ェ~ウスニハミメン*エ=カ8スY>SY?SY@SYASYBSYCSYDSYESN-Mァ*エカ カsスN6」*-dサYサYキFカカGカキSァヤ6」,-`サYサYキHカカGカキSァヤ-Mァ*エカ*エカVスN6:サIYJキK:カLセ-サYMキSス:-2SァMァサIY*エキKN-カL:M,ヌアスNォ@ル*エNカスYOSYPSYQS:Nァ*エRカャスYSSYTSYUSYVSYWSYXSYYSYZSY[SY \SY ]SY ^SY _SY `SYaSYbSYcSYdSYeSYOSYfSYgSYhSYQSYiSYjSYkS:NァK*エカ lカスYmS:Nァ**エnカ@ スYoSYpSYqSYrSYsSYtSYuSYvSYwS:Nァ*エxカX スYpSYySYzSY{SY\SY|SY]SY}SY^SY ~SY eSY SY S:Nァ*エカスY4:Nァc*エカ*エカスYMSYゴ:Nァ5*エ┯スYSYS:Nァ*エカ*エ宛#スY唄Y慨Y鬼Y郡:Nァロ*エ左ハ スY惨Y輯Y心Y全Y担Y鉄Y粘Y百Y亡Y 祐Y 牢Y 儡Y 售Y 婀Y彜Y抓Y朶Y欖YSY。SY「SY」SY、SY・SYヲSYァSYィSYゥSYェSYォSYャSYュS:Nァ*エョカ*エッカスY4:Nァ゚*エーカスYアS:Nァツ*エイカ.スYウSYエSYオSYカSYキSYクS:Nァ*エカ カ{スYFS:Nァj*エNカスYケS:NァM*エxカスYコS:Nァ0*エカ カスYHS:Nァス:Nァ*,-キサア゙^W <A「Q、X・cァ・ゥォカゥシュチッルヤ゙ユヨリルレ &,8>AEFKht >4D6T8_;e=q?ィJョLコN ]_a&d,fDiTmZofqvu|x{ョエタィェャェッーイシエヌキヘケルサノヒヘム%1<BNY_oz  ンュaォZQ*エカ カ サシY+キスーサシYサYキ*エカ+カカキスーサセY+キソーァNー4^タ5Q^タRZ^ダ" ,#5'R*[3^/_4ン$イチ+カツア゙ :;ワンメテクトクナKクニLァMクネLイチノカツイチハカツイチサYキヒカ+カカカツイチサYキフカ*カカカツ*+カ%イチサYキヘカ*カホカ+カカカツア ヌ゙6 -9 < A=@DE%F>GWJ_LRPK 餤U4ムb=pレレ#gnu/io/RXTXPort$MonitorThread.classハコセ.W B C D E F G H I J K L M NO NPQRCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablerun()Vfinalize ExceptionsS access$000 MonitorThread InnerClasses"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RXTXPort.java           $ T U V$gnu/io/RXTXPort$MonitorThreadjava/lang/Threadjava/lang/Throwablegnu/io/RXTXPortmonThreadisInterrupted eventLoop  BBBBBBBBBB !<*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア"2  "',16;#$!0*エ オ *エ カア"&'*%$!ア"/&'(+!*エ ャ" ,+!*エ ャ" -+!*エャ" .+!*エャ" /+!*エャ" 0+!*エャ" 1+!*エャ" 2+!*エャ" 3+!*エャ" 4+!*エャ" 56!*Zオ ャ" 76!*Zオ ャ" 86!*Zオャ" 96!*Zオャ" :6!*Zオャ" ;6!*Zオャ" <6!*Zオャ" =6!*Zオャ" >6!*Zオャ" ?6!*Zオャ" @A* N)PK 餤U44 'gnu/io/RXTXPort$SerialInputStream.classハコセ._ , - ./0 , .1 .23 45 .6 .7 .8 9:;< ,=> , .? .@ AB .C .DEHthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I ([BII[B)I available SourceFile RXTXPort.java I J KLjava/io/IOException MN OP'+++++++++ read() monThreadisInterruptedQ RS TU VI W$ #'+++++++ IOException() +++++++ NullPointerException() java/lang/NullPointerException$+++++++ IndexOutOfBoundsException() #java/lang/IndexOutOfBoundsException XL Y$Z [\ ]' ^(!gnu/io/RXTXPort$SerialInputStreamSerialInputStream InnerClassesjava/io/InputStream()Vgnu/io/RXTXPort access$1100(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZ access$1200()Lgnu/io/Zystem; gnu/io/Zystemreportln(Ljava/lang/String;)ZIOLockedIwaitForTheNativeCodeSillyreadByte access$1300nativeavailablejava/lang/Mathmin(II)I readArrayreadTerminatedArray  !" *キ*+オア"タ!#$!ヲb*エク サYキソ*エエ クカ W*エYエ `オ *エカ *エカ <=*エYエ dオ ャN*エYエ dオ -ソ9CRRSR""ユヨリ%レ2ン9AC%!#&!M*エエャ*エYエ `オ *エカ *++セカ =>*エYエ dオ ャ:*エYエ dオ ソ!,;;=;"  !* ,%!#'!n*エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウトヤヤヨヤ"f. 2368(;0>@@ICQIUMWRZTd]m^r_xajlprャsウvタyト}%!#(!p *エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウニヨヨリヨ"f 」・(ィ0ォ@ュIーQカUコWソZチdハmヒrフxホラルン゚ャウツニ%!)$!C*エエャ*エYエ `オ *エカ<=*エYエ dオ ャN*エYエ dオ -ソ$3343"  "$%*+G .FPK 餤U4。t5(gnu/io/RXTXPort$SerialOutputStream.classハコセ.O $ % &' &( &) &* &+, $ &- &./0 1 23 &4 &569this$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile RXTXPort.java ! : ;< => ?@ A! B<java/io/IOException CD EF#java/lang/IndexOutOfBoundsException$Invalid offset/length passed to read GH IJ KL MN"gnu/io/RXTXPort$SerialOutputStreamSerialOutputStream InnerClassesjava/io/OutputStreamgnu/io/RXTXPort access$1000(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZIOLockedIwaitForTheNativeCodeSilly access$1100 writeByte(IZ)V writeArray([BIIZ)V(Ljava/lang/String;)Vjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V nativeDrain(Z)Z sendEvent(IZ)Z " *キ*+オア-メz*エクア*エエア*エYエ`オ*エカ*エク*エYエdオサYキ ソ*エ*エエカ ァM*エYエdオ,ソ*エYエdオアJY\>7 8:<$=+>5@BAJEYM\I]KjLlNyOタp*エクア*エエア*エク サYキ ソ*エYエ`オ*エカ*エ++セ*エエカ ァM*エYエdオ,ソ*エYエdオア=OR6 Z []_)`6a=dOlRhSj`kbmoo*エクア`+セ、 サ Y キソシ:+ク*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ ァ:*エYエdオソ*エYエdオア]orFy z|"+=HIV]ort !ヘy*エクア*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ *エカWァL*エYエdオ+ソ*エYエdオア=X[:。 「」(ァ)ゥ6ェ=アNイXコ[カ\クiケkサxシ"#8 &7PK 餤U4K批55gnu/io/RXTXPort.classハコセ.' n o p q r s t u vw x yz x { | } ~         x      " %r % % %   /  3  。 「」 、 ・ ヲ ァ ィ ゥ ェ ォ ャ ュ ョ ッーア イウエ Iオ カキク Lrケ コ サ シス T セソタ チ ツ テ ト ナ ニ ヌ ネ ノ ハ ヒフ ヘ ホ マ ミ ム ム メ モ ヤ ユ ヨ ラ リ ル レ ロ ワ ン ゙ ゚                 r ッ   MonitorThread InnerClassesSerialInputStreamSerialOutputStreamdebugZ ConstantValue debug_readdebug_read_results debug_write debug_events debug_verbosezLgnu/io/Zystem;MonitorThreadAliveIOLockedIfdeisJpiddsrFlagout$Lgnu/io/RXTXPort$SerialOutputStream;in#Lgnu/io/RXTXPort$SerialInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListener Lgnu/io/SerialPortEventListener; monThreadLgnu/io/RXTXPort$MonitorThread;monThreadisInterruptedMonitorThreadLock closeLock Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;nativeGetParity(I)InativeGetFlowControlModesetSerialPortParams(IIII)VnativeSetSerialPortParams(IIII)Z getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte(IZ)V writeArray([BIIZ)V nativeDrain(Z)ZnativeavailablereadByte readArray([BII)IreadTerminatedArray ([BII[B)I eventLoopinterruptEventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener#(Lgnu/io/SerialPortEventListener;)VremoveEventListenerwaitForTheNativeCodeSillynativeSetEventFlag(IIZ)VnotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalizesetRcvFifoTrigger DeprecatednativeStaticSetSerialPortParams(Ljava/lang/String;IIII)VnativeStaticSetDSR(Ljava/lang/String;Z)ZnativeStaticSetDTRnativeStaticSetRTSnativeStaticIsDSR(Ljava/lang/String;)ZnativeStaticIsDTRnativeStaticIsRTSnativeStaticIsCTSnativeStaticIsCDnativeStaticIsRInativeStaticGetBaudRatenativeStaticGetDataBitsnativeStaticGetParitynativeStaticGetStopBitsnativeGetParityErrorChar()BnativeSetParityErrorChar(B)ZnativeGetEndOfInputCharnativeSetEndOfInputCharnativeSetUartTypenativeGetUartType()Ljava/lang/String;nativeSetBaudBase(I)ZnativeGetBaudBasenativeSetDivisornativeGetDivisornativeSetLowLatencynativeGetLowLatencynativeSetCallOutHangupnativeGetCallOutHangupnativeClearCommInputstaticGetBaudRatestaticGetDataBitsstaticGetParitystaticGetStopBitsstaticSetSerialPortParams staticSetDSR staticSetDTR staticSetRTS staticIsRTS staticIsCD staticIsCTS staticIsDSR staticIsDTR staticIsRIgetParityErrorCharsetParityErrorChargetEndOfInputCharsetEndOfInputChar setUARTType getUARTType setBaudBase getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangupgetCallOutHangupclearCommInput access$1000(Lgnu/io/RXTXPort;)I Synthetic access$1100 access$1200()Lgnu/io/Zystem; access$1300 SourceFile RXTXPort.java オ・ 。「 ヲ・ ッ・ チタ 」 、・ ァィ ゥ・"gnu/io/RXTXPort$SerialOutputStream チ ォャ!gnu/io/RXTXPort$SerialInputStream ュョ ー・ ア・ イ・ ウ・ カ・ キ・ シ ス セ ヌネ gnu/io/RXTXPort$MonitorThread コサ タ タ エ・ メモ(gnu/io/UnsupportedCommOperationExceptionInvalid Parameter チツjava/lang/StringBufferRXTXPort:setSerialPortParams(    ) returning < * ワレjava/io/IOException タ Not supported "java/lang/IllegalArgumentException!Unexpected negative timeout value ユ#Unexpected negative threshold value レ%Unexpected negative buffer size value クケ               unknown event:  ツgnu/io/SerialPortEvent チ #java/util/TooManyListenersException3 RXTXPort:removeEventListener() already interrupted   タ java/lang/Exception (RXTXPort:removeEventListener() returning        ! " # $ %+RXTXPort:close detected bad File Descriptor タ ツ タ  タ 0ネ 1ネ 2ネ 3ネ #$ %& '& (& ,* .* -* )* +* /* 45 67 85 97 :& ;< => ?ユ @> Aユ B C D E F gnu/io/Zystem rxtxSerial &ツ ソタ ェgnu/io/RXTXPortgnu/io/SerialPortgnu/io/PortInUseException(Lgnu/io/RXTXPort;)VnameLjava/lang/String;startappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toStringreportlnprintStackTrace access$000"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900java/lang/SystemerrLjava/io/PrintStream;java/io/PrintStreamprintln(Lgnu/io/SerialPort;IZZ)Vgnu/io/SerialPortEventListener serialEvent(Lgnu/io/SerialPortEvent;)VisAlivejoin(J)Vjava/lang/Threadsleep access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary1 。「」、・ヲ・ァィゥ・ェォャュョッ・ー・ア・イ・ウ・エ・オ・カ・キ・クケコサシスセ ソタチツテ(、*キ*オ*オ*オ* オ*オ *サ Y*キ オ *サ Y*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオ*+オ*オ*サY*キオ*エカ*カ*オ*オ アトrE< gjrtz)5チ<ホBレGLQVノ[ハ`IejoTxU}WXYZ[]」aナニ"ヌネナニノハテ*エ ートヒフテ*エートヘホマホ!ミムテャt*キ! サ"Y#キ$ソ*オ *オァ*オ*オ*オイサ%Yキ&'カ(カ)*カ(カ)*カ(カ)*カ(カ)+カ(カ,カ-Wアト& ェ ォュョ(ッ-ー2ア8イsオナ"メモナ"ヤユテ*エャトハヨユテ*エャトヨラユテ*エャトリユテ*エャトルレテ\*エア*カ.ァ M,カ0ア*オア /ト&     ロユテ*エャトワレナ/ンレテ" サ"Y1キ$ソト(ナ"゙タテアト0゚テャト8ユテャトAユタテ6*オ **エ *エ*エキ2アト]^aレテL$*オ **エ*エキ2ァ サ3Y4キ5ソアトik lq#xテ*キ6ャトユテ*カ7ャトレテO'*オ**エ *エ*エキ2ァ サ3Y8キ5ソアト &ヲタテ"*カ9アト ュョユテ*エャトカテ% *エァャトソレテ8 サ3Y:キ5ソ*オアトモヤリワユテ*エャトレテ8 サ3Y:キ5ソ*オアトユテ*エャトレナ/ナ/ナ/ユナ/ユナ/ナ/ナ/ タ タ テ.*エニ*エャャトOU Y  テ`*エ*エ;ニ *エヌャェV 8;>ADGJMPSァァァァァァァ ァ ァァェヒ 5DSbqュシ*エク<ァァャ*エク=ァャ*エク>ァャ*エク?ァzャ*エク@ァkャ*エクAァ\ャ*エクBァMャ*エクCァ>ャ*エクDァ/ャ*エクEァ ャイFサ%Yキ&Gカ(カ)カ,カHャサIY*ァキJN*エャ*エ;ニ *エ;-ケK*エ*エ;ニ *エヌャャトイ,gilPrSxV}Y\_behknェ、ュアョウータアツウマエムガキケコシスソ タ ツテナ)ニ+ネ8ノ:ヒSフUミiヤpリrレyワテy=*エ;ニ サLYキMソ*+オ;*エ$*オ*サY*キオ*エカ*カ*オアト*  ,37< ナLタテ*カ*エイNカ-W*オ*オ;ア*エニI*エカO?*オ*キP*エQカSァL+カU*エカO*エQカSQクVァ覘ァ*オ*オ;*オ*オ*オイWカ-Wア:DGTVfiTトb  1!6):.D2G/H1L5V:`;f<mCrDwE|FGHIタテA*エXクVァLァア TトUX Y[テN"*カ*オ**エキZ*エク[W*オアトgi jlm!nテN"*カ*オ**エキZ*エク\W*オアトxy z|}!~テN"*カ*オ**エキZ*エク]W*オアト !テN"*カ*オ**エキZ*エク^W*オアト !テN"*カ*オ**エキZ*エク_W*オアト、・ ヲァィ!ゥテO#*カ*オ**エキZ*エク`W*オアトイウ エオカ"キテO#*カ*オ**エキZ*エクaW*オアトタチ ツテト"ナテO#*カ*オ**エキZ*エクbW*オアトホマ ミムメ"モテO#*カ*オ**エ キZ*エクcW*オアトワン ゙゚"テO#*カ*オ**エ キZ*エクdW*オアト "ツ!タテセ^*エア*オ*エeクVァLァ*エ イgカ-Wア*カh*キi*エ*カj**エキk*キl*オ*オアTトF !(12 7 < CGOSX] タテ6*エ*カmイカnアト#' )*!レテアト5" #$ナ" %&ナ" '&ナ" (&ナ" )*ナ" +*ナ" ,*ナ" -*ナ" .*ナ" /*ナ" 0ネナ" 1ネナ" 2ネナ" 3ネナ"45ナ"67ナ"85ナ"97ナ":&ナ";<ナ"=>ナ"?ユナ"@>ナ"Aユナ"Bナ"Cナ"Dナ"Eナ"Fナ" Gネテ*クoャトナ" Hネテ*クpャト。ナ" Iネテ*クqャトエナ" Jネテ*クrャトヌナ" K$テ& *クsアト  ナ" L&テ*クtャトナ" M&テ*クuャトナ" N&テ*クvャト(ナ" O*テ*クwャト=ナ" P*テ*クxャトQナ" Q*テ*クyャトeナ" R*テ*クzャトyナ" S*テ*ク{ャトナ" T*テ*ク|ャト。ナ"U5テ#*キ}<ャト オケナ"V7テ*キ~ャトフナ"W5テ#*キ<ャト ゚ナ"X7テ*キャトナ"Y&テ*+キ〓トナ"Z<テ*カげトナ"[>テ*キΞト&ナ"/\ユテ*キ┏ト4ナ"/]>テ*キャトCナ"/^ユテ*キャトQナ"/_テ*キャト^ナ"`テ*キ握トkナ"aテ*キ荻トyナ"bテ*キ堪トナ"cテ*キ峡トナ"deテ*エャトfgeテ*エャトfhiテイートfjeテ*エャトfkタテKサ刑キ叉ァK失昇ウ続 Tト1 267wlm PK 餤U4カ擢ンgnu/io/RXTXVersion.classハコセ.   VersionLjava/lang/String;()VCodeLineNumberTable getVersion()Ljava/lang/String;nativeGetVersion SourceFileRXTXVersion.java   rxtxSerial  RXTX-2.1-7gnu/io/RXTXVersionjava/lang/Objectjava/lang/System loadLibrary(Ljava/lang/String;)V!    *キア   イー 1   + クウア '( )PK 餤U4"ヒ空gnu/io/SerialPort.classハコセ.f `ab DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_2 STOPBITS_1_5FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetSerialPortParams(IIII)V Exceptionsc getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener#(Lgnu/io/SerialPortEventListener;)VdremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterruptgetParityErrorChar()BsetParityErrorChar(B)ZgetEndOfInputCharsetEndOfInputChar setUARTType(Ljava/lang/String;Z)Z getUARTType()Ljava/lang/String; setBaudBase(I)Ze getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangup(Z)ZgetCallOutHangup SourceFileSerialPort.java !gnu/io/SerialPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersExceptionjava/io/IOException!      + !"*キア#$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJ&'KL&'MJ&'NL&'OP&'QR&'ST&'UV)&'UWT&'UX)&'UY1&'Z1&'[\&']1&'^_PK 餤U4"qarrgnu/io/SerialPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/SerialPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileSerialPortEvent.java !2   gnu/io/SerialPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$01 234%&#*エャ$7'(#*エャ$;)(#*エャ$?*+PK 餤U4ンルル$gnu/io/SerialPortEventListener.classハコセ.    serialEvent(Lgnu/io/SerialPortEvent;)V SourceFileSerialPortEventListener.javagnu/io/SerialPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U42L{ォPP.gnu/io/UnsupportedCommOperationException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFile&UnsupportedCommOperationException.java   (gnu/io/UnsupportedCommOperationExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4か゚BB'gnu/io/UnSupportedLoggerException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFileUnSupportedLoggerException.java   !gnu/io/UnSupportedLoggerExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4\キq q gnu/io/Zystem.classハコセ. +P *QR *ST UV, WX02468: YZ[\] ^ *_`a b c d e fg Uhi jk *lm no np jqrs &P &t &uvw SILENT_MODEI ConstantValue FILE_MODENET_MODEMEX_MODE PRINT_MODE J2EE_MSG_MODE J2SE_LOG_MODEmodetargetLjava/lang/String;(I)VCodeLineNumberTable Exceptions()V startLogger(Ljava/lang/String;)Vfinalize filewritereport(Ljava/lang/String;)Zreportln()Z SourceFile Zystem.java ?D <-asdf EFgnu.io.log.modex yz{ |}~ java/lang/NumberFormatException!gnu/io/UnSupportedLoggerExceptionTarget Not Allowed ?F =>java/io/RandomAccessFilerw ? F Djava/lang/Exception Debug output file write failed F HFgnu.io F D java/lang/StringBuffer  gnu/io/Zystemjava/lang/Objectjava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zjava/lang/IntegerparseInt(Ljava/lang/String;)I'(Ljava/lang/String;Ljava/lang/String;)Vlength()Jseek(J)V writeBytescloseoutLjava/io/PrintStream;java/io/PrintStreamprintlnjava/util/logging/Logger getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;fineappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!*+ ,-./0-.12-.34-.56-.78-.9:-.;<- => ?@A3*キウ*カアB4567C?DA*キクL+ニ+カ ウァz +カ ウァj +カ ウァZ +カ ウァJ +カ ウァ: +カ ウァ*+カ ウァ+クウァMウァウ*カアBfEF GIKM'O.Q7S>UGWNYW[^]g_nawcinkmnsuvCEDA8イ イアサYキソB{ ~CEFA!+ウアB CGDA) ウウアB。HFAg+サYイキM,,カカ,+カ,カァ Mイカア!B"ヲ ィゥェュ!ォ"ャ*ョIJAアYイァPイ イ+カャイァ6イャイ *+カ ァイャイ!ク"+カ#ャャBFイウ カクケサ!シ$ソ*チ,テ3ナ;ヌBノDヒLヘUホWミKLAFイァ=イ イカ$ャイァ$イャイ *%カ ァ イャャB:ヨラ ロン゙ #)+2;BDKJAカbイァYイ イ+カャイァ?イャイ*サ&Yキ'+カ(%カ(カ)カ ァイャイャャBB !$*, 3 MTV^`MDA!ウアB ./NOPK 餤U4 META-INF/ハPK 餤U4RぃWFF+META-INF/MANIFEST.MFPK 餤U4」gnu/PK 餤U4ナgnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classPK 餤U4G\yアアgnu/io/CommPort.classPK 餤U4Gウ22ノgnu/io/CommPortEnumerator.classPK 餤U4Vヌ イ、、8 gnu/io/CommPortIdentifier.classPK 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classPK 餤U4⌒[サキキアgnu/io/Configure$1.classPK 餤U4@6+ウ"gnu/io/Configure$2.classPK 餤U4lu綬マ%gnu/io/Configure$3.classPK 餤U4羣ユ)gnu/io/Configure$4.classPK 餤U4W$ュュ,gnu/io/Configure.classPK 餤U4HGムhh<gnu/io/I2C$I2CInputStream.classPK 餤U4mリ 暸gnu/io/I2C$I2COutputStream.classPK 餤U4ノト&&Dgnu/io/I2C$MonitorThread.classPK 餤U4ホ9YMgnu/io/I2C.classPK 餤U43クtkgnu/io/I2CPort.classPK 餤U4|、ンii;rgnu/io/I2CPortEvent.classPK 餤U42レエヘヘ!ロugnu/io/I2CPortEventListener.classPK 餤U4m pp"轅gnu/io/LPRPort$MonitorThread.classPK 餤U4b:[(陽gnu/io/LPRPort$ParallelInputStream.classPK 餤U4} 腎t)d~gnu/io/LPRPort$ParallelOutputStream.classPK 餤U4pケョョgnu/io/LPRPort.classPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classPK 餤U4ェテテqgnu/io/ParallelPort.classPK 餤U4Pン`|kgnu/io/ParallelPortEvent.classPK 餤U478」&Egnu/io/ParallelPortEventListener.classPK 餤U4咎Gqqj。gnu/io/PortInUseException.classPK 餤U4^狛&&」gnu/io/Raw$MonitorThread.classPK 餤U4ナサヤhhzォgnu/io/Raw$RawInputStream.classPK 餤U4ク聒 ーgnu/io/Raw$RawOutputStream.classPK 餤U4vウ蟋ァxウgnu/io/Raw.classPK 餤U4ア#ミbbMメgnu/io/RawPort.classPK 餤U41Fノii瞶gnu/io/RawPortEvent.classPK 餤U4訪Rヘヘ!∠gnu/io/RawPortEventListener.classPK 餤U4?D1,44 際gnu/io/RS485$MonitorThread.classPK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classPK 餤U4い]--$シgnu/io/RS485$RS485OutputStream.classPK 餤U4播>メ//+gnu/io/RS485.classPK 餤U4コ1茉 gnu/io/RS485Port.classPK 餤U4Tユ蚩o[gnu/io/RS485PortEvent.classPK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classPK 餤U4ムb=pレレ#B6gnu/io/RXTXPort$MonitorThread.classPK 餤U44 ']?gnu/io/RXTXPort$SerialInputStream.classPK 餤U4。t5(0Ignu/io/RXTXPort$SerialOutputStream.classPK 餤U4K批55Pgnu/io/RXTXPort.classPK 餤U4カ擢ン gnu/io/RXTXVersion.classPK 餤U4"ヒ空Ngnu/io/SerialPort.classPK 餤U4"qarrvgnu/io/SerialPortEvent.classPK 餤U4ンルル$"gnu/io/SerialPortEventListener.classPK 餤U42L{ォPP.=gnu/io/UnsupportedCommOperationException.classPK 餤U4か゚BB'ルgnu/io/UnSupportedLoggerException.classPK 餤U4\キq q `gnu/io/Zystem.classPK88!ヲ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/0000755000175000017500000000000011126534457031766 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Template./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Templa0000644000175000017500000000000011126534457033121 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Tag0000644000175000017500000000001711126534457032422 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Root0000644000175000017500000000007511126534457032636 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Entries./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Entrie0000644000175000017500000000010411126534457033132 0ustar twernertwerner/RXTXcomm.dat/1.1.2.1/Mon Mar 20 06:40:34 2006/-kb/Tcommapi-0-0-1 D ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Repository./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar/CVS/Reposi0000644000175000017500000000012611126534457033151 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/jar ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/0000755000175000017500000000000011126534461031320 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/libAuthKit.jnilib./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/libAuthKit0000755000175000017500000002324010407447142033307 0ustar twernertwernerホ タ__TEXT__text__TEXT(シ(__picsymbol_stub__TEXT  $__DATA__data__DATA__dyld__DATA__la_symbol_ptr__DATA < 8__LINKEDIT   X>]%1/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM \>ムユ6/System/Library/Frameworks/Security.framework/Versions/A/Security 4=ス?/usr/lib/libSystem.B.dylib !" P "  ー((|ヲB}ヲ|ヲ}cx=′ ヤ}ヲ| x=′ ミN |ヲB}hヲ|ヲ=k〔 ィ}iヲN |ヲソ8!|}x|シ+x8`88チ@H ュ|~yA 8@=」x繆8@♂ミ88タ}ヲN!h8!`テx|ヲサN |」+y|ト3xA「H ,<``c朦 セチリ|ヲ|ク+y<!`|ヨ3x|;x}Cx}7Kx|~x`暸「#|;x8。@♂(}ヲN!8||yA>テx$ヒx;`♂0}ヲN!|}y@L>テx$ヒx8♂d}ヲN!|{y@「(>テxDモx繆♂,}ヲN!8H8藤T`~ニウx8P8`88dテx低\刀P殿XH>|}xDモx繆♂,テx}ヲN!,A$>テx$ヒxeロx♂8タ}ヲN!x|xィ8!|ヲコチリN |ヲソ。|}x!ー|~x~;゙,A HMKX」x8!P|ヲサ。H0|ヲセチリ|#x!酢|x#♂0}ヲN!8|yx8cHユ8|zyAHCモxKm8Hリ;|ネ@ネ[モx<テx~トウx繆♂8}ヲN!<|}x繆♂$、x}ヲN!|wx8cH=,須|~x;{A「戟<、x繆;♂}ヲN!8<|fxヌx、x♂繆}ヲN!繆<8|ケョ、x♂烋ヲN!|ネAD@モx|xx8!p|ヲコチリN |ヲソ熕|サ+y!8|ル3x|;xD}Cx<}8Kx|}x`暸「焉#|;x8。@♂(}ヲN!8|~yAシ繆」xKU||y@「(=」xDモxナx♂,}ヲN!8H繆8D%ヒxcロxトxHムDモx=|{xナx」x♂,}ヲN!繆K。,@「8‖D」x=テxィ 88タ8HHL♂ミ}ヲN!`ロx|xx8!p|ヲサ潘 ソ|ヲ|ス+y<!酢ワ3x|~x`暸「t#|ト3x♂0}ヲN!<(`廖。P」x8@Hユ|}y@「(>テx繆8♂ト8タ 8@}ヲN!8a@88 Hux|xx8!p|ヲサN |ヲソ|、+x!|~x|ス+x|ワ3x#♂0}ヲN!<, `廖「t>、xテx8♂、8タ 8@}ヲN!8a@8`Hナ|}y@「(>テx繆8♂ミ8タ8`}ヲN!8a@88 Hュx|x8!|ヲサN |ヲソ|、+x!8||x|ン3x8a@@H|~y@「(<繆、x8♂ミ8タ8@}ヲN!hテx8!`|ヲサN |ヲソ!苣|ト3x!|ケ+x}Cx8#||x|レ3x|;x♂d}ヲN!8黥}yA`H8ナx|旡#ヒxHI・x<|~x8タDモx♂繆}ヲN!,@H=|ミHタx|xh8!`|ヲサ!膀 |ヲソ!苣|ト3x!|ケ+x|;x8#||x|レ3x}Cx♂d}ヲN!8黥}yA`Hノ8|暈eロx#ヒxHi・x<|~x8タDモx♂繆}ヲN!|リAH÷|ミHタx|xh8!`|ヲサ!膀 ソチ|ヲ|セ+y!ー8`A0H98テxHス,A「HcH8`X8!Pサチ|ヲN |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N |ヲB}hヲ=k|ヲ°@}ヲ9k@N |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N (((((((((((((((@4@0@,@(@$@ @@@@@ @D@@@<@8@ウリX(lエ0 / b フC ( リヌ  Ox マ4Mbォセンヲャ  __dyld_func_lookupdyld_stub_binding_helper__mh_bundle_header_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_externalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalizePriv_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_killSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_makeSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_request_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_rootExec_AuthorizationCopyPrivilegedReference_AuthorizationCopyRights_AuthorizationCreate_AuthorizationCreateFromExternalForm_AuthorizationExecuteWithPrivileges_AuthorizationFree_AuthorizationMakeExternalForm_calloc_free_malloc_memset_Java_glguerin_authkit_imp_macosx_AuthProcess_close_Java_glguerin_authkit_imp_macosx_AuthProcess_read_Java_glguerin_authkit_imp_macosx_AuthProcess_write___error_close_read_writedyld_lazy_symbol_binding_entry_pointdyld__mh_bundle_headerdyld_func_lookup_pointer_freeArgs_getArgs././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/librxtxSerial.jnilib./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/librxtxSer0000755000175000017500000117544010407447142033430 0ustar twernertwernerハコセ● [ ホ L契_TEXTタタ__text__TEXTh<h__picsymbol_stub__TEXT洟洟$__picsymbolstub1__TEXT淆淆 __cstring__TEXTァ@ァ@__literal8__TEXTソソX__DATAタタ__data__DATAタタ__dyld__DATAタタ__nl_symbol_ptr__DATAタ0タ<__la_symbol_ptr__DATAタHタHH__cfstring__DATAチ8 チ8__const__DATAチXDチX__bss__DATAチ`__common__DATAテ 8__LINKEDITミタミア <C4-/usr/local/lib/librxtxSerial.jnilib hCケヒSp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation TCケヒS/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit XCケヒS/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 4CF-)/usr/lib/libgcc_s.1.dylib 4CケヒSX/usr/lib/libSystem.B.dylibメp蜚 P>>zク? z會$ケミN?|ヲB}ヲ|ヲ}cx=′ア}ヲ| x=′ア侵 }議xKフ|ヲB}hヲ|ヲ=k〔アl}iヲN |ヲ乍!Bヲ<8c詫88Kス=8/A<cアD}ヲN!8!`|ヲN |ヲB}ヲ=|ヲ9}ヲN `````|ヲソ。!`|> xBヲ|}x裾シ誓タ窃トト8^89 L|Cx|x}%KxH鵬シヤ^シB"^タ~シ|x},Kx}ヲN!|`xワタリ^タ~シ|x<_8「 <_8ツHwヘ|`x8^シB"ワ~シ|x<_8「<_8ツ },Kx}ヲN!|`xx8^89 L|x|Dx}%KxH附」x!|ヲサ。N `````|ヲソチ!酢> x厨裾8`88セ8H酋8/@88P8D8LPH8D8`|x8H!|ヲサチN `````|ヲソチ!|> xBヲ厨x<_Bッ88/@8HH8|xxH5|`x/@リ^8(<^80/AP^8,/A@^8"0^8, ,^8",^80 0~8H赦<HH^80/A^8B08,Kフ^8,/A^8B,80Kィ~8H子<_Bッ8<HH,^8,/A^8,8K8HH|x!|ヲサチN `````|ヲソチ!|> x厨/Aミ~88H痕|`x/Aク888D8<8`@8X8Y8~88%H挫|`x/Al8~88%H馴|`x/AT~88セ8H章|`x/A8H|`x~8|xH)~88@H8hH 8hh|x!|ヲサチN `````ソチ!ミ|> x厨HH^/A/Aク^/Aー/AP^/2At/2A^/AP8Hp^/KAP/nAPKワ^/,Ap/,A ^/泡@/ネA@Kィ^/XAH/ーAHK劇^/KA/KAH^/タAD/タA^/ `A KL/%A(^/8@A(K08`^AL8`^A(/pA8`^AK<`ツ^A<`^AKク8H$8@2真H8KH 8@n真H8H8@鱒^H8ネHワ8@,真Hミ8XHト8@ー真Hク8Hャ8@ `真H8タH8@%真H88@H|8@K真Hp8pHd8@真`HL8@真`H4<@真`ツH<@真`H|x!サチN `````|ヲソ。!P|> xBヲ厨ネ裾フ誓ミ8X8T8P^ネB~ネフ| x}ヲN!|`xH^ネB~ネH<_8「据<_8ツ逗| x}ヲN!|`xD^ネB~ネH<_8「摺<_8ツ逗| x}ヲN!|`x@^ネB~ネH<_8「成<_8ツ逗| x}ヲN!|`x<^ネB~ネH<_8「精<_8ツ逗| x}ヲN!|`x8^ネB烙~ネH| x}ヲN!8\~ミ|xH1|`x/@4<_8b逝Hs)^ネB烙~ネH| x}ヲN!HミdTョ真逗/AH^+A/A$HL^/A,/A,H08XH$8XH8XH 8XdTヲ真劇/A,^/0A,/AH$8TH8TH 8TdTj真/A^/AH8PH 8P8\|xH|`xL^ネBΔ8~LK|`x~ネフセD|xャx}ヲN!^ネB8~ネフセ@゙X| x}ヲN!^ネB8~ネフセ<゙P| x}ヲN!^ネB8~ネフセ8゙T| x}ヲN!!|ヲサ。N `````|ヲソチ!@|> xBヲ厨リ裾ワ誓8D^リB~リワ| x}ヲN!|`x<^リB~リ<<_8「<<_8ツ鈷| x}ヲN!|`x88/@h^リBト~リ| x}ヲN!^リBネ~リ| x}ヲN!^リB烙~リ<| x}ヲN!8ィH@H胃|`xD^リB8~リワセ8゙D| x}ヲN!^リB烙~リ<| x}ヲN!^リB(~リ8| x}ヲN!|`x@~@DHq掟`x/A8L|x<_8m@セ@HQ8L|xHoU^リB,~リ烙セ@| x}ヲN!H茅|bx|xH燕|`x~リ<_8m<_8「詐|xHl8ィH 8L|x<_8mdセ@Hノ8L|xHnヘ~@K9|`xHH/AD~リワセHKル^リB,~リ烙セ@| x}ヲN!HィH~@8Hu|`xHH/@H何|bx/Aミ~HK9|`x/@リ^リB,~リ烙セ@| x}ヲN!8L|x<_8mоセHHン8L|xHm痼HィHィ|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗~<_8「栄<_8ツ瑛Hi掃`x@^B(~8| x}ヲN!|`x<^B~芸 x}ヲN!|`x8~<_8「禍<_8ツ瑛Hi|`xD<_8b街HlユD/@l^Bト~| x}ヲN!^Bネ~| x}ヲN!^B烙~8| x}ヲN!<_8b獲HleHエ<_8b釜HlU@/@@~@Hq|`xHH/@H處bx/Aヤ~<DHr<_8b堪Hl^B烙~8| x}ヲN!<_8b簡Hkユ^B,~逗セ<| x}ヲN!!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ窃、ィャ8d~88H1|`x/@<_8b偉Hk)8hHィ8@~|xセ、H痞`x/A<_8bHj8hHp8@~|xセィHケ|`x/A<_8b0Hjケ8hH88@~|xセャH -|`x/A<_8b荏Hj8hH/@@8d~<@`дj|xH÷dTd8d~<`дm|xH]8~8Hq|`x/A8~8H處`x/@L8~8HA|`x/A8~8Hi|`x/@<_8b煙Hiチ8hH@~88セ8H5|`x/@<_8b仮Hi8hH 8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю劇~x|<_8「 <_8ツHe)|`x<~xH怖`x88/@<_8bHhナ8HHL~x<セ8゙о桑|`x/A<_8bエHh8HH 8HH|x!|ヲサチN `````ソチ!ミ|> x厨H裾LL^/A/Aシ^/Aエ/AT^/2Ax/2A ^/ATL/AHp/KAP^/nAPKリ/,Ap^/,A /泡@^/ネA@K、/XAH^/ーAHK/KA^/KAH/タAD^/タA/ `A KH^/%A(/8@A(K,8`^AL8`^A(/pA8`^AK<`ツ^A<`^AKエ8H88@2真H,8KH 8@n真H8H8@鱒^H8ネH8@,真H8XHリ8@ー真Hフ8Hタ8@ `真Hエ8タHィ8@%真H88@H8@K真H8pHx8@真`H`8@真`HH<@真`ツH0<@真`H^L真H 8|x!サチN `````ソチ!タ|> x厨X裾\誓`^\T*`,,/A\,/A,/A,8(H劇,/AH,/AXKワ^\8(HX`^\8(H<`^\8(H `^\8(H(|x!サチN `````|ヲソチ!ー|> x厨h裾l誓pp< x厨裾恊セ888<~|xHwナDT/A8`8 xBヲ厨裾恊セ~88Hw|`x/@<_8bフHa8hHh@T」>Th/@(@T宀Th/@8hH,@T」>T/A8hH 8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pp< xBヲ厨xx x厨H^H8H!サチN `````|ヲソチ!`|> xBヲ厨ク8~8<_8~`セクHwノ!|ヲサチN `````|ヲソチ!|> xBヲ厨<_8b~ H^8< xBヲ厨ネ裾フ誓ミ|タ3xヤ<_B銑@ミT>D~ネフ<_8「x<_8ツx粂X鋼`x<DT>| x8E|x<_8|タ}%KxHu!8E|xH\%8D~<|x8HvA|`x88/@Hwi|bx/A8/AャヤT>/@l<_B銑@@/@H4^@ー@^@B<A^@ー/@ヤ^@8D<_8b|ミH[e8E|x<_8|セ8Ht=8E|xH[A8/@8Hv。|bx|xHu掃`x~ネ<_8}<_8「}|xHX騾!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏}Cx<_B汁H8@8<~<_8「v<_8ツvHV怖`xD^Bd~8| x}ヲN!|`x8^8<|B媒"^<|P~D}$Kx|xHt1|`x@@/@<^@|<<_8b{/@\H/@H4^HーH^HBDA^Hー/@ヤ^H8D<_8b{LHY@/@8Hte|bx|xHsU|`x~<_8{<_8「{l|xHVュ!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||+x|~x|x<_8「t`<_8ツtdHT−`xD|~x|x<_8「x`<_8ツxdHTY|`x@88<_8by/A8@Hィ@/A,^@D/A^@8D^@8H@/A`^@ /AP88^||xx|Ex゙@Kレ88^9 L|x|Dx}%KxHq 8|x88HQE8@@|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓~x|<_8「r4<_8ツr8HR]|`x8><b`Mモ| 翻&p} p|P~8|xHn-!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「q<_8ツq廩Qナ|`x88<~8|xHjm|`x/A]T>dhH@Hpノ|bx|xHoケ|`x~<_8W<_8「vタ|xHS8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「pエ<_8ツpクHP痞`x88<~8|xHi榎`x/A]T>|ミThH@Ho痞bx|xHnム|`x~<_8V4<_8「u|xHR)8hh|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「oフ<_8ツoミHO|`x88<~8<@`дj|xHnムT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツn腥O|`x88<~8<@`дj|xHm蛟 xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツnHN%|`x88<~8<@`дj|xHm xBヲ厨ネ裾フ8<~ネフ<_8「m<_8ツmHM9|`x88<~8<@`дj|xHl xBヲ厨ネ裾フ8<~ネフ<_8「l(<_8ツl,HLM|`x88<~8<@`дj|xHk- xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「k<<_8ツk@HKY|`x88<~8<@`дj|xHj9ミT>/@<`8@|x<_8R}%KxHg8@|xHN凰!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「j4<_8ツj8HJQ|`x88<~8<@`дj|xHi1ミT >8@|x<_8Q$}%KxHfムミT>/@<`8@|x<_8Q$}%KxHfm8@|xHMq!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「i <_8ツiHI1|`x88<~8<@`дj|xHh xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「h <_8ツh$HH=|`x88<~8<@`дj|xHgミT>/@<`8@|x<_8O8}%KxHdy8@|xHK}!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_Bリ88`4H`ノ|`x<<|xxHd^<|(8/@0^<8,^<80<_Bリ<Ht8|xxHcス|`x/AX^8,/A^8,8Kネ^<8,^<80^8<,<_Bリ8!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHei|bx|xHdY|`x~h<_8M<_8「l4|xHGア8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHd痞bx|xHcム|`x~h<_8L<_8「kシ|xHG)8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHdU|bx|xHcE|`x~h<_8K<_8「kH|xHF8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHcヘ|bx|xHbス|`x~h<_8Kp<_8「jミ|xHF8|x!|ヲサチN `````|ヲソチ!|> x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H`m|`x<~8/@D`DHDT,D8D~@<`дm|xHa痼~8 x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H^}|`x<~8/@D`DHDTクD8D~@<`дm|xH_~8 xBヲ厨x裾|誓窃ю倦>8@^xB(~x8| x}ヲN!|`x<~xКロU|`x8H\i|`x@~<@HE掟`x/@~ x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8HYオ|`x<~8/@D`DHDTD8D~@<`дm|xH[)~8 xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~項@TセT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~T/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x@~@Kスュ|`x<^ィB,~ィーセ@| x}ヲN! xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ x厨X裾\88|t|x!サチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「Np<_8ツNtH.掟`x88<~8|xHGE|`x/ALT>|thH<_8bWH2)8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l|+xpHM1|bx|xHL!|`x~h<_84ワ<_8「V|xH/y8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾忿+x~<_8「M$<_8ツM(H-I|`x88<~8|xHE|`x/A<T>L8<~88|xHHe|`x/A8hHLHL)|bx|xHK|`x~<_82、<_8「V|xH.q<_8bV H0}8hh|x!|ヲサチN `````|ヲソチ!酢> xBヲ8~88HI<_8bU$H/÷8<@C0=?ノゥdxlL真HネHh(><<b`Mモ| 翻6p} p|P<@C0=?ノゥdxlT真PネPh( *リX\|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾誓 窃$(,8T8L8H8<^~|x<_8「O4<_8ツO8H+)|`x8^8@^88(X,/A葱m|`xHHо,/A@KQ|`xL^LH|@P,A^8@TH8h8@|x8|ExHDE Tル~| xT:88|B8B0" T8|0})xUb:88|B8B0",/Aо^LH|@P,|PP>P<b`Mモ| 翻6p} p|P`^P<b`Mモ|翻 6p|@p} HP>閨> 閖@P真閠^關d8`DH 8D^ 88^h|x|Dx88タDHD%|`x\^\8@(<_8bT`H-1^8@8H4\/@リT|x$|^X~ |x|ExHDル|`x\\/@hHHA|bx/A xBヲ厨ィ裾ャ誓ー窃エク~ィャ<_8「G|<_8ツGH'掟`x<ー/@88H$ー/@88H ー88@~<|xH@ |`x/AP8`>8<Q`| 翻.p} p|PT>a8@~<8|xHBa|`x/@8HF1|bx|xHE!|`x~ィ<_8K<_8「P|xH(y!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||~x|x<_8「F,<_8ツF0H&U|`x<|~x|x<_8「Oク<_8ツF0H&-|`x88|8^D~x|xセ<|Fx88KQ|`x@@/@DHE)|bx|xHD|`x~x<_8Jャ<_8「Oタ|xH'q8LH0@/ADT>HH 8HHLL|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю|~x|x<_8「D<_8ツD鍠%|`x<|~x|x<_8「Np<_8ツD鍠$ル|`x8/@<<_8bNЗ(園~x<_8Nャ<_8「Nリ<_8ツN腥&Q8HH^xBd~x8| x}ヲN!|`x@лx@||x8|~x|xセ<|Fx8K}|`xD^xBо~xセ@8タ| x}ヲN!D/@P<_8bNH'オHC!|bx|xHB|`x~x<_8Id<_8「Nリ|xH%i8HH DHH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「C<_8ツCH#-|`x8~88HAル|`x/A8HH 8HH|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏8H劇~|x<_8「B\<_8ツB`H"m|`x<劇~|x<_8「K<_8ツB`H"E|`x8/@<<_8bKH%~<_8L$<_8「LP<_8ツL\H#ス8XHフ^Bd~8| x}ヲN!|`xD^Bd~8| x}ヲN!|`x@培xD|BH||x8劇~|xセ<|Fx88Kオ|`xL^HL|HL/@P<_8bLlH%H@q|bx|xH?a|`x~<_8Fワ<_8「LP|xH"ケ8XHネH/@p^@8B| t^HD|B8B|t@@^@| t^HD|B8B|t@<_8bL粂$QH L/@H^Aト^Bо~逗セD8タ| x}ヲN!LXX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「?<_8ツ?路チ|`x88<~8<@`f|xH>。|`x/A <8@A<HHL<_8bIリH#=H>ゥ|bx|xH=處`x~x<_8D<_8「J|xH <HH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ~<_8「><_8ツ>路ス|`x88<~8|xH7e|`x/@シTセ/ADdDHDTD<_8ツIHy!|ヲサチN `````|ヲソ。!|> xBヲ厨x^x恊@^xB<^@BΔ^@B~@<| x}ヲN!|`x~@|x<_8「Gフ<_8ツGャx}ヲN!|`x8^@B(~@<セ88タ| x}ヲN!!|ヲサ。N `````|ヲソチ!ー|> xBヲ厨hh/AL^hH/@<^h /A,<_8bFH凰~h88Hオ^h8H8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_8bF路ア8|x!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!P|> xBヲ厨ネ^ネ8^<|x<@`f|ExH:A|`x8><^ネ|48@|x<_8FT}%Kx}f[xH7ム><8@|x<_8F}%KxH7オ8@|xH) xBヲ厨x8<x/A、^x88<_8bEフH項^x8^<|x<@`дj|ExH9-|`x/A <_8bEH<_8bFHルHD x!サチN `````ソチ!ミ|> x厨H8|x!サチN `````|ヲソチ!ー|> xBヲ厨h~hKQ|`x/@、h/A^h/A ~hK!~hK1h/Al~hK5|`x/AX^h/@$<_8bD4Hン8`N H658`N H6-H(<_8bDdHM~h88Hル8`N H6!|ヲサチN `````|ヲソチ!|> xBヲ厨x^xB@^x恊<<_BO楳8^x0/A艢8/@T<_BO楳x<_BO楳B8ー<_BO楳B8エ8DHp^8ー8^8ー/@閠^8xー^x8エ^x8ーKエD^xT:|@8B8^D8DD/ @ミ^x8H^x8D^x8^x8@~<@<_8「6ミ<_8ツ6ヤHヘ|`x^x^x|xK怖`x^x逗~xK|`x^x楳^x^x8B<|x<@`дj|ExH4m|`x/@<_8bC路%^ xBヲ厨h^h、/A8^hB怙B|烙^h"怙^h、}#Kx|x}l[x}ヲN!^hー/A@^hエ/A0^h"エ^hー ー^h"ー^hエ エHp^hー/A,^hBー8エ^hー<_BLpH8^hエ/A^hBエ8ーH<_BLp8!|ヲサチN `````|ヲソチ!`|> xBヲ厨ク裾シ^クBBシ~ク|x|Lx}ヲN!|`xワクヤ8シリ8h8~8K|`x/Aタ8~8Kキa|`x/Aャ8~8K菱x/A$<_8b?H8~8Kカ8~8K飃t^888^9>p|x|Dx88タ}'KxH,|`xll/@H1 |bx/Al/A 8~8Ka8~8KUKh!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_8>\| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!@|> xBヲ厨リ裾ワ誓熕゙艢^リB(~リ8| x}ヲN!|`xD8@8HY8@H,8|8^L9 ,|x|Dx}%KxH-÷~H88H)1|`x/@<_8b>,H 8@Hワ8L|xH'A8mmT>l8L~H8|xH*Y|`x/@0<_8b>PHア8@8|~H8|xH*%Hp8x~H|x8H*m|`x/@,H-ン|bx/#A<_8b>pHQ8@8|~H8|xH)ナ~H8セ8H(5~Dィィ|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x8@8`|xH'Q|`x< xBヲ厨x裾|<_BE8<_BE|x|8H*驂ix<_BE~x}$Kx|x8タH&・|`x88/A(8|x<_E88タH$~8H&M<_E|x!|ヲサチN `````|ヲソ。!酢> xBヲ厨裾倹セ8D8L|xKュ|`x/A<_8b: H#薊^B怙~<_8:,| x}ヲN!|`x@@/@<_8b:HH DXHー^BH~@<_8「:x<_8ツ:л x}ヲN!|`x< xBヲ厨ネ裾フ誓ミ88ミ+A48@ミ|B0真^狼@コ/@d^狼@シ/@,89|x<_88|セミH%89|xH 菱,~ネフ8Kノ|`x/@88H8T>|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓^xB(~x8| x}ヲN!|`x88T&/ @H8E|x8H%−`x@@/@~@H$8DH08DH 8D^<8<T&/ @88E|x8H$ヘ|`x@@/@~@H#ム8D^xB,~xセ8| x}ヲN!DT>|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_85| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5禰 斧!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b5`H =8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5(Hル!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b4H8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_B<リ@~x|<_8「$<_8ツ$H1|`x<88H<_B<リ@@/@,<_8b4シHナ8/AlHT^@ー@^@B<A^@ー/@ヤ^@B<@ー88K、<_8b4タHY8`鍠"!8/@\^@8<_8b4トH-!|ヲサチN `````|ヲソチ!|> x厨x^x恊8^8Bネ~8| x}ヲN!^8B|^xB"^xャ~8}$Kx|x}l[x}ヲN!|`x<|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃л;x<_B:リ88/@ <_8b2鍠菱x^8ー8^8BA^8ー/@ヤ^8BA<_8b3HAH$>цT >^8U :|@8B礎!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗/A0^恊8/A$^/@,H8XH<_8b2 Hン8XH<_8b28H5^、/@8XHシ<_8b2\H ^8Bネ~8| x}ヲN!<_8b2pH蛟^8BB真T^BB真P^Bィ真L8H/A 8H~8PセL゙劇H◇T}ヲN!|`x<<_8b2Hi<XX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃8@^xB~x|| x}ヲN!|`x<^xB~x<ゼл x}ヲN!|`x88/@h^xBト~x| x}ヲN!^xBネ~x| x}ヲN!^xB烙~x<| x}ヲN!@HH逗^xB~x|セ8| x}ヲN!|`x@^xB烙~x<| x}ヲN!<_8bо8H|`x/@@/@<_8b1H痼@HH|x!|ヲサチN `````|ヲソチ!p|> xBヲ厨ィ裾ャ誓ー窃エ^ィB怙~ィャ| x}ヲN!|`x88/@@^ィBト~ィ| x}ヲN!^ィBネ~ィ| x}ヲN!Hh8<|x<_8/xセエ゙ーHA^ィBBシ8<~ィ8|x|Lx}ヲN!^ィB烙~ィ8| x}ヲN!!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_B5\8ー|xhHY!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!ー|> xBヲ厨h<_B4フ8ー|xhHノ!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!|> xBヲ厨(裾,~(H|`x<<|x(|8H^888^88B|t//A^<8<|x<_8-p}%Kx}f[xH}8P|xK!8HpHA|ix8D|x<_8-、}%KxHE8P9>D|x<_8-ャ}%KxH)8P|xK-8D~@|x8 HI~@HA8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8|x<_8+閠セネH8|xK操~ネH!|`x/A<_8b+Kq8路88<_8b+`|xH|`x/A<_8b, K98路ィ88~ネ|xHヘ|`x/AD<_8b,TK89>閖x<_8,}%KxHル8|xKン8路L8TF>T >LTF>T >LT >8<|x<_8,<_8「+`}&Kx}g[x}HSxHyHU|ix8芸x<_8+シ}%KxHY8<8^8|x|DxH|`x/@D89><|x<_8,エ}%KxH8|xK!8|xKオ8路8<|x8 8$H|`x88/@889><|x<_8,ヤ}%KxHオ8|xKY8路(8劇~8|x8 Hノ~8Hチ8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ<_8b(88Hル|`x/A<_8b*К8路`Hu|`x/A<_8b*クK8路8~ネH!|`x/A<_8b+,Kス8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ~ネH=|`x88|xネ| xBヲ厨h裾l8閖x<_8)シセhH8閖xK~h88Hチ|`x/A<_8b)ミKH8TF>T >LTF>T >LT >8|x<_8)}ESx}&Kx}g[xH・8|x88HU|`x/A<_8b* K工8|xlH|`x/@<89>|x<_8*,}%KxHA8閖xKE8|xHノH,89>|x<_8*H}%KxH 8閖xK !|ヲサチN `````|ヲソ。!@|> xBヲ厨リ裾ワ~リ8Hナ|`x<@|x<_8(}%Kxヲx}g[xワHス8L|xKチ8ィH 8ィィ|x!|ヲサ。N `````|ヲソ。!酢> xBヲ<_8B$"B@>Dー^H<_8B(t"BJ>Nー^R8@|xH |`x|x8J|xH |`x|]8|x8H |`x88/@<_8b'シKi8XH8@~8|xH }~8<_8'腥 m8J~8|xH ]~8H オ|`x/@$~8H <_8b'鍖8XH~8<_8(,H ル|`x< xBヲ厨<_)48^L9 4|Cx|x}%KxHオ<_B)"|B >я~真8D~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8<_8b",|xH mHネDT:88|B8B8^ィ|x|DxH A|`x/@ャ^ AxDT:88|B8BΔDT:88|B8B|xH -|`x<_」x8",|xH ユ|`x/A~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8酢x<_8't}%KxH 8|xK!8hHミ8H~|xH ・DT:88|B8B|T>\TF>T>\T >8酢x<_8'ト}e[x}FSx}CxィxH q88^H|x|DxH |`x/@889>酢x<_8't}%KxH 58|xKI8hH^<8<T >\TF>T >\T >8酢x<_8#h<_8「",}&Kx}g[x}HSxH I88^H|x|DxH|`x/@8酢x8H 9|`x88烙~8|x8 H~8H 589>D|x<_8(}%KxH YD|x8Hゥ|`x/A食 9|bx/@|89>酢x<_8( }%KxH8|xK。8酢xH |`x/A<89>酢x8P<_8「(<}&KxHノ8|xK]8hH 8hh|x!|ヲサ。N `````ソチ!ミ|> x厨H裾L8|x!サチN `````ソチ!ミ|> x厨H裾L!サチN `````ソチ!ミ|> x厨H裾L!サチN `````|ヲソチ!|> x厨x裾|8<x/@^<HHヤ^|8^xB(~x<<`・| x}ヲN!|`x8^88@8HH|88@@T^xB ~x<8| x}ヲN!^</A^|8^<HH8/A8HHH|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_B!楳h<_8b Hu<`|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b 、H!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p^hB ~h<_8 t| x}ヲN!|`x|x!|ヲサチN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ d}ヲN |ヲB}hヲ=k|ヲ H}ヲN |ヲB}hヲ=k|ヲ ,}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲリ}ヲN |ヲB}hヲ=k|ヲシ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲмヲN |ヲB}hヲ=k|ヲh}ヲN |ヲB}hヲ=k|ヲL}ヲN |ヲB}hヲ=k|ヲ0}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲワ}ヲN |ヲB}hヲ=k|ヲタ}ヲN |ヲB}hヲ=k|ヲ、}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲl}ヲN |ヲB}hヲ=k|ヲP}ヲN |ヲB}hヲ=k|ヲ4}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ烋ヲN |ヲB}hヲ=k|ヲト}ヲN |ヲB}hヲ=k|ヲィ}ヲN |ヲB}hヲ=k|ヲ迎ヲN |ヲB}hヲ=k|ヲp}ヲN |ヲB}hヲ=k|ヲT}ヲN |ヲB}hヲ=k|ヲ8}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ艟ヲN |ヲB}hヲ=k|ヲネ}ヲN |ヲB}hヲ=k|ヲャ}ヲN |ヲB}hヲ=k|ヲ図ヲN |ヲB}hヲ=k|ヲt}ヲN |ヲB}hヲ=k|ヲX}ヲN |ヲB}hヲ=k|ヲ<}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ閘ヲN |ヲB}hヲ=k|ヲフ}ヲN |ヲB}hヲ=k|ヲー}ヲN |ヲB}hヲ=k|ヲ媒ヲN |ヲB}hヲ=k|ヲx}ヲN |ヲB}hヲ=k|ヲ\}ヲN |ヲB}hヲ=k|ヲ@}ヲN |ヲB}hヲ=k|ヲ$}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲミ}ヲN |ヲB}hヲ=k|ヲエ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ|}ヲN |ヲB}hヲ=k|ヲ`}ヲN |ヲB}hヲ=k|ヲD}ヲN |ヲB}hヲ=k|ヲ(}ヲN |ヲB}hヲ=k|ヲ }ヲN __dyld_call_module_initializers_for_dylibfdIsendEvent(IZ)ZspeeddataBitsstopBitsparityCannot Get Serial Port Settings pidopen: locking has failed for %s open: locking worked for %s open: fd returned is %i gnu/io/PortInUseExceptionopen>nativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i java/io/IOExceptionwriteBytewriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) UnsupportedCommOperationExceptionnativeSetBaudBasenativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXjava/lang/ArrayIndexOutOfBoundsExceptionreadArrayInvalid lengthRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedMonitorThreadLockZcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialBSDClientTypeIOSerialStreamIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier addPortName(Ljava/lang/String;ILgnu/io/CommDriver;)VgetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. %s%s%i/dev/%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s%s/LCK..%s/var/lockfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXXLCK..lk..LK./etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucp%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown ApplicationC0鐘鐘タチXチタタ ,tチh+ツhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhネオシネオヤスースクスタストスミススセセケ4セ0セ@セPセdケ4タ@チP@チ@@チ@チ@チ@チ@チ@チ@チ|@チx@チt@チp@チl@チh@チ`@チ\@チX@チ4@チ0@チ,@チ(@チ$@チ @チ@チ@チ@チ@チ @チ@チ@チ@タ@タ@タ@タ@タ@タ@タ@タ@タワ@タリ@タヤ@タミ@タフ@タネ@タト@タタ@タシ@タク@タエ@ター@タャ@タィ@タ、@タ@タ@タ@タ@タ@タ@タ@タ@タ@タ|@タx@タt@タp@タl@タh@タd@タ`@タ\@タX@タT@タP@タL@タH@Dタiタタ賄タアdタヨ<.タDタDリDDD DD8$タ8 タタ 8 *9$xN8:d8タ/Gh;d8wd8ネ<.8Dム8DメxDヤDユDヨフDラヤDリD゙<D゚Xラ$ム8,X楳セレ"2AWk|斧・サル )Ae沃ウノレ(8Q8c88楳8ヲ8ク8ハ8ワ8999$969H9Z9l9~9逗9「9エ9ニ9リ9黴9:: :2:D:V:h:z:劇:梳:ー:ツ:ヤ:諤:; ;;.;@;R;d;v;;噫;ャ;セ;ミ;窶;<<<*<<>>.>A>T>g>z>項>>ウ>ニ>ル>>??%?8?K?^?q?о?沃?ェ?ス?ミ?縲?@ @@/@B@U@h@{@死@。@エ@ヌ@レ@AAA&A9ALA_ArAAAォAセAムA艢AB BB0BCBVBiB|B準B「BオBネBロBCCC'C:CMC`CsCC凰CャCソCメC蛟CD DD1DDDWDjD}D逗D」DカDノDワDEEE(E;ENEaEtEE噫EュEタEモE諤EF FF2FEFXFkF~F操F、FキFハFンFGGG)G<GOGbGuGG它GョGチGヤG轢GH H H2HEHVHgHyH劇H捩HョHチHメH蛟HI II1IDIUIhI{I劇I捩IョIソIミI縲IJJJ(J;JNJaJtJJ噫JュJタJモJ諤JK KK2KEKXKkK~K操K、KキKハKンKLLL)L:LKL\LoLL斧LィLサLホL痼LMMM-M@MSMfMyM劇M麾MイMナMリMMNN$N7NJN]NpN÷N楳NァNコNヘN烙NOOO,O?OROeOxO朽O梳OアOトOラO黴OPP#P6PIP\PoPP斧PィPサPホP痼PQQQ-Q@QSQfQyQ劇Q麾QイQナQヨQ騾QRR"R5RHR[RnR÷R楳RァRコRヘR烙RSSS,S?SRSeSxS朽S梳SアSトSユS閠STT!T4TGTZTmTT凍TヲTケTフT゚TUUU+U>UQUdUwU橿U捩UーUテUヨU騾UVV"V5VHV[VnV÷V楳VァVコVヘV烙VWWW,W?WRWdWwW橿W捩WーWチWモW諤WXX/XIX`XwX準XヲXセXラXYYY+YIYhYоYYスYリYZZ/ZBZUZhZ{Z死Z。ZエZヌZワZ[[F[y[ィ[\\4\G\Y\o\ヘシ\蔵ホタ\擒ミト\ゥメ8\オタ8\カp\キ$8Np.pDpDDーDシDトDフD ヤD ワD+\ク$p\癶\\8] ]k]シ]゚]^ ^^9^L^_タp^`D^sP^。^仟シ^吭^壟^$N.D<D>8D@HDBTDF`DH|DIDKィDLシD\ミD]リDNDPDRDTDX,DY4DZDD_PDa`DepDh|^$<^ク;x^ハ=<^モ^゙>8^閠_O_b_タ_も_$N.DvDyタD{フD|D}D~DDDDD0DHDdD|DDD、_$v_國u_、w8_ウ`e`凰`ウ`モ`aaタaシa$(Nシ.シD「シD」D<D」HD・DヲDァDィャDゥクDェトDォミDャワDュDョDッDー DアDイ$Dエ0Dカ<DクHDコTDサlDセDトDエDクa$「シa+。Ha?$ Nネ.ネDネDD DDDDD|D エD D $D DD`DlDDDDDDD D @D!LD"XD(`D)D*D?DAーDCDD DE4DF\a@$ネaWネabフanミax\aXa摩Ta、PaエLaテHaミDa烙@a<b 8bタネbpb$ィNp.pDXpDZャD]エD^ワDaDb Dc<DdXDexDiDlDmクDoリDzD|D~4D@DdDD、DシDネDリDDDD$D8DXDlDDィDエDタD。トb$Xpb=TリbHUワbTWbbYHbkZDbu[Lbム\@b楳b。]<bョ^8bサタpbシワbス$lNワ.ワDュワDッDー<DアhDウDオエDケタDコフDサDシDス$Dセ0Dタ4Dヒ@DホLDマ\Dミ|DメDモDヤエDユタDルbセ$ュワb陟ォbャbャc ョHcョDc$ッ@c-ー<c>ア8cKタワcLcM$N.DD @D HD `D lD xD D 、D ーD ミD ワD D!D!D! D!,D!DD!PD!hD4!D8!ネD9!ヤDE!DG!DH"DJ"DK" cN$cecpczc唖、c丐ィcィャcカ8cナdcメタcモ"8cヤ$@N"8."8DX"8DY"DZ"、D_"クDa"トDh"ミDl"ワDn#Dv#D{#D|#(cユ$X"8d VxdV|d$Vd3VdEVdWWdgY<dpZ8d}タ"8d~#@d$N#@.#@D#@D#hDリ#トD#ヤD%D% D%,D%8D%DD%PD%\D%hD%tD%D%D%D%、D%ーD%シD%ネD%ヤD「%D」%Dヲ&Dャ&(Dリ&@Dワ&LD゙&Xd$#@d裏Hd「Ldア$(N&h.&hD&hD&D&、D&ミD&ワD&D'D'D' D',D'<D'HD'XD'dD'hdイ$&hdヘXdリ\d遐`deeタ&he'xe$N'x.'xD'xD'ャD*'リD'D'D(D( D(,D(8D (LD*(XD+(\e$'xe5he@leOpea$N(t.(tD-(tD/(ィD1(ーD3(タD5(ミD7(ワD9(D;(D=)D?)D@) eb$-(te劬,e、,eー,eシ.<eヒ/8eユタ(teヨ)8eラ$トN)8.)8DB)8DE)tDG)DH)DW)、DZ)ヤD\)D^)Db*Dd* eリ$B)8fAfAfAf)C8f8タ)8f9*$f:$N*$.*$Dq*$Dv*`D*D*Dy*ィD{*エD}*ネD*ヤD*D*D*f;$q*$fSphf^plfmppf}$N+.+D、+D・+DDィ+LDェ+\Dャ+dDア+pDカ+|Dコ+Dシ+ィDツ+トDテ+ミDェ+ワDモ+Dヌ+Dヒ+Dミ,Dム,Dユ,Dヨ,$Dラ,0f~$、+f蔵」xf捩・<fィァ8fータ+fア,8fイ$(N,8.,8D,8D,\D,hfウ$,8fヘHfル$<N,tfレ,t.,tD,tD,ィD,シf$,tgクg8gタ,tg,ミg$\N,ミ.,ミD,ミD-D-D-D-$D-0D -8D#-@D$-XD%-pD&-D3-D5-クD6-トD7-D9-D:-D;.DD<.PD=.D?.D@.、g$,ミg0g<8gI<gY@giDg{Pg項\g凰hh'hBhUhuhhiiタ,ミi.シi$N.シ..シDM.シDO/DQ/DR/D\/@D]/dD^/pD_/D`/ャDo/クDq/ネDr/リDu/Dt/Dw0Dx0$D{00D|0HD~0TD0`D0i$M.シiCKネiNLフiZLミifLヤi{O@iQDi斧iャR<iオS8iツTEiフタ.シiヘ0ィiホ$N0ィ.0ィD0ィD0D1Dゥ1Dェ18Dク1dDケ1Dコ1ィDシ1クDス1トDセ1Dフ2Dホ2(Dミ28Dモ2HDメ2TDユ2xDヨ2D2D2ミiマ$0ィijjj j0j?jTHjaDjj@jw<jム8j逗j淆0ィj2j。$<N2.2D2D3$D3LD3tD3|D3D3D3、D 3ミD 3D3D44D4PD4lD4xD4D4D4リD"4D#4j「$2jフxjラ|j罌jDk@k <k8k%Hk3タ2k4k@タ4kA4kB5kC$,N5.5D/5D05LD35pD65kD$/5kl-xkw.|kΒ.k斧08k楝5k游5ャk$N5ャ.5ャDD5ャDE5DI6DK6$DN68DP6lDQ6xk。$D5ャkラAk笄CkE8kF<lタ5ャl6l$N6.6D_6D`6ネDc6De7Dh7 Dj7TDk7`l $_6lE\lP^l\`8lea<ltタ6lu7xlv$N7x.7xDy7xDz7ーD{7クD7ワD7D8D8 D8@D8Llw$y7xl屏wネlヲxフlイz<lソlモ{8lワ|@lタ7xl8dl$N8d.8dD8dD8D8、D8ネD8D9D。9 D「9,l$8dmネmフm'<m48m=@mKタ8dmL9DmM$N9D.9DDー9DDア9|Dイ9Dカ9ィDキ9タDク9Dコ9Dサ: Dシ:mN$ー9Dmrョネm}ッフm園ア<m摩イ8m麾ウ@mュタ9Dmョ:0mッ$N:0.:0Dハ:0Dヒ:hDフ:pDミ:Dム:ャDメ:フDヤ:リDユ:Dヨ;mー$ハ:0mモネネm゙ノフm黴ヒ<mフ8nヘ@nタ:0n;n$N;.;D;D;TD;\D;D;D;クD;トD;D;n$;n5ネn@フnL<nY8nb@npタ;nq<nr$N<.<D<DD,>$n$=o ネoフo!ミo0<o=8oF@oTタ=oU>8oV$(N>8.>8D:>8D;>pD<>xD@>DA>エDB>ヤDD>DE?DF? oW$:>8o{8ネo9フo逐;<o麾<8oィ=@oカタ>8oキ?$oク$N?$.?$DT?$DU?dDV?lDZ?D[?ィD\?ネD]?ヤD^?D_@ Db@oケ$T?$o゙Rネo鬆SフoSミpU<pV8pW@p(タ?$p)@,p*$N@,.@,Dv@,Dw@dDy@tDz@D{@D}@D@ャD@クD@トD@ヤD@リD@DADADA DA,DA8DAHp+$v@,pHuxpZu|pdw<pqw8p{タ@,p|A\p}$0NA\.A\DォA\DトADニAフDネAミp~$ォA\pョァhpケィlpナェppラ$NA.ADルADB DBTDBXpリ$ルAqヨhqリlq$NBp.BpDBpDBャDBDBq $BpqOhqZlqfpqw$NB.BD-BD?C4DAChDCClqx$-Bqァ*hqイ,lqセ$NC.CDWCDYCタD[CネD_CDdDDfDDgD(DjD4DkDHDlDhDnD|DrDDsDDtDタDuDフDyDD{DD~DDE DE,DEPDE\qソ$WCqUxqV|r VrVr%X@r.Y<r8ZDrE[8rVタCrWEtrX$NEt.EtDEtDEーDEクD。EDヲEDィFDゥFDャF$DュF8DョFXDーFlDエFxDオFDカFーDキFシDサFヤDスFDタFDツGDトGDニG@DヌGLrY$Etr刈xr腹|r」rアrソ@rネ<rメDr゚8rタEtrGdr$NGd.GdDロGdDンGーD゙GクD゚GDGDHDHDH,DH8DHLDHlDHDHDHーDHDHDHDID I<D I@D IhD ID IタD IトD IミD IワD JD JD J(r$ロGds1ルxs<レ|sJレsXレsjレs|レs滋レs梳ワDsァン@sア゙<sツ゚8sマタGdsミJ<sム$リNJ<.J<D /J<D 1JxD 2JD 7JャD <JクD >JミD ?JD BJD CKD DK D FK4D JK@D KKXD LKxD MKD QKD SKィD VKエD XKリD ZKD \LD ]Lsメ$ /J<t -xt .|t .t* .t8 0@tA 1<tK 28t\ 3DtiタJ<tjL,tk$NL,.L,D lL,D mLhD nLpD oLD sLャD vLクD xLトD yLワD zLD |MD }M(D ~M4tl$ lL,t悛 jネtァ kフtウ kミtチ m@tホ n<t゚ o8t閠 pDtタL,tMLt$ NML.MLD MLD MD MD MシD MフD MリD MD MD ND N(D NHD NTt$ MLu) ネu4 フu@ ミuN @u[ <ul 8uu DuβMLuNlu$ NNl.NlD ャNlD ュNィD ョNーD ッNワD ウND カND クOD ケOD コO<D シOHD スOhD セOtu$ ャNluカ ェネuチ ォフuヘ ォミuロ ュ@u閠 ョ<u ッ8v ーDvタNlvOv$ NO.OD フOD ヘOネD ホOミD マOD モP D ヨPD リP$D ルP<D レP\D ワPhD ンPD ゙Pv$ フOvB ハネvM ヒフvY ヒミvg ヘ@vt ホ<v マ8v死 ミDv愨Ov杳Pャv$ NPャ.PャD PャD PD PD QD Q,D Q8D QDD Q\D Q|D QD QィD Qエv$ Pャvマ ネvレ フv譬 ミv @w <w 8w Dw)タPャw*Qフw+$ NQフ.QフD QフD RD RD R<D RLD RXD RdD R|D RD RィD RネD Rヤw,$ Qフw[ ネwf フwr ミw @w項 <w梳 8wァ DwオタQフwカRwキ$ NR.RD *RD +S(D ,STD /SdD 2SD 5SD 7SD 9SシD :SネD OSヤD PTD RTD ST0wク$ *Rw )ィw )ャx )ーx +@x$ ,<x- -Dx< .8xKタRxLTHxM$\NTH.THD ^THD _TD `TーD bTタD eTD hTD jTD lUD mU$D oU0D tU`D oUlD pUD qUD rUD sUャD tUクD vUシxN$ ^THx│ ]ィx匠 ]ャx屏 ]ーxゥ _<xコ `8xテ a@xメタTHxモUヤxヤ$NUヤ.UヤD UヤD VD V<D VLD VpD V|D VD V、D VーD VシD VD VD WD WD WD W xユ$ Uヤy ィy ャy ーy. <y? 8yH @yWタUヤyXW8yY$dNW8.W8D ォW8D ャWtD ュWD ッWーD イWヤD オWD キWD ケXD コXD シX D ソXDD スXPD セX\D ソXhD チXlyZ$ ォW8y摺 ェィy屏 ェャyァ ェーyオ ャ<yニ ュ8yマ ョ@y゙タW8y゚Xy$LNX.XD モXD ヤXャD ゚XエD XシD Xトy$ モXz ムXz# メ\z/ ヤz<タXz=Xヤz>$PNXヤ.XヤD XヤD Y D Y0D YLD Y`D YlD Yxz?$ Xヤzu z z劇 8z斧 <z、タXヤz・Yzヲ$シNY.YD YD YミD "ZD $Zzァ$ Yz゙ hz鬆 lz p{$NZ .Z D 7Z D 8Z`D <ZD =ZD >ZャD @ZフD BZリD D[ D F[D G[${$ 7Z {; 5{F 6{R 6{a 88{j 9<{yタZ {z[<{{$N[<.[<D L[<D P[lD Q[xD V[D X[{|$ L[<{操 N8{愨[<{杳\{$ヤN\.\D u\D v\XD w\`D |\pD ~\xD \、D \ーD \シD \トD \ミD \D \D \D ]D ]D ](D ]@D ]D ]D ]ャD ]フD ^D ^D 、^D ィ^HD ゥ^XD ォ^dD ャ^pD ョ^|D ー^D ア^タD イ^D エ^D オ_D キ_ D ク_D コ_$D サ_0D シ_@D ハ_TD _`D ロ_D ワ_、D ン_ー{$ u\{カ o{チ p{ヘ q {ラ r${遐 s({ t,| v\||! vX|, vT|8 wP|H|Y wL|d wH|q y`|{ yD||凰 zh|・ |@|ー |<|シ }8|ヌタ\|ネ_ネ|ノ$クN_ネ._ネD f_ネD g` D k`0D l`<D n`HD o`TD r``D v`hD x`D y`D z`ーD `ミD a|ハ$ f_ネ} eィ} eャ}# eー}2 eエ}E eク}U g<}^ h@}m i8}{タ_ネ}|a}}$PNa.aD aD aPD axD aD aフD aリD b D %bD &bH}~$ a}・ x}ー |}シ @}ネ D}ラ <}烙} 8~ タa~b`~$HNb`.b`D 6b`D :b、D ;bフD AbD BcD Dc D Fc,D Hc8D IcdD JcD KcネD LcヤD NcD PdD Xd D Yd,~$ 6b`~8 4x~C 5|~O 5~` 5~p 5~ 7D~劇 8@~凰 :<~「 ;8~ータb`~アdD~イ$NdD.dDD fdDD gd|D hdD idクD jdトD kdミ~ウ$ fdD~譬 dx~ e|~ g8タdDd$、Nd.dD dD e0D e8D e`D eD eD eD eタD eフD eD f$D fhD fxD fD fD fトD fミD 「g8D 」gDD ヲgHD ァgdD ョgD ッg $ d; |F }R }c }s }Β ~ L、 Hー Dス @ミ <ル 8鄲d鞨gー$ネNgー.gーD シgーD スgD ホh D モh0D h@D hLD hXD hD h$ シgー コx# サ|/ ス88 セ<EタgーFhーG$Nhー.hーD hーDhDiDi,Di<D iLD iXD idDixDiDiDiィDiクDiトDiD"jH$ hーu 権 梳 <ュ8カタhーキjク$hNj.jD/jD0jLD1jXD3jhD4jトD5jケ$/jリ.x艢0@1<38タjk$Nk.kDAkD_k4Dbk`DcklDgk|DjkDkk $Ak+@h7$、Nk、.k、Dyk、DkリDkDk8$yk、\xh($\Nl.lDlDオl$)$l<H¥$0Nl0.l0Dチl0DナldDニlDムlエDメlミDモlワDヤlDヨlDラm$$チl0アタネ⊃ツ<¬ツ8モテ@≪タl0≫m√$Nm.mDmDmLDmTDm`DmlDmxDm、DmーDmシDmタDmワDnDn Dn8DnDDnTDnpDnDnエDnワDnDnDo∽$mx<8*タm+o,$No.oDoD'o4-$oB$,No@.o@D5o@DBodDDohC$5o@B4HN$8Nox.oxDPoxDSoャDVoタDWoワD[oD\oD^p D`pDdp(Dgp0Dip8Dkp<DlpHDtpXDvp`O$PoxlOhx$Npt.ptDptDpィDpクDpトDpヤDpDpDqDqDq(Dq4Dq@DqPDq\DqhDqxD「qャD」qクD・qトDヲqミDィqワDゥrDェr Dャr4DュrdDーrpDイrエDオrトDカrDキs0Dクs<DケsHDコsTDシs`DスslDセstDソsy$ptたxにDび@ま<よ8タpts$$Ns.sDヒsDフsフDホsワDミtDメt0DモtDDミtXDユt\DラtlDリt|DレtDロt、DワtクDンtネ$ヒsハh&$DNtワ.tワDtワDuDu@DuHDuPDuXDulDuDuDuDu、DuャDuエDuクDuD vD"vD$vD%v$D(v('$tワグクセシデ8パタtワヒv<ビ$`Nv<.v<D9v<D:vtD;vピ$9v<Η7hΣ8lセ$xNvエ.vエDOvエDVvDWw DXw(D[w0Dw<DwTDwxDwDwDwクDwトDwミDwリDwワDwDxDx DxD「x0D」x<D、xDDァxHDゥxdDォxDャxDュxDーxDアx、DウxクDオxリDカxDキxDクyDyDy$Dy8DyDDyLDy`DypD y|D!yD#yィD$yクα$OvエJリKワLN(PL7QxАUHИVDХW@ЯX<jタvエk8м|涜w扉yp歩yミ$Nyミ.yミD4yミD8zD:z(D;z8D=zDD?zdD@zpDBz|DCzDDzクDFzトDHzヤDIz$4yミ┠3xヘ5<烙A/Li準コワ6@t78.Vrタyミszt$(Nzu チ.zDXzD[{0D\{@D_{Da{Db{ーDd{クDe{タ$Xz。WxッW|チ( YチヤZ8騾.I\タz]{リ^$N{リ.{リDq{リDt|Du|Dw|4D{|DD||pD}||D~|D|D|フD|リD|D}$D}TD}tD}D}シD}D~ D~D~8D~D_$q{リp刈p蔓pィrLツルsHtDタ{リy@z<%タ|D&8:タ|;~<~8=~\>$N~\.~\D・~\Dォ~Dョ~Dシ~ワDチ~DアDウ Dテ,Dト4?$・~\v」ネ□、フ頃、ミ亜(3>迂ォ8厩'泳ャ9悦タ~\謁L越$NL閲 ツ.LDムLDヨDルエDタDDDD,D8D@DHDLDXDル`DxDDャDネDDDDD D (演$ムL価マx果ミ|茄ミ芽メD悔( モツ恐具%窪圭迎剣験弧語!8更腔穀混済碕 ;ヤE晒ユ@燦ユ<酸ヨ8四タL士 始$N . D D』D□姉$ 示h竺l漆$xN∈.∈D)∈D*♪D+疾$)∈趣'h囚(l(p$\N.D8D9LD:9D;\$8洲6h讐7l従$`NU.UDHUDIげDJぞ戎$HU署Fh鋤Gl奨Gp招$\Nひ.ひDWひDXDYDZ掌$Wひ剰Uh状Vl$`N0.0Dj0DkドDlベDmDpΖDrΚDsクDzζD{σDvDuDwD}0D~<DpДDПDЫDh$j01hx<i|食k@振l<真m8刃タ0塵л壬$LNл.лDлD┴D「╋D」ミDュDョ尋$л翠x枢<世8成タл政0整$エN0.0Dセ0DソxDチDテDトDネ、DニーDハヤDフDヘDマDヤ星$セ0説ケx尖コ|煎サシス ソ8-タ0.,/$N,.,D,DhDDDャDクDトDミDDDD DDDィ0$,腺゚鮮゚曾゚蘇<爽8タ,操タ早$Nタ.タD タDDD0D`DlDD愛D案D威D蔭DD 羽D$欝D%荏曹$ タ遭 x促 |賊 遜 陀@替濁<8(タタ)悦*$クN悦.悦D4悦D6穏D8霞D9餓D:D<$DA(DC灰DE獲DG褐+$4悦棚3ィ探3ャ誕3ー地3エ畜5<仲68駐調タ悦諜刈超$(N刈.刈DS刈DU間DY喜跳$S刈掴Rh嬬$`N.DeDm$紬$e汀dH$0N0.0Dx0Dz掬D~弓$x0wh$$`N巨.巨D巨D橋%$巨5H釘$0N饗.饗D<饗DH串DIDNDS DN,DU圭DV芸DX倹DY懸D[肩D\呼D^糊DaDbDd De后Df構Dg紘Dh鋼Di剛Dj告鼎$<饗鉄;(兎;,菟D@土D<刀ED湯EP蕩F騰F8瞳屯タ饗惇昏敦$N昏.昏D昏D財D鮭DD「D」$D・0Dァ傘Dィ蚕Dェ刺Dャ私Dュ諮Dョ汐Dッ失Dア柴Dキ Dク,Dコ臭Dシ宿Dス春Dセ準Dタ曙Dチ妾Dテ抄Dニ紹Dヌ賞Dノ剰Dハ飾DヒDフ沌$昏楢ネ日フ<)7韮8葱8埜タ昏嚢(悩$N(.(Dリ(Dワ申D゙靭D゚推D瑞D摺D成D精D昔D切D蝉D栓濃$リ(敗ラネ賠ル8泊タ(白箔$N.DD繊D善D租D 側D 惰D 隊D卓D只D粕$畑ネ伴フ繁@番<彼8疲タ皮碑$N.D D%探D&値D(遅D+註D,凋D.帳D3亭D6逓D7D9 D;(D<泥D=撤DA伝DB倒DD嶋秘$ hl!8+"6"疋タ髭糖彦$N糖.糖DP糖DU屯DV楢DX迩DZD\ D](D_4D`<Da妊Dc嚢De柏Dg畔Dh番Dj扉Dk肥膝$P糖評Oリ斌Oワ布Q<父Q8舞R@弗SL粉タ糖糞紛$hN.DD4D謬D付D紛D並D蔑D娩D戊D抱DDD$D」0D・<Dヲ傍Dィ冒Dェ僕Dォ膜Dャ又Dッ蔓Dー蜜Dア眠Dエ椋D牝雰$箆<補@J83芳謀魔迄>w橿捩于佚俟偖 /傳儡冓タ冕勿冖$リN勿冤 チX凉 チh.勿D勿D"D#0D%郵D(輿D)用D*淀D,瞭D.鱗D8涙D<|D=DB丐DG丶DB于DI倨DJ倩DM們DO<DQ兔DS凅DT刋DX剞DY劬D`Db4Dd啀De喀Dg喇DJ嗾Dj囈D.國D埖D壘D夊D奐D<D媾D孚D寤D寳D岻D巖D廁DD。D・<Dヲ廩Dェ弋Dォ彖刎$勿辨匏L卮#叺$H吝$$/$咤$啀%D唸嗹%@%<嚊%8嚼%D囹&H圜&ィ垉&堙タ勿堝忸塲$N忸.忸Dク忸Dケ悛Dコ悧堡$ク忸壺キH奐キL$<N惷.惷Dニ惷Dネ憔$ニ惷 ナH2ナL妁$4N懆.懆Dユ懆D妝$ユ懆婢ヤH嫺ヤL孛寤$4N.DD扠D抖D挾D掟D擣D敲D旙D暼DD(D曄D曠實$屶x峺|嵶<巉幎(;拜捫搗擘攅斂昊晰8タ杤$@N杤.杤D杤D梍D椄D棆D楮$杤)h:l朏$tN榧.榧D'榧D)D*朖$'榧枌&h柤&l$XN(梳 檮 椢 棠 楮 s槓 v樅 サ樸d(樢d(2d(氓<.(D(D 歸D 沍汨$(湫h游l滔p滾 />Rfuоタ沃タゥタノタロタタチチ#チ5チGチYチkチ}チ準チ。チウチナチラチ騾チツ ツツ1ツCツUツgツyツ朽ツ捩ツッツチツモツ蛟ツテ テテ-テ?テQテcテuテテ凰テォテステマテ痼テトトト)ト;トMト_トqトムト斧トァトケトヒトントナナナ%ナ7ナIナ[ナmナナ操ナ」ナオナヌナルナナニニ!ニ3ニEニWニiニ{ニ項ニ麾ニアニテニユニ轢ニヌ ヌヌ2ヌEヌXヌkヌ~ヌ操ヌ、ヌキヌハヌンヌネネネ)ネ<ネOネbネuネネ它ネョネチネヤネ轢ネノ ノ ノ3ノFノYノlノノ逐ノ・ノクノヒノ゙ノハハハ*ハ=ハPハcハvハ園ハ怙ハッハツハユハ閠ハヒヒ!ヒ4ヒGヒZヒmヒヒ凍ヒヲヒケヒフピヒフフフ+フ>フQフdフwフ橿フ捩フーフテフヨフ騾フヘヘ"ヘ5ヘHヘ[ヘnヘ÷ヘ楳ヘァヘコヘヘヘ烙ヘホホホ,ホ?ホRホeホxホ朽ホ梳ホアホトホラホ黴ホママ#マ6マIマ\マoママ斧マィマサマホマ痼マミミミ-ミ@ミSミeミ凰ミャミソミメミ蛟ミム ムム/ム@ムSムfムyム劇ム麾ムイムテムヨム騾ムメ メメ-メ@メSメfメwメメ凰メャメソメメメ蛟メモ モモ1モDモWモjモ}モ逗モ」モカモノモワモヤヤヤ(ヤ;ヤNヤaヤtヤヤ噫ヤォヤシヤヘヤ烙ヤユユユ,ユ?ユRユeユxユ朽ユ梳ユアユトユラユ黴ユヨヨ#ヨ6ヨIヨ\ヨoヨヨ斧ヨィヨサヨホヨ痼ヨラララ+ラ>ラQラdラwラ橿ラ捩ラーラテラヨラ騾ラリリ"リ5リHリ[リnリ÷リ楳リァリコリヘリ烙リルルル,ル?ルRルeルxル朽ル梳ルアルトルラル黴ルレレ#レ6レGレZレmレレ凍レヲレケレフレ゚レロロロ+ロ>ロQロdロwロ橿ロ它ロョロチロヤロ蛟ロワ ワワ1ワBワUワhワ{ワ死ワ。ワエワヌワレワンンン&ン9ンLン_ンrンンンォンセンムン艢ン゙ ゙゙0゙C゙V゙i゙|゙準゙「゙オ゙ネ゙ロ゙゚゚゚'゚:゚M゚`゚s゚゚凰゚ャ゚ソ゚ム゚艢゚ .漾澳瀛燠犇猥琲.瓲畩疱瘢癶盖瞋碣 (礒秡窩笙箙簗籖糅)<絨綸纓罨羶肛腮舸萢蒻,蕋藥蚋蜿$|N洟蜷d洟` テ& テ テ: テノL~\&vエKpl_ネヲ5ャヤ6tワ(Qひ{0、8dソ9Dロ7x>8:0.;JdDuワ2ケABXヤ6(te)8XコA\Bp Z 70`Y"8ソRTHUヤGW8uOPャトMLNlQフ;L,cCJ<オEt゙Gdgー:pUb`uadセ5゙=?$ ∈ AU k< hー ュ0ィ ホ.シ v< 8 .l ? Qk m糖 }( m ィ クyミ ホ+ レo@ 懆 饗  s 2,8 D Zz mシ  タ 、k、 ナ,ミ モpt 勿 лr[< タ )l0 Dタ T\ e{リ 巨 0 ox ォ サ刈 ヒ, ラネ  @, 忸 "惷 :o G悦 ]&h r*$ #@ 'x ェj チ昏 フ タ杤榧 ( ル  )9Ghサトハミリ ,4;BSYajx「ェイコタミ "-@Rcsy」ャオセノヨ nシHKヒ4klmno、opアクニfgヨ}ヤヨ ー " $ & R U g ァ ア ウ カ ケ テ ネ ユチHチPチ8チPサネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハウユテ噫サネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハエオキカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~>?ウ。「」@、・ヲAァィゥェォャュョッーアイ6>zケ>エオカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ウ。「」、・ヲァィゥェォャュョッーアイクケコサシスセソタチツテトナニヌネノハヒ>?フヘホマミムメモヤユヨラリルレロワン゙゚@Aキ___initialize_Cplusplus__dyld_func_lookupcfm_stub_binding_helperdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf$LDBL128_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf$LDBL128_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf$LDBL128_sprintf$LDBL128_sscanf$LDBL128_stat_strcat_strcmp_strcpy_strerror_strlen_strncmp_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld_lazy_symbol_binding_entry_pointdyld__mh_dylib_headerdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled.__initialize_Cplusplus:F(0,1)p:(0,2):t(0,1)=(0,1):t(0,2)=*(0,3):t(0,3)=f(0,1)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s1828reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;cfm_vectors:(0,31),128,7200;GetVersion:(0,32),7328,32;DefineClass:(0,33),7360,32;FindClass:(0,34),7392,32;FromReflectedMethod:(0,35),7424,32;FromReflectedField:(0,36),7456,32;ToReflectedMethod:(0,37),7488,32;GetSuperclass:(0,38),7520,32;IsAssignableFrom:(0,39),7552,32;ToReflectedField:(0,40),7584,32;Throw:(0,41),7616,32;ThrowNew:(0,42),7648,32;ExceptionOccurred:(0,43),7680,32;ExceptionDescribe:(0,44),7712,32;ExceptionClear:(0,44),7744,32;FatalError:(0,45),7776,32;PushLocalFrame:(0,46),7808,32;PopLocalFrame:(0,47),7840,32;NewGlobalRef:(0,47),7872,32;DeleteGlobalRef:(0,48),7904,32;DeleteLocalRef:(0,48),7936,32;IsSameObject:(0,49),7968,32;NewLocalRef:(0,47),8000,32;EnsureLocalCapacity:(0,46),8032,32;AllocObject:(0,50),8064,32;NewObject:(0,51),8096,32;NewObjectV:(0,52),8128,32;NewObjectA:(0,53),8160,32;GetObjectClass:(0,54),8192,32;IsInstanceOf:(0,55),8224,32;GetMethodID:(0,56),8256,32;CallObjectMethod:(0,57),8288,32;CallObjectMethodV:(0,58),8320,32;CallObjectMethodA:(0,59),8352,32;CallBooleanMethod:(0,60),8384,32;CallBooleanMethodV:(0,61),8416,32;CallBooleanMethodA:(0,62),8448,32;CallByteMethod:(0,63),8480,32;CallByteMethodV:(0,64),8512,32;CallByteMethodA:(0,65),8544,32;CallCharMethod:(0,66),8576,32;CallCharMethodV:(0,67),8608,32;CallCharMethodA:(0,68),8640,32;CallShortMethod:(0,69),8672,32;CallShortMethodV:(0,70),8704,32;CallShortMethodA:(0,71),8736,32;CallIntMethod:(0,72),8768,32;CallIntMethodV:(0,73),8800,32;CallIntMethodA:(0,74),8832,32;CallLongMethod:(0,75),8864,32;CallLongMethodV:(0,76),8896,32;CallLongMethodA:(0,77),8928,32;CallFloatMethod:(0,78),8960,32;CallFloatMethodV:(0,79),8992,32;CallFloatMethodA:(0,80),9024,32;CallDoubleMethod:(0,81),9056,32;CallDoubleMethodV:(0,82),9088,32;CallDoubleMethodA:(0,83),9120,32;CallVoidMethod:(0,84),9152,32;CallVoidMethodV:(0,85),9184,32;CallVoidMethodA:(0,86),9216,32;CallNonvirtualObjectMethod:(0,87),9248,32;CallNonvirtualObjectMethodV:(0,88),9280,32;CallNonvirtualObjectMethodA:(0,89),9312,32;CallNonvirtualBooleanMethod:(0,90),9344,32;CallNonvirtualBooleanMethodV:(0,91),9376,32;CallNonvirtualBooleanMethodA:(0,92),9408,32;CallNonvirtualByteMethod:(0,93),9440,32;CallNonvirtualByteMethodV:(0,94),9472,32;CallNonvirtualByteMethodA:(0,95),9504,32;CallNonvirtualCharMethod:(0,96),9536,32;CallNonvirtualCharMethodV:(0,97),9568,32;CallNonvirtualCharMethodA:(0,98),9600,32;CallNonvirtualShortMethod:(0,99),9632,32;CallNonvirtualShortMethodV:(0,100),9664,32;CallNonvirtualShortMethodA:(0,101),9696,32;CallNonvirtualIntMethod:(0,102),9728,32;CallNonvirtualIntMethodV:(0,103),9760,32;CallNonvirtualIntMethodA:(0,104),9792,32;CallNonvirtualLongMethod:(0,105),9824,32;CallNonvirtualLongMethodV:(0,106),9856,32;CallNonvirtualLongMethodA:(0,107),9888,32;CallNonvirtualFloatMethod:(0,108),9920,32;CallNonvirtualFloatMethodV:(0,109),9952,32;CallNonvirtualFloatMethodA:(0,110),9984,32;CallNonvirtualDoubleMethod:(0,111),10016,32;CallNonvirtualDoubleMethodV:(0,112),10048,32;CallNonvirtualDoubleMethodA:(0,113),10080,32;CallNonvirtualVoidMethod:(0,114),10112,32;CallNonvirtualVoidMethodV:(0,115),10144,32;CallNonvirtualVoidMethodA:(0,116),10176,32;GetFieldID:(0,117),10208,32;GetObjectField:(0,118),10240,32;GetBooleanField:(0,119),10272,32;GetByteField:(0,120),10304,32;GetCharField:(0,121),10336,32;GetShortField:(0,122),10368,32;GetIntField:(0,123),10400,32;GetLongField:(0,124),10432,32;GetFloatField:(0,125),10464,32;GetDoubleField:(0,126),10496,32;SetObjectField:(0,127),10528,32;SetBooleanField:(0,128),10560,32;SetByteField:(0,129),10592,32;SetCharField:(0,130),10624,32;SetShortField:(0,131),10656,32;SetIntField:(0,132),10688,32;SetLongField:(0,133),10720,32;SetFloatField:(0,134),10752,32;SetDoubleField:(0,135),10784,32;GetStaticMethodID:(0,56),10816,32;CallStaticObjectMethod:(0,51),10848,32;CallStaticObjectMethodV:(0,52),10880,32;CallStaticObjectMethodA:(0,53),10912,32;CallStaticBooleanMethod:(0,136),10944,32;CallStaticBooleanMethodV:(0,137),10976,32;CallStaticBooleanMethodA:(0,138),11008,32;CallStaticByteMethod:(0,139),11040,32;CallStaticByteMethodV:(0,140),11072,32;CallStaticByteMethodA:(0,141),11104,32;CallStaticCharMethod:(0,142),11136,32;CallStaticCharMethodV:(0,143),11168,32;CallStaticCharMethodA:(0,144),11200,32;CallStaticShortMethod:(0,145),11232,32;CallStaticShortMethodV:(0,146),11264,32;CallStaticShortMethodA:(0,147),11296,32;CallStaticIntMethod:(0,148),11328,32;CallStaticIntMethodV:(0,149),11360,32;CallStaticIntMethodA:(0,150),11392,32;CallStaticLongMethod:(0,151),11424,32;CallStaticLongMethodV:(0,152),11456,32;CallStaticLongMethodA:(0,153),11488,32;CallStaticFloatMethod:(0,154),11520,32;CallStaticFloatMethodV:(0,155),11552,32;CallStaticFloatMethodA:(0,156),11584,32;CallStaticDoubleMethod:(0,157),11616,32;CallStaticDoubleMethodV:(0,158),11648,32;CallStaticDoubleMethodA:(0,159),11680,32;CallStaticVoidMethod:(0,160),11712,32;CallStaticVoidMethodV:(0,161),11744,32;CallStaticVoidMethodA:(0,162),11776,32;GetStaticFieldID:(0,117),11808,32;GetStaticObjectField:(0,163),11840,32;GetStaticBooleanField:(0,164),11872,32;GetStaticByteField:(0,165),11904,32;GetStaticCharField:(0,166),11936,32;GetStaticShortField:(0,167),11968,32;GetStaticIntField:(0,168),12000,32;GetStaticLongField:(0,169),12032,32;GetStaticFloatField:(0,170),12064,32;GetStaticDoubleField:(0,171),12096,32;SetStaticObjectField:(0,172),12128,32;SetStaticBooleanField:(0,173),12160,32;SetStaticByteField:(0,174),12192,32;SetStaticCharField:(0,175),12224,32;SetStaticShortField:(0,176),12256,32;SetStaticIntField:(0,177),12288,32;SetStaticLongField:(0,178),12320,32;SetStaticFloatField:(0,179),12352,32;SetStaticDoubleField:(0,180),12384,32;NewString:(0,181),12416,32;GetStringLength:(0,182),12448,32;GetStringChars:(0,183),12480,32;ReleaseStringChars:(0,184),12512,32;NewStringUTF:(0,185),12544,32;GetStringUTFLength:(0,182),12576,32;GetStringUTFChars:(0,186),12608,32;ReleaseStringUTFChars:(0,187),12640,32;GetArrayLength:(0,188),12672,32;NewObjectArray:(0,189),12704,32;GetObjectArrayElement:(0,190),12736,32;SetObjectArrayElement:(0,191),12768,32;NewBooleanArray:(0,192),12800,32;NewByteArray:(0,193),12832,32;NewCharArray:(0,194),12864,32;NewShortArray:(0,195),12896,32;NewIntArray:(0,196),12928,32;NewLongArray:(0,197),12960,32;NewFloatArray:(0,198),12992,32;NewDoubleArray:(0,199),13024,32;GetBooleanArrayElements:(0,200),13056,32;GetByteArrayElements:(0,201),13088,32;GetCharArrayElements:(0,202),13120,32;GetShortArrayElements:(0,203),13152,32;GetIntArrayElements:(0,204),13184,32;GetLongArrayElements:(0,205),13216,32;GetFloatArrayElements:(0,206),13248,32;GetDoubleArrayElements:(0,207),13280,32;ReleaseBooleanArrayElements:(0,208),13312,32;ReleaseByteArrayElements:(0,209),13344,32;ReleaseCharArrayElements:(0,210),13376,32;ReleaseShortArrayElements:(0,211),13408,32;ReleaseIntArrayElements:(0,212),13440,32;ReleaseLongArrayElements:(0,213),13472,32;ReleaseFloatArrayElements:(0,214),13504,32;ReleaseDoubleArrayElements:(0,215),13536,32;GetBooleanArrayRegion:(0,216),13568,32;GetByteArrayRegion:(0,217),13600,32;GetCharArrayRegion:(0,218),13632,32;GetShortArrayRegion:(0,219),13664,32;GetIntArrayRegion:(0,220),13696,32;GetLongArrayRegion:(0,221),13728,32;GetFloatArrayRegion:(0,222),13760,32;GetDoubleArrayRegion:(0,223),13792,32;SetBooleanArrayRegion:(0,224),13824,32;SetByteArrayRegion:(0,225),13856,32;SetCharArrayRegion:(0,226),13888,32;SetShortArrayRegion:(0,227),13920,32;SetIntArrayRegion:(0,228),13952,32;SetLongArrayRegion:(0,229),13984,32;SetFloatArrayRegion:(0,230),14016,32;SetDoubleArrayRegion:(0,231),14048,32;RegisterNatives:(0,232),14080,32;UnregisterNatives:(0,233),14112,32;MonitorEnter:(0,234),14144,32;MonitorExit:(0,234),14176,32;GetJavaVM:(0,235),14208,32;GetStringRegion:(0,236),14240,32;GetStringUTFRegion:(0,237),14272,32;GetPrimitiveArrayCritical:(0,238),14304,32;ReleasePrimitiveArrayCritical:(0,239),14336,32;GetStringCritical:(0,183),14368,32;ReleaseStringCritical:(0,184),14400,32;NewWeakGlobalRef:(0,240),14432,32;DeleteWeakGlobalRef:(0,241),14464,32;ExceptionCheck:(0,242),14496,32;NewDirectByteBuffer:(0,243),14528,32;GetDirectBufferAddress:(0,244),14560,32;GetDirectBufferCapacity:(0,245),14592,32;;:t(0,30)=*(0,246):t(0,31)=ar(0,21);0;224;(0,30):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=*(0,460):t(0,246)=(0,246):t(0,247)=f(0,461):t(0,248)=f(0,8):t(0,249)=f(0,8):t(0,250)=f(0,10):t(0,251)=f(0,462):t(0,252)=f(0,9):t(0,253)=f(0,8):t(0,254)=f(0,463):t(0,255)=f(0,9):t(0,256)=f(0,461):t(0,257)=f(0,461):t(0,258)=f(0,464):t(0,259)=f(0,246):t(0,260)=f(0,246):t(0,261)=f(0,461):t(0,262)=f(0,9):t(0,263)=f(0,246):t(0,264)=f(0,463):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,9):t(0,269)=f(0,8):t(0,270)=f(0,463):t(0,271)=f(0,10):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,9):t(0,275)=f(0,463):t(0,276)=f(0,463):t(0,277)=f(0,463):t(0,278)=f(0,465):t(0,279)=f(0,465):t(0,280)=f(0,465):t(0,281)=f(0,466):t(0,282)=f(0,466):t(0,283)=f(0,466):t(0,284)=f(0,467):t(0,285)=f(0,467):t(0,286)=f(0,467):t(0,287)=f(0,461):t(0,288)=f(0,461):t(0,289)=f(0,461):t(0,290)=f(0,468):t(0,291)=f(0,468):t(0,292)=f(0,468):t(0,293)=f(0,469):t(0,294)=f(0,469):t(0,295)=f(0,469):t(0,296)=f(0,470):t(0,297)=f(0,470):t(0,298)=f(0,470):t(0,299)=f(0,246):t(0,300)=f(0,246):t(0,301)=f(0,246):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,9):t(0,305)=f(0,463):t(0,306)=f(0,463):t(0,307)=f(0,463):t(0,308)=f(0,465):t(0,309)=f(0,465):t(0,310)=f(0,465):t(0,311)=f(0,466):t(0,312)=f(0,466):t(0,313)=f(0,466):t(0,314)=f(0,467):t(0,315)=f(0,467):t(0,316)=f(0,467):t(0,317)=f(0,461):t(0,318)=f(0,461):t(0,319)=f(0,461):t(0,320)=f(0,468):t(0,321)=f(0,468):t(0,322)=f(0,468):t(0,323)=f(0,469):t(0,324)=f(0,469):t(0,325)=f(0,469):t(0,326)=f(0,470):t(0,327)=f(0,470):t(0,328)=f(0,470):t(0,329)=f(0,246):t(0,330)=f(0,246):t(0,331)=f(0,246):t(0,332)=f(0,462):t(0,333)=f(0,9):t(0,334)=f(0,463):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,467):t(0,338)=f(0,461):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,470):t(0,342)=f(0,246):t(0,343)=f(0,246):t(0,344)=f(0,246):t(0,345)=f(0,246):t(0,346)=f(0,246):t(0,347)=f(0,246):t(0,348)=f(0,246):t(0,349)=f(0,246):t(0,350)=f(0,246):t(0,351)=f(0,463):t(0,352)=f(0,463):t(0,353)=f(0,463):t(0,354)=f(0,465):t(0,355)=f(0,465):t(0,356)=f(0,465):t(0,357)=f(0,466):t(0,358)=f(0,466):t(0,359)=f(0,466):t(0,360)=f(0,467):t(0,361)=f(0,467):t(0,362)=f(0,467):t(0,363)=f(0,461):t(0,364)=f(0,461):t(0,365)=f(0,461):t(0,366)=f(0,468):t(0,367)=f(0,468):t(0,368)=f(0,468):t(0,369)=f(0,469):t(0,370)=f(0,469):t(0,371)=f(0,469):t(0,372)=f(0,470):t(0,373)=f(0,470):t(0,374)=f(0,470):t(0,375)=f(0,246):t(0,376)=f(0,246):t(0,377)=f(0,246):t(0,378)=f(0,9):t(0,379)=f(0,463):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,467):t(0,383)=f(0,461):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,470):t(0,387)=f(0,246):t(0,388)=f(0,246):t(0,389)=f(0,246):t(0,390)=f(0,246):t(0,391)=f(0,246):t(0,392)=f(0,246):t(0,393)=f(0,246):t(0,394)=f(0,246):t(0,395)=f(0,246):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,473):t(0,399)=f(0,246):t(0,400)=f(0,471):t(0,401)=f(0,474):t(0,402)=f(0,246):t(0,403)=f(0,472):t(0,404)=f(0,475):t(0,405)=f(0,9):t(0,406)=f(0,246):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,491):t(0,423)=f(0,246):t(0,424)=f(0,246):t(0,425)=f(0,246):t(0,426)=f(0,246):t(0,427)=f(0,246):t(0,428)=f(0,246):t(0,429)=f(0,246):t(0,430)=f(0,246):t(0,431)=f(0,246):t(0,432)=f(0,246):t(0,433)=f(0,246):t(0,434)=f(0,246):t(0,435)=f(0,246):t(0,436)=f(0,246):t(0,437)=f(0,246):t(0,438)=f(0,246):t(0,439)=f(0,246):t(0,440)=f(0,246):t(0,441)=f(0,246):t(0,442)=f(0,246):t(0,443)=f(0,246):t(0,444)=f(0,246):t(0,445)=f(0,246):t(0,446)=f(0,246):t(0,447)=f(0,461):t(0,448)=f(0,461):t(0,449)=f(0,461):t(0,450)=f(0,461):t(0,451)=f(0,246):t(0,452)=f(0,246):t(0,453)=f(0,30):t(0,454)=f(0,246):t(0,455)=f(0,492):t(0,456)=f(0,246):t(0,457)=f(0,463):t(0,458)=f(0,9):t(0,459)=f(0,30):t(0,460)=f(0,468)jint:t(0,461)=(0,18)jfieldID:t(0,462)=(0,493)jboolean:t(0,463)=(0,494)jthrowable:t(0,464)=(0,9)jbyte:t(0,465)=(0,495)jchar:t(0,466)=(0,496)jshort:t(0,467)=(0,497)jlong:t(0,468)=(0,498)jfloat:t(0,469)=(0,499)jdouble:t(0,470)=(0,500)jstring:t(0,471)=(0,9)jsize:t(0,472)=(0,461):t(0,473)=*(0,501):t(0,474)=*(0,502)jobjectArray:t(0,475)=(0,503)jbooleanArray:t(0,476)=(0,503)jbyteArray:t(0,477)=(0,503)jcharArray:t(0,478)=(0,503)jshortArray:t(0,479)=(0,503)jintArray:t(0,480)=(0,503)jlongArray:t(0,481)=(0,503)jfloatArray:t(0,482)=(0,503)jdoubleArray:t(0,483)=(0,503):t(0,484)=*(0,463):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,467):t(0,488)=*(0,461):t(0,489)=*(0,468):t(0,490)=*(0,469):t(0,491)=*(0,470)jweak:t(0,492)=(0,9):t(0,493)=*(0,504)unsigned char:t(0,494)=@s8;r(0,494);0;255;signed char:t(0,495)=@s8;r(0,495);-128;127;short unsigned int:t(0,496)=@s16;r(0,496);0;65535;short int:t(0,497)=@s16;r(0,497);-32768;32767;long long int:t(0,498)=@s64;r(0,498);01000000000000000000000;0777777777777777777777;float:t(0,499)=r(0,2);4;0;double:t(0,500)=r(0,2);8;0;:t(0,501)=k(0,466):t(0,502)=k(0,22)jarray:t(0,503)=(0,9):t(0,504)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,246)env:p(0,6)jclazz:p(0,8)old_action:(0,505)sigaction:T(0,505)=s12__sigaction_u:(0,506),0,32;sa_mask:(0,507),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,506)=u4__sa_handler:(0,509),0,32;__sa_sigaction:(0,510),0,32;;__darwin_sigset_t:t(0,508)=(0,511)sigset_t:t(0,507)=(0,508):t(0,509)=*(0,512):t(0,510)=*(0,513)__uint32_t:t(0,511)=(0,4):t(0,512)=f(0,246):t(0,513)=f(0,246)new_action:(0,505)block_mask:(0,507)sigset_t:t(0,507)find_preopened_ports:F(0,2)filename:p(0,474)fd:(0,2)int:t(0,2)p:(0,514)preopened:T(0,515)=s52filename:(0,516),0,320;fd:(0,2),320,32;next:(0,514),352,32;prev:(0,514),384,32;;:t(0,514)=*(0,515):t(0,516)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,517)termios:T(0,517)=s44c_iflag:(0,518),0,32;c_oflag:(0,518),32,32;c_cflag:(0,518),64,32;c_lflag:(0,518),96,32;c_cc:(0,520),128,160;c_ispeed:(0,521),288,32;c_ospeed:(0,521),320,32;;long unsigned int:t(0,519)=r(0,519);0;037777777777;tcflag_t:t(0,518)=(0,519):t(0,520)=ar(0,21);0;19;(0,522)speed_t:t(0,521)=(0,18)cc_t:t(0,522)=(0,494)void:t(0,246)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,517)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,462)jfdataBits:(0,462)jfstopBits:(0,462)jfparity:(0,462)Java_gnu_io_RXTXPort_open:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,474)char:t(0,22)jclazz:(0,8)jfid:(0,462)Java_gnu_io_RXTXPort_nativeClose:F(0,246)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,474)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,517)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,463)env:p(0,6)jobj:p(0,9)speed:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,461)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,523)dataBits:p(0,461)temp:(0,2):t(0,523)=*(0,518)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,523)stopBits:p(0,461)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)translate_parity:F(0,2)env:p(0,6)cflag:p(0,523)parity:p(0,461)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,246)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,246)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,462)newmask:(0,507)oldmask:(0,507)newaction:(0,505)oldaction:(0,505)tid:(0,524)_opaque_pthread_t:T(0,526)=s604__sig:(0,18),0,32;__cleanup_stack:(0,527),32,32;__opaque:(0,528),64,4768;;__darwin_pthread_t:t(0,525)=(0,529)pthread_t:t(0,524)=(0,525):t(0,527)=*(0,530):t(0,528)=ar(0,21);0;595;(0,22):t(0,529)=*(0,526)__darwin_pthread_handler_rec:T(0,530)=s12__routine:(0,531),0,32;__arg:(0,30),32,32;__next:(0,527),64,32;;:t(0,531)=*(0,532):t(0,532)=f(0,246)Java_gnu_io_RXTXPort_writeByte:F(0,246)env:p(0,6)jobj:p(0,9)ji:p(0,461)interrupted:p(0,463)index:(0,12)byte:(0,494)unsigned char:t(0,494)fd:(0,2)result:(0,2)msg:(0,5)Java_gnu_io_RXTXPort_writeArray:F(0,246)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)count:p(0,461)interrupted:p(0,463)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,485)jbyte:t(0,465)Java_gnu_io_RXTXPort_nativeDrain:F(0,463)env:p(0,6)jobj:p(0,9)interrupted:p(0,463)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,246)env:p(0,6)jobj:p(0,9)duration:p(0,461)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_isDSR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDSR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isDTR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)static_add_filename:F(0,246)filename:p(0,474)fd:p(0,2)newp:(0,514)p:(0,514)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,463)env:p(0,6)jobj:p(0,9)BaudBase:p(0,461)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,463)env:p(0,6)jobj:p(0,9)Divisor:p(0,461)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,246)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)baudrate:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)pid:(0,2)filename:(0,474)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)filename:(0,474)result:(0,2)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,465)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,465)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)fd:(0,2)ttyset:(0,517)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,533)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,533)=*(0,494)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,534):t(0,534)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,246)env:p(0,6)jobj:p(0,9)vtime:p(0,461)threshold:p(0,461)buffer:p(0,461)fd:(0,2)ttyset:(0,517)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,461)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,535)fd:(0,2):t(0,535)=ar(0,21);0;0;(0,494)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)bytes:(0,2)body:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)jterminator:p(0,477)bytes:(0,2)total:(0,2)body:(0,485)terminator:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,246)env:p(0,6)jobj:p(0,9)flowmode:p(0,461)ttyset:(0,517)fd:(0,2)unlock_monitor_thread:F(0,246)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,462)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,246)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,246)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,246)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,246)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,246)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,246)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,471)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)port_type:p(0,461)ttyset:(0,517)c:(0,22)fd:(0,2)name:(0,474)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,517)createSerialIterator:F(0,536)serialIterator:p(0,537)kernResult:(0,536)kern_return_t:t(0,536)=(0,2):t(0,537)=*(0,538)io_iterator_t:t(0,538)=(0,539)io_object_t:t(0,539)=(0,540)mach_port_t:t(0,540)=(0,541)__darwin_mach_port_t:t(0,541)=(0,542)__darwin_mach_port_name_t:t(0,542)=(0,543)__darwin_natural_t:t(0,543)=(0,4)masterPort:(0,540)mach_port_t:t(0,540)classesToMatch:(0,544):t(0,545)=*(0,546)CFMutableDictionaryRef:t(0,544)=(0,545):t(0,546)=xs__CFDictionary:_resultStr.13368getRegistryString:F(0,547)sObj:p(0,539)propName:p(0,547)resultStr:V(0,548)nameCFstring:(0,549):t(0,547)=*(0,22):t(0,548)=ar(0,21);0;255;(0,22):t(0,550)=*(0,551)CFTypeRef:t(0,549)=(0,550):t(0,551)=k(0,246)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,461)theSerialIterator:(0,538)io_iterator_t:t(0,538)theObject:(0,539)io_object_t:t(0,539)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,471)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,463)env:p(0,6)jobj:p(0,9)portType:p(0,461) :T(0,552)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552)result:(0,463)jboolean:t(0,463)message:(0,5)_mystat.13460Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)result:(0,463)mystat:V(0,553)stat:T(0,553)=s96st_dev:(0,554),0,32;st_ino:(0,556),32,32;st_mode:(0,558),64,16;st_nlink:(0,560),80,16;st_uid:(0,562),96,32;st_gid:(0,564),128,32;st_rdev:(0,554),160,32;st_atimespec:(0,566),192,64;st_mtimespec:(0,566),256,64;st_ctimespec:(0,566),320,64;st_size:(0,567),384,64;st_blocks:(0,569),448,64;st_blksize:(0,571),512,32;st_flags:(0,511),544,32;st_gen:(0,511),576,32;st_lspare:(0,20),608,32;st_qspare:(0,573),640,128;;timespec:T(0,566)=s8tv_sec:(0,574),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,555)=(0,20)dev_t:t(0,554)=(0,555)__darwin_ino_t:t(0,557)=(0,511)ino_t:t(0,556)=(0,557)__darwin_mode_t:t(0,559)=(0,561)mode_t:t(0,558)=(0,559)__uint16_t:t(0,561)=(0,496)nlink_t:t(0,560)=(0,561)__darwin_uid_t:t(0,563)=(0,511)uid_t:t(0,562)=(0,563)__darwin_gid_t:t(0,565)=(0,511)gid_t:t(0,564)=(0,565)__darwin_off_t:t(0,568)=(0,575)off_t:t(0,567)=(0,568)__darwin_blkcnt_t:t(0,570)=(0,575)blkcnt_t:t(0,569)=(0,570)__darwin_blksize_t:t(0,572)=(0,20)blksize_t:t(0,571)=(0,572):t(0,573)=ar(0,21);0;1;(0,575)time_t:t(0,574)=(0,17)__int64_t:t(0,575)=(0,498)teststring:(0,548)fd:(0,2)i:(0,2)name:(0,474)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,471)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,246)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,463)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,461)event:p(0,461)flag:p(0,463)index:(0,12)send_event:F(0,2)eis:p(0,12)type:p(0,461)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,576)env:p(0,6)jobj:p(0,9)id:p(0,547)type:p(0,547)result:(0,2)__darwin_size_t:t(0,577)=(0,519)size_t:t(0,576)=(0,577)jclazz:(0,8)jfd:(0,462)throw_java_exception:F(0,246)env:p(0,6)exc:p(0,547)foo:p(0,547)msg:p(0,547)buf:(0,578)clazz:(0,8):t(0,578)=ar(0,21);0;59;(0,22)report_warning:F(0,246)msg:p(0,547)report_verbose:F(0,246)msg:p(0,547)report_error:F(0,246)msg:p(0,547)report:F(0,246)msg:p(0,547)fhs_lock:F(0,2)filename:p(0,474)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,579)message:(0,5)file:(0,5)p:(0,547):t(0,579)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,474)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,579)message:(0,5)name:(0,5)fd:(0,2)buf:(0,553)check_lock_status:F(0,2)filename:p(0,474)buf:(0,553)fhs_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)file:(0,5)p:(0,547)i:(0,2)uucp_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)buf:(0,553)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,474)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,579)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,580)testLockFileDirName:(0,581)testLockFileName:(0,582)testLockAbsFileName:(0,547):t(0,580)=*(0,583):t(0,581)=ar(0,21);0;9;(0,22):t(0,582)=ar(0,21);0;9;(0,22)FILE:t(0,583)=(0,584)__sFILE:T(0,584)=s88_p:(0,533),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,497),96,16;_file:(0,497),112,16;_bf:(0,585),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,586),256,32;_read:(0,587),288,32;_seek:(0,588),320,32;_write:(0,589),352,32;_ub:(0,585),384,64;_extra:(0,590),448,32;_ur:(0,2),480,32;_ubuf:(0,591),512,24;_nbuf:(0,535),536,8;_lb:(0,585),544,64;_blksize:(0,2),608,32;_offset:(0,592),640,64;;__sbuf:T(0,585)=s8_base:(0,533),0,32;_size:(0,2),32,32;;:t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=*(0,597):t(0,591)=ar(0,21);0;2;(0,494)fpos_t:t(0,592)=(0,568):t(0,593)=f(0,2):t(0,594)=f(0,2):t(0,595)=f(0,592):t(0,596)=f(0,2):t(0,597)=xs__sFILEX:_C.128.13902_C.127.13901is_device_locked:F(0,2)port_filename:p(0,474)lockdirs:(0,598)lockprefixes:(0,599)p:(0,547):t(0,598)=ar(0,21);0;12;(0,474):t(0,599)=ar(0,21);0;3;(0,474)file:(0,5)pid_buffer:(0,600)message:(0,5)i:(0,2):t(0,600)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,553)buf2:(0,553)lockbuf:(0,553)system_does_not_lock:F(0,2)filename:p(0,474)pid:p(0,2)system_does_not_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)dump_termios:F(0,246)foo:p(0,547)ttyset:p(0,601):t(0,601)=*(0,517)get_java_environment:F(0,6)java_vm:p(0,602)was_attached:p(0,484)env:(0,603):t(0,602)=*(0,604):t(0,603)=*(0,30)JavaVM:t(0,604)=(0,605):t(0,605)=*(0,606):t(0,606)=k(0,607)JNIInvokeInterface_:T(0,607)=s48reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;cfm_vectors:(0,608),96,128;DestroyJavaVM:(0,609),224,32;AttachCurrentThread:(0,610),256,32;DetachCurrentThread:(0,609),288,32;GetEnv:(0,611),320,32;AttachCurrentThreadAsDaemon:(0,610),352,32;;:t(0,608)=ar(0,21);0;3;(0,30):t(0,609)=*(0,612):t(0,610)=*(0,613):t(0,611)=*(0,614):t(0,612)=f(0,461):t(0,613)=f(0,461):t(0,614)=f(0,461)err_get_env:(0,461)jint:t(0,461)JNI_OnLoad:F(0,461)java_vm:p(0,602)reserved:p(0,30)JNI_OnUnload:F(0,246)vm:p(0,602)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,602)preopened_port:G(0,514)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s1828reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;cfm_vectors:(0,11),128,7200;GetVersion:(0,12),7328,32;DefineClass:(0,13),7360,32;FindClass:(0,14),7392,32;FromReflectedMethod:(0,15),7424,32;FromReflectedField:(0,16),7456,32;ToReflectedMethod:(0,17),7488,32;GetSuperclass:(0,18),7520,32;IsAssignableFrom:(0,19),7552,32;ToReflectedField:(0,20),7584,32;Throw:(0,21),7616,32;ThrowNew:(0,22),7648,32;ExceptionOccurred:(0,23),7680,32;ExceptionDescribe:(0,24),7712,32;ExceptionClear:(0,24),7744,32;FatalError:(0,25),7776,32;PushLocalFrame:(0,26),7808,32;PopLocalFrame:(0,27),7840,32;NewGlobalRef:(0,27),7872,32;DeleteGlobalRef:(0,28),7904,32;DeleteLocalRef:(0,28),7936,32;IsSameObject:(0,29),7968,32;NewLocalRef:(0,27),8000,32;EnsureLocalCapacity:(0,26),8032,32;AllocObject:(0,30),8064,32;NewObject:(0,31),8096,32;NewObjectV:(0,32),8128,32;NewObjectA:(0,33),8160,32;GetObjectClass:(0,34),8192,32;IsInstanceOf:(0,35),8224,32;GetMethodID:(0,36),8256,32;CallObjectMethod:(0,37),8288,32;CallObjectMethodV:(0,38),8320,32;CallObjectMethodA:(0,39),8352,32;CallBooleanMethod:(0,40),8384,32;CallBooleanMethodV:(0,41),8416,32;CallBooleanMethodA:(0,42),8448,32;CallByteMethod:(0,43),8480,32;CallByteMethodV:(0,44),8512,32;CallByteMethodA:(0,45),8544,32;CallCharMethod:(0,46),8576,32;CallCharMethodV:(0,47),8608,32;CallCharMethodA:(0,48),8640,32;CallShortMethod:(0,49),8672,32;CallShortMethodV:(0,50),8704,32;CallShortMethodA:(0,51),8736,32;CallIntMethod:(0,52),8768,32;CallIntMethodV:(0,53),8800,32;CallIntMethodA:(0,54),8832,32;CallLongMethod:(0,55),8864,32;CallLongMethodV:(0,56),8896,32;CallLongMethodA:(0,57),8928,32;CallFloatMethod:(0,58),8960,32;CallFloatMethodV:(0,59),8992,32;CallFloatMethodA:(0,60),9024,32;CallDoubleMethod:(0,61),9056,32;CallDoubleMethodV:(0,62),9088,32;CallDoubleMethodA:(0,63),9120,32;CallVoidMethod:(0,64),9152,32;CallVoidMethodV:(0,65),9184,32;CallVoidMethodA:(0,66),9216,32;CallNonvirtualObjectMethod:(0,67),9248,32;CallNonvirtualObjectMethodV:(0,68),9280,32;CallNonvirtualObjectMethodA:(0,69),9312,32;CallNonvirtualBooleanMethod:(0,70),9344,32;CallNonvirtualBooleanMethodV:(0,71),9376,32;CallNonvirtualBooleanMethodA:(0,72),9408,32;CallNonvirtualByteMethod:(0,73),9440,32;CallNonvirtualByteMethodV:(0,74),9472,32;CallNonvirtualByteMethodA:(0,75),9504,32;CallNonvirtualCharMethod:(0,76),9536,32;CallNonvirtualCharMethodV:(0,77),9568,32;CallNonvirtualCharMethodA:(0,78),9600,32;CallNonvirtualShortMethod:(0,79),9632,32;CallNonvirtualShortMethodV:(0,80),9664,32;CallNonvirtualShortMethodA:(0,81),9696,32;CallNonvirtualIntMethod:(0,82),9728,32;CallNonvirtualIntMethodV:(0,83),9760,32;CallNonvirtualIntMethodA:(0,84),9792,32;CallNonvirtualLongMethod:(0,85),9824,32;CallNonvirtualLongMethodV:(0,86),9856,32;CallNonvirtualLongMethodA:(0,87),9888,32;CallNonvirtualFloatMethod:(0,88),9920,32;CallNonvirtualFloatMethodV:(0,89),9952,32;CallNonvirtualFloatMethodA:(0,90),9984,32;CallNonvirtualDoubleMethod:(0,91),10016,32;CallNonvirtualDoubleMethodV:(0,92),10048,32;CallNonvirtualDoubleMethodA:(0,93),10080,32;CallNonvirtualVoidMethod:(0,94),10112,32;CallNonvirtualVoidMethodV:(0,95),10144,32;CallNonvirtualVoidMethodA:(0,96),10176,32;GetFieldID:(0,97),10208,32;GetObjectField:(0,98),10240,32;GetBooleanField:(0,99),10272,32;GetByteField:(0,100),10304,32;GetCharField:(0,101),10336,32;GetShortField:(0,102),10368,32;GetIntField:(0,103),10400,32;GetLongField:(0,104),10432,32;GetFloatField:(0,105),10464,32;GetDoubleField:(0,106),10496,32;SetObjectField:(0,107),10528,32;SetBooleanField:(0,108),10560,32;SetByteField:(0,109),10592,32;SetCharField:(0,110),10624,32;SetShortField:(0,111),10656,32;SetIntField:(0,112),10688,32;SetLongField:(0,113),10720,32;SetFloatField:(0,114),10752,32;SetDoubleField:(0,115),10784,32;GetStaticMethodID:(0,36),10816,32;CallStaticObjectMethod:(0,31),10848,32;CallStaticObjectMethodV:(0,32),10880,32;CallStaticObjectMethodA:(0,33),10912,32;CallStaticBooleanMethod:(0,116),10944,32;CallStaticBooleanMethodV:(0,117),10976,32;CallStaticBooleanMethodA:(0,118),11008,32;CallStaticByteMethod:(0,119),11040,32;CallStaticByteMethodV:(0,120),11072,32;CallStaticByteMethodA:(0,121),11104,32;CallStaticCharMethod:(0,122),11136,32;CallStaticCharMethodV:(0,123),11168,32;CallStaticCharMethodA:(0,124),11200,32;CallStaticShortMethod:(0,125),11232,32;CallStaticShortMethodV:(0,126),11264,32;CallStaticShortMethodA:(0,127),11296,32;CallStaticIntMethod:(0,128),11328,32;CallStaticIntMethodV:(0,129),11360,32;CallStaticIntMethodA:(0,130),11392,32;CallStaticLongMethod:(0,131),11424,32;CallStaticLongMethodV:(0,132),11456,32;CallStaticLongMethodA:(0,133),11488,32;CallStaticFloatMethod:(0,134),11520,32;CallStaticFloatMethodV:(0,135),11552,32;CallStaticFloatMethodA:(0,136),11584,32;CallStaticDoubleMethod:(0,137),11616,32;CallStaticDoubleMethodV:(0,138),11648,32;CallStaticDoubleMethodA:(0,139),11680,32;CallStaticVoidMethod:(0,140),11712,32;CallStaticVoidMethodV:(0,141),11744,32;CallStaticVoidMethodA:(0,142),11776,32;GetStaticFieldID:(0,97),11808,32;GetStaticObjectField:(0,143),11840,32;GetStaticBooleanField:(0,144),11872,32;GetStaticByteField:(0,145),11904,32;GetStaticCharField:(0,146),11936,32;GetStaticShortField:(0,147),11968,32;GetStaticIntField:(0,148),12000,32;GetStaticLongField:(0,149),12032,32;GetStaticFloatField:(0,150),12064,32;GetStaticDoubleField:(0,151),12096,32;SetStaticObjectField:(0,152),12128,32;SetStaticBooleanField:(0,153),12160,32;SetStaticByteField:(0,154),12192,32;SetStaticCharField:(0,155),12224,32;SetStaticShortField:(0,156),12256,32;SetStaticIntField:(0,157),12288,32;SetStaticLongField:(0,158),12320,32;SetStaticFloatField:(0,159),12352,32;SetStaticDoubleField:(0,160),12384,32;NewString:(0,161),12416,32;GetStringLength:(0,162),12448,32;GetStringChars:(0,163),12480,32;ReleaseStringChars:(0,164),12512,32;NewStringUTF:(0,165),12544,32;GetStringUTFLength:(0,162),12576,32;GetStringUTFChars:(0,166),12608,32;ReleaseStringUTFChars:(0,167),12640,32;GetArrayLength:(0,168),12672,32;NewObjectArray:(0,169),12704,32;GetObjectArrayElement:(0,170),12736,32;SetObjectArrayElement:(0,171),12768,32;NewBooleanArray:(0,172),12800,32;NewByteArray:(0,173),12832,32;NewCharArray:(0,174),12864,32;NewShortArray:(0,175),12896,32;NewIntArray:(0,176),12928,32;NewLongArray:(0,177),12960,32;NewFloatArray:(0,178),12992,32;NewDoubleArray:(0,179),13024,32;GetBooleanArrayElements:(0,180),13056,32;GetByteArrayElements:(0,181),13088,32;GetCharArrayElements:(0,182),13120,32;GetShortArrayElements:(0,183),13152,32;GetIntArrayElements:(0,184),13184,32;GetLongArrayElements:(0,185),13216,32;GetFloatArrayElements:(0,186),13248,32;GetDoubleArrayElements:(0,187),13280,32;ReleaseBooleanArrayElements:(0,188),13312,32;ReleaseByteArrayElements:(0,189),13344,32;ReleaseCharArrayElements:(0,190),13376,32;ReleaseShortArrayElements:(0,191),13408,32;ReleaseIntArrayElements:(0,192),13440,32;ReleaseLongArrayElements:(0,193),13472,32;ReleaseFloatArrayElements:(0,194),13504,32;ReleaseDoubleArrayElements:(0,195),13536,32;GetBooleanArrayRegion:(0,196),13568,32;GetByteArrayRegion:(0,197),13600,32;GetCharArrayRegion:(0,198),13632,32;GetShortArrayRegion:(0,199),13664,32;GetIntArrayRegion:(0,200),13696,32;GetLongArrayRegion:(0,201),13728,32;GetFloatArrayRegion:(0,202),13760,32;GetDoubleArrayRegion:(0,203),13792,32;SetBooleanArrayRegion:(0,204),13824,32;SetByteArrayRegion:(0,205),13856,32;SetCharArrayRegion:(0,206),13888,32;SetShortArrayRegion:(0,207),13920,32;SetIntArrayRegion:(0,208),13952,32;SetLongArrayRegion:(0,209),13984,32;SetFloatArrayRegion:(0,210),14016,32;SetDoubleArrayRegion:(0,211),14048,32;RegisterNatives:(0,212),14080,32;UnregisterNatives:(0,213),14112,32;MonitorEnter:(0,214),14144,32;MonitorExit:(0,214),14176,32;GetJavaVM:(0,215),14208,32;GetStringRegion:(0,216),14240,32;GetStringUTFRegion:(0,217),14272,32;GetPrimitiveArrayCritical:(0,218),14304,32;ReleasePrimitiveArrayCritical:(0,219),14336,32;GetStringCritical:(0,163),14368,32;ReleaseStringCritical:(0,164),14400,32;NewWeakGlobalRef:(0,220),14432,32;DeleteWeakGlobalRef:(0,221),14464,32;ExceptionCheck:(0,222),14496,32;NewDirectByteBuffer:(0,223),14528,32;GetDirectBufferAddress:(0,224),14560,32;GetDirectBufferCapacity:(0,225),14592,32;;:t(0,10)=*(0,226):t(0,11)=ar(0,227);0;224;(0,10):t(0,12)=*(0,228):t(0,13)=*(0,229):t(0,14)=*(0,230):t(0,15)=*(0,231):t(0,16)=*(0,232):t(0,17)=*(0,233):t(0,18)=*(0,234):t(0,19)=*(0,235):t(0,20)=*(0,236):t(0,21)=*(0,237):t(0,22)=*(0,238):t(0,23)=*(0,239):t(0,24)=*(0,240):t(0,25)=*(0,241):t(0,26)=*(0,242):t(0,27)=*(0,243):t(0,28)=*(0,244):t(0,29)=*(0,245):t(0,30)=*(0,246):t(0,31)=*(0,247):t(0,32)=*(0,248):t(0,33)=*(0,249):t(0,34)=*(0,250):t(0,35)=*(0,251):t(0,36)=*(0,252):t(0,37)=*(0,253):t(0,38)=*(0,254):t(0,39)=*(0,255):t(0,40)=*(0,256):t(0,41)=*(0,257):t(0,42)=*(0,258):t(0,43)=*(0,259):t(0,44)=*(0,260):t(0,45)=*(0,261):t(0,46)=*(0,262):t(0,47)=*(0,263):t(0,48)=*(0,264):t(0,49)=*(0,265):t(0,50)=*(0,266):t(0,51)=*(0,267):t(0,52)=*(0,268):t(0,53)=*(0,269):t(0,54)=*(0,270):t(0,55)=*(0,271):t(0,56)=*(0,272):t(0,57)=*(0,273):t(0,58)=*(0,274):t(0,59)=*(0,275):t(0,60)=*(0,276):t(0,61)=*(0,277):t(0,62)=*(0,278):t(0,63)=*(0,279):t(0,64)=*(0,280):t(0,65)=*(0,281):t(0,66)=*(0,282):t(0,67)=*(0,283):t(0,68)=*(0,284):t(0,69)=*(0,285):t(0,70)=*(0,286):t(0,71)=*(0,287):t(0,72)=*(0,288):t(0,73)=*(0,289):t(0,74)=*(0,290):t(0,75)=*(0,291):t(0,76)=*(0,292):t(0,77)=*(0,293):t(0,78)=*(0,294):t(0,79)=*(0,295):t(0,80)=*(0,296):t(0,81)=*(0,297):t(0,82)=*(0,298):t(0,83)=*(0,299):t(0,84)=*(0,300):t(0,85)=*(0,301):t(0,86)=*(0,302):t(0,87)=*(0,303):t(0,88)=*(0,304):t(0,89)=*(0,305):t(0,90)=*(0,306):t(0,91)=*(0,307):t(0,92)=*(0,308):t(0,93)=*(0,309):t(0,94)=*(0,310):t(0,95)=*(0,311):t(0,96)=*(0,312):t(0,97)=*(0,313):t(0,98)=*(0,314):t(0,99)=*(0,315):t(0,100)=*(0,316):t(0,101)=*(0,317):t(0,102)=*(0,318):t(0,103)=*(0,319):t(0,104)=*(0,320):t(0,105)=*(0,321):t(0,106)=*(0,322):t(0,107)=*(0,323):t(0,108)=*(0,324):t(0,109)=*(0,325):t(0,110)=*(0,326):t(0,111)=*(0,327):t(0,112)=*(0,328):t(0,113)=*(0,329):t(0,114)=*(0,330):t(0,115)=*(0,331):t(0,116)=*(0,332):t(0,117)=*(0,333):t(0,118)=*(0,334):t(0,119)=*(0,335):t(0,120)=*(0,336):t(0,121)=*(0,337):t(0,122)=*(0,338):t(0,123)=*(0,339):t(0,124)=*(0,340):t(0,125)=*(0,341):t(0,126)=*(0,342):t(0,127)=*(0,343):t(0,128)=*(0,344):t(0,129)=*(0,345):t(0,130)=*(0,346):t(0,131)=*(0,347):t(0,132)=*(0,348):t(0,133)=*(0,349):t(0,134)=*(0,350):t(0,135)=*(0,351):t(0,136)=*(0,352):t(0,137)=*(0,353):t(0,138)=*(0,354):t(0,139)=*(0,355):t(0,140)=*(0,356):t(0,141)=*(0,357):t(0,142)=*(0,358):t(0,143)=*(0,359):t(0,144)=*(0,360):t(0,145)=*(0,361):t(0,146)=*(0,362):t(0,147)=*(0,363):t(0,148)=*(0,364):t(0,149)=*(0,365):t(0,150)=*(0,366):t(0,151)=*(0,367):t(0,152)=*(0,368):t(0,153)=*(0,369):t(0,154)=*(0,370):t(0,155)=*(0,371):t(0,156)=*(0,372):t(0,157)=*(0,373):t(0,158)=*(0,374):t(0,159)=*(0,375):t(0,160)=*(0,376):t(0,161)=*(0,377):t(0,162)=*(0,378):t(0,163)=*(0,379):t(0,164)=*(0,380):t(0,165)=*(0,381):t(0,166)=*(0,382):t(0,167)=*(0,383):t(0,168)=*(0,384):t(0,169)=*(0,385):t(0,170)=*(0,386):t(0,171)=*(0,387):t(0,172)=*(0,388):t(0,173)=*(0,389):t(0,174)=*(0,390):t(0,175)=*(0,391):t(0,176)=*(0,392):t(0,177)=*(0,393):t(0,178)=*(0,394):t(0,179)=*(0,395):t(0,180)=*(0,396):t(0,181)=*(0,397):t(0,182)=*(0,398):t(0,183)=*(0,399):t(0,184)=*(0,400):t(0,185)=*(0,401):t(0,186)=*(0,402):t(0,187)=*(0,403):t(0,188)=*(0,404):t(0,189)=*(0,405):t(0,190)=*(0,406):t(0,191)=*(0,407):t(0,192)=*(0,408):t(0,193)=*(0,409):t(0,194)=*(0,410):t(0,195)=*(0,411):t(0,196)=*(0,412):t(0,197)=*(0,413):t(0,198)=*(0,414):t(0,199)=*(0,415):t(0,200)=*(0,416):t(0,201)=*(0,417):t(0,202)=*(0,418):t(0,203)=*(0,419):t(0,204)=*(0,420):t(0,205)=*(0,421):t(0,206)=*(0,422):t(0,207)=*(0,423):t(0,208)=*(0,424):t(0,209)=*(0,425):t(0,210)=*(0,426):t(0,211)=*(0,427):t(0,212)=*(0,428):t(0,213)=*(0,429):t(0,214)=*(0,430):t(0,215)=*(0,431):t(0,216)=*(0,432):t(0,217)=*(0,433):t(0,218)=*(0,434):t(0,219)=*(0,435):t(0,220)=*(0,436):t(0,221)=*(0,437):t(0,222)=*(0,438):t(0,223)=*(0,439):t(0,224)=*(0,440):t(0,225)=*(0,441):t(0,226)=(0,226)long unsigned int:t(0,227)=r(0,227);0;037777777777;:t(0,228)=f(0,442):t(0,229)=f(0,443):t(0,230)=f(0,443):t(0,231)=f(0,444):t(0,232)=f(0,445):t(0,233)=f(0,2):t(0,234)=f(0,443):t(0,235)=f(0,446):t(0,236)=f(0,2):t(0,237)=f(0,442):t(0,238)=f(0,442):t(0,239)=f(0,447):t(0,240)=f(0,226):t(0,241)=f(0,226):t(0,242)=f(0,442):t(0,243)=f(0,2):t(0,244)=f(0,226):t(0,245)=f(0,446):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,2):t(0,249)=f(0,2):t(0,250)=f(0,443):t(0,251)=f(0,446):t(0,252)=f(0,444):t(0,253)=f(0,2):t(0,254)=f(0,2):t(0,255)=f(0,2):t(0,256)=f(0,446):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,448):t(0,260)=f(0,448):t(0,261)=f(0,448):t(0,262)=f(0,449):t(0,263)=f(0,449):t(0,264)=f(0,449):t(0,265)=f(0,450):t(0,266)=f(0,450):t(0,267)=f(0,450):t(0,268)=f(0,442):t(0,269)=f(0,442):t(0,270)=f(0,442):t(0,271)=f(0,451):t(0,272)=f(0,451):t(0,273)=f(0,451):t(0,274)=f(0,452):t(0,275)=f(0,452):t(0,276)=f(0,452):t(0,277)=f(0,453):t(0,278)=f(0,453):t(0,279)=f(0,453):t(0,280)=f(0,226):t(0,281)=f(0,226):t(0,282)=f(0,226):t(0,283)=f(0,2):t(0,284)=f(0,2):t(0,285)=f(0,2):t(0,286)=f(0,446):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,448):t(0,290)=f(0,448):t(0,291)=f(0,448):t(0,292)=f(0,449):t(0,293)=f(0,449):t(0,294)=f(0,449):t(0,295)=f(0,450):t(0,296)=f(0,450):t(0,297)=f(0,450):t(0,298)=f(0,442):t(0,299)=f(0,442):t(0,300)=f(0,442):t(0,301)=f(0,451):t(0,302)=f(0,451):t(0,303)=f(0,451):t(0,304)=f(0,452):t(0,305)=f(0,452):t(0,306)=f(0,452):t(0,307)=f(0,453):t(0,308)=f(0,453):t(0,309)=f(0,453):t(0,310)=f(0,226):t(0,311)=f(0,226):t(0,312)=f(0,226):t(0,313)=f(0,445):t(0,314)=f(0,2):t(0,315)=f(0,446):t(0,316)=f(0,448):t(0,317)=f(0,449):t(0,318)=f(0,450):t(0,319)=f(0,442):t(0,320)=f(0,451):t(0,321)=f(0,452):t(0,322)=f(0,453):t(0,323)=f(0,226):t(0,324)=f(0,226):t(0,325)=f(0,226):t(0,326)=f(0,226):t(0,327)=f(0,226):t(0,328)=f(0,226):t(0,329)=f(0,226):t(0,330)=f(0,226):t(0,331)=f(0,226):t(0,332)=f(0,446):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,448):t(0,336)=f(0,448):t(0,337)=f(0,448):t(0,338)=f(0,449):t(0,339)=f(0,449):t(0,340)=f(0,449):t(0,341)=f(0,450):t(0,342)=f(0,450):t(0,343)=f(0,450):t(0,344)=f(0,442):t(0,345)=f(0,442):t(0,346)=f(0,442):t(0,347)=f(0,451):t(0,348)=f(0,451):t(0,349)=f(0,451):t(0,350)=f(0,452):t(0,351)=f(0,452):t(0,352)=f(0,452):t(0,353)=f(0,453):t(0,354)=f(0,453):t(0,355)=f(0,453):t(0,356)=f(0,226):t(0,357)=f(0,226):t(0,358)=f(0,226):t(0,359)=f(0,2):t(0,360)=f(0,446):t(0,361)=f(0,448):t(0,362)=f(0,449):t(0,363)=f(0,450):t(0,364)=f(0,442):t(0,365)=f(0,451):t(0,366)=f(0,452):t(0,367)=f(0,453):t(0,368)=f(0,226):t(0,369)=f(0,226):t(0,370)=f(0,226):t(0,371)=f(0,226):t(0,372)=f(0,226):t(0,373)=f(0,226):t(0,374)=f(0,226):t(0,375)=f(0,226):t(0,376)=f(0,226):t(0,377)=f(0,1):t(0,378)=f(0,454):t(0,379)=f(0,455):t(0,380)=f(0,226):t(0,381)=f(0,1):t(0,382)=f(0,456):t(0,383)=f(0,226):t(0,384)=f(0,454):t(0,385)=f(0,457):t(0,386)=f(0,2):t(0,387)=f(0,226):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,472):t(0,403)=f(0,473):t(0,404)=f(0,226):t(0,405)=f(0,226):t(0,406)=f(0,226):t(0,407)=f(0,226):t(0,408)=f(0,226):t(0,409)=f(0,226):t(0,410)=f(0,226):t(0,411)=f(0,226):t(0,412)=f(0,226):t(0,413)=f(0,226):t(0,414)=f(0,226):t(0,415)=f(0,226):t(0,416)=f(0,226):t(0,417)=f(0,226):t(0,418)=f(0,226):t(0,419)=f(0,226):t(0,420)=f(0,226):t(0,421)=f(0,226):t(0,422)=f(0,226):t(0,423)=f(0,226):t(0,424)=f(0,226):t(0,425)=f(0,226):t(0,426)=f(0,226):t(0,427)=f(0,226):t(0,428)=f(0,442):t(0,429)=f(0,442):t(0,430)=f(0,442):t(0,431)=f(0,442):t(0,432)=f(0,226):t(0,433)=f(0,226):t(0,434)=f(0,10):t(0,435)=f(0,226):t(0,436)=f(0,474):t(0,437)=f(0,226):t(0,438)=f(0,446):t(0,439)=f(0,2):t(0,440)=f(0,10):t(0,441)=f(0,451)jint:t(0,442)=(0,475)jclass:t(0,443)=(0,2)jmethodID:t(0,444)=(0,476)jfieldID:t(0,445)=(0,477)jboolean:t(0,446)=(0,478)jthrowable:t(0,447)=(0,2)jbyte:t(0,448)=(0,479)jchar:t(0,449)=(0,480)jshort:t(0,450)=(0,481)jlong:t(0,451)=(0,482)jfloat:t(0,452)=(0,483)jdouble:t(0,453)=(0,484)jsize:t(0,454)=(0,442):t(0,455)=*(0,485):t(0,456)=*(0,486)jobjectArray:t(0,457)=(0,487)jbooleanArray:t(0,458)=(0,487)jbyteArray:t(0,459)=(0,487)jcharArray:t(0,460)=(0,487)jshortArray:t(0,461)=(0,487)jintArray:t(0,462)=(0,487)jlongArray:t(0,463)=(0,487)jfloatArray:t(0,464)=(0,487)jdoubleArray:t(0,465)=(0,487):t(0,466)=*(0,446):t(0,467)=*(0,448):t(0,468)=*(0,449):t(0,469)=*(0,450):t(0,470)=*(0,442):t(0,471)=*(0,451):t(0,472)=*(0,452):t(0,473)=*(0,453)jweak:t(0,474)=(0,2)long int:t(0,475)=r(0,475);-2147483648;2147483647;:t(0,476)=*(0,488):t(0,477)=*(0,489)unsigned char:t(0,478)=@s8;r(0,478);0;255;signed char:t(0,479)=@s8;r(0,479);-128;127;short unsigned int:t(0,480)=@s16;r(0,480);0;65535;short int:t(0,481)=@s16;r(0,481);-32768;32767;long long int:t(0,482)=@s64;r(0,482);01000000000000000000000;0777777777777777777777;float:t(0,483)=r(0,490);4;0;double:t(0,484)=r(0,490);8;0;:t(0,485)=k(0,449):t(0,486)=k(0,491)jarray:t(0,487)=(0,2):t(0,488)=xs_jmethodID::t(0,489)=xs_jfieldID:char:t(0,491)=r(0,491);0;127;ホ H__TEXT__text__TEXTエ ヨmエ __picsymbol_stub__TEXT学学__cstring__TEXT詣p詣__textcoal_nt__TEXT __DATA__data__DATA__dyld__DATA__cfstring__DATA __bss__DATA@`__common__DATA@タ__IMPORT__jump_table__IMPORT"__pointers__IMPORT"。$"。:8__LINKEDITーーー ォ </4C/usr/local/lib/librxtxSerial.jnilib h"ヒケCp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation T"ヒケC/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit X"ヒケC/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 45FC/usr/lib/libgcc_s.1.dylib 4"ヒケCX/usr/lib/libSystem.B.dylibーw, P22zャ=qz舩uキpCoーo=XーG朽W琲X朽G熕瑞瑞振牙VS`丘畿麹ャ可クL吋$欝$ $鞅畿 怨H畿 輝|畿吋$畿 $メ怨P畿怨L畿鴻m吋$ 鴻、m吋$欝$畿 $雍Y怨ャ畿 笈虚P鴻ィm吋$ 鴻ーm吋$欝$畿 $ム怨T回黒ャクL吋$欝$ $$解ト`[^]ツ瑞瑞瑞U牙8孔吋$ヌD$ヌ$畿タu6ヌEワヌEヌE畿ワ右萇D$孔煢D$ヌ$靹ノテ瑞瑞瑞U牙S4雍鴻齦右マu ヌE鰛偽畿吋$$錵タ。畿機(右畿機0タt;畿機,タt1畿輝0畿機,隠,畿輝,畿機0隠0畿$鐶畿右蓁r畿機0タt畿機0ヌ@,ヤ畿機,タt畿機,ヌ@0サ畿$鴻齦ヌ畿右蓁畿機,タt畿機,右-ヌE畿艫ト4[]テ瑞瑞瑞U牙Xマ位孔フ吋$畿$雎タ芦ヌEフヌEリヌEミヌEヤニEニEヌD$%孔フ$閨タxuヌD$%孔フ$鎹タx^孔フ吋$ヌD$畿$)タx@靆吋$ヌD$畿$錵ヌD$@ヌD$畿$*ヌEトヌEト畿トノテ瑞瑞瑞U牙畿右±ハ±匠±д±<マ2=マ2マ!ヌE鱠マK#マn%゙±,Г±,±±ネャ±X±ー吹}K=±KG±タ ±タ±` 餝±%±@83±±±pモ±マ±ツマ±ヒ鱇ヌE鯏ヌE2鮃ヌEK鬮ヌEn髻ヌE體ヌE驥ヌEネ~ヌE,uヌEXlヌEーcヌEZヌE` QヌEタHヌE%?ヌE@86ヌEK-ヌEp$ヌEヌEヌEツ ヌE畿ノテ瑞瑞瑞U牙VSp鐫ヌEヤヌEリヌEワ畿輝|畿 吋$畿$メ右芫E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右闍E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻"h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻.h吋$畿芍D$畿$メ右畿輝\畿芍D$畿$メ孔ィ吋$畿$鑪タy*鴻6h$霓U畿輝\畿芍D$畿$メ驗畿ー可≫蔚怐}t.±wマt6±t±t"ヌEヤヌEヤヌEヤヌEヤ畿ー可≫0蔚±t±0tマtヌEリヌEリヌEリ畿ー可≫蔚、マ、t ±、t ヌEワヌEワ孔ィ$雜右煖E恐エ畿煢$鐐吋$ 畿濶D$畿 吋$畿$ヨ畿巨エ畿ヤ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿ワ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿リ吋$ 畿吋$畿 吋$畿$メζp[^]テ瑞瑞瑞U牙S閂}ヌE畿輝|畿 吋$畿$メ右畿巨x鴻e吋$ 鴻pe吋$畿吋$畿$メ右マuC畿輝@畿$メ畿輝D畿$メ畿輝\畿吋$畿$メヌE阨右闍E巨エ畿濶D$ 畿吋$畿 吋$畿$メ畿輝\畿吋$畿$メ畿巨、ヌD$畿吋$畿$メ右畿濶D$畿$隘Tタф畿吋$鴻xe吋$孔秤$孔秤$雹R畿巨ィ畿吋$畿吋$畿$メ$韵吋$ 鴻リe吋$鴻瀑吋$畿$右ヌE鴻啗$A畿濶$鐓{右孔マt隴{uマ~ニ畿吋$鴻コW吋$孔$鍠{孔$隴@マt2鈩{$錢{吋$ 鴻レW吋$鴻JW吋$畿$闔?スDtヌ蕈鬯マt'畿朽Dタt畿ヌD畿ヌHマto畿機 タte黒顰畿吋$ 孔 吋$畿吋$$闡麹L黒顰クL吋$欝$ $閘zヌD$ヌD$劫L$鑿<ヌ蕈球蕈犠ノテ瑞瑞瑞U牙S4鎭i鴻゙P吋$ 鴻祓吋$畿 吋$畿$鍠=右貴ヌE萼Mb畿蔔鮹科チ禾)チ科吋$畿$陜yζ4[]テ瑞瑞瑞U牙ST鞦h鴻qP吋$ 鴻uP吋$畿 吋$畿$鞆<右孔ネ吋$畿$靉xタxカEカミ禍チミミチ右ト9關y$鐵y吋$ 鴻拔吋$鴻U吋$畿$隹=ヌEト畿トζT[]テ瑞瑞瑞U牙ST/h鴻ソO吋$ 鴻テO吋$畿 吋$畿$)<右孔ネ吋$畿$xタxカE驗タ並カタ右ト9韲x$霑x吋$ 鴻T吋$鴻OT吋$畿$ =ヌEト畿トζT[]テ瑞瑞瑞U牙S闊gヌE鴻O吋$ 鴻O吋$畿 吋$畿$閔;右孔吋$ヌD$jt@畿$錻x畿%吋$鴻pT吋$孔$頤w孔$陋=畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S靫fヌE鴻dN吋$ 鴻hN吋$畿 吋$畿$霽:右孔吋$ヌD$jt@畿$闥w畿漾吋$鴻リS吋$孔$錢w畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S-fヌE鴻スM吋$ 鴻チM吋$畿 吋$畿$ :右孔吋$ヌD$jt@畿$齏v畿 吋$鴻MS吋$孔$陏v孔$錚<畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S閔eヌE鴻 M吋$ 鴻M吋$畿 吋$畿$鈩9右孔吋$ヌD$jt@畿$9v畿%吋$鴻キR吋$孔$韆u孔$闔;畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霽dヌE鴻WL吋$ 鴻[L吋$畿 吋$畿$霄8右孔吋$ヌD$jt@畿$閻u畿吋$鴻R吋$孔$4u孔$鞋:畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙Sd畿E班E鴻・K吋$ 鴻ゥK吋$畿 吋$畿$8右孔吋$ヌD$jt@畿$靉t}u 畿κ右 畿瓔右孔吋$ヌD$mt畿$陌tカE秤D$鴻渦吋$孔$鍮t孔$頸9ト[]テ瑞瑞瑞U牙S鍖c畿E班E鴻ロJ吋$ 鴻゚J吋$畿 吋$畿$87右孔吋$ヌD$jt@畿$tカE秤D$鴻マP吋$孔$雍s}u 畿フ右 畿右孔吋$ヌD$mt畿$雋sカE秤D$鴻マP吋$孔$鐵s孔$ 9ト[]テ瑞瑞瑞U牙S鐡bヌE鴻I吋$ 鴻I吋$畿 吋$畿$鏝6右孔吋$ヌD$jt@畿$"s畿吋$鴻O吋$孔$靦r孔$閇8畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S雉a畿E班E鴻CI吋$ 鴻GI吋$畿 吋$畿$陟5右孔吋$ヌD$jt@畿$鑢r}u 畿κ右 畿右孔吋$ヌD$mt畿$7rカE秤D$鴻_O吋$孔$韋q孔$關7ト[]テ瑞瑞瑞U牙S$韲`鴻"r右ヌ$4q右偽畿吋$$陞q偽畿 隠(マu#畿ヌ@,畿ヌ@0鴻"r偽T偽畿吋$$畿機,タt 畿機,右ユ畿ヌ@,偽畿隠0偽畿隠,鴻"r偽ζ$[]テ瑞瑞瑞U牙S `-q$q吋$ 鴻ワM吋$鴻M吋$畿$鎬5クζ[]テ瑞瑞瑞U牙S靦_鞐p$雎p吋$ 鴻ナM吋$鴻。M吋$畿$4クζ[]テ瑞瑞瑞U牙S閧_闖p$鐫p吋$ 鴻凱吋$鴻RM吋$畿$隸4クζ[]テ瑞瑞瑞U牙S3_錙p$p吋$ 鴻OM吋$鴻M吋$畿$鐐4クζ[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右鑵o右畿吋$畿$鞴6タ畿$霰ル右マu;ヌD$畿$鏥o右マy 鑚otリ畿$陜レタヲマ孔濶D$ヌD$jt@畿$+o}u 畿閠フ右齏 畿閠右闕E濶D$ヌD$mt畿$顆n畿吋$畿$:畿吋$畿$靉畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右韶m右畿吋$畿$鐫5タ畿$錣リ右マu;ヌD$畿$靨m右マy 頌mtリ畿$ルタヲマ孔濶D$ヌD$jt@畿$隧m}u 畿閭ネ右齏 畿閭瓔右闕E濶D$ヌD$mt畿$鑾m畿吋$畿$閼8畿吋$畿$鍖畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S4鞨[ヌE畿巨、ヌD$畿吋$畿$メ右畿吋$畿$=右鏝l右畿吋$畿$靈3タミ畿$隰ヨ右閭}u;ヌD$畿$;l右閭}y 鏤ltリ畿濶$閼ラタマyX畿巨ィ畿吋$畿吋$畿$メl$韈k吋$ 鴻J吋$鴻ーI吋$畿$40颯マuO畿巨ィ畿吋$畿吋$畿$メ鴻0J吋$ 鴻ワC吋$鴻ーI吋$畿$鞜/鴆畿 吋$畿吋$畿吋$ 畿吋$畿濶D$畿$4タtU畿巨ィ畿吋$畿吋$畿$メ5k$k吋$ 鴻J吋$鴻ーI吋$畿$鏘/h畿吋$畿$ 6畿濶D$畿$靨畿巨ィ畿吋$畿吋$畿$メ!畿巨ィ畿吋$畿吋$畿$メζ4[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右j右畿吋$畿$鑼1タ畿$鏘ヤ右マu;ヌD$畿$鞴i右マy jtリ畿$-ユタヲマ孔濶D$ヌD$jt@畿$霆i}u 畿閭ネ右齏 畿閭右闕E濶D$ヌD$mt畿$閾i畿吋$畿$阮4畿吋$畿$鐓畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S韵WヌE畿巨、ヌD$畿吋$畿$メ右畿$頸メ右マu ヌEa孔吋$ヌD$jt@畿$阡h畿吋$鴻sF吋$孔怏$錣h孔怏$齏-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$WヌE畿巨、ヌD$畿吋$畿$メ右畿$'メ右マu ヌEc孔吋$ヌD$jt@畿$靄g畿%吋$鴻フE吋$孔怏$钁g孔怏$-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S鏝VヌE畿巨、ヌD$畿吋$畿$メ右畿$鏤ム右マu ヌE`孔吋$ヌD$jt@畿$顰f畿吋$鴻#E吋$孔怏$隲f孔怏$鏨,畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S闕UヌE畿巨、ヌD$畿吋$畿$メ右畿$關ミ右マu ヌEa孔吋$ヌD$jt@畿$2f畿漾吋$鴻}D吋$孔怏$鞦e孔怏$濶+畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霙TヌE畿巨、ヌD$畿吋$畿$メ右畿$霰マ右マu ヌEa孔吋$ヌD$jt@畿$鑒e畿 吋$鴻メC吋$孔怏$e孔怏$霎*畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S顆SヌE畿巨、ヌD$畿吋$畿$メ右畿$顫ホ右マu ヌEc孔吋$ヌD$jt@畿$陷d畿%吋$鴻+C吋$孔怏$鍼d孔怏$頌)畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙VS`,S畿巨、ヌD$畿吋$畿$メ右畿$6ホ右畿巨ィ畿吋$畿吋$畿$メマu ヌEエn孔タ吋$畿$鞐bタy鴻B$.)ヌEエA孔タ$c家孔タ$#c9ニt ヌEエ孔タ$鞳b右畿$陂マ右エ畿エζ`[^]テ瑞瑞瑞U牙Sd?R畿巨、ヌD$畿吋$畿$メ右畿$鍼ヘ右畿巨ィ畿吋$畿吋$畿$メマu ヌEー髞孔ト吋$畿$韶aタy鴻マA$>(ヌEーg畿フ可≫蔚エ±エt5±エwマエtヌEー8±エt±エt翩EーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd*Q畿巨、ヌD$畿吋$畿$メ右畿$4フ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーw孔ト吋$畿$鞋`タy鴻@$,'ヌEーJ畿フ可≫0蔚エ±エt!±エ0t!マエt ヌEーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd5P畿巨、ヌD$畿吋$畿$メ右畿$?ヒ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーe孔ト吋$畿$韈_タy鴻9@$7&ヌEー8畿フ可≫蔚エマエt±エtヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙ヌEヌE畿セタノテ瑞瑞瑞U牙ST0O鴻タ6吋$ 鴻ト6吋$畿 吋$畿$*#右孔ネ吋$畿$_タx カEリセタ右ト鴻p?$鐐%ヌEト畿トζT[]テ瑞瑞瑞U牙S$襍N畿E霈_$闖_吋$ 鴻?吋$鴻<吋$畿$鞋#クζ$[]テ瑞瑞瑞U牙ST鐐N畿Eト鴻5吋$ 鴻5吋$畿 吋$畿$鏥"右孔ネ吋$畿$錻^タx.カEトEリ孔ネ吋$ヌD$畿$ ^タx ヌEタG顫^$靉^吋$ 鴻リ>吋$鴻:吋$畿$#鴻>$6$ヌEタ畿タζT[]テ瑞瑞瑞U牙S4闍MヌD$孔$鏨^鴻;>$隹#偽禍チミミミチ*ネ貴ヌE萼Mb畿蔔鮹科チ禾)チ科*タXチ,タζ4[]テ瑞瑞瑞U牙VSMヌEリヌEヌEヌE畿 鴻8吋$ 鴻8吋$欝$畿$鞐 右畿機右畿ヌ@畿右ヤマW頽右蓚Jマx,鞳右煖U芫E)ミ;E|偽畿隠畿リ怨@飄劫H可ク吋$ヌD$$閧\畿チ家渠H貴クモ ミ延オHマ粟偽芫E煢チ)ム果畿)ミ右ワ貴ワヌ4モMb球4鮹科チ禾)チ科右ネ貴ワヌ4モMb球4鮹科チ茄)ニ卸D球DチDミミチ果)ツ鴛D球DチDミミチ右フ孔ネ右齏ヌE偽δ畿濶D$ヌD$ ヌD$劫H吋$$閧[右ミマミu&鴻ツ=$閾!偽畿隠ヌ@鰆マミ児偽ヤ畿リE欝$吋$畿$鏤[右ミマミyP霪[t/雕[#t#鴻=$!偽畿隠ヌ@j偽畿隠ヌ@Uマミt偽ミ孔リ偽ミ孔ヤ) ヌ$<[畿リ;E}マ楪孔メ偽畿隠貴リ燕@球@ト[^]テ瑞瑞瑞U牙Sd頏I鴻1吋$ 鴻1吋$畿 吋$畿$韭右マy ヌEマu ヌE畿右孔ト吋$畿$雕YタxBニE貴ヌEエQ畿エ鮹科チ禾)チ科E蜊Eト吋$ヌD$畿$鐫Yタy2鏐Z$+Z吋$ 鴻:吋$鴻6吋$畿$閂ζd[]テ瑞瑞瑞U牙SDI偽 鴻0吋$ 鴻0吋$欝$畿$顯右偽 鴻0吋$ 鴻!:吋$欝$畿$靨右畿吋$ヌD$孔吋$ 畿吋$孔 吋$畿$鑄右マy;閼Y$鏝Y吋$ 鴻):吋$鴻!5吋$畿$隍ヌEマt カEカタ右蓁ヌE畿芍E煖E焜トD[]テ瑞瑞瑞U牙SDH偽 鴻/吋$ 鴻/吋$欝$畿$顰右偽 鴻/吋$ 鴻"9吋$欝$畿$勒右マyC鴻69$%鴻^9吋$ 鴻n9吋$鴻z9吋$畿$靨ヌE鰮畿巨ヌD$畿吋$畿$メ右畿E可畿吋$畿吋$欝$ 畿吋$孔 吋$畿$顆右闍E巨ヌD$ 畿吋$畿吋$畿$メマyI鴻ヲ9$鏐鞋W$隸W吋$ 鴻n9吋$鴻"4吋$畿$顰ヌE畿濶E芫E艫トD[]テ瑞瑞瑞U牙S4鑚F鴻.吋$ 鴻.吋$畿 吋$畿$鑪右ヌD$畿$5Wタt ヌEヌE畿艫ト4[]テ瑞瑞瑞U牙STFヌE偽 鴻-吋$ 鴻-吋$欝$畿$顯右偽 鴻-吋$ 鴻(7吋$欝$畿$靨右マyC鴻<7$$鴻d7吋$ 鴻t7吋$鴻7吋$畿$靦ヌEヤ駟畿巨ヌD$畿吋$畿$メ右闍E巨ヌD$畿吋$畿$メ右畿可U闍E芻可畿吋$ヌD$欝$ 畿吋$孔 吋$畿$霾右煖U熏EマyL鴻ャ7$鍮靜U$陦U吋$ 鴻t7吋$鴻(2吋$畿$韶ヌEヤ驢マ~?畿βカ畿E閭カ8ツu&畿カ畿E閭カ8ツu鴻フ7$靄マ~ 畿;E畿巨ヌD$ 畿濶D$畿吋$畿$メ畿煢Eヤ畿ヤζT[]テ瑞瑞瑞U牙S4鞣C鴻r+吋$ 鴻v+吋$畿 吋$畿$鞋右孔吋$ヌD$f@畿$隗Tタx畿t畿右蓁F鴻コ5$闃T$鐓T吋$ 鴻5吋$鴻0吋$畿$隱畿右芫E艫ト4[]テ瑞瑞瑞U牙SD*C鴻コ*吋$ 鴻セ*吋$畿 吋$畿$$右孔ネ吋$畿$Sタ畿タt 畿ミ 右ミ 畿ミ%右ミ畿ネ蔔右ネ畿チタt 畿ネフ右ネ 畿ネ蕘右ネ畿チタt 畿ネフ右ネ 畿ネ右ネ孔ネ吋$ヌD$畿$鑚Rタt)鴻>5吋$ 鴻&+吋$鴻0吋$畿$闥ζD[]テ瑞瑞瑞U牙VS B畿朽右畿朽右畿恐x畿輝|畿吋$畿$メ可鴻N4吋$ 鴻R4吋$欝$畿$ヨ右畿巨、ヌD$ 畿吋$畿吋$畿$メζ [^]テ瑞瑞瑞U牙S鑿AマtN畿朽Hu@畿機 タt6鴻テ3$闡ヌD$ヌD$畿$2畿ヌHクζ[]テ瑞瑞瑞U牙SA鴻3$閨クζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S靆@畿孔吋$ヌD$f@$雜Q右畿機4偽吋$ 欝$鴻3吋$孔$鐚Q畿吋$鴻メ3吋$孔$?Q孔$隍畿タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$)@ヌEマы畿機8右鴻]3$鍜畿孔吋$ヌD$jt@$竟Pタt!鴻3$鐔鴻ュ3$鎭5畿可 畿機< 禾)チ科右マt マt畿吋$ヌD$畿$閧畿可≫畿機<%禾)チ科右マt.マt(鴻ル3$靤畿吋$ヌD$畿$/畿可≫畿機<%禾)チ科右マt マt畿吋$ヌD$畿$韭畿可磧畿機<漾禾)チ科右マt マt畿吋$ヌD$畿$隱マt 偽畿臼<鴻4$靦ζ$[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙クノテ瑞瑞瑞U牙S鏗>畿$霎タ・マt畿朽タt 畿$4畿$鞆マtv畿$&タtg畿機タu(鴻N2$/ヌ$ N靹Nヌ$ N靆N5鴻~2$鍮ヌD$ヌD$畿$險ヌ$ N闢Nζ[]テ瑞瑞瑞U牙VS0閨=畿朽右畿朽右鴻サN右畿機0┛マuJ鴻サN偽鴻サNヌー鴻サNヌエヌET畿朽ー右畿朽ータu迢U畿奄ー偽畿奄エ畿ヌーキ偽闍EヌD孔閭マ ~諡EヌH畿ヌD畿ヌ畿ヌ@鴻%吋$ 鴻%吋$畿吋$畿$鑚可畿畿$'可畿艶畿$雋可畿艶偽δ<畿欝$ヌD$jt@$Mタy鴻ン1$钁畿笈畿巨、鴻%吋$ 鴻!%吋$欝$畿$ム可畿艶ィ畿朽ィタс畿ク可ク吋$ヌD$$霪K畿チ家可畿渠精畿加クモ ツ畿鉛ーク畿ヌ8畿ヌ<畿ヌ@0ヌE 鴻2$鐐畿$ヌE畿艫ト0[^]テ瑞瑞瑞U牙S鞐:畿朽、タt)畿朽稀\畿巨、畿朽欝$$ム畿朽ータt?畿朽エタt2畿巨エ畿朽ー奄ー畿巨ー畿朽エ奄エe畿朽ータt(畿朽ーヌエ畿巨ー鴻L0畿朽エタt畿朽エヌー鴻Lヌζ[]テ瑞瑞瑞U牙St鞋9畿輝|畿 吋$畿$メ怨P畿怨H孔 怨Lヌワ劫ャ$タ劫ャ$鐐ノタミ劫ャ$<畿タt/鴻ィ.$鞆劫ャ$靹ネ劫ャ$錻驫球ャ恒劫ャ8吋$ヌD$ ヌD$劫ャク吋$$鐇I怨球タy韵Ik球タx劫ャ$鏃劫ャ$顱トt[]テ瑞瑞瑞U牙S闌8畿巨鴻t-吋$畿$メζ[]テ瑞瑞瑞U牙S鏥8畿巨、ヌD$畿吋$畿$メ右霽EヌE鞁H右畿吋$畿濶$鎬タt-畿巨ィ畿濶D$畿吋$畿$メヌE飃ヌD$畿濶$險H右艫}y 霽Htリマy鴻H-$鞨 ヌE鮖マッ孔ク吋$畿芍$陌Gタy ヌE骰ヌD$畿芍$陞G右マy鴻`-$霖 ヌE餮庚攻ク毅陰毅陰毅 陰 毅陰毅陰毅陰毅陰毅 陰 毅$陰$毅(陰(ヌD$ヌD$畿芍$Gタy鴻-$錚 ヌE鰄孔ク$隲FニEルカEルEリ孔ク吋$ヌD$畿芍$關Fタy1鴻ィ-$頡 ヌE孔吋$ヌD$畿芍$鐓FsヌD$孔キ吋$畿芍$霾Fタy!7G#t鴻ネ-$陌 ヌE孔吋$ヌD$畿芍$F畿吋$ヌD$畿芍$$F畿吋$畿濶$韲畿巨ィ畿濶D$畿吋$畿$メ畿芍$鐃F畿カタ右щEпト[]テ瑞瑞瑞U牙S4鑵5孔吋$ヌ$陲E右マt 畿吋$鴻*$鐐F畿右蓚鴻+$鞐E右マu鴻,+$0F畿右蓁\鴻5酷5吋$欝$畿$頷E偽畿吋$畿吋$$鎹E右マt畿吋$鴻x+$靨E畿右芫E艫ト4[]テ瑞瑞瑞U牙VS 闖4鴻ユEニ鴻ケE0鴻ケEヌD$畿 吋$$鑵EヌD$ 液$吋$畿$隕D右マt2偽ヌD$ ヌD$鴻ユE吋$$D畿$鑁D鴻ユEζ [^]テ瑞瑞瑞U牙VSP鞦3ヌE孔煢$鎬タt鴻*$鞐D鬥畿輝鴻5*吋$畿$メ右マu鴻Q*$ 畿濶Eヤ駱畿巨ト鴻*吋$ 鴻ュ*吋$畿吋$畿$メ右マ鴻ケ*$鏥D畿恐鴻*吋$畿芍$鑞吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿恐鴻*吋$畿芍$韭吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿煢$齏B右艫}畿濶Eヤ畿ヤζP[^]テ瑞瑞瑞U牙S竟1ニEマw#貴ク可モ竕U萩E買<タuW畿買タu)畿吋$鴻)吋$孔ァ$閊B孔ァ$"$ヌD$畿 吋$畿$濶タ~ニEカEト[]テ瑞瑞瑞U牙S4鏖1畿巨、ヌD$畿吋$畿$メ右ヌE鬣畿吋$畿吋$ 鴻ユ(吋$鴻ン(吋$劫$霹A鴻ィ吋$劫$鑁A鴻ィキ@キタ%= u6ヌD$劫$闃A右マ~畿$鏐AニEニEニE孔マ?参畿吋$ 鴻ユ(吋$鴻(吋$劫$A鴻ィ吋$劫$霎@鴻ィキ@キタ%= u.ヌD$劫$鞣@右マ~畿$隹@ニE畿巨ィ畿吋$畿吋$畿$メカEト4[]テ瑞瑞瑞U牙S隘/畿巨鴻)'吋$畿$メζ[]テ瑞瑞瑞U牙S鑵/鴻 '$齏ζ[]テ瑞瑞瑞U牙S鍮/鴻'$霰クζ[]テ瑞瑞瑞U牙S/鴻 '$陏ζ[]テ瑞瑞瑞U牙S顋.鴻 '$鑼クζ[]テ瑞瑞瑞U牙S$靜.鴻@右鴻^吋$ 鴻b吋$畿 吋$畿$霆右ヌEy鴻@右マu"鴻 '$顆マtR6畿朽ー右畿;Et 畿朽ータuン畿;EuヒヌEツ鴻'$隲ヌ$?マu°Eヌ鴻'$閙ζ$[]テ瑞瑞瑞U牙(畿朽右畿輝D畿$メ畿笈畿巨ャ畿朽欝$吋$畿$ムカタ右畿カタノテ瑞瑞瑞U牙S4閂-畿E芻Υ>右マu鴻%$隘K畿朽ー右畿;Et 畿朽ータuン畿;Et鴻%$鑄貴カU芫E欝ζ4[]テ瑞瑞瑞U牙WVSL韭,マt"畿朽右艫}t畿朽~( ヌEヤ鰺鴻%$1ヌEヤ魍鴻%$靫畿朽、タu ヌEヤ驫鴻ツ%$隴畿芫輝D畿芍$メ鴻ヨ%$闖畿芫矯マ淆カネ畿恐ィ畿朽鵜$畿 吋$ 液$欝$畿芍$ラカタ右熏%$7畿煢Eヤ畿ヤζL[^_]テ瑞瑞瑞U牙WVS<靂+ヌEワ畿輝|畿 吋$畿$メ右煖E巨x畿吋$ 畿吋$畿煢D$畿$メ右艫}uB畿輝@畿$メ畿輝D畿$メ畿輝\畿煢D$畿$メ畿ワ右ヤ骭畿巨畿芍D$畿 吋$畿$メ右ワ畿輝\畿煢D$畿$メ鴻`偽右ミ蔚フヌEネ丘ミ急フ貴ネヲクt カFカO)ネタuマワu鴻$$畿ワ右ヤ畿ヤζ<[^_]テ瑞瑞瑞U牙ST闖*畿輝畿 吋$畿$メ右マu"畿輝@畿$メ畿輝D畿$メX畿吋$ 畿吋$鴻マ#吋$孔ク$;畿輝8孔ク吋$畿吋$畿$メ畿輝\畿吋$畿$メζT[]テ瑞瑞瑞U牙S鞏)鴻 ;項ー偽欝$$2:ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S陏)鴻ネ:項ー偽欝$$韵9ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙WS鏨)畿ケ怨0ク郷0ョ科ミ右畿E右孔(畿カnativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i writeBytejava/io/IOExceptionwriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) nativeSetBaudBaseUnsupportedCommOperationExceptionnativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXInvalid lengthreadArrayjava/lang/ArrayIndexOutOfBoundsExceptionRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedZMonitorThreadLockcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialStreamIOSerialBSDClientTypeIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier (Ljava/lang/String;ILgnu/io/CommDriver;)VaddPortNamegetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. /dev/%s%s%i%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s/var/lock%s/LCK..%sfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXX/etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucpLCK..lk..LK.%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown Application$テ熄熄ネワネ@ ゥィ@0  .Gdエ `dエ <dエ ネ エ dヨ ムdヨ "<.ヨ Dムヨ Dメ Dヤ Dユ Dヨ7 Dラ@ Dリn D゙・ D゚ツ 1$ムヨ Mイ4_|アナヨ3dソ #4K\q6677)7;7M7_7q777ァ7ケ7ヒ7ン7788%878I8[8m888」8オ8ヌ8ル8889!939E9W9i9{999ア9テ9ユ999 ::/:A:S:e:w:::ュ:ソ:ム:::;;+;=;O;a;s;;;ゥ;サ;ヘ;;;<<,<?<R<e<x<<<ア<ト<ラ<<<=#=6=I=\=o===ィ=サ=ホ===>>->@>S>f>y>>>イ>ナ>リ>>>?$?7?J?]?p???ゥ?シ?マ???@@.@A@T@g@z@后@ウ@ニ@ル@@@A%A8AKA^AqAБ輸ェAスAミA紜A BB/BBBUBhB{B撮。BエBヌBレBBCC&C9CLC_CrCC呂ォCセCムC腓C DD0DCDVDiD|D愁「DオDネDロDDEE'E:EME`EsEE僞ャEソEメE薤E FF1FDFWFjF}F色「FオFニFラF颶F GG1GBGUGhG{G雑。GエGナGリGGG HH/H@HSHeHvHH路ォHセHムH腥H II0ICIVIiI|I終「IオIネIロIIJJ'J:JMJ`JsJJ價ェJサJフJ゚JJKK+K>KQKdKwK階扛ーKテKヨK飫KL"L5LHL[LnL´猫ァLコLヘL澂LMM*M=MPMcMvM窺廴ッMツMユM鎬MN!N4NGNZNmNN哲ヲNケNフN゚NNOO+O>OQOdOwO外抂ーOテOヨO餔OP"P5PFPYPlPP単・PクPヒP゙PPQQ*Q=QPQcQvQ渦弉ッQツQユQ鏖QR!R4RERXRkR~R然、RキRハRンRRSS)SH D@U DB[ DFg DH DI DK DLュ D\シ D]ヌ DNマ DPル DR DT DX DY DZ D_" Da, De: DhD ]$<6 (];:]=C]N]>X]ソ]メ]]タ6 ]J ]$NJ .J DvJ DyV D{` D|z D} D~ D D D D Dオ Dフ D D D! D* D4 ]$vJ ^u^wフ#^ユ^ _#_C_[_q__タJ _6 \$N6 .6 D「6 D」B D D」 D・ウDヲソDァヒDィラDゥDェDォDャDュ DョDッDー(Dア1Dイ:DエCDカLDクUDコ^DサgDセpDトyDD_$「6 媽。ッ_$QN.DDD。DィDッDノDD +D \D D 、DコDネD゚DD D)D2D;DBD jD!sD"|D(D)「D*ォD?イDAタDCDDDE@DFhー_$ヌ_メ_ ゙_鐇ィ_ヤ`リ`ワ$`3`@`P`c`v` `タ`o荏$No.oDXoDZD]D^・DaヨDbワDcDdDeDiDl'DmODofDzD|・D~チDフDDD+DGDRD`DfDDDォDチDモDDD#D.D6D。9柿$Xoュ`Tク`U ト`Wメ`Yロ`Z藾[`\aa]a^+aタo,aB-a$モNB.BDュBDッTDー}Dア「DウシDオDケDコDサ DシDス0Dセ>DタCDヒQDホWDマeDミwDメDモDヤョDユシDルン.a$ュBXaォcaャ oaャ}aョ蛎ョ蚤ッ拌ーョaアサaタBシaスa$。N.DDDDD D,DLDZDfDDDDタDホDレDDDDD4ID8uD9DEDGェDHクDJチDKヒセa$ユa濛 鸞abb&bフ5bネBbタCbムDb$Nム.ムDXムDYDZ D_!Da'Dh5Dl>DnpDv~D{D|Eb$Xム}bVbV 巴V」bVオbVヌbWラbY瀉Zbタムbb$ニN.DD」DリDDD#D/D;DGDSD_DkDwDDDDD、DュDカDソD「ネD」ムDヲレDャDリDワD゙b$cc !c$iN.DD DD/D8DFDNDWDdDmDzDDDD"c$=cHc Wcictccタc営$N.DDェD*ツDヒDレDDD DD "D*+D+.劃$・cーc ソcムc$N0.0D-0D/<D1CD3UD5aD7gD9tD;zD=D?D@メc$-0 d,d, d,,d.ネ;d/Edタ0FdGd$bN.DBDE、DGコDHネDWムDZD\D^DbDdHd$BvdA‥A 硬A囘Cフィdタゥdェd$N.DqDv0DHD]DyfD{oD}~DDDD「ォd$qテdpホdp ンdpd$Nィ.ィD、ィD・コDィタDェヘDャヤDアDカDコDシ DツDテ,Dェ9Dモ?DヌADヒGDミWDムeDユgDヨuDラd$、ィe」 e・eァ eタィ!e"e$N.DDDァ#e$=eIe$NゥJeゥ.ゥDゥDサDラZe$ゥreeィ影タゥ各ン菊$4Nン.ンDンDDD D D D # D#* D$D D%^ D&x D3 D5ャ D6コ D7 D9 D: D;mIm Umbmomxmm芭タメ+瀕,卜$ハN,.,D,Dキ,Dセ,D",D$-D%-D&/-D'8-D(R-D)o-D,z-洋$,シmヌm モm瀘mmnnタ,n-n$N-.-D:-D;-D<-D@ネ-DA-DB.DD .DE!.DF+.n$:-9n8Dn9 Pn;]n<fn=tnタ-un4.vn$アN4..4.DT4.DUO.DVV.DZ.D[.D\ェ.D]ウ.D^ヘ.D_.Db.wn$T4.從RァnS ウnSタnUヘnVヨnW舅Snタ4.n.n$ハN...Dv.Dw/Dy/Dz,/D{>/D}G/DM/DW/Da/Dn/Dp/D/D/D/D・/Dョ/Dキ/Dト/n$v.ou$ou .ow;owEoタ.Foハ/Go$フNハ/.ハ/Dォハ/Dトワ/Dニ0Dネ0Ho$ォハ/xoァバィ 出ェ。o$ON0.0Dル0D+0D]0Db0「o$ル0メoヨンoリ 駮$ONh0.h0Dh0Dz0Dャ0Dア0麸$h0p$p 0pAp$ONキ0.キ0D-キ0D?ノ0DA0DC1Bp$-キ0qp*|p, p$ON1.1DW1DY1D[1D_D1DdL1Dff1Dgt1Djz1Dk1Dl「1Dnオ1Drソ1Dsル1Dt1Du1Dy 2D{2D~12DR2D[2D|2D2英$W1コpUナpV モpV疳VpXpYqZ q[qV+qタ1,q2-q$N2.2D2D2D。2D。ニ2Dヲホ2Dィ2Dゥ2Dャ2Dュ3Dョ$3Dー73DエA3Dオ[3Dカl3Dキu3Dサ3Dス。3Dタウ3Dツヤ3Dトン3Dニ3Dヌ4.q$2_qjq xqq智孀・qイqテqミqタ2ムq 4メq$N 4. 4Dロ 4Dン4D゙#4D゚H4D]4De4D4D4D4Dゥ4Dサ4Dホ4Dヤ4D4D'5D,5D25DS5D |5D 5D ウ5D ヤ5D 6D 6D 6D ,6D M6D O6D p6モq$ロ 4rルrレ *rレ8rレJrレ\rレnrレ ~rワrン喪゙「r゚ッrタ 4ーrv6アr$lNv6.v6D/ v6D1 6D2 6D7 エ6D< シ6D> ヨ6D? 6DB 6DC 7DD 7DF %7DJ /7DK I7DL Z7DM c7DQ }7DS 7DV 。7DX ツ7DZ ヒ7D\ 7D] 7イr$/ v6縒- r. r.  s. s0 s1 )s2 :s3 Gs. Tsタv6Us7Vs$N7.7Dl 7Dm 8Dn 8Do 98Ds G8Dv M8Dx V8Dy p8Dz 8D| 8D} ー8D~ コ8Ws$l 7sj 痴k 枹k ャsm ケsn ハso モsp 疽タ7龝テ8縱$ヒNテ8.テ8D テ8D リ8D ゚8D 9D 9D 9D !9D ;9D \9D g9D }9D 9舖$ テ8t t +t 9t Ft Wt `t ntタテ8ot9pt$ヘN9.9Dャ 9Dュ ・9Dョ ャ9Dッ ム9Dウ ゚9Dカ 9Dク 9Dケ :Dコ ':Dシ 2:Dス G:Dセ Q:qt$ャ 9。tェ ャtォ クtォ ニtュ モtョ 舩ッ tー tタ9tZ:t$ハNZ:.Z:Dフ Z:Dヘ o:Dホ v:Dマ :Dモ ゥ:Dヨ ッ:Dリ ク:Dル メ:Dレ :Dワ :Dン ;D゙ ;t$フ Z:-uハ 8uヒ Duヒ Ruヘ _uホ puマ yuミ uタZ:u%;疫$ヒN%;.%;D %;D :;D A;D f;D t;D z;D ;D ;D シ;D ヌ;D ン;D ;隔$ %;コu ナu ムu ゚u u u v vタ%;v;v$ヒN;.;D ;D <D <D 1<D ?<D E<D N<D h<D <D <D ェ<D エ<v$ ;Fv Qv ]v kv xv 益 致 vタ;。vス<「v$ヘNス<.ス<D* ス<D+ ミ<D, <D/ =D2 $=D5 *=D7 3=D9 I=D: W=DO `=DP =DR =DS 、=」v$* ス<ルv) 舸) v) v+ w, w- タ'w. 6wタス<7wォ=8w$Nォ=.ォ=D^ ォ=D_ ス=D` =Db =De >Dh >Dj #>Dl 9>Dm G>Do P>Dt v>Do >Dp >Dq >Dr ・>Ds ョ>Dt キ>Dv コ>9w$^ ォ=ow] zw] w] 背_ ・w` ョwa トスwタォ=セwタ>ソw$Nタ>.タ>D タ>D メ>D >D ?D &?D ,?D 5?D K?D Y?D b?D ?D ?D ?D 」?D ャ?D ッ?タw$ タ>w w x x *x 3x トBxタタ>Cxオ?Dx$Nオ?.オ?Dォ オ?Dャ ヌ?Dュ ?Dッ ?Dイ @Dオ !@Dキ *@Dケ @@Dコ N@Dシ W@Dソ t@Dス }@Dセ @Dソ 宗Dチ 叩Ex$ォ オ?{xェ xェ 遅ェ xャ アxュ コxョ トノxタオ?ハx蓮ヒx$N蓮.蓮Dモ 蓮Dヤ 、@D゚ ォ@D イ@D ク@フx$モ 蓮yム yメ yヤ 'yタ蓮(yコ@)y$"Nコ@.コ@D コ@D フ@D @D AD AD %AD /A*y$ コ@`y ky wy y ネ准タコ@笥5A惣${N5A.5AD 5AD MAD" AD$ Б馳$ 5Aノy ヤy 炸 y y$UN晦.晦D7 晦D8 「AD< ヒAD= 瓣D> 錢D@ BDB BDD ABDF OBDG YBy$7 晦2z5 =z6 Iz6 Vz8 _z9 ネnz6 ト|zタ晦}z_B~z$ユN_B._BDL _BDP qBDQ ВDV 達DX ゙Bz$L _B配N 毟タ_Bz脾。z$N脾.脾Du 脾Dv BDw CD| CD~ CD ACD JCD TCD ZCD dCD qCD wCD CD 靴D 匹D 」CD トCD 颪D CD DD -DD ゥDD アDD、 クDDィ 鵐Dゥ DDォ DDャ EDョ EDー EDア EEDイ ]EDエ kEDオ tEDキ EDク 右Dコ 髭Dサ 妣Dシ 」EDハ ュED サEDロ リEDワ 瓲Dン E「z$u 脾ケzo トzp ミzq レzr 黝s zt {v ミ{${v ヤ/{v リ;{w ワK{\{w g{w t{y ネ~{y 顎悳z Hィ{| ウ{| ソ{} ハ{タ脾ヒ{Eフ{$NE.EDf EDg FDk 5FDl ;FDn DFDo JFDr SFDv YFDx oFDy sFDz 擢D アFD 紮ヘ{$f E|e |e &|e 5|e H|e X|g a|h トp|i ~|タE|颶|$N颶.颶D 颶D FD $GD MGD GD GD キGD% タGD& 礙−$ 颶ィ| ウ| ソ| ヒ| レ| 縹} }タ颶}鍜}$N鍜.鍜D6 鍜D: GD; #HDA LHDB RHDD `HDF 羽DH 菱DI コHDJ HDK IDL IDN -IDP _IDX hIDY qI}$6 鍜;}4 F}5 R}5 c}5 s}5 マ7 殉8 怡: ・}; ウ}タ鍜エ}wIオ}$NwI.wIDf wIDg 迂Dh イIDi ノIDj メIDk ワIカ}$f wI驀d }e ~g ~タwI ~礫 ~$kN礫.礫D 礫D ID ID $JD MJD SJD aJD 開D 褒D サJD 濳D KD 'KD -KD ;KD mKD yKD「 ョKD」 シKDヲ セKDァ ミKDョ KDッ L ~$ 礫>~| I~} U~} f~} v~} ~~ 宀 ァ~ ウ~ タ~ モ~ ワ~ 黯タ礫~L~$&NL.LDシ LDス LDホ CLDモ aLD iLD qLD LD アLD コL~$シ Lコ &サ 2ス ;セ HタLIタLJ$クNタL.タLD タLDメLDLDMDMD ,MD 7MD @MDMMDXMDaMDnMDyMDMDMD"ノMK$ タLx   。 ネーケタタLコマMサ$NマM.マMD/マMD0祟D1MD3MD4CND5lNシ$/マMロ.013 タマM sN $、NsN.sNDAsND_NDb」NDcアNDgフNDjルNDk゙N $AsN.@:$qN膀.膀Dy膀DNDOD O;$y膀bxl$+NO.ODODオOm$O逐$NO.ODチODナ2ODニQODムwODメ徹Dモ朧Dヤ・ODヨョODラクO凍$チOエタタツヘツヨテ艢タO蛟チO諤$、NチO.チODチODモODレOD膂DODODPD)PD7PDメ]?鷯@]A$N].]D・]Dォ^Dョ^Dシ<^DチX^Dアe^DウタDテ運Dト洪B$・]y」х、 睡、「  +6ALォ['mャァ{タ]|某}$N某~@.某Dム某Dヨォ^Dルミ^Dワ^D _D&_DA_DZ_D`_Dk_Do_Dq_Dw_Dル{_D祇Dエ_Dホ_D饑D`D`D`D`D8`D <`決$ム某ツマヘミ ルミメ(モ@ ウ(H_エヘ$;[r阜ッメ #>ヤQユZユbヨoタ某pE`q$ッNE`.E`DE`DW`Dt`r$E`ゥエ タ$5Nz`.z`D)z`D*形D+啻チ$)z`'( ($&N`.`D8`D9イ`D:タ`D;ナ`$8`I6T7 `$+Nヒ`.ヒ`DHヒ`DIン`DJ`a$Hヒ`梼F梹G ェGク$&N`.`DW`DXaDYaDZaケ$W`UV $+Na.aDjaDk.aDl;aDmdaDpkaDrmaDszaDzaD{斬Dv紡Du「aDwケaD}フaD~レaDp訛DaDaDb$ja4h?i KkXlamqタar bs$N b. bD bDbD「%bD」5bDュjbDョpbt$ b件・ッタ bーrbア$eNrb.rbDセrbDソ鈎Dチ傭Dテ拊DトォbDネュbDニケbDハミbDフレbDヘ鐫Dマ鹵Dヤbイ$セrb繽ケコ サシス!ソ.ス;タrb<b=$Nb.bDbDcD$cD:cDFcDTcD`cDncDcD苗D・cDウcDcD dDd>$bP゚\゚ j゚vヰ告タb諮d署$Nd.dD dD0dD7dDQdD|dDED壇D「dDケdDトdD鐡DdD セ卆ォセスセマセ眄セソソ)ソ;ソMソ_ソqソα柄ァソケソヒソンソソタタ%タ7タIタ[タmタタ詑」タオタヌタルタタタチ!チ3チEチWチiチ{チ挫淬アチテチユチ鄰チ ツツ/ツAツSツeツwツ可崢ュツソツムツ翊ツテテ+テ=テOテaテsテテ療ゥテサテヘテ゚テテトト'ト9トKト]トoトト篤・トキトノトロトトナナ'ナ:ナMナ`ナsナナ卩ャナソナメナ蠻ナ ニニ1ニDニWニjニ}ニ脆」ニカニノニワニニヌヌ(ヌ;ヌNヌaヌtヌヌ塢ュヌタヌモヌ貮ヌ ネネ2ネEネXネkネ~ネ楕、ネキネハネンネネノノ)ノ<ノOノbノuノ伊嵋ョノチノヤノ酲ノ ハ ハ3ハFハYハlハハ通・ハクハヒバハハヒヒ*ヒ=ヒPヒcヒvヒ架慷ッヒツヒユヒ靈ヒフ!フ4フGフZフmフフ椴ヲフケフフプフフヘヘ+ヘ>ヘQヘdヘwヘ艦斛ーヘテヘヨヘ鯱ヘホ"ホ4ホGホZホmホホ鳶、ホキホハホロホホママ'マ:マMマ^マqママ変ヲマキマネマロママミミ#ミ4ミGミZミmミミ寅ヲミケミフミ゚ミミムム+ム>ムQムdムwム貫旃ームテムヨム鰉ムメ"メ5メFメWメhメ{メ者。メエメヌメレメメモモ&モ9モLモ_モrモモ侖ォモセモムモ萼モ ヤヤ0ヤCヤVヤiヤ|ヤ砦ヤウヤニヤルヤヤヤユ%ユ8ユKユ^ユqユユ臨ェユスユミユ耻ユ ヨヨ/ヨBヨUヨhヨ{ヨ蛇。ヨエヨヌヨレヨヨララ&ラ9ラLラ_ラrララ俎ォラセラムラ籏ラリリ.リAリTリgリzリ菜リウリニリルリリリル%ル6ルIル\ルoルル遁ヲルケルフルンルルレレ)レ<レOレbレuレ移巓ョレチレヤレ釟レ ロ ロ3ロFロYロlロロ紬・ロクロヒロ゙ロロワワ*ワ=ワPワcワvワ嘩憔ッワツワユワ鞋ワン!ン4ンGンZンlンン吊・ンクンノンロンン゙゙5゙O゙i゙゙壜ア゙ノ゙玻゙゚(゚;゚N゚l゚近ァ゚テ゚珀゚4Rex金樅アトラ2EXッ粃f。エヌン *$5N学+d学0  ー タ ミ某ヌ]展ミ <Ev '、サ'リ V`!`Kat)コ)ォ_(ヌ-l* +wIEBgス$0アキ0リコ@05[蓮ハ/イh0ル晦rb05A_ムス<スォ=タ>オ?EZ:l%;テ8シ9; 731\v62ョ 4L o%鍜E颶d礫&ョ,ヒ4.z` ヒ`; メ+X タL} # 」!セ ^W ヨ  O' 柤9 sNU 僧e セjx チO J zZカ ィツ Qレ :v 吐 \k  U , 6 B Z[U 6 h Hv~ d 膀ュ ンサ hRル Ip  bB_B   O, < 脾M \g fo Pf} 浪 Bf」  fウ bソ ホ ゚ . v ,v" wQ/ [eE Z l }  マMゥ Bhエ %l Pv\/wjE`ァUwチ ラ   !/Pn」ャイクタヘレ#*39AJX_tzィクネヨ"+39AIQ[dmx nシH@ソツM#)5ノハrヨ゙ム = W Y [ カ  y ァ イ シ ニ ネ ヒ ホ (オ オ ッシラルリントホスツヒアヘチケメロュイヨテコヤウムワハユサモタエナ゙ソークレヌ゚マフニネャカョセミァノキ|ィゥォェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~23ァ45。「」、・ヲ2zキ2ィゥェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ァ。「」、・ヲャュョッーアイウエオカキクケコサシスセソ23タチツテトナニヌネノハヒフヘホマミムメモヤユヨ4ラリ5ルレロワン゙゚ォ__dyld_func_lookupdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion___i686.get_pc_thunk.bx_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf_sprintf_sscanf_stat_strcat_strcmp_strcpy_strerror_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld__mh_dylib_headerdyld_lazy_symbol_binding_entry_pointdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled./Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s928reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;GetVersion:(0,31),128,32;DefineClass:(0,32),160,32;FindClass:(0,33),192,32;FromReflectedMethod:(0,34),224,32;FromReflectedField:(0,35),256,32;ToReflectedMethod:(0,36),288,32;GetSuperclass:(0,37),320,32;IsAssignableFrom:(0,38),352,32;ToReflectedField:(0,39),384,32;Throw:(0,40),416,32;ThrowNew:(0,41),448,32;ExceptionOccurred:(0,42),480,32;ExceptionDescribe:(0,43),512,32;ExceptionClear:(0,43),544,32;FatalError:(0,44),576,32;PushLocalFrame:(0,45),608,32;PopLocalFrame:(0,46),640,32;NewGlobalRef:(0,46),672,32;DeleteGlobalRef:(0,47),704,32;DeleteLocalRef:(0,47),736,32;IsSameObject:(0,48),768,32;NewLocalRef:(0,46),800,32;EnsureLocalCapacity:(0,45),832,32;AllocObject:(0,49),864,32;NewObject:(0,50),896,32;NewObjectV:(0,51),928,32;NewObjectA:(0,52),960,32;GetObjectClass:(0,53),992,32;IsInstanceOf:(0,54),1024,32;GetMethodID:(0,55),1056,32;CallObjectMethod:(0,56),1088,32;CallObjectMethodV:(0,57),1120,32;CallObjectMethodA:(0,58),1152,32;CallBooleanMethod:(0,59),1184,32;CallBooleanMethodV:(0,60),1216,32;CallBooleanMethodA:(0,61),1248,32;CallByteMethod:(0,62),1280,32;CallByteMethodV:(0,63),1312,32;CallByteMethodA:(0,64),1344,32;CallCharMethod:(0,65),1376,32;CallCharMethodV:(0,66),1408,32;CallCharMethodA:(0,67),1440,32;CallShortMethod:(0,68),1472,32;CallShortMethodV:(0,69),1504,32;CallShortMethodA:(0,70),1536,32;CallIntMethod:(0,71),1568,32;CallIntMethodV:(0,72),1600,32;CallIntMethodA:(0,73),1632,32;CallLongMethod:(0,74),1664,32;CallLongMethodV:(0,75),1696,32;CallLongMethodA:(0,76),1728,32;CallFloatMethod:(0,77),1760,32;CallFloatMethodV:(0,78),1792,32;CallFloatMethodA:(0,79),1824,32;CallDoubleMethod:(0,80),1856,32;CallDoubleMethodV:(0,81),1888,32;CallDoubleMethodA:(0,82),1920,32;CallVoidMethod:(0,83),1952,32;CallVoidMethodV:(0,84),1984,32;CallVoidMethodA:(0,85),2016,32;CallNonvirtualObjectMethod:(0,86),2048,32;CallNonvirtualObjectMethodV:(0,87),2080,32;CallNonvirtualObjectMethodA:(0,88),2112,32;CallNonvirtualBooleanMethod:(0,89),2144,32;CallNonvirtualBooleanMethodV:(0,90),2176,32;CallNonvirtualBooleanMethodA:(0,91),2208,32;CallNonvirtualByteMethod:(0,92),2240,32;CallNonvirtualByteMethodV:(0,93),2272,32;CallNonvirtualByteMethodA:(0,94),2304,32;CallNonvirtualCharMethod:(0,95),2336,32;CallNonvirtualCharMethodV:(0,96),2368,32;CallNonvirtualCharMethodA:(0,97),2400,32;CallNonvirtualShortMethod:(0,98),2432,32;CallNonvirtualShortMethodV:(0,99),2464,32;CallNonvirtualShortMethodA:(0,100),2496,32;CallNonvirtualIntMethod:(0,101),2528,32;CallNonvirtualIntMethodV:(0,102),2560,32;CallNonvirtualIntMethodA:(0,103),2592,32;CallNonvirtualLongMethod:(0,104),2624,32;CallNonvirtualLongMethodV:(0,105),2656,32;CallNonvirtualLongMethodA:(0,106),2688,32;CallNonvirtualFloatMethod:(0,107),2720,32;CallNonvirtualFloatMethodV:(0,108),2752,32;CallNonvirtualFloatMethodA:(0,109),2784,32;CallNonvirtualDoubleMethod:(0,110),2816,32;CallNonvirtualDoubleMethodV:(0,111),2848,32;CallNonvirtualDoubleMethodA:(0,112),2880,32;CallNonvirtualVoidMethod:(0,113),2912,32;CallNonvirtualVoidMethodV:(0,114),2944,32;CallNonvirtualVoidMethodA:(0,115),2976,32;GetFieldID:(0,116),3008,32;GetObjectField:(0,117),3040,32;GetBooleanField:(0,118),3072,32;GetByteField:(0,119),3104,32;GetCharField:(0,120),3136,32;GetShortField:(0,121),3168,32;GetIntField:(0,122),3200,32;GetLongField:(0,123),3232,32;GetFloatField:(0,124),3264,32;GetDoubleField:(0,125),3296,32;SetObjectField:(0,126),3328,32;SetBooleanField:(0,127),3360,32;SetByteField:(0,128),3392,32;SetCharField:(0,129),3424,32;SetShortField:(0,130),3456,32;SetIntField:(0,131),3488,32;SetLongField:(0,132),3520,32;SetFloatField:(0,133),3552,32;SetDoubleField:(0,134),3584,32;GetStaticMethodID:(0,55),3616,32;CallStaticObjectMethod:(0,50),3648,32;CallStaticObjectMethodV:(0,51),3680,32;CallStaticObjectMethodA:(0,52),3712,32;CallStaticBooleanMethod:(0,135),3744,32;CallStaticBooleanMethodV:(0,136),3776,32;CallStaticBooleanMethodA:(0,137),3808,32;CallStaticByteMethod:(0,138),3840,32;CallStaticByteMethodV:(0,139),3872,32;CallStaticByteMethodA:(0,140),3904,32;CallStaticCharMethod:(0,141),3936,32;CallStaticCharMethodV:(0,142),3968,32;CallStaticCharMethodA:(0,143),4000,32;CallStaticShortMethod:(0,144),4032,32;CallStaticShortMethodV:(0,145),4064,32;CallStaticShortMethodA:(0,146),4096,32;CallStaticIntMethod:(0,147),4128,32;CallStaticIntMethodV:(0,148),4160,32;CallStaticIntMethodA:(0,149),4192,32;CallStaticLongMethod:(0,150),4224,32;CallStaticLongMethodV:(0,151),4256,32;CallStaticLongMethodA:(0,152),4288,32;CallStaticFloatMethod:(0,153),4320,32;CallStaticFloatMethodV:(0,154),4352,32;CallStaticFloatMethodA:(0,155),4384,32;CallStaticDoubleMethod:(0,156),4416,32;CallStaticDoubleMethodV:(0,157),4448,32;CallStaticDoubleMethodA:(0,158),4480,32;CallStaticVoidMethod:(0,159),4512,32;CallStaticVoidMethodV:(0,160),4544,32;CallStaticVoidMethodA:(0,161),4576,32;GetStaticFieldID:(0,116),4608,32;GetStaticObjectField:(0,162),4640,32;GetStaticBooleanField:(0,163),4672,32;GetStaticByteField:(0,164),4704,32;GetStaticCharField:(0,165),4736,32;GetStaticShortField:(0,166),4768,32;GetStaticIntField:(0,167),4800,32;GetStaticLongField:(0,168),4832,32;GetStaticFloatField:(0,169),4864,32;GetStaticDoubleField:(0,170),4896,32;SetStaticObjectField:(0,171),4928,32;SetStaticBooleanField:(0,172),4960,32;SetStaticByteField:(0,173),4992,32;SetStaticCharField:(0,174),5024,32;SetStaticShortField:(0,175),5056,32;SetStaticIntField:(0,176),5088,32;SetStaticLongField:(0,177),5120,32;SetStaticFloatField:(0,178),5152,32;SetStaticDoubleField:(0,179),5184,32;NewString:(0,180),5216,32;GetStringLength:(0,181),5248,32;GetStringChars:(0,182),5280,32;ReleaseStringChars:(0,183),5312,32;NewStringUTF:(0,184),5344,32;GetStringUTFLength:(0,181),5376,32;GetStringUTFChars:(0,185),5408,32;ReleaseStringUTFChars:(0,186),5440,32;GetArrayLength:(0,187),5472,32;NewObjectArray:(0,188),5504,32;GetObjectArrayElement:(0,189),5536,32;SetObjectArrayElement:(0,190),5568,32;NewBooleanArray:(0,191),5600,32;NewByteArray:(0,192),5632,32;NewCharArray:(0,193),5664,32;NewShortArray:(0,194),5696,32;NewIntArray:(0,195),5728,32;NewLongArray:(0,196),5760,32;NewFloatArray:(0,197),5792,32;NewDoubleArray:(0,198),5824,32;GetBooleanArrayElements:(0,199),5856,32;GetByteArrayElements:(0,200),5888,32;GetCharArrayElements:(0,201),5920,32;GetShortArrayElements:(0,202),5952,32;GetIntArrayElements:(0,203),5984,32;GetLongArrayElements:(0,204),6016,32;GetFloatArrayElements:(0,205),6048,32;GetDoubleArrayElements:(0,206),6080,32;ReleaseBooleanArrayElements:(0,207),6112,32;ReleaseByteArrayElements:(0,208),6144,32;ReleaseCharArrayElements:(0,209),6176,32;ReleaseShortArrayElements:(0,210),6208,32;ReleaseIntArrayElements:(0,211),6240,32;ReleaseLongArrayElements:(0,212),6272,32;ReleaseFloatArrayElements:(0,213),6304,32;ReleaseDoubleArrayElements:(0,214),6336,32;GetBooleanArrayRegion:(0,215),6368,32;GetByteArrayRegion:(0,216),6400,32;GetCharArrayRegion:(0,217),6432,32;GetShortArrayRegion:(0,218),6464,32;GetIntArrayRegion:(0,219),6496,32;GetLongArrayRegion:(0,220),6528,32;GetFloatArrayRegion:(0,221),6560,32;GetDoubleArrayRegion:(0,222),6592,32;SetBooleanArrayRegion:(0,223),6624,32;SetByteArrayRegion:(0,224),6656,32;SetCharArrayRegion:(0,225),6688,32;SetShortArrayRegion:(0,226),6720,32;SetIntArrayRegion:(0,227),6752,32;SetLongArrayRegion:(0,228),6784,32;SetFloatArrayRegion:(0,229),6816,32;SetDoubleArrayRegion:(0,230),6848,32;RegisterNatives:(0,231),6880,32;UnregisterNatives:(0,232),6912,32;MonitorEnter:(0,233),6944,32;MonitorExit:(0,233),6976,32;GetJavaVM:(0,234),7008,32;GetStringRegion:(0,235),7040,32;GetStringUTFRegion:(0,236),7072,32;GetPrimitiveArrayCritical:(0,237),7104,32;ReleasePrimitiveArrayCritical:(0,238),7136,32;GetStringCritical:(0,182),7168,32;ReleaseStringCritical:(0,183),7200,32;NewWeakGlobalRef:(0,239),7232,32;DeleteWeakGlobalRef:(0,240),7264,32;ExceptionCheck:(0,241),7296,32;NewDirectByteBuffer:(0,242),7328,32;GetDirectBufferAddress:(0,243),7360,32;GetDirectBufferCapacity:(0,244),7392,32;;:t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=(0,245):t(0,246)=f(0,460):t(0,247)=f(0,8):t(0,248)=f(0,8):t(0,249)=f(0,10):t(0,250)=f(0,461):t(0,251)=f(0,9):t(0,252)=f(0,8):t(0,253)=f(0,462):t(0,254)=f(0,9):t(0,255)=f(0,460):t(0,256)=f(0,460):t(0,257)=f(0,463):t(0,258)=f(0,245):t(0,259)=f(0,245):t(0,260)=f(0,460):t(0,261)=f(0,9):t(0,262)=f(0,245):t(0,263)=f(0,462):t(0,264)=f(0,9):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,8):t(0,269)=f(0,462):t(0,270)=f(0,10):t(0,271)=f(0,9):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,462):t(0,275)=f(0,462):t(0,276)=f(0,462):t(0,277)=f(0,464):t(0,278)=f(0,464):t(0,279)=f(0,464):t(0,280)=f(0,465):t(0,281)=f(0,465):t(0,282)=f(0,465):t(0,283)=f(0,466):t(0,284)=f(0,466):t(0,285)=f(0,466):t(0,286)=f(0,460):t(0,287)=f(0,460):t(0,288)=f(0,460):t(0,289)=f(0,467):t(0,290)=f(0,467):t(0,291)=f(0,467):t(0,292)=f(0,468):t(0,293)=f(0,468):t(0,294)=f(0,468):t(0,295)=f(0,469):t(0,296)=f(0,469):t(0,297)=f(0,469):t(0,298)=f(0,245):t(0,299)=f(0,245):t(0,300)=f(0,245):t(0,301)=f(0,9):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,462):t(0,305)=f(0,462):t(0,306)=f(0,462):t(0,307)=f(0,464):t(0,308)=f(0,464):t(0,309)=f(0,464):t(0,310)=f(0,465):t(0,311)=f(0,465):t(0,312)=f(0,465):t(0,313)=f(0,466):t(0,314)=f(0,466):t(0,315)=f(0,466):t(0,316)=f(0,460):t(0,317)=f(0,460):t(0,318)=f(0,460):t(0,319)=f(0,467):t(0,320)=f(0,467):t(0,321)=f(0,467):t(0,322)=f(0,468):t(0,323)=f(0,468):t(0,324)=f(0,468):t(0,325)=f(0,469):t(0,326)=f(0,469):t(0,327)=f(0,469):t(0,328)=f(0,245):t(0,329)=f(0,245):t(0,330)=f(0,245):t(0,331)=f(0,461):t(0,332)=f(0,9):t(0,333)=f(0,462):t(0,334)=f(0,464):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,460):t(0,338)=f(0,467):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,245):t(0,342)=f(0,245):t(0,343)=f(0,245):t(0,344)=f(0,245):t(0,345)=f(0,245):t(0,346)=f(0,245):t(0,347)=f(0,245):t(0,348)=f(0,245):t(0,349)=f(0,245):t(0,350)=f(0,462):t(0,351)=f(0,462):t(0,352)=f(0,462):t(0,353)=f(0,464):t(0,354)=f(0,464):t(0,355)=f(0,464):t(0,356)=f(0,465):t(0,357)=f(0,465):t(0,358)=f(0,465):t(0,359)=f(0,466):t(0,360)=f(0,466):t(0,361)=f(0,466):t(0,362)=f(0,460):t(0,363)=f(0,460):t(0,364)=f(0,460):t(0,365)=f(0,467):t(0,366)=f(0,467):t(0,367)=f(0,467):t(0,368)=f(0,468):t(0,369)=f(0,468):t(0,370)=f(0,468):t(0,371)=f(0,469):t(0,372)=f(0,469):t(0,373)=f(0,469):t(0,374)=f(0,245):t(0,375)=f(0,245):t(0,376)=f(0,245):t(0,377)=f(0,9):t(0,378)=f(0,462):t(0,379)=f(0,464):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,460):t(0,383)=f(0,467):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,245):t(0,387)=f(0,245):t(0,388)=f(0,245):t(0,389)=f(0,245):t(0,390)=f(0,245):t(0,391)=f(0,245):t(0,392)=f(0,245):t(0,393)=f(0,245):t(0,394)=f(0,245):t(0,395)=f(0,470):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,245):t(0,399)=f(0,470):t(0,400)=f(0,473):t(0,401)=f(0,245):t(0,402)=f(0,471):t(0,403)=f(0,474):t(0,404)=f(0,9):t(0,405)=f(0,245):t(0,406)=f(0,475):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,245):t(0,423)=f(0,245):t(0,424)=f(0,245):t(0,425)=f(0,245):t(0,426)=f(0,245):t(0,427)=f(0,245):t(0,428)=f(0,245):t(0,429)=f(0,245):t(0,430)=f(0,245):t(0,431)=f(0,245):t(0,432)=f(0,245):t(0,433)=f(0,245):t(0,434)=f(0,245):t(0,435)=f(0,245):t(0,436)=f(0,245):t(0,437)=f(0,245):t(0,438)=f(0,245):t(0,439)=f(0,245):t(0,440)=f(0,245):t(0,441)=f(0,245):t(0,442)=f(0,245):t(0,443)=f(0,245):t(0,444)=f(0,245):t(0,445)=f(0,245):t(0,446)=f(0,460):t(0,447)=f(0,460):t(0,448)=f(0,460):t(0,449)=f(0,460):t(0,450)=f(0,245):t(0,451)=f(0,245):t(0,452)=f(0,30):t(0,453)=f(0,245):t(0,454)=f(0,491):t(0,455)=f(0,245):t(0,456)=f(0,462):t(0,457)=f(0,9):t(0,458)=f(0,30):t(0,459)=f(0,467)jint:t(0,460)=(0,18)jfieldID:t(0,461)=(0,492)jboolean:t(0,462)=(0,493)jthrowable:t(0,463)=(0,9)jbyte:t(0,464)=(0,494)jchar:t(0,465)=(0,495)jshort:t(0,466)=(0,496)jlong:t(0,467)=(0,497)jfloat:t(0,468)=(0,498)jdouble:t(0,469)=(0,499)jstring:t(0,470)=(0,9)jsize:t(0,471)=(0,460):t(0,472)=*(0,500):t(0,473)=*(0,501)jobjectArray:t(0,474)=(0,502)jbooleanArray:t(0,475)=(0,502)jbyteArray:t(0,476)=(0,502)jcharArray:t(0,477)=(0,502)jshortArray:t(0,478)=(0,502)jintArray:t(0,479)=(0,502)jlongArray:t(0,480)=(0,502)jfloatArray:t(0,481)=(0,502)jdoubleArray:t(0,482)=(0,502):t(0,483)=*(0,462):t(0,484)=*(0,464):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,460):t(0,488)=*(0,467):t(0,489)=*(0,468):t(0,490)=*(0,469)jweak:t(0,491)=(0,9):t(0,492)=*(0,503)unsigned char:t(0,493)=@s8;r(0,493);0;255;signed char:t(0,494)=@s8;r(0,494);-128;127;short unsigned int:t(0,495)=@s16;r(0,495);0;65535;short int:t(0,496)=@s16;r(0,496);-32768;32767;long long int:t(0,497)=@s64;r(0,497);01000000000000000000000;0777777777777777777777;float:t(0,498)=r(0,2);4;0;double:t(0,499)=r(0,2);8;0;:t(0,500)=k(0,465):t(0,501)=k(0,22)jarray:t(0,502)=(0,9):t(0,503)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,245)env:p(0,6)jclazz:p(0,8)old_action:(0,504)sigaction:T(0,504)=s12__sigaction_u:(0,505),0,32;sa_mask:(0,506),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,505)=u4__sa_handler:(0,508),0,32;__sa_sigaction:(0,509),0,32;;__darwin_sigset_t:t(0,507)=(0,510)sigset_t:t(0,506)=(0,507):t(0,508)=*(0,511):t(0,509)=*(0,512)__uint32_t:t(0,510)=(0,4):t(0,511)=f(0,245):t(0,512)=f(0,245)new_action:(0,504)block_mask:(0,506)sigset_t:t(0,506)find_preopened_ports:F(0,2)filename:p(0,473)fd:(0,2)int:t(0,2)p:(0,513)preopened:T(0,514)=s52filename:(0,515),0,320;fd:(0,2),320,32;next:(0,513),352,32;prev:(0,513),384,32;;:t(0,513)=*(0,514):t(0,515)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,516)termios:T(0,516)=s44c_iflag:(0,517),0,32;c_oflag:(0,517),32,32;c_cflag:(0,517),64,32;c_lflag:(0,517),96,32;c_cc:(0,519),128,160;c_ispeed:(0,520),288,32;c_ospeed:(0,520),320,32;;long unsigned int:t(0,518)=r(0,518);0;037777777777;tcflag_t:t(0,517)=(0,518):t(0,519)=ar(0,21);0;19;(0,521)speed_t:t(0,520)=(0,18)cc_t:t(0,521)=(0,493)void:t(0,245)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,516)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,461)jfdataBits:(0,461)jfstopBits:(0,461)jfparity:(0,461)Java_gnu_io_RXTXPort_open:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,473)char:t(0,22)jclazz:(0,8)jfid:(0,461)Java_gnu_io_RXTXPort_nativeClose:F(0,245)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,473)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,516)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,462)env:p(0,6)jobj:p(0,9)speed:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,460)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,522)dataBits:p(0,460)temp:(0,2):t(0,522)=*(0,517)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,522)stopBits:p(0,460)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)translate_parity:F(0,2)env:p(0,6)cflag:p(0,522)parity:p(0,460)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,245)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,245)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,461)newmask:(0,506)oldmask:(0,506)newaction:(0,504)oldaction:(0,504)tid:(0,523)_opaque_pthread_t:T(0,525)=s604__sig:(0,18),0,32;__cleanup_stack:(0,526),32,32;__opaque:(0,527),64,4768;;__darwin_pthread_t:t(0,524)=(0,528)pthread_t:t(0,523)=(0,524):t(0,526)=*(0,529):t(0,527)=ar(0,21);0;595;(0,22):t(0,528)=*(0,525)__darwin_pthread_handler_rec:T(0,529)=s12__routine:(0,530),0,32;__arg:(0,30),32,32;__next:(0,526),64,32;;:t(0,530)=*(0,531):t(0,531)=f(0,245)Java_gnu_io_RXTXPort_writeByte:F(0,245)env:p(0,6)jobj:p(0,9)ji:p(0,460)interrupted:p(0,2)index:(0,12)byte:(0,493)unsigned char:t(0,493)fd:(0,2)result:(0,2)msg:(0,5)interrupted:(0,462)Java_gnu_io_RXTXPort_writeArray:F(0,245)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)count:p(0,460)interrupted:p(0,2)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,484)jbyte:t(0,464)interrupted:(0,462)Java_gnu_io_RXTXPort_nativeDrain:F(0,462)env:p(0,6)jobj:p(0,9)interrupted:p(0,2)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)interrupted:(0,462)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,245)env:p(0,6)jobj:p(0,9)duration:p(0,460)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_isDSR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_setDSR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_isDTR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)static_add_filename:F(0,245)filename:p(0,473)fd:p(0,2)newp:(0,513)p:(0,513)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,462)env:p(0,6)jobj:p(0,9)BaudBase:p(0,460)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,462)env:p(0,6)jobj:p(0,9)Divisor:p(0,460)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,245)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)baudrate:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)pid:(0,2)filename:(0,473)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)filename:(0,473)result:(0,2)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,464)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,464)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)value:(0,464)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)fd:(0,2)ttyset:(0,516)value:(0,464)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,532)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,532)=*(0,493)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,533):t(0,533)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,245)env:p(0,6)jobj:p(0,9)vtime:p(0,460)threshold:p(0,460)buffer:p(0,460)fd:(0,2)ttyset:(0,516)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,460)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,534)fd:(0,2):t(0,534)=ar(0,21);0;0;(0,493)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)bytes:(0,2)body:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)jterminator:p(0,476)bytes:(0,2)total:(0,2)body:(0,484)terminator:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,245)env:p(0,6)jobj:p(0,9)flowmode:p(0,460)ttyset:(0,516)fd:(0,2)unlock_monitor_thread:F(0,245)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,461)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,245)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,245)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,245)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,245)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,245)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,245)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,470)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)port_type:p(0,460)ttyset:(0,516)c:(0,22)fd:(0,2)name:(0,473)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,516)createSerialIterator:F(0,535)serialIterator:p(0,536)kernResult:(0,535)kern_return_t:t(0,535)=(0,2):t(0,536)=*(0,537)io_iterator_t:t(0,537)=(0,538)io_object_t:t(0,538)=(0,539)mach_port_t:t(0,539)=(0,540)__darwin_mach_port_t:t(0,540)=(0,541)__darwin_mach_port_name_t:t(0,541)=(0,542)__darwin_natural_t:t(0,542)=(0,4)masterPort:(0,539)mach_port_t:t(0,539)classesToMatch:(0,543):t(0,544)=*(0,545)CFMutableDictionaryRef:t(0,543)=(0,544):t(0,545)=xs__CFDictionary:_resultStr.13700getRegistryString:F(0,546)sObj:p(0,538)propName:p(0,546)resultStr:V(0,547)nameCFstring:(0,548):t(0,546)=*(0,22):t(0,547)=ar(0,21);0;255;(0,22):t(0,549)=*(0,550)CFTypeRef:t(0,548)=(0,549):t(0,550)=k(0,245)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,460)theSerialIterator:(0,537)io_iterator_t:t(0,537)theObject:(0,538)io_object_t:t(0,538)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,470)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,462)env:p(0,6)jobj:p(0,9)portType:p(0,460) :T(0,551)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551)result:(0,462)jboolean:t(0,462)message:(0,5)_mystat.13792Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)result:(0,462)mystat:V(0,552)stat:T(0,552)=s96st_dev:(0,553),0,32;st_ino:(0,555),32,32;st_mode:(0,557),64,16;st_nlink:(0,559),80,16;st_uid:(0,561),96,32;st_gid:(0,563),128,32;st_rdev:(0,553),160,32;st_atimespec:(0,565),192,64;st_mtimespec:(0,565),256,64;st_ctimespec:(0,565),320,64;st_size:(0,566),384,64;st_blocks:(0,568),448,64;st_blksize:(0,570),512,32;st_flags:(0,510),544,32;st_gen:(0,510),576,32;st_lspare:(0,20),608,32;st_qspare:(0,572),640,128;;timespec:T(0,565)=s8tv_sec:(0,573),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,554)=(0,20)dev_t:t(0,553)=(0,554)__darwin_ino_t:t(0,556)=(0,510)ino_t:t(0,555)=(0,556)__darwin_mode_t:t(0,558)=(0,560)mode_t:t(0,557)=(0,558)__uint16_t:t(0,560)=(0,495)nlink_t:t(0,559)=(0,560)__darwin_uid_t:t(0,562)=(0,510)uid_t:t(0,561)=(0,562)__darwin_gid_t:t(0,564)=(0,510)gid_t:t(0,563)=(0,564)__darwin_off_t:t(0,567)=(0,574)off_t:t(0,566)=(0,567)__darwin_blkcnt_t:t(0,569)=(0,574)blkcnt_t:t(0,568)=(0,569)__darwin_blksize_t:t(0,571)=(0,20)blksize_t:t(0,570)=(0,571):t(0,572)=ar(0,21);0;1;(0,574)time_t:t(0,573)=(0,17)__int64_t:t(0,574)=(0,497)teststring:(0,547)fd:(0,2)i:(0,2)name:(0,473)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,470)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,245)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,462)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,460)event:p(0,460)flag:p(0,2)index:(0,12)flag:(0,462)send_event:F(0,2)eis:p(0,12)type:p(0,460)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,575)env:p(0,6)jobj:p(0,9)id:p(0,546)type:p(0,546)result:(0,2)__darwin_size_t:t(0,576)=(0,518)size_t:t(0,575)=(0,576)jclazz:(0,8)jfd:(0,461)throw_java_exception:F(0,245)env:p(0,6)exc:p(0,546)foo:p(0,546)msg:p(0,546)buf:(0,577)clazz:(0,8):t(0,577)=ar(0,21);0;59;(0,22)report_warning:F(0,245)msg:p(0,546)report_verbose:F(0,245)msg:p(0,546)report_error:F(0,245)msg:p(0,546)report:F(0,245)msg:p(0,546)fhs_lock:F(0,2)filename:p(0,473)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,578)message:(0,5)file:(0,5)p:(0,546):t(0,578)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,473)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,578)message:(0,5)name:(0,5)fd:(0,2)buf:(0,552)check_lock_status:F(0,2)filename:p(0,473)buf:(0,552)fhs_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)file:(0,5)p:(0,546)i:(0,2)uucp_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)buf:(0,552)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,473)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,578)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,579)testLockFileDirName:(0,580)testLockFileName:(0,581)testLockAbsFileName:(0,546):t(0,579)=*(0,582):t(0,580)=ar(0,21);0;9;(0,22):t(0,581)=ar(0,21);0;9;(0,22)FILE:t(0,582)=(0,583)__sFILE:T(0,583)=s88_p:(0,532),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,496),96,16;_file:(0,496),112,16;_bf:(0,584),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,585),256,32;_read:(0,586),288,32;_seek:(0,587),320,32;_write:(0,588),352,32;_ub:(0,584),384,64;_extra:(0,589),448,32;_ur:(0,2),480,32;_ubuf:(0,590),512,24;_nbuf:(0,534),536,8;_lb:(0,584),544,64;_blksize:(0,2),608,32;_offset:(0,591),640,64;;__sbuf:T(0,584)=s8_base:(0,532),0,32;_size:(0,2),32,32;;:t(0,585)=*(0,592):t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=ar(0,21);0;2;(0,493)fpos_t:t(0,591)=(0,567):t(0,592)=f(0,2):t(0,593)=f(0,2):t(0,594)=f(0,591):t(0,595)=f(0,2):t(0,596)=xs__sFILEX:is_device_locked:F(0,2)port_filename:p(0,473)lockdirs:(0,597)lockprefixes:(0,598)p:(0,546):t(0,597)=ar(0,21);0;12;(0,473):t(0,598)=ar(0,21);0;3;(0,473)file:(0,5)pid_buffer:(0,599)message:(0,5)i:(0,2):t(0,599)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,552)buf2:(0,552)lockbuf:(0,552)system_does_not_lock:F(0,2)filename:p(0,473)pid:p(0,2)system_does_not_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)dump_termios:F(0,245)foo:p(0,546)ttyset:p(0,600):t(0,600)=*(0,516)get_java_environment:F(0,6)java_vm:p(0,601)was_attached:p(0,483)env:(0,602):t(0,601)=*(0,603):t(0,602)=*(0,30)JavaVM:t(0,603)=(0,604):t(0,604)=*(0,605):t(0,605)=k(0,606)JNIInvokeInterface_:T(0,606)=s32reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;DestroyJavaVM:(0,607),96,32;AttachCurrentThread:(0,608),128,32;DetachCurrentThread:(0,607),160,32;GetEnv:(0,609),192,32;AttachCurrentThreadAsDaemon:(0,608),224,32;;:t(0,607)=*(0,610):t(0,608)=*(0,611):t(0,609)=*(0,612):t(0,610)=f(0,460):t(0,611)=f(0,460):t(0,612)=f(0,460)err_get_env:(0,460)jint:t(0,460)JNI_OnLoad:F(0,460)java_vm:p(0,601)reserved:p(0,30)JNI_OnUnload:F(0,245)vm:p(0,601)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,601)preopened_port:G(0,513)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s928reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;GetVersion:(0,11),128,32;DefineClass:(0,12),160,32;FindClass:(0,13),192,32;FromReflectedMethod:(0,14),224,32;FromReflectedField:(0,15),256,32;ToReflectedMethod:(0,16),288,32;GetSuperclass:(0,17),320,32;IsAssignableFrom:(0,18),352,32;ToReflectedField:(0,19),384,32;Throw:(0,20),416,32;ThrowNew:(0,21),448,32;ExceptionOccurred:(0,22),480,32;ExceptionDescribe:(0,23),512,32;ExceptionClear:(0,23),544,32;FatalError:(0,24),576,32;PushLocalFrame:(0,25),608,32;PopLocalFrame:(0,26),640,32;NewGlobalRef:(0,26),672,32;DeleteGlobalRef:(0,27),704,32;DeleteLocalRef:(0,27),736,32;IsSameObject:(0,28),768,32;NewLocalRef:(0,26),800,32;EnsureLocalCapacity:(0,25),832,32;AllocObject:(0,29),864,32;NewObject:(0,30),896,32;NewObjectV:(0,31),928,32;NewObjectA:(0,32),960,32;GetObjectClass:(0,33),992,32;IsInstanceOf:(0,34),1024,32;GetMethodID:(0,35),1056,32;CallObjectMethod:(0,36),1088,32;CallObjectMethodV:(0,37),1120,32;CallObjectMethodA:(0,38),1152,32;CallBooleanMethod:(0,39),1184,32;CallBooleanMethodV:(0,40),1216,32;CallBooleanMethodA:(0,41),1248,32;CallByteMethod:(0,42),1280,32;CallByteMethodV:(0,43),1312,32;CallByteMethodA:(0,44),1344,32;CallCharMethod:(0,45),1376,32;CallCharMethodV:(0,46),1408,32;CallCharMethodA:(0,47),1440,32;CallShortMethod:(0,48),1472,32;CallShortMethodV:(0,49),1504,32;CallShortMethodA:(0,50),1536,32;CallIntMethod:(0,51),1568,32;CallIntMethodV:(0,52),1600,32;CallIntMethodA:(0,53),1632,32;CallLongMethod:(0,54),1664,32;CallLongMethodV:(0,55),1696,32;CallLongMethodA:(0,56),1728,32;CallFloatMethod:(0,57),1760,32;CallFloatMethodV:(0,58),1792,32;CallFloatMethodA:(0,59),1824,32;CallDoubleMethod:(0,60),1856,32;CallDoubleMethodV:(0,61),1888,32;CallDoubleMethodA:(0,62),1920,32;CallVoidMethod:(0,63),1952,32;CallVoidMethodV:(0,64),1984,32;CallVoidMethodA:(0,65),2016,32;CallNonvirtualObjectMethod:(0,66),2048,32;CallNonvirtualObjectMethodV:(0,67),2080,32;CallNonvirtualObjectMethodA:(0,68),2112,32;CallNonvirtualBooleanMethod:(0,69),2144,32;CallNonvirtualBooleanMethodV:(0,70),2176,32;CallNonvirtualBooleanMethodA:(0,71),2208,32;CallNonvirtualByteMethod:(0,72),2240,32;CallNonvirtualByteMethodV:(0,73),2272,32;CallNonvirtualByteMethodA:(0,74),2304,32;CallNonvirtualCharMethod:(0,75),2336,32;CallNonvirtualCharMethodV:(0,76),2368,32;CallNonvirtualCharMethodA:(0,77),2400,32;CallNonvirtualShortMethod:(0,78),2432,32;CallNonvirtualShortMethodV:(0,79),2464,32;CallNonvirtualShortMethodA:(0,80),2496,32;CallNonvirtualIntMethod:(0,81),2528,32;CallNonvirtualIntMethodV:(0,82),2560,32;CallNonvirtualIntMethodA:(0,83),2592,32;CallNonvirtualLongMethod:(0,84),2624,32;CallNonvirtualLongMethodV:(0,85),2656,32;CallNonvirtualLongMethodA:(0,86),2688,32;CallNonvirtualFloatMethod:(0,87),2720,32;CallNonvirtualFloatMethodV:(0,88),2752,32;CallNonvirtualFloatMethodA:(0,89),2784,32;CallNonvirtualDoubleMethod:(0,90),2816,32;CallNonvirtualDoubleMethodV:(0,91),2848,32;CallNonvirtualDoubleMethodA:(0,92),2880,32;CallNonvirtualVoidMethod:(0,93),2912,32;CallNonvirtualVoidMethodV:(0,94),2944,32;CallNonvirtualVoidMethodA:(0,95),2976,32;GetFieldID:(0,96),3008,32;GetObjectField:(0,97),3040,32;GetBooleanField:(0,98),3072,32;GetByteField:(0,99),3104,32;GetCharField:(0,100),3136,32;GetShortField:(0,101),3168,32;GetIntField:(0,102),3200,32;GetLongField:(0,103),3232,32;GetFloatField:(0,104),3264,32;GetDoubleField:(0,105),3296,32;SetObjectField:(0,106),3328,32;SetBooleanField:(0,107),3360,32;SetByteField:(0,108),3392,32;SetCharField:(0,109),3424,32;SetShortField:(0,110),3456,32;SetIntField:(0,111),3488,32;SetLongField:(0,112),3520,32;SetFloatField:(0,113),3552,32;SetDoubleField:(0,114),3584,32;GetStaticMethodID:(0,35),3616,32;CallStaticObjectMethod:(0,30),3648,32;CallStaticObjectMethodV:(0,31),3680,32;CallStaticObjectMethodA:(0,32),3712,32;CallStaticBooleanMethod:(0,115),3744,32;CallStaticBooleanMethodV:(0,116),3776,32;CallStaticBooleanMethodA:(0,117),3808,32;CallStaticByteMethod:(0,118),3840,32;CallStaticByteMethodV:(0,119),3872,32;CallStaticByteMethodA:(0,120),3904,32;CallStaticCharMethod:(0,121),3936,32;CallStaticCharMethodV:(0,122),3968,32;CallStaticCharMethodA:(0,123),4000,32;CallStaticShortMethod:(0,124),4032,32;CallStaticShortMethodV:(0,125),4064,32;CallStaticShortMethodA:(0,126),4096,32;CallStaticIntMethod:(0,127),4128,32;CallStaticIntMethodV:(0,128),4160,32;CallStaticIntMethodA:(0,129),4192,32;CallStaticLongMethod:(0,130),4224,32;CallStaticLongMethodV:(0,131),4256,32;CallStaticLongMethodA:(0,132),4288,32;CallStaticFloatMethod:(0,133),4320,32;CallStaticFloatMethodV:(0,134),4352,32;CallStaticFloatMethodA:(0,135),4384,32;CallStaticDoubleMethod:(0,136),4416,32;CallStaticDoubleMethodV:(0,137),4448,32;CallStaticDoubleMethodA:(0,138),4480,32;CallStaticVoidMethod:(0,139),4512,32;CallStaticVoidMethodV:(0,140),4544,32;CallStaticVoidMethodA:(0,141),4576,32;GetStaticFieldID:(0,96),4608,32;GetStaticObjectField:(0,142),4640,32;GetStaticBooleanField:(0,143),4672,32;GetStaticByteField:(0,144),4704,32;GetStaticCharField:(0,145),4736,32;GetStaticShortField:(0,146),4768,32;GetStaticIntField:(0,147),4800,32;GetStaticLongField:(0,148),4832,32;GetStaticFloatField:(0,149),4864,32;GetStaticDoubleField:(0,150),4896,32;SetStaticObjectField:(0,151),4928,32;SetStaticBooleanField:(0,152),4960,32;SetStaticByteField:(0,153),4992,32;SetStaticCharField:(0,154),5024,32;SetStaticShortField:(0,155),5056,32;SetStaticIntField:(0,156),5088,32;SetStaticLongField:(0,157),5120,32;SetStaticFloatField:(0,158),5152,32;SetStaticDoubleField:(0,159),5184,32;NewString:(0,160),5216,32;GetStringLength:(0,161),5248,32;GetStringChars:(0,162),5280,32;ReleaseStringChars:(0,163),5312,32;NewStringUTF:(0,164),5344,32;GetStringUTFLength:(0,161),5376,32;GetStringUTFChars:(0,165),5408,32;ReleaseStringUTFChars:(0,166),5440,32;GetArrayLength:(0,167),5472,32;NewObjectArray:(0,168),5504,32;GetObjectArrayElement:(0,169),5536,32;SetObjectArrayElement:(0,170),5568,32;NewBooleanArray:(0,171),5600,32;NewByteArray:(0,172),5632,32;NewCharArray:(0,173),5664,32;NewShortArray:(0,174),5696,32;NewIntArray:(0,175),5728,32;NewLongArray:(0,176),5760,32;NewFloatArray:(0,177),5792,32;NewDoubleArray:(0,178),5824,32;GetBooleanArrayElements:(0,179),5856,32;GetByteArrayElements:(0,180),5888,32;GetCharArrayElements:(0,181),5920,32;GetShortArrayElements:(0,182),5952,32;GetIntArrayElements:(0,183),5984,32;GetLongArrayElements:(0,184),6016,32;GetFloatArrayElements:(0,185),6048,32;GetDoubleArrayElements:(0,186),6080,32;ReleaseBooleanArrayElements:(0,187),6112,32;ReleaseByteArrayElements:(0,188),6144,32;ReleaseCharArrayElements:(0,189),6176,32;ReleaseShortArrayElements:(0,190),6208,32;ReleaseIntArrayElements:(0,191),6240,32;ReleaseLongArrayElements:(0,192),6272,32;ReleaseFloatArrayElements:(0,193),6304,32;ReleaseDoubleArrayElements:(0,194),6336,32;GetBooleanArrayRegion:(0,195),6368,32;GetByteArrayRegion:(0,196),6400,32;GetCharArrayRegion:(0,197),6432,32;GetShortArrayRegion:(0,198),6464,32;GetIntArrayRegion:(0,199),6496,32;GetLongArrayRegion:(0,200),6528,32;GetFloatArrayRegion:(0,201),6560,32;GetDoubleArrayRegion:(0,202),6592,32;SetBooleanArrayRegion:(0,203),6624,32;SetByteArrayRegion:(0,204),6656,32;SetCharArrayRegion:(0,205),6688,32;SetShortArrayRegion:(0,206),6720,32;SetIntArrayRegion:(0,207),6752,32;SetLongArrayRegion:(0,208),6784,32;SetFloatArrayRegion:(0,209),6816,32;SetDoubleArrayRegion:(0,210),6848,32;RegisterNatives:(0,211),6880,32;UnregisterNatives:(0,212),6912,32;MonitorEnter:(0,213),6944,32;MonitorExit:(0,213),6976,32;GetJavaVM:(0,214),7008,32;GetStringRegion:(0,215),7040,32;GetStringUTFRegion:(0,216),7072,32;GetPrimitiveArrayCritical:(0,217),7104,32;ReleasePrimitiveArrayCritical:(0,218),7136,32;GetStringCritical:(0,162),7168,32;ReleaseStringCritical:(0,163),7200,32;NewWeakGlobalRef:(0,219),7232,32;DeleteWeakGlobalRef:(0,220),7264,32;ExceptionCheck:(0,221),7296,32;NewDirectByteBuffer:(0,222),7328,32;GetDirectBufferAddress:(0,223),7360,32;GetDirectBufferCapacity:(0,224),7392,32;;:t(0,10)=*(0,225):t(0,11)=*(0,226):t(0,12)=*(0,227):t(0,13)=*(0,228):t(0,14)=*(0,229):t(0,15)=*(0,230):t(0,16)=*(0,231):t(0,17)=*(0,232):t(0,18)=*(0,233):t(0,19)=*(0,234):t(0,20)=*(0,235):t(0,21)=*(0,236):t(0,22)=*(0,237):t(0,23)=*(0,238):t(0,24)=*(0,239):t(0,25)=*(0,240):t(0,26)=*(0,241):t(0,27)=*(0,242):t(0,28)=*(0,243):t(0,29)=*(0,244):t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=(0,225):t(0,226)=f(0,440):t(0,227)=f(0,441):t(0,228)=f(0,441):t(0,229)=f(0,442):t(0,230)=f(0,443):t(0,231)=f(0,2):t(0,232)=f(0,441):t(0,233)=f(0,444):t(0,234)=f(0,2):t(0,235)=f(0,440):t(0,236)=f(0,440):t(0,237)=f(0,445):t(0,238)=f(0,225):t(0,239)=f(0,225):t(0,240)=f(0,440):t(0,241)=f(0,2):t(0,242)=f(0,225):t(0,243)=f(0,444):t(0,244)=f(0,2):t(0,245)=f(0,2):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,441):t(0,249)=f(0,444):t(0,250)=f(0,442):t(0,251)=f(0,2):t(0,252)=f(0,2):t(0,253)=f(0,2):t(0,254)=f(0,444):t(0,255)=f(0,444):t(0,256)=f(0,444):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,446):t(0,260)=f(0,447):t(0,261)=f(0,447):t(0,262)=f(0,447):t(0,263)=f(0,448):t(0,264)=f(0,448):t(0,265)=f(0,448):t(0,266)=f(0,440):t(0,267)=f(0,440):t(0,268)=f(0,440):t(0,269)=f(0,449):t(0,270)=f(0,449):t(0,271)=f(0,449):t(0,272)=f(0,450):t(0,273)=f(0,450):t(0,274)=f(0,450):t(0,275)=f(0,451):t(0,276)=f(0,451):t(0,277)=f(0,451):t(0,278)=f(0,225):t(0,279)=f(0,225):t(0,280)=f(0,225):t(0,281)=f(0,2):t(0,282)=f(0,2):t(0,283)=f(0,2):t(0,284)=f(0,444):t(0,285)=f(0,444):t(0,286)=f(0,444):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,446):t(0,290)=f(0,447):t(0,291)=f(0,447):t(0,292)=f(0,447):t(0,293)=f(0,448):t(0,294)=f(0,448):t(0,295)=f(0,448):t(0,296)=f(0,440):t(0,297)=f(0,440):t(0,298)=f(0,440):t(0,299)=f(0,449):t(0,300)=f(0,449):t(0,301)=f(0,449):t(0,302)=f(0,450):t(0,303)=f(0,450):t(0,304)=f(0,450):t(0,305)=f(0,451):t(0,306)=f(0,451):t(0,307)=f(0,451):t(0,308)=f(0,225):t(0,309)=f(0,225):t(0,310)=f(0,225):t(0,311)=f(0,443):t(0,312)=f(0,2):t(0,313)=f(0,444):t(0,314)=f(0,446):t(0,315)=f(0,447):t(0,316)=f(0,448):t(0,317)=f(0,440):t(0,318)=f(0,449):t(0,319)=f(0,450):t(0,320)=f(0,451):t(0,321)=f(0,225):t(0,322)=f(0,225):t(0,323)=f(0,225):t(0,324)=f(0,225):t(0,325)=f(0,225):t(0,326)=f(0,225):t(0,327)=f(0,225):t(0,328)=f(0,225):t(0,329)=f(0,225):t(0,330)=f(0,444):t(0,331)=f(0,444):t(0,332)=f(0,444):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,446):t(0,336)=f(0,447):t(0,337)=f(0,447):t(0,338)=f(0,447):t(0,339)=f(0,448):t(0,340)=f(0,448):t(0,341)=f(0,448):t(0,342)=f(0,440):t(0,343)=f(0,440):t(0,344)=f(0,440):t(0,345)=f(0,449):t(0,346)=f(0,449):t(0,347)=f(0,449):t(0,348)=f(0,450):t(0,349)=f(0,450):t(0,350)=f(0,450):t(0,351)=f(0,451):t(0,352)=f(0,451):t(0,353)=f(0,451):t(0,354)=f(0,225):t(0,355)=f(0,225):t(0,356)=f(0,225):t(0,357)=f(0,2):t(0,358)=f(0,444):t(0,359)=f(0,446):t(0,360)=f(0,447):t(0,361)=f(0,448):t(0,362)=f(0,440):t(0,363)=f(0,449):t(0,364)=f(0,450):t(0,365)=f(0,451):t(0,366)=f(0,225):t(0,367)=f(0,225):t(0,368)=f(0,225):t(0,369)=f(0,225):t(0,370)=f(0,225):t(0,371)=f(0,225):t(0,372)=f(0,225):t(0,373)=f(0,225):t(0,374)=f(0,225):t(0,375)=f(0,1):t(0,376)=f(0,452):t(0,377)=f(0,453):t(0,378)=f(0,225):t(0,379)=f(0,1):t(0,380)=f(0,454):t(0,381)=f(0,225):t(0,382)=f(0,452):t(0,383)=f(0,455):t(0,384)=f(0,2):t(0,385)=f(0,225):t(0,386)=f(0,456):t(0,387)=f(0,457):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,225):t(0,403)=f(0,225):t(0,404)=f(0,225):t(0,405)=f(0,225):t(0,406)=f(0,225):t(0,407)=f(0,225):t(0,408)=f(0,225):t(0,409)=f(0,225):t(0,410)=f(0,225):t(0,411)=f(0,225):t(0,412)=f(0,225):t(0,413)=f(0,225):t(0,414)=f(0,225):t(0,415)=f(0,225):t(0,416)=f(0,225):t(0,417)=f(0,225):t(0,418)=f(0,225):t(0,419)=f(0,225):t(0,420)=f(0,225):t(0,421)=f(0,225):t(0,422)=f(0,225):t(0,423)=f(0,225):t(0,424)=f(0,225):t(0,425)=f(0,225):t(0,426)=f(0,440):t(0,427)=f(0,440):t(0,428)=f(0,440):t(0,429)=f(0,440):t(0,430)=f(0,225):t(0,431)=f(0,225):t(0,432)=f(0,10):t(0,433)=f(0,225):t(0,434)=f(0,472):t(0,435)=f(0,225):t(0,436)=f(0,444):t(0,437)=f(0,2):t(0,438)=f(0,10):t(0,439)=f(0,449)jint:t(0,440)=(0,473)jclass:t(0,441)=(0,2)jmethodID:t(0,442)=(0,474)jfieldID:t(0,443)=(0,475)jboolean:t(0,444)=(0,476)jthrowable:t(0,445)=(0,2)jbyte:t(0,446)=(0,477)jchar:t(0,447)=(0,478)jshort:t(0,448)=(0,479)jlong:t(0,449)=(0,480)jfloat:t(0,450)=(0,481)jdouble:t(0,451)=(0,482)jsize:t(0,452)=(0,440):t(0,453)=*(0,483):t(0,454)=*(0,484)jobjectArray:t(0,455)=(0,485)jbooleanArray:t(0,456)=(0,485)jbyteArray:t(0,457)=(0,485)jcharArray:t(0,458)=(0,485)jshortArray:t(0,459)=(0,485)jintArray:t(0,460)=(0,485)jlongArray:t(0,461)=(0,485)jfloatArray:t(0,462)=(0,485)jdoubleArray:t(0,463)=(0,485):t(0,464)=*(0,444):t(0,465)=*(0,446):t(0,466)=*(0,447):t(0,467)=*(0,448):t(0,468)=*(0,440):t(0,469)=*(0,449):t(0,470)=*(0,450):t(0,471)=*(0,451)jweak:t(0,472)=(0,2)long int:t(0,473)=r(0,473);-2147483648;2147483647;:t(0,474)=*(0,486):t(0,475)=*(0,487)unsigned char:t(0,476)=@s8;r(0,476);0;255;signed char:t(0,477)=@s8;r(0,477);-128;127;short unsigned int:t(0,478)=@s16;r(0,478);0;65535;short int:t(0,479)=@s16;r(0,479);-32768;32767;long long int:t(0,480)=@s64;r(0,480);01000000000000000000000;0777777777777777777777;float:t(0,481)=r(0,488);4;0;double:t(0,482)=r(0,488);8;0;:t(0,483)=k(0,447):t(0,484)=k(0,489)jarray:t(0,485)=(0,2):t(0,486)=xs_jmethodID::t(0,487)=xs_jfieldID:char:t(0,489)=r(0,489);0;127;./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/0000755000175000017500000000000011126534461031753 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Template./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Templa0000644000175000017500000000000011126534457033113 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Tag0000644000175000017500000000001711126534461032407 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Root0000644000175000017500000000007511126534457032630 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Entries./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Entrie0000644000175000017500000000022311126534461033121 0ustar twernertwerner/libAuthKit.jnilib/1.1.2.1/Mon Mar 20 06:40:34 2006/-kb/Tcommapi-0-0-1 /librxtxSerial.jnilib/1.1.2.1/Mon Mar 20 06:40:34 2006/-kb/Tcommapi-0-0-1 D ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Repository./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib/CVS/Reposi0000644000175000017500000000012611126534457033143 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/lib ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/0000755000175000017500000000000011126534475031212 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Template0000644000175000017500000000000011126534457032676 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Tag0000644000175000017500000000001711126534457031646 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Root0000644000175000017500000000007511126534457032062 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Entries0000644000175000017500000000032611126534475032547 0ustar twernertwerner/README.txt/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 /artistic-license.html/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 /preinstall/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 D/jar//// D/lib//// ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootroot./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Repository./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx/CVS/Repository0000644000175000017500000000012211126534457033307 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/macosx ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/0000755000175000017500000000000011126534475027720 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/Template0000644000175000017500000000000011126534456031403 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/Tag0000644000175000017500000000001711126534456030353 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/Root0000644000175000017500000000007511126534456030567 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/Entries0000644000175000017500000000001511126534475031250 0ustar twernertwernerD/macosx//// ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources/CVS/Repository0000644000175000017500000000011311126534456032014 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/resources ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/0000755000175000017500000000000011126534475025706 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/Template0000644000175000017500000000000011126534456027371 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/Tag0000644000175000017500000000001711126534456026341 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/Root0000644000175000017500000000007511126534456026555 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/Entries0000644000175000017500000000037011126534475027242 0ustar twernertwerner/InstallInstruction.java/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 /RXTXInstaller.java/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 /installer.pref/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 D/macosx//// D/resources//// D/util//// ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/CVS/Repository0000644000175000017500000000010111126534456027777 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/0000755000175000017500000000000011126534461026223 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/InstallUtil.java0000644000175000017500000001231310407447142031332 0ustar twernertwernerpackage gnu.io.installer.util; import java.io.File; import java.io.InputStream; import java.io.FileOutputStream; import java.util.prefs.*; public class InstallUtil{ public static String getSharedFolderPath(){ return getFolderPath(kSharedUserDataFolder); } public static String getApplicationFolderPath(){ return getFolderPath(kApplicationFolder); } public static String getGlobalApplicationFolderPath(){ return getFolderPath(kSystemDomain,kApplicationFolder); } public static String getFolderPath(int folderKind){ try{//MAC OS X 1.4.1 Class clazz = Class.forName("com.apple.eio.FileManager"); java.lang.reflect.Method m = clazz.getMethod("findFolder",new Class[]{int.class}); return (String)m.invoke(null,new Object []{new Integer(folderKind)}); }catch(Throwable t){} return null; } public static String getFolderPath(short domain,int folderKind){ try{//MAC OS X 1.4.1 Class clazz = Class.forName("com.apple.eio.FileManager"); java.lang.reflect.Method m = clazz.getMethod("findFolder",new Class[]{short.class,int.class}); return (String)m.invoke(null,new Object []{new Short(domain),new Integer(folderKind)}); }catch(Throwable t){ System.out.println("getFolderPath Throwable "+t); } return null; } public static void copyResourceToFile(String absResPath,java.io.File file){ try{ InputStream is = InstallUtil.class.getResourceAsStream(absResPath); byte []buffer = new byte[4096]; int rb = 0; if(is != null){ FileOutputStream fos = new FileOutputStream(file); while((rb = is.read(buffer,0,buffer.length)) > 0){ fos.write(buffer,0,rb); } fos.close(); } }catch(Throwable t){ t.printStackTrace(); } } public static void installPart(Preferences sysPref,Preferences checkPref,String resPathName,File fileToInstall){ if(fileToInstall == null || resPathName == null) return; boolean needInstall = (checkPref == null); char separator = File.separatorChar; long prevLength = 0; File fooFile = new File(resPathName); String resName = fooFile.getName(); String resParentName = fooFile.getParent(); if(separator != '/') resParentName = resParentName.replace(separator,'/'); Preferences installPref = sysPref.node(resParentName); if(!needInstall){ try{ prevLength = fileToInstall.length(); }catch(Throwable t){} } needInstall = (prevLength == 0); if(!needInstall){ String checkResParentName = resParentName.substring(1);// first slash removed Preferences checkInstallPref = null; try{ checkInstallPref = (checkPref.nodeExists(checkResParentName))?checkPref.node(checkResParentName):null; }catch(Throwable t){ checkInstallPref = null; } long installValueLength = installPref.getLong(resName,0); long checkValueLength = (checkInstallPref == null)?0:checkInstallPref.getLong(resName,0); needInstall = (checkValueLength != 0) && ((installValueLength != prevLength) || (checkValueLength != prevLength) || (checkValueLength != installValueLength)); } if(!needInstall){ System.out.println("File "+fileToInstall+" is uptodate"); }else{ System.out.println("copy file "+fileToInstall); InstallUtil.copyResourceToFile(resPathName,fileToInstall); try{ long newLength = fileToInstall.length(); installPref.putLong(resName,newLength); installPref.flush(); }catch(Throwable t){} } } public static final short kSystemDomain = -32766; /* Read-only system hierarchy.*/ public static final short kLocalDomain = -32765; /* All users of a single machine have access to these resources.*/ public static final short kNetworkDomain = -32764; /* All users configured to use a common network server has access to these resources.*/ public static final short kUserDomain = -32763; /* Read/write. Resources that are private to the user.*/ public static final short kClassicDomain = -32762; /* Domain referring to the currently configured Classic System Folder*/ public static final int kPreferenceFolder = 0x70726566;//pref public static final int kApplicationSupportFolder = 0x61737570;//asup public static final int kSharedUserDataFolder = 0x73646174;//sdat public static final int kApplicationFolder = 0x61707073;//apps public static final int kExtensionFolder = 0x6578746E;//extn /* System extensions go here */ public static final int kDomainLibraryFolder = 0x646C6962;//dlib /* the Library subfolder of a particular domain*/ } ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/0000755000175000017500000000000011126534461026656 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/Template0000644000175000017500000000000011126534461030342 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/Tag0000644000175000017500000000001711126534461027312 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/Root0000644000175000017500000000007511126534461027526 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/Entries0000644000175000017500000000010511126534461030206 0ustar twernertwerner/InstallUtil.java/1.1.2.1/Mon Mar 20 06:40:34 2006//Tcommapi-0-0-1 D ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util/CVS/Repository0000644000175000017500000000010611126534461030755 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/installer/util ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/0000755000175000017500000000000011126534475023711 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/Template0000644000175000017500000000000011126534456025374 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/Tag0000644000175000017500000000001711126534456024344 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/Root0000644000175000017500000000007511126534456024560 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/Entries0000644000175000017500000000002011126534475025235 0ustar twernertwernerD/installer//// ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io/CVS/Repository0000644000175000017500000000006711126534456026015 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu/io ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/0000755000175000017500000000000011126534475023302 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/Template0000644000175000017500000000000011126534456024765 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/Tag0000644000175000017500000000001711126534456023735 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/Root0000644000175000017500000000007511126534456024151 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/Entries0000644000175000017500000000001111126534475024626 0ustar twernertwernerD/io//// ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/gnu/CVS/Repository0000644000175000017500000000006411126534456025403 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources/gnu ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/0000755000175000017500000000000011126534475022511 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/Template0000644000175000017500000000000011126534456024174 0ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/Tag0000644000175000017500000000001711126534456023144 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/Root0000644000175000017500000000007511126534456023360 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/Entries0000644000175000017500000000001211126534475024036 0ustar twernertwernerD/gnu//// ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/Sources/CVS/Repository0000644000175000017500000000006011126534456024606 0ustar twernertwernerrxtx-devel/contrib/MAcOSX/RXTXInstaller/Sources ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/0000755000175000017500000000000011126534467021377 5ustar twernertwerner./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/libAuthKit.jnilib0000755000175000017500000002324010407447142024626 0ustar twernertwernerホ タ__TEXT__text__TEXT(シ(__picsymbol_stub__TEXT  $__DATA__data__DATA__dyld__DATA__la_symbol_ptr__DATA < 8__LINKEDIT   X>]%1/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM \>ムユ6/System/Library/Frameworks/Security.framework/Versions/A/Security 4=ス?/usr/lib/libSystem.B.dylib !" P "  ー((|ヲB}ヲ|ヲ}cx=′ ヤ}ヲ| x=′ ミN |ヲB}hヲ|ヲ=k〔 ィ}iヲN |ヲソ8!|}x|シ+x8`88チ@H ュ|~yA 8@=」x繆8@♂ミ88タ}ヲN!h8!`テx|ヲサN |」+y|ト3xA「H ,<``c朦 セチリ|ヲ|ク+y<!`|ヨ3x|;x}Cx}7Kx|~x`暸「#|;x8。@♂(}ヲN!8||yA>テx$ヒx;`♂0}ヲN!|}y@L>テx$ヒx8♂d}ヲN!|{y@「(>テxDモx繆♂,}ヲN!8H8藤T`~ニウx8P8`88dテx低\刀P殿XH>|}xDモx繆♂,テx}ヲN!,A$>テx$ヒxeロx♂8タ}ヲN!x|xィ8!|ヲコチリN |ヲソ。|}x!ー|~x~;゙,A HMKX」x8!P|ヲサ。H0|ヲセチリ|#x!酢|x#♂0}ヲN!8|yx8cHユ8|zyAHCモxKm8Hリ;|ネ@ネ[モx<テx~トウx繆♂8}ヲN!<|}x繆♂$、x}ヲN!|wx8cH=,須|~x;{A「戟<、x繆;♂}ヲN!8<|fxヌx、x♂繆}ヲN!繆<8|ケョ、x♂烋ヲN!|ネAD@モx|xx8!p|ヲコチリN |ヲソ熕|サ+y!8|ル3x|;xD}Cx<}8Kx|}x`暸「焉#|;x8。@♂(}ヲN!8|~yAシ繆」xKU||y@「(=」xDモxナx♂,}ヲN!8H繆8D%ヒxcロxトxHムDモx=|{xナx」x♂,}ヲN!繆K。,@「8‖D」x=テxィ 88タ8HHL♂ミ}ヲN!`ロx|xx8!p|ヲサ潘 ソ|ヲ|ス+y<!酢ワ3x|~x`暸「t#|ト3x♂0}ヲN!<(`廖。P」x8@Hユ|}y@「(>テx繆8♂ト8タ 8@}ヲN!8a@88 Hux|xx8!p|ヲサN |ヲソ|、+x!|~x|ス+x|ワ3x#♂0}ヲN!<, `廖「t>、xテx8♂、8タ 8@}ヲN!8a@8`Hナ|}y@「(>テx繆8♂ミ8タ8`}ヲN!8a@88 Hュx|x8!|ヲサN |ヲソ|、+x!8||x|ン3x8a@@H|~y@「(<繆、x8♂ミ8タ8@}ヲN!hテx8!`|ヲサN |ヲソ!苣|ト3x!|ケ+x}Cx8#||x|レ3x|;x♂d}ヲN!8黥}yA`H8ナx|旡#ヒxHI・x<|~x8タDモx♂繆}ヲN!,@H=|ミHタx|xh8!`|ヲサ!膀 |ヲソ!苣|ト3x!|ケ+x|;x8#||x|レ3x}Cx♂d}ヲN!8黥}yA`Hノ8|暈eロx#ヒxHi・x<|~x8タDモx♂繆}ヲN!|リAH÷|ミHタx|xh8!`|ヲサ!膀 ソチ|ヲ|セ+y!ー8`A0H98テxHス,A「HcH8`X8!Pサチ|ヲN |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N |ヲB}hヲ=k|ヲ°@}ヲ9k@N |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N (((((((((((((((@4@0@,@(@$@ @@@@@ @D@@@<@8@ウリX(lエ0 / b フC ( リヌ  Ox マ4Mbォセンヲャ  __dyld_func_lookupdyld_stub_binding_helper__mh_bundle_header_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_externalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalizePriv_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_killSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_makeSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_request_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_rootExec_AuthorizationCopyPrivilegedReference_AuthorizationCopyRights_AuthorizationCreate_AuthorizationCreateFromExternalForm_AuthorizationExecuteWithPrivileges_AuthorizationFree_AuthorizationMakeExternalForm_calloc_free_malloc_memset_Java_glguerin_authkit_imp_macosx_AuthProcess_close_Java_glguerin_authkit_imp_macosx_AuthProcess_read_Java_glguerin_authkit_imp_macosx_AuthProcess_write___error_close_read_writedyld_lazy_symbol_binding_entry_pointdyld__mh_bundle_headerdyld_func_lookup_pointer_freeArgs_getArgs./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/signer.sh0000755000175000017500000000033310407447142023216 0ustar twernertwerner#!/bin/bash jar cf libnative.lib.jar libAuthKit.jnilib jarsigner -storepass libnative.lib.jar jarsigner -storepass RXTXInstaller.jar ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/libnative.lib.jar0000644000175000017500000001252310407447142024614 0ustar twernertwernerPK t4META-INF/MANIFEST.MFMフヒLK-.ム K-*ホフマウR0ヤ3瑯r.JM,IMムuェ 俾ト*h8荀*8鉗薄、(x%irr%讎Z)臈&9末dxg冶e蘰yシ\チ紙コ.咎@剿Gク8:毘D;{コァ諚YリLPKUタ「7PK t4META-INF/CONCORD.SFm乎NァE$テ,5u0エヘ$.ヲkェ3阡>・凉飛「ョLコサ贖S@・vZメgゥ 4マqm+ヤR吟gヘ ネoロZ腸9エJ}E\レVs.。饂(リP#j(Gリ0R5m吩)居サク「zェWFテ蓊シヱ2>凭3モヌ7ロ誦p'ン吃リV&酎J゙>t>醐沁疏M篏v?}トスイ_ッ毒贐 PK 蕎カユPK t4META-INF/CONCORD.RSAユ遥PYタモ&ト`8 "ヘ)H^G@AタEnD勲 $推テF_qミTペ"~?\@G=兎l モ5+」lヤ7n]C}Ehョh#ハIWツ P8IПト様sエゥカeeニ+オゥVタチl{~メ )惟L刃・RBuモ!ヘ3印スホe春wホJ勸r鈍ヨヲムリ /ラ7弩ヲT惠涅タョy」蓙陶傴5ムワラ^5qアソレウー/ョ搨]=*ワァ6tメ(4ニワカィ6ュサ4ュ 8嬬T撩7jホセ?Zal)膏?!ノク*スfX4メM >垓GG()ッフf躪&廟}ラ゙ラウサJ/+蛙W/n-コミ釼lz1Z&ヘYcf餽w特セvァロ|7ォヤ3矇ル^]母EN}VDユ7zj2ッ;倏莎「Z[ ス局ツィa@\タウ" チーイ0・チ钁vタ笄ッOP)Gャ*"` Xカ摘。ヘDIマ=EZ 4P'蔓゙ー&ェsェノソf$竜Yg ス 3゙夬A3yz ロ[?^ュ訂}?膽 ッソm|wp燿@ヌ゙カェ駱シ蹉゙|{dVナ^ソサ゚ハ<=悸Wz「6ケ・T執ヌaTH>ュ と2 0Dnr8ケゥャMメワ!em"フHd ^淕0、5KァXYワヲ6n拷「ヲZヌ`\6落卵 「4'V!ツ登D*WォノcE" メ4Ep !H.ツザ\n「エh佻 フRヤ屡xノー]]ャ5チbXウ叫"Z&yタッgxヤノ)フ6)「qUbqォv@コEョ7B6dCXOoGルo%ツxュ-ソ5"y賄"bPwム$ー@7zb 粡鑓箏=汎n[4wヨ@対ミレ4捜N}リ飫キx オ民マ]mケゥwセ/ムルpoスwQ蟐イワ展Om$q、r遜P<悃%*循mシ.0Tイ,ョュL:Jリp暘Rネ<{コツヘアeGヲKスムィュ遜+z!Lヌ7リネ^ヒ .mニケエi|{h Sロ^y pVソォMサ蒜,ョョl@フ、j3タムエ(1*nG繪1メf}S営ヲLLZチi?dテ蚶C6*' XヘZ[>承OY鴎-_‥v0、ォタ?゚薜ア#ソ3カrワハx鑚]&5ォコ」%檢ン諚Jク;モキK)サセWュm;炭テ餔猷マThョシウ78ツオmソ「9マムメ愿>ホ‥&oモヒkエャ;悵dヌm/゚哈(XヌtTサN"工#キホ/1Ytcノン9}Vb榲セウ迪;シス=PRゥサツんト68\ヲtンコlyGホレgホ頴B傴\}ユWカシメUcvr貶.ヤア竡6#戮/ェcuBh-゚U9K゚冓紺`G:7ヲD_?jrェpミOKスLC克ェ<{ K回イ筺 @Z袍gx=ト*髢]矛+鑢ヲヤア。、knテンミ泗ッ゚・D゙F。tャ仄メネツ1メ?リカFラケ・リ婉=ヌYヲnbッ熈キBコミ倡篳纂ハHYO6Xuォョnomxユe弃qば+4咢テu!O7゙スェキミ/PKvハヒュ PK t4 META-INF/ハPKPK i /libAuthKit.jnilibZ]lW>ウウNカ遠Fナ)Nンu絆僕ナF荏+ヌaキv"ヌゥユb欧ルリyフl3嵶fv!ゝ!ヤ'レレnー"AQ・@ノO9・EE*刎"W /ク !j ヒ9wャヌe\@レ+]浹桀wセ{ホ摯g聲タ`7ト<‐タ>#I rカノ-ラbッチ。彫+セdケr}M nuム柳j9コヨ賢禅&>伯I)==エメヌ[クtォ-ン>X ヤ嗄8築BB・リン昵yヌス」イ.サ夕O`咆, ョ5ムL,Zム耡e$ナd鋭0ョk蛞ヤ筺]\コqP<サ@$iセ}{z98Hョ吭8&9或~ラ7? 濤gロfRコo゚ッiイ吠゚ォノq蚪RKオY~F~ェー3メ箸・ヤd"ユ龝カo4サ褊チ ~*其ヲ齷椌ル%゚;ノwラ搓伶Ks:・オヌヤ!6ロ゚蕊」《~ネCeタ#ヌ1|フ+X殉矼}リオ穡[ヲ=B>M 邵轜オ4モ逋~Eィノ橈L>q:寞]ァァヨ.ャ8mヨ莞輒r^ム~ヤカテケアu邊ェ8フソ/|xZ_ Θツ冦0フ強F ; {眄力c 厰7。68ミ>假ー^Z0ャ胥¶ウkョ1 oハ 0hげ5サhミpッ9/オfフォ;糊ミwロョp。四~∵._)フ.遲ツオ ト6ソテ0?4イ[コ作 トca 。)。>ソ ケケユi&gョ5M」nト8ャ豺君 :;9フテ~キ ナ6ム「ヘQエ凾未Mマuテ:セ6mzN"Gツ僮8テヌ~y゙0ネC偕3マ技筮琺3y8#テ`/Mサ}モ^カ硯ル砕Rn吊q萬聒Y ) ⊂2鯲' キエr q;ミ'カ瑛詳^Xロ゚W(|>髴ムマ;C\虐艸ホ既yn9構tnn1ッシfヲチD@閻57(フ#L>@ョャァq<ラIoB0oZ_サn蓴ノbユフヌョ7ャo1N姉喞|ル耋ヨル"W趁筐]モ鬟h客vohェp既E{ZロYョッ+bヲウ'゚テ顯 p6ル9ヲ=ムナモ鶲mqセク?ニハzャ炒,暗g!Z3ト!;ラqシ'サオロネ0邉Nホテ|ナ惺k"ユ&拆_碚WィX:uK9bケ=n}嶐t穣(觚荐a]]4zチ6ュ。X l-qッ'N 悧<ナスy} 髱5ホュ刷酒^件~コ;>ツ7Wu9"セ隶bwテ・ewテi;\闌シ_ワyHカ-"<6? Nツヒ<ンm Vレヲ;ヘョォ易O[#UW箴ラヲ]オカラケ軆ォyカ彬$G8ソA婁k0bョF劃7マQトト-某シ^!嗣t/羲p8! 密X貊; Eマテ@@K0ンマ>#VラTクナテsdマ・W[考cキk゚<;揉榿 除'リ 漑ユ|:kロ[侏>G ャ~<ーワニ{ヤ]緡 *8uh゚匹&タ5ャ5ウ鑵5Zト支+a7vョタ枸隶ン+サ゚陞キア{ヤ柮リヘニ9コヌサ'ッリ_サRクヘイ]_lタrミ×+r9K}=+ヲ`掉.ツo}og=/.0凡。!4ョヌOxKソックlロタソキ詢aセは キ勦`3チm&*リ荳MョM俚+リケMー 蹠ィタ沼*ィタp~?タ *`,房モイ^mユVmユVmユVmユVmユVmユVmユVmサ洪M A;ケ犂才.峪sケ瞥z.クワトe-=\ケワナeタ問作オ?ス6&o|憊サzル幃zYョ#.ッo#モラニP?テ?最W;3}テIルnオク8ト_罅n[_Gヌ8チ9ュッ檗ャlス襪ヤ游コl} ナ[[ンニ}紫」t.}ネ・ヌ・リ・_^メナ暃w葉Eラ歉K_tルOサ,鴈ンfー゚_羯ツリツ9N3ト?v智~滉畑漬オ4榮エカ昂ヨji。ロヨTトDQHA哦)/PK 、ケム&PK t4Uタ「7META-INF/MANIFEST.MFPK t4 蕎カユノMETA-INF/CONCORD.SFPK t4vハヒュ ゚META-INF/CONCORD.RSAPK t4 ア META-INF/ハPK i / 、ケム& libAuthKit.jnilibPK?./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/README.txt0000755000175000017500000000033610407447142023074 0ustar twernertwernerlibAuthKit.jnilib and the following java packages glguerin.* app.authkit.* app.hex.* app.util.* are part of Greg Guerin's AuthKit see http://www.amug.org/~glguerin/sw/#authkit it released under "Artistic" license ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/artistic-license.html0000755000175000017500000001273410407447473025542 0ustar twernertwerner The Artistic License

Artistic License

The "Artistic License"

Preamble

The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications.

Definitions:

  • "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification.

  • "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder.

  • "Copyright Holder" is whoever is named in the copyright or copyrights for the package.

  • "You" is you, if you're thinking about copying or distributing this Package.

  • "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.)

  • "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it.

1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers.

2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version.

3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following:

a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package.

b) use the modified Package only within your corporation or organization.

c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following:

a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version.

b) accompany the distribution with the machine-readable source of the Package with your modifications.

c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own.

6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package.

7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package.

8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission.

9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The End
./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/rxtxinstaller.jnlp0000644000175000017500000000146010407447142025202 0ustar twernertwerner RXTX Installer RXTX RXTX Installer RXTX Installer ./rxtx-2.2pre2/contrib/MAcOSX/RXTXInstaller/jnlp/RXTXInstaller.jar0000644000175000017500000213455010407447142024564 0ustar twernertwernerPK t4憔g META-INF/MANIFEST.MF抔Mウ「JンwDサ佛L8}ナ侍*""桓(@( 烋ンo^゚拑R'涛'3uC葩襴倪/フ+渠C@Mlワ+o嘴サ親セHi瀦|Yb_ソ ト゚$岩Kヒラ0} qAB05裳q鴉留_ 逝/ ヒ(P狸感)9 レ[ヒN椀~iク-崑モh緤;G_蒐ラ魍,R>ユ勗ィ(竄jンK!ィ・n・7lオヌ掀Hケマ杁ユ李計C魴゙g釿サユ^B{颯・餤゙ネ・サf[ォbャf<徳zиレ{嚊w@レクto|ェ租#墟ZヨャrIン ゥ;ナ "ヒw^`Mノe置ツ,Z「27滝uニZTP;p,&ネソMV! ァシ>Nh?4。l4Wzrロ_ヤヘI;AK"J -^O`'メ鷺ユ箆$鞘注.&霊媒鑁賄Tワエィ゚ン茫 兇モBHmOトajveウオ8ヒn'oフBレ"9タD@。sS@飢嗟c(ロs[u 4q8゚_誂uI:ヘdP^ャ徒%$(ア ラ恫fカ{iy{孟&Dp逮 ス'獄sCU俣鐶`A儡゙Kメ|゚~恬fロ巻驅fィ胡`Dラモ_!qI)ァトP9,メ2o恢I 敝鄰ミ*$ッロァwカ峠キレh9#lイj'メrSネヨ){ワメ /&=k遮;8c゙9=ラ叨3゙?ィツ俑褸ャ敲_B%ォ&GC9マネ鯛R酵)作!(Sセ忽ヒ隶?uヨコ・攝巻圻0レE>Jア續[゙cGヤカ ゚BE -ソンY|系VyLYn1es清。lqヨリ壤゙ヒレシU%9( "硯妛P゙S"イ!ャ4眠コ籵」ロc」ー。7ォ]偖ニ?^゙ョ`Rツ|エォ27%フ%∨%i・WiCヘラNDツ溺簽レOカーVホSpヲLY%]Pソ(yB&R{M)"%ォF克C9>焔ム蛩ヤコォ 超ソキレ弊5N)ャ12 ZbトΗXツ'タヘiワx刻GテヘBi椚2Wecン>)・:pラサ縱ムヲXK60痾6猾ゴ+ゥフォ・ャbラカ/キC3&ェ悽wJ%膽差ホ>ハシサ]N6・q。e1ゥュラqハ08蒭ソ qワイ w、1哲濔ェ1ョgWキユ岱$ナョ蘓A5Uf;Uま8/」8゙lヒ暈sエ榿ム7!xs?ヘ。0モエYc"ナ&スvFコィ織゙cN\シ1ミ#QN2H/Hヲ8ヲZvミhgqy F0癲塊c0珊Mフスomサ謇蹙-ホ'8Zェ驂ロtb 緊キフォ(器畫イ 溝0ナ叟>ォッ ク/ミミォ?蚤^&T謗|胆メd廛キワョラ[[ャ~゙ム%]VkコヤナHシ2眄延ウ]撃床サ'e9゚ ラRX5麩仆BDロヘ8ホ俯ュルキlm゚鴟XサヒG;:0~6アyァcゥ紊lムス+′9|Zタsホラァワャi~:粧woケ 袿ソ゚リ)ヌぶハ/議ァニ丑⇒女テ讃h 丶7曳<拏fuサjbレカリンャニFマIyS7MホnSlァI49xキ艮 n甕弱3Ci厘*<チ[゙ム樵Eアタ)ーtr贋\lムK*ィシ6Kェモ3フvヘュ臨@AEx^マVLG3啜*ヒ軆`ニ踝o$エゥ聆,ュャ癖マ!7aY}ル4シ|?カェPx\~}卮eEB*Xfマヒロ塚エサキ:院3佼%ホ晝ョ{ャ・A兜+Yケ゚o sエ呰 9*グ妛8スコ1(ピタソセl$」ンIC傭廻[マt・r 3ヒッ@y-桙e掏1ワeユヒ魍ソ=hタキ ロ樺t鏖Ti2(x齷ヌメモワ`/gネヌJオzVエEH7Kbノυユ「0 ヘ ;P1;5&+K3薮Dィ8;靹゚5ナ砂lpセNA ユ濳椢(寨eW寇Jタ0セ B'掉iケ=擯ラキンノユ決\< ー ン*CFシAカ珎P2触槙レw潛~Lk<フ0-+ヌ忘鉱"「&マ訟!)ャ^」4?スア9$ナ!フd棆ー}サRニgヘ鯀岱ァ出゚ 昴TA}s゙huチa{Uハク\%綱軽ンーサ|ニ穫ゥナヘ:Y!Hゥコ犢ュj32彜菓-oL尿゚gtュ ロMcMAMユ霓? ゙TシィQ刔A/ャn鼕タY解芝フワ?3~L9イc;ハ(og&气テメヤカPNヤPK9シ3iPK t4META-INF/CONCORD.RSAユ遥PSラタsoBタ@ ゥ 痲ー ア狡.u紀` 推ナT%O)ト5" 「カ *0クcQャ PP。.Q 篏!ツs゙ッoヲ匯怒セ蝨;鍄~g.鐘ァヘQ)艶&ャ 愃 .ミチkゥ5ーhロRハオG 膠 L官2#オルケT1ョヲbォマ筅)」枳hレ`偲乍P1舒ネコ|ア T轢ヌqゥ4w爼Rh陶,!G"A鍠P:。アナK.G*ナ!>稼h噌 ンf=ワヘルV 隶ョ+d>フメタ`eル ロヒd瞥マフ O嬬qフ{扛a3sカ鑄゚、キオ7ツヒフュ逕j?ヌ圦lワソ絖ヲ恍~XF抑E<サ糶トЮ<~憑鱗Nネュユ:FYo躔ワ>Q\ -ノ頽ョK/ウbモ'M。W搬[ファハ「ルa,п>:,Wヘb&L!A鯤(AKヨ+[モィ<ァエェヒoレzvユ壼ハ%ュナ蹌レ廳vハV[シシy秕wウナイ絲_モB_塾+b"イ磬Eケナ]5、b>gャヒC= チYOヨxr濬)qa帷exD舌ホ「少 C0LZハ教ヌPn辭. (択aトァ".タ晄6YDタコN卓90SG`4。@ツト)タ&尭i^タCmニヌJQ$(#)-僻K<撩駐陶IィウuヲrEアN窗bヒオ.4*pP9cノヨ撞O$ハJ"毅pAX>hZ~\孑Hμ ー0uオスオ゚セY{牝ィモ%+}゚崗&:ヨホノzxヒヤ粛<テヂ[蘓}; G#o[:8p ホトテュカP椿,ヒルVBニル捷?3濕kケ $オI^。セーロ「s擲惴V^6キツ1`コcア掀3セJsTlY嘖<ンy;=B1,或ーeQR4Nづ*7[6oヘキロwC甃c]m褊mWVンm+凌]s}s5w_ウ裴ッj<+kOラ[}鬩[ロキ。ZサTBネヘ癇ン轉聨UiO/S}キヤ弦ヌ!9、Dw、{kFw8-G`|U2 T遖スV)リ凄1フカx-{ホタ瓸st。ォモナ オ{FニシスyniムM_ァ鳩淹d婬z nH>ネ-蹊褊(ュ「。FXオ蕾qェュ鬩{/i]hホコ笘evw棹鬆,jフoo萪嘸<゚オ繙ナHZ2ナBモ!wマムヨンクa。ユ$?11脩LoucコX*藾ハワ2fsク^攜m袞W4ニnuTZワッe棯ォ];pコウuオAdト_ッ{=ツフ"輓ヘ)ェ゚!,gD]aSおタ \ミ+u系ェ$OMMKUッ錙記\ばハ瓰」。I・iシbq單M(+h3∨シ裏トIDhA$ニメhタI撻ュッ J ゚ノ@槽$ク.マ逼DLモz.Za|nt;アSK|レJ」v゚[ wメGp暾オ 1;ッ糎q榱乢uCzヒ立/キワ4;モ猟エワモP\ue]~ィォ8c\ハhヘカH2兆#ェセカレ(-5慳jメJ1尅樹棔卿%儖8ユセs[セヘi、源Qリ,,マ$wxt蒋6「\J゚^32乘mッケ 0ユ`A*爼、+i ァ`aイ闔ェCtb&U纜゚汐ヲ |タィト駅Iャ&ニRフxァ+押27i+ハ#珱lニU\セ亅a5m4ホ>f%交tQ$w。冕cミ];ェ;3yチケ^5?nHL禹iケ^ヌnサン'セ縦3カノE!Bコセ ムmh+ノョァgハ'ォ Wワルヘjロ邯`ヨ飮贄0 ケワフェz#胸課*Cカ?0アル7マ<テス3 ォソX?b7|フ"サ振 n,オzV_サ3シ撰ケヤi蒲銜燥メ3洽褻質G O槨潦ケャ#o3fハォィ{YA、kw"「jvケ^ェキ=6}teWネ<篏イ朱ョ」qョ&_俔 &豫 %gカウ){ck4カテlハ濶スZj}シP習[{ャ。ユ~藐49$AヒRн&Yテ゚婆游ヤ棠hタノ6 \趁S1キクz煤寰8肥ミ瓮ynヘn-作ニPDムュ觚n レ3ッF(;1ヲフ#iPpゥc曳癜,ラH3。テeK+w&ヤイィyE 淋F#9?X._pq4Sョlウ/ヤljマ7 PK%鮪ュ PK  t4 META-INF/ハPK ^ /app/PK ^ / app/authkit/PK  t4app/authkit/envoy/PK ^ /逮カ%ララapp/authkit/envoy/Envoy.classハコセ-2 。 「 」 、 ・ ヲァ Gィ ゥ ^「 ェ ォ ャ ュ ョ ッーア イ ウエ オカ キ ク ケ コ サ シ スセ ソ タ スチ ^ツ +テ トナニ &ヌ ネ ノハ ヒ フ ヘホ ヘマミ 0ム メ モ 0ヤ ユ ヨ ラ リ ル @レロワン ゙゚ B「    H「 G  L  O「 O O Oツ G Y「 TASKS_BETWEENLjava/lang/String; ConstantValueTASKS_BETWEEN_PROPmyAuth Lglguerin/authkit/Authorization;myInLjava/io/InputStream;myOutLjava/io/PrintStream; myTaskNumberI myTaskStatusPROTOCOL_DELIMPROTOCOL_NEWLINEPROTOCOL_BEGIN_TASKPROTOCOL_BEGIN_OUTPUTPROTOCOL_END_OUTPUTPROTOCOL_END_TASK PROTOCOL_STOPwasOutmain([Ljava/lang/String;)VCodeLineNumberTable()Vexplain(Ljava/lang/Throwable;)Vprepareperformfinish()I groupTaskArgs>(Ljava/util/Enumeration;Ljava/util/Vector;Ljava/lang/String;)V taskPerform(ILjava/util/Vector;)IgetAuthorization"()Lglguerin/authkit/Authorization; buildAuthnewAuth protocolIn()Ljava/io/InputStream; protocolOut()Ljava/io/PrintStream;protocolBegins prepareTaskIO protocolEnds taskBegins(ILjava/lang/String;)VtaskBeginsOutput(ILapp/authkit/envoy/Task;)VtaskEndsOutputtaskEnds(ILapp/authkit/envoy/Task;I)V taskFails SourceFile Envoy.java h happ/authkit/envoy/Envoy }~ ~ z java/lang/Throwable ~  xh ~ ~ cdenvoy.tasks.between:-      java/util/Vector } kj ij    ~ ~    "java/lang/IllegalArgumentExceptionNo Task }  java/lang/String   !" #app/authkit/envoy/Task $ %  &~/glguerin.authkit.imp.plain.DenyAllAuthorizationMac OS Xos.name '/glguerin.authkit.imp.macosx.MacOSXAuthorizationglguerin/authkit/Authorizationjava/lang/ThreadDeath/glguerin/authkit/imp/plain/DenyAllAuthorization ef gh (fjava/io/PrintStreamglguerin/util/SinkOutputStream }) *java/io/ByteArrayInputStream }+ ,-java/lang/StringBufferstop:0: ./ .0 1  task-begin::java/lang/IllegalStateException text-begin: text-end: task-end:java/lang/Object task-begin text-begintext-endtask-endstopjava/lang/Systemouterrexit(I)VflushprintStackTrace(Ljava/io/PrintStream;)V getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;glguerin/util/VectorUtilasVector(([Ljava/lang/Object;Z)Ljava/util/Vector;elements()Ljava/util/Enumeration;sizejava/util/EnumerationhasMoreElements()ZremoveAllElements nextElement()Ljava/lang/Object;toString()Ljava/lang/String;equals(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)V(Ljava/lang/String;)V firstElementremoveElementAtcopyInto([Ljava/lang/Object;)Vjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstanceproducesOutput6([Ljava/lang/String;Lglguerin/authkit/Authorization;)IattachPrivileged&(Ljava/lang/String;)Ljava/lang/String;in(Ljava/io/OutputStream;)VsetOut([B)VsetIn(Ljava/io/InputStream;)Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;print!^_`ab`acdefghijkjl`aXm`aVn`aop`aqr`ast`auv`awxh yz{6イLイMサYキN-カ-*カ-カクァN+カ -,カ ,カ クア # |2  #(-15}~{* *キ *オ ア|s {9*カカ +イカ イカ ア|"#$%~{5*カ*カ**カオア|58;<z{ォcクM+クカNサY+セキ:*オ*オァ3*-,カカ#***エカオ*エア*Yエ`オ-ケハア|6 HLMO!P)U1V9YGZN[O]YPb`{% *カ *エャ| no{^.,カ!ァ +ケ"カ#:-カ$ァ,カ%+ケンア|$-{G サ,カ サ&Y'キ(ソ'N:66,カ)カ#N,カ*,カス+:,カ,*-カ--ク.カ/タ0:ケ16 *カ2*カ3ケ46ィァ,:6*カ5ィァ:ィソ:  *カ6ゥ *カ7ァ *カ8ャou |j・%ヲ*ゥ3ェ9ッ?イKオTカYキ`コoスuタzチツニヌハ」ヒッヘクマ{*エー|ル{+ *カ9L+カ:+ー| {o/;L<=ク>カ$?L+ク.カ/タ@ーM,ソN*-カ5サBYキCーA! | !'{*エDー|4{*エEー|9~{/*イFオD*イオEア|GHI~{?サGYサHYキIキJクKサLYシキMクNア|STU~{R**カL+サOYキPQカR*エカSカTカU+VカU+カ ア|`ab%c)d{X0*カN-サOYキPWカRカSXカR,カRカTカU-VカU-カ ア|mn%o+p/q{|D*エ ニ サYYキZソ*カN-サOYキP[カRカSカTカU-VカU-カ *イオ *カクKア|& ~+15<C{Kイカ *エ N*オ -ヌ サYYキZソ-クK*カ:サOYキP\カRカSカTカUVカUカ ア|.   &>EJ{\4*カ:サOYキP]カRカSXカRカSカTカUVカUカ ア|ィゥ'ェ.ォ3ャ{\4*カ:サOYキP]カRカSXカRカSカTカUVカUカ ア|カキ'ク.ケ3コ抉K ^ /dャトユユapp/authkit/envoy/Task.classハコセ-   producesOutput()Zperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile Task.javaapp/authkit/envoy/Taskjava/lang/ObjectPK ^ /・ヨタツツapp/authkit/envoy/Tool.classハコセ-、 ツテ トナ トニ ツヌ ネ sノハ ヒフヘ ノホ マ ミ ムメ ノ ツモ ツヤ ツユ ヨラリルレ &ロワ ン゙ ン゚  ノ ! & ! ! ! (ノ ( . . . 1 . . . . . ? ?APPL ? . G     &        sム  ツ aノ c! " c#$ g% g& &' &( &)* &+,- o. o/0 o12 u3 u4 5 67 89:; <= > ?@ sA ンB C DセE>? F GHItell(Ljava/lang/String;)VCodeLineNumberTableexplain(Ljava/lang/Throwable;)V()Vperform([Ljava/lang/String;)Vdepart(I)VpresupposeProperty'(Ljava/lang/String;Ljava/lang/String;)VnewAuth"()Lglguerin/authkit/Authorization; stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String; nonceFrame()Ljava/awt/Frame; chooseTarget((Ljava/lang/String;I)[Ljava/lang/String;mustBeAppBundle&(Ljava/lang/String;)Ljava/lang/String; ExceptionsmakeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; getJavaPathaddJavaCommand:(Ljava/util/Vector;Ljava/lang/String;[Ljava/lang/String;)VaddPrefixedProperties'(Ljava/util/Vector;Ljava/lang/String;)VaddOneProperty addEnvoyTaskcaptureUntilEOF0(Ljava/io/InputStream;Ljava/io/OutputStream;I)[BschlepUntilEOF.(Ljava/io/InputStream;Ljava/io/OutputStream;)JtranslateEnvoyMessage([B)Ljava/lang/String;getEnvoyMessageParts:(Ljava/lang/String;ILjava/lang/String;)[Ljava/lang/Object; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)Ifailed+(Ljava/lang/Throwable;ZLjava/lang/String;)Valert((Ljava/lang/String;[Ljava/lang/Object;)V SourceFile Tool.javaJ KLM N O PL QR no-exitS TUjava/lang/StringBufferdepart: VW VX YZjava/lang/ThreadDeath [ \ァ ]^_ `a/glguerin.authkit.imp.plain.DenyAllAuthorizationMac OS Xos.name bc/glguerin.authkit.imp.macosx.MacOSXAuthorizationd ef ghglguerin/authkit/Authorizationjava/lang/Throwable /glguerin/authkit/imp/plain/DenyAllAuthorizationjava/util/Vector iU jk lmjava/lang/String nojava/awt/Frame pq 「」r st uZ java/io/File vwjava/io/IOExceptionNo such file or directory: xwNot a bundle directory: Contents yzPkgInfo { |w }~,Missing or truncated Contents/PkgInfo file: java/io/RandomAccessFiler mNot an app-bundle:  Z"java/lang/IllegalArgumentExceptionNeeds non-null envoyClass ャュ ョッ アュ java.home }mbinjava ォァ-cpjava.class.path file.encoding ーッ   h w-D=envoy.tasks.between:- \glguerin/util/SinkOutputStream!glguerin/util/CaptureOutputStream  エオ glguerin/util/Streamer  ~    java/util/StringTokenizer: mjava/lang/Object Zjava/lang/Integer java/lang/NumberFormatException イウ カキstop クケ'Envoy protocol failure: no STOP message%Envoy protocol failure: short parts: java/lang/Number m'Envoy protocol failure: bad indicator: V ZCaught:  Z セソapp/util/BasicAlert 。「 」app/authkit/envoy/Tooljava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlnflusherrprintStackTrace(Ljava/io/PrintStream;)Vjava/lang/Boolean getBoolean(Ljava/lang/String;)Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;exit getProperty getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;equals(Ljava/lang/Object;)Zjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object; startsWith addElement(Ljava/lang/Object;)Vsize()IcopyInto([Ljava/lang/Object;)V setResizable(Z)Vapp/util/FileDialogger runFileDialog3(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/io/File;getAbsolutePathexists()Z isDirectory separatorLjava/lang/String;#(Ljava/io/File;Ljava/lang/String;)VisFilelength()JreadIntclosegetCanonicalPathglguerin/util/VectorUtil addToVector)(Ljava/util/Vector;[Ljava/lang/Object;Z)Vjava/util/Properties propertyNames()Ljava/util/Enumeration;java/util/Enumeration nextElementhasMoreElements8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;(Ljava/io/OutputStream;I)V getCaptured()[B3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)Vpump([B)V lastIndexOf(Ljava/lang/String;I)IindexOf substring(II)Ljava/lang/String; countTokens nextTokenparseInt(Ljava/lang/String;)IintValue,(Ljava/lang/Object;)Ljava/lang/StringBuffer; getMessagegetClass()Ljava/lang/Class;getName=(Ljava/awt/Frame;Ljava/lang/String;ZLjava/lang/String;IIIFF)Vjava/awt/Dialogshow!s イ+カア|8イカイ+カイカア 8イカ+イカイカア *キアV.ク$イサ Yキ  カ カ カカサYキソクアォュ!ョ)ア-イ1+クヌ ク+,カWアソタチo/LクカL+クカターM,ソN*-カサYキ ー!メヤユレン!゚'。Lサ!Y+セキ"N6ァ +2:ニ,カ# -カ$+セ。゚-カ%+セ-カ%ス&L-+カ'+ー* $*4=EJ「」/サ(Yキ)L+カ*+ー  、・@*カ++ク,N-ヌース&Y-カ-Sー "ヲァJサ.Y+キ/M,カ0!サ1Yサ Yキ 2カ ,カ-カ カキ3ソ,カ4!サ1Yサ Yキ 5カ ,カ-カ カキ3ソサ.Y,サ Yキ 6カ イ7カ 8カ カキ9N-カ:-カ;<莫!サ1Yサ Yキ >カ ,カ-カ カキ3ソサ?Y-@キA:カBC!サ1Yサ Yキ Dカ ,カ-カ カキ3ソィァ:ィソ:カEゥ,カFーイ:8 >?.A5BSEvFGヲKイNシOレPRWィ1ゥェ M-ヌ サGYHキIソサ!Yキ":*+,カJ*カK-カ$*カLカ%ス&:カ'ー* cdfi!l)o/r9uCvJxォァl@サ YMクキNM,イ7カ W+ニ+カO ,+カ Wァ,Pカ イ7カ Qカ W,カー  );ャュR&+*,カRカ$+Sカ$+Tクカ$*+UカV+-クWア「 ・ヲェュ%ョョッg3,ニ1クカXNァ-ケYカZ:,カ# *+カV-ケ[゚ア"ケシ スソタ"チ)ス2トーッV.,ニ,,クN-ニ#+サ Yキ \カ ,カ ]カ -カ カカ$アヒヘ ホ マ-ムアュC+^_ク`カ$,ニ+,カ$+-クWア゙ イウM%,ヌ サaYキbMサcY,キd:*+カeXカfー ィ1エオ-サgYシ+,キhカiュィ1カキJ"=ァ+3+?T+セ。サ&Y+キjー  クケ +-+カO`カk6ァ +-カl6ー+mカl6ー+カn:サoYpキq:カrスs:6 ァ, カtS サuY 2カZクvキwSァ:  セ。メーe|xFDEGI!J#L-M2N4Q>UKVUX[[eacXfコサク**+,(カyカzN*-{カ|:ヌ サ1Y}キ3ソセ「 サ1Yサ Yキ ~カ セカ カキ3ソ2タカ!サ1Yサ Yキ カ 2カじキ3ソ2タカャ& ~ &-JWuィ1シスO+カ:ニ カOサ Yキ ┯ +カカカ カ: *+カァ *カ*-スsYSカ鯵"。「」.ヲ2ァ:ゥ@ャNュセソシ t穏n,セ>6「> 、  >6サ Yキ :6ァ!,2:ニカZカ mカ W,セ。゙サ該*カ++カ2弦左竺6 セタ チツテ!ナ*ニ0ネ6ノ;ハKニUホsメタチPK  t4app/authkit/test/PK ^ /s閲アアapp/authkit/test/AllTests.classハコセ-H !" # $%& !' ( ) * +, !- $./ !0 12 3456()VCodeLineNumberTablemain([Ljava/lang/String;)Vtell(Ljava/lang/String;)V SourceFile AllTests.java AllTests.main(): starting... 7 89java/lang/StringBufferAuthorization: :; <= :> ?@app/authkit/test/TestPrivsinteract ABapp/authkit/test/TestReattach#AllTests.main(): I'm outta here... C DEF Gapp/authkit/test/AllTestsjava/lang/Objectapp/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;getClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!*キア! uEククLサYキカ+カ カ カ クサ Yキ +*カサYキ+*カクア)+ ,#/12?5D6 $イ*カア <= PK ^ /U.6トトapp/authkit/test/AuthTest.classハコセ- Nst uv wx Myz M{|} M~ M w u    M M        s M   + M。「 」、 ・ 」ヲァ ィゥ . ェォャ Mュョッ ;ー :ア Mイ :、 :ウ Mエ オ :カ キ クケ コ サ :シ uス :セ uソ タチツ()VCodeLineNumberTabletestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization; tellGranted5(Ljava/lang/String;Lglguerin/authkit/Authorization;)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)VformatPrivilegeb(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)Ljava/lang/String; tellWhich#(Lglguerin/authkit/Authorization;)VgetWhich4(Lglguerin/authkit/Authorization;)Ljava/lang/String; resession5(Lglguerin/authkit/Authorization;Ljava/lang/String;)V8(Lglguerin/authkit/Authorization;Ljava/io/InputStream;)V ExceptionsputHexTo(Ljava/lang/String;[B)V<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BI)V?(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;[BI)VhexLine.(Ljava/io/PrintStream;Ljava/lang/String;[BII)Vtell(Ljava/lang/String;)Vexplain(Ljava/lang/Throwable;)V SourceFile AuthTest.java OPtrueテ トナニ ヌネ UV&glguerin/authkit/UnauthorizedException op"java/lang/IllegalArgumentException mn ..granted: YZ ノハ authkit.imp トヒ/glguerin.authkit.imp.plain.DenyAllAuthorizationフ ヘホ マミglguerin/authkit/Authorizationjava/lang/ThreadDeathjava/lang/Throwable ムメモ ヤミglguerin/authkit/Privilege [\ ユヨ ]^java/lang/StringBuffer On ラリ ルレ at ラロ -- ワン ラ゙ ゚ ..Auth-ID: ab java/io/FileInputStream cejava/io/IOException P ハ Wrong number of bytes: ラ of # --  gijava/io/PrintStreamjava/io/FileOutputStream O O gj n kl O n  ラ P P app/authkit/test/AuthTestjava/lang/Objectjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)Zlength()I&(Ljava/lang/String;)Ljava/lang/String;java/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object;getPastGrantedPrivileges()Ljava/util/Enumeration;java/util/Enumeration nextElementhasMoreElements()Zappend,(Ljava/lang/Object;)Ljava/lang/StringBuffer;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;,(Ljava/lang/String;)Ljava/lang/StringBuffer; isAvailable(Lglguerin/authkit/Privilege;)Z(Z)Ljava/lang/StringBuffer;toString()Ljava/lang/String;getPublicIdentifierEMPTYLglguerin/authkit/Privilege;java/io/InputStreamclosegetSecretLengthread([B)I(I)Ljava/lang/StringBuffer;attach([B)V(Ljava/lang/String;Z)V(Ljava/io/OutputStream;)Vprintln(I)Vprint setLength app/hex/Hex appendHex4(Ljava/lang/StringBuffer;JI)Ljava/lang/StringBuffer;reverse()Ljava/lang/StringBuffer;(C)Ljava/lang/StringBuffer;outLjava/io/PrintStream;flusherrprintStackTrace(Ljava/io/PrintStream;)V!MNOPQ*キアR-STQN,クカ66ァ%*+-2カァ:クァ :ク-セ。レ ク * +カ  ク ア!+R. L NRS!U+W2N<YAZH[M\UVQアRb WXQ~6*ニ *カ K*クL+ニ +カ L+クカターM,ソN-クー!,,!,/R& n ostu!z,}/4YZQI!,カNァ*+-ケタ,カ-ケアR [\Q# *+,-カク アR]^QrBサY+キ,カ:-ニ--,カ:ニ カ!カW"カ!-,カ#カ$Wカ%ーR「、ァィゥ,ォ<ョ_`Q3サYキ&'カ!*+カ(カ!カ%ク アRキabQC+カ)M,カ ,ー+イ*カ#W+カ)ーRタチ ツトナcdQCNサ+Y,キ,N*+-カ-ィァ.:クィァ!:ィソ:-ニ-カ/ァ :クゥア.$$269.R& モヨ ラリレ$ン29BceQャh+カ0シN,-カ16-セ)サ.YサYキ&2カ!カ34カ!-セカ3カ%キ5ソ+-カ6ィァ$:ィソ:6ァ -T-セ。ゥアFFR* ;@FV[gf.ghQ% *+78,,セカ9アR giQb.サ:Yサ;Y+キ<キ=:*,-カ>カ?ァ :クア#&.R#&-gjQ T,ニ+,カ@ セ、セ6666ァ(「6*+-カA`6d6ルアR*  ! #$&'))4*@'S,klQィdサYキB:+,カC6ァHカD-3~クEWカFW カGW~  カGW+カ%カCケ+カHアR2 7 9:<=+>1?9@KBT:_DcE mnQ イI*カ@アRM onQ.イIカJイK*カ@アRST U opQ *イKカLアRZqrPK ^ /ワ孟{++app/authkit/test/Digester.classハコセ-\ * + , -. / 01 2 34 56 /7 8 9 : ;<= ;> ? @AB ;CDEcheckerLjava/util/zip/CRC32;proutLjava/io/PrintStream;?(Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/lang/String;)VCodeLineNumberTablegetInput>(Ljava/io/InputStream;Ljava/lang/String;)Ljava/io/InputStream;run()V SourceFile Digester.java F $% GH java/util/zip/CRC32 '  java/util/zip/CheckedInputStream I JKjava/lang/Throwable LMjava/lang/StringBuffer ....count: NO NP QRS TU ....check: 0x VU WKX YZ -- CRC32 ['app/authkit/test/Digesterglguerin/util/Streamer3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)VinLjava/io/InputStream;0(Ljava/io/InputStream;Ljava/util/zip/Checksum;)Vpump()JprintStackTrace(Ljava/io/PrintStream;)Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(J)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/io/PrintStreamprintln(Ljava/lang/String;)VprintgetValue app/hex/HexgetHex(JI)Ljava/lang/String;flush! !"B* シ,キ**+-カオ*,オア#ACEF$%"B,ニ*サYキオサY+*エキ L+ー#MOPS&'" @*カ @ィ$ァyN*エニ -*エカ ィァc:ィソ:*エニP*エサ Yキカカカカ*エニ(*エカ*エ*エカクカ*エカ*エカゥア ###:_bc fgh#k4mNoUq^rqszwz()PK ^ /攵x!app/authkit/test/TestAttach.classハコセ-シ =O =PQ OR S TU V W =XYZ [\] O ^_ [`ab cd efg [h =i cj =k *l em n [op qr st uv =wxyz *{ e|}~ . - - - e = -()VCodeLineNumberTablemain([Ljava/lang/String;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V performTestH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Iobtain5(Lglguerin/authkit/Authorization;Ljava/lang/String;)VspewToZ(Ljava/lang/String;Ljava/lang/String;Lglguerin/authkit/Authorization;[Ljava/lang/String;)V](Ljava/io/PrintStream;Ljava/lang/String;Lglguerin/authkit/Authorization;[Ljava/lang/String;)V SourceFileTestAttach.java >? java/lang/StringBufferAuthorization:  attach app/authkit/test/TestAttach FGTestAttach.main(): done... !TestAttach: can't be run this way. 。「 」?@ 、・ ヲァ ィゥ ヲI ェォ ャュ HI ョッ-- TestAttach -- JLout. ー writing: JK&glguerin/authkit/UnauthorizedException ア"java/lang/IllegalArgumentExceptionjava/io/IOExceptionglguerin/authkit/Privilege > イウjava/io/PrintStreamjava/io/FileOutputStream >エ >オ カ? キ.. java.version:  java.version???..... java.home:  java.home.... Session-ID: ク..... Privilege: ケコ サ?app/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)Vjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;exit(I)Vjava/lang/Stringequals(Ljava/lang/Object;)Zglguerin/authkit/AuthorizationattachPrivilegedinLjava/io/InputStream; resession8(Lglguerin/authkit/Authorization;Ljava/io/InputStream;)Vlength()IEMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)ZerrLjava/io/PrintStream;(I)Ljava/lang/StringBuffer;(Ljava/lang/Throwable;)V authorize (Lglguerin/authkit/Privilege;Z)V(Ljava/lang/String;Z)V(Ljava/io/OutputStream;)VcloseprintlngetPublicIdentifierformatPrivilegeb(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)Ljava/lang/String;flush!=>?@*キアAL BC@n>クLサYキカ+カカカ ク   ク MサYキ+,*キ>ク クアAVWY&Z4\9^=_DE@"ク アA hiFG@[モ,カ +カァ/,カ*+イカァ,カ *+,カァ +イカW6ァ*+-2キ-セ。*イ +-カ!6ァサYキ"カカ#カ  ク :カァ*サYキ$カカカ ク * +-カ%ァカァ:ク'ャ:ク'ャ:ク'ャャウカ&ウソ(ウネ)A^ $+4<BKU`f」ュウカソネ「ム、HI@:+サ*Y,キ+カ,ァNア &AュッーJK@ I:サ-Yサ.Y+キ/キ0:*,-カ!ィァ&:ク'ィァ:ィソ:ニカ1ゥア%)22A"キサシス%ソ2ツAテHナJL@ニ+,カ2+サYキ3カ45ク カカ カ2+サYキ6カ75ク カカ カ2+サYキ8カ-カ9カカ カ26ァ!サ*Y2キ+:+*:-カ;カ2セ。ン+カ<アA* ミメ"モ?ユYラ_ルmレzラン゙MNPK ^ /T / app/authkit/test/TestAuth.classハコセ-ョソ タ チツ テト ナ ニヌ ネ ノハ テヒ フヘ テホマ ミム メ Fモ ]ヤ ユヨ ラリル レ ロワ ン ゙ ゚ ニノ '  ゚    ] ]         F   ]  ]   ] ミ  ' W    ]  !"#$ %&'( ) * +,-. ミ/  012345 ]678 9 ]:; <=> }?@ AB +C +D <E FG <HI JKLBETWEENLjava/lang/String; ConstantValueAVAILPREAUTHAUTH_WAUTH_WOPUTGETRELEASEDESTROYVERSIONSNOOZEATJAVA myBetweenmain([Ljava/lang/String;)VCodeLineNumberTable()VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V decodeActions6(Lglguerin/authkit/Authorization;[Ljava/lang/String;)VasVector'([Ljava/lang/Object;)Ljava/util/Vector;doAvail7(Lglguerin/authkit/Authorization;[Ljava/lang/String;I)V doPreauthdoAuth8(Lglguerin/authkit/Authorization;[Ljava/lang/String;IZ)VdoPut ExceptionsM writeSecret5(Lglguerin/authkit/Authorization;Ljava/lang/String;)VdoGetV(Lglguerin/authkit/Authorization;[Ljava/lang/String;I)Lglguerin/authkit/Authorization;NO doVersiondoSnoozedawdle(I)VdoExec SourceFile TestAuth.javaTestAuth.main(): starting... PQ RSjava/lang/StringBuffer 「」Authorization: TUV WX TY Z[app/authkit/test/TestAuth dont-care 、・TestAuth.main(): done... between:\ ]^ _` ab ヲァ&glguerin/authkit/UnauthorizedException cd"java/lang/IllegalArgumentException ィゥ efjava/util/Vector 「サ g」h ij kl mn op qrjava/lang/String st -----with: uv ()# Release: w」## Destroy: xysee ェォpre ャォau+ ュョau-put ッォver クォzzz ケォget エオ got:  detach: シァjava/lang/Throwableglguerin/authkit/Privilege 「Q Privilege: z{ Past Granted... |} ~ preauth:  auth: イウ  ## Secret identifier:  rjava/io/FileOutputStream  wrote: 」 jglguerin/authkit/Authorization. 」 ウ java.version:  java.version??? java.home:  java.home java/lang/NumberFormatException sleeping: T コサ java/lang/InterruptedException@   auth.bin.javabinjava Executing:  process:  class: [ app/authkit/test/Digester。 「」MD5 「、Digester-daemon・ ヲァ ィサ ゥ」 ェォ ャ」 secret bytes to child ュrUnexpectedly interrupted exited:  sleeping a few seconds...app/authkit/test/AuthTestjava/io/IOException java/lang/IllegalAccessException java/lang/InstantiationExceptiontell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;EMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)Zexplain(Ljava/lang/Throwable;)Velements()Ljava/util/Enumeration;removeAllElementsjava/util/Enumeration nextElement()Ljava/lang/Object;equals(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)VhasMoreElements()Zsize()IcopyInto([Ljava/lang/Object;)VgetWhich4(Lglguerin/authkit/Authorization;)Ljava/lang/String;releasedetach(Z)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V tellGranted5(Ljava/lang/String;Lglguerin/authkit/Authorization;)V preauthorize(Lglguerin/authkit/Privilege;)V authorize (Lglguerin/authkit/Privilege;Z)VgetSecretIdentifier()[BoutLjava/io/PrintStream;putHexTo?(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;[BI)Vlengthjava/io/OutputStreamwrite([B)Vclosejava/lang/Class newInstanceattachPrivileged resessionjava/lang/IntegerparseInt(Ljava/lang/String;)I(I)Ljava/lang/StringBuffer;java/lang/Threadsleep(J)V arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V java/io/File separatorexecPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getName isCapable(I)Zjava/lang/ProcessgetInputStream()Ljava/io/InputStream;?(Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/lang/String;)Vglguerin/util/Streamer makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread; setPrioritystartgetOutputStream()Ljava/io/OutputStream;flushwaitFor! 3579:@-0<>oq c7ククLサYキカ+カカ カ クサ Yキ + *カクア。 #16「」0*キ*クオア。  、・h(+イカW*+-キァ:クァ :ククア。 "$"&''ヲァ  *,キカNサY,セキ:ァカ ァ$-ケ!カ":*エカ#ァカ$-ケ%ルカ&6-ケ%アァケス':カ(2:サYキ)カ*+カ*カ+カカ,カカ ク-カ#$サYキ.カ*+カ*カカ ク+カ/ァ%0カ#%サYキ1カ*+カ*カカ ク+カ2ァ3カ#*+キ4ァ5カ#*+キ6ァマ7カ#*+キ8ァケ9カ#*+キ8ァ」:カ#*+キ;ァ<カ#*+キ=ァy>カ#*+キ?ァd@カ#S*+キA:+・JサYキBカ*カ*カカ クサYキCカ*+カ*カカ ク+カ2Lァ *+キDァ,:クァ":クァ:  クァアoooE。ハ25 79=?*@6A9C@=IGPHUJ^KaPhQoVuXZィ]ツ^ノ`モcdfi knp)s5u?xKzU}`ju、ソル゙「、 ヲィゥI!サY+セキM>ァ ,+2カ$+セ。,ー。ャ ュョューェォk7,セ「'ァサFY,2キG:*H+カI,セ。蟋Jク*H+カKア。"キケ サシ!ケ*チ/ツ6トャォo?ァ8サFY,2キG:サYキHカカ カ ク+カL*M+カI,セ。ネア。ハフヘ)ホ/ム8ハ>モュョqAァ:サFY,2キG:サYキHカカ カ ク+カN*O+カI,セ。ニア。ルロワ)ン1:ル@ッォb2,セ「ァ*+,2キP,セ。ァ+カQ:*イRSTカUア。 #1ーアイウ・Y,ニ ,カVアN:サWY,キX:+カQN-カYサYキZカ,カカ クィァ:ィソ:ニカ[ゥアBB。2     & < BQXーアエオk7+:,セ「.+カカ\タ]:,2:^カ# カ_ァ *カ`ー。"!$ (+/$0,246ーカキクォY9サYキaカbcクカカ クサYキdカecクカカ クア。AB8Cーカキケォ?6,セ「,2クf6ァ:66サYキhカカiカ ク*キjア g。& MQ TVYZ!]8_>`ーアコサ:kiクmァM,クア n。g ijシァニ ヨ>,2oカ#,セdス':,セクpM>,2qカ#SサYeクキr:イsカWtク:カVカWァuカイsカvカW,カ SサYキwカ,2カカ ク+,カx:サYキyカカ カ クサYキzカカカ{カカ ク+カ|1サ}Yカ~イRキ:カ: カカ┤:+カ|:カ:+カQ:カYカカ[サYキZカセカiカカ クィァ;:クィァ.:ィソ:ニ6 ァ  T  セ。:ゥ+ カ|3カ6ァ:サY温漢サYキ狂カiカ クァ 減*キjアワTZEgg「・n。セ/vz |}!~$&1AJS[fyキヤワ・ヲァゥェャ アウカ キ&ク-ケ2コ7サTシZセgツvト|ナトニヘム・モアユヒルミレユワスセPK ^ / 、!app/authkit/test/TestDetach.classハコセ-P $ %& $' ( )* + , -. $ /0 12 34 356 78 9:()VCodeLineNumberTablemain([Ljava/lang/String;)VtestAuthPrivileged#(Lglguerin/authkit/Authorization;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestDetach.java  ;<java/lang/StringBufferAuthorization: =>? @A =B CD EFapp/authkit/test/TestDetach interact GHTestDetach.main(): done... I J KL&glguerin/authkit/UnauthorizedException EM"java/lang/IllegalArgumentException NOapp/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vglguerin/authkit/AuthorizationattachPrivilegeddetach(Z)V(Ljava/lang/Throwable;)V resession5(Lglguerin/authkit/Authorization;Ljava/lang/String;)V! *キア& uAクLサYキカ+カカカ ク サ Yキ M*セ ,+キ ァ ,+*カク ア"013&6+739;;@<V+カ+カァM,クァN-クア  GH I KMN !, *+-カ+カア[^ _"#PK ^ /jrフフ&app/authkit/test/TestExternalize.classハコセ-W %& ' () %* + ,- . /0 %1 234 56 789: 7; <= 7>?()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestExternalize.java #TestExternalize.main(): starting... @A BCjava/lang/StringBufferAuthorization: DEF GH DI JK app/authkit/test/TestExternalizeinteract LM TestExternalize.main(): done... glguerin/authkit/Privilege A #Denied: N OP Granted: ## Secret form: QRS TU Vapp/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vglguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)ZgetSecretIdentifier()[B app/hex/DumphexBlock(Ljava/lang/String;[B)Vrelease! *キア'  c7ククLサYキカ+カ カ カ クサ Yキ +*カクア02 3#51768!"t@サY-キ::+カ:サYキカカ カ ク+カク+カア"@ CDEG2J;K?L#$PK ^ /慶ヲ2!app/authkit/test/TestLoader.classハコセ-| *9: *; <= )> )? <@A 9B C DE FG HI <HJ )KL <MNOPQ RS *TUV WXYZ[\]^_`abcd listProps[Ljava/lang/String;()VCodeLineNumberTablemain([Ljava/lang/String;)V tryLoading.(Lglguerin/util/LibLoader;Ljava/lang/String;)VtellProperties SourceFileTestLoader.java -.TestLoader.main(): starting... efg hi +, 52 jkjava/lang/StringBufferLibLoader class: lmn opq rs ts loads from:  34TestLoader.main(): done... ufLoaded: java/lang/UnsatisfiedLinkErrorUnsatisfiedLinkError:  -- vsjava/lang/Throwable wx-- System properties... y z{  = java/lang/Stringjava.library.pathsun.boot.library.path java.ext.dirsjava.class.path java.homeuser.dirglguerin.util.LibLoader.impapp/authkit/test/TestLoaderapp/authkit/test/AuthTesttell(Ljava/lang/String;)Vglguerin/util/LibLoader isVerboseZ makeLoader()Lglguerin/util/LibLoader;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;java/lang/ClassgetName()Ljava/lang/String;toString loadLibrary getMessageexplain(Ljava/lang/Throwable;)Vjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;!)* +,-./*キア0 12/ャhクウイククLサYキ  カ +カ カ カ カクサYキ カ +カカ カクク=ァ +*2ク*セ。クア02 03 589/:H;M=R>Y=b@gA 34/O*+カサYキ カ +カ カクァ.MサYキ カ +カ カ ,カカ カクァN-ククアD0LMNPDRITNU 52/wCク>ァ0*2L+クMサYキ カ +カ  カ ,カ カク*セ。ミクア0"ac efg4c=iBj6./E-ス!Y"SY#SY$SY%SY&SY'SY(Sウア078PK ^ /ツ47V(( app/authkit/test/TestPrivs.classハコセ-J "# $ %& "' ( )* + ,- ". /01 23 45 678()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestPrivs.java TestPrivs.main(): starting... 9: ;<java/lang/StringBufferAuthorization: =>? @A =B CDapp/authkit/test/TestPrivsinteract EFTestPrivs.main(): done... glguerin/authkit/Privilege : Privilege: G HD I upper: app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/String toUpperCase((Ljava/lang/String;Ljava/lang/Object;I)V! *キア c7ククLサYキカ+カ カ カ クサ Yキ +*カクア(* +#-1/60pHサY-キ:サYキカカ カ クサY--カキ:サYキカカ カ クア7 8!:0;G< !PK ^ /ル鬣ァァ#app/authkit/test/TestReattach.classハコセ-d () * +, (- . /0 1 23 4 567 (8 9: ; < =>?@ AB C DE()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestReattach.java  TestReattach.main(): starting... FG HIjava/lang/StringBufferAuthorization: JKL MN JO PQ## Secret form: RST UVapp/authkit/test/TestReattachinteract WXTestReattach.main(): done... YZ [V\ ]^glguerin/authkit/Authorization java/lang/IllegalAccessException _` java/lang/InstantiationException a bcapp/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;getSecretIdentifier()[B app/hex/DumphexBlock(Ljava/lang/String;[B)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V tellWhich#(Lglguerin/authkit/Authorization;)VputHexTojava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)Vreleaseattach([B)V! *キア! "# p@ククLサYキカ+カ カ カ ク +カ クサYキ+*カクア!(* +#-,/:1?2$% ・Q*+カ+カ :*-カ:+カ カタ:ァ:クア:クアカカ*カ*-カ カア!$!,!2 EF GIK$M,O4Q9R@TFUPV&'PK ^ /#(ff&app/authkit/test/TestReleaseSelf.classハコセ-g )* + ,- ). / 01 2 34 ) 56 78 9:;< => ? @ AB C D EF()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestReleaseSelf.java  #TestReleaseSelf.main(): starting... GH IJjava/lang/StringBufferAuthorization: KLM NO KP QR app/authkit/test/TestReleaseSelf STinteract UV TestReleaseSelf.main(): done... W XYglguerin/authkit/Authorization java/lang/IllegalAccessException Z[ java/lang/InstantiationException \] ^_ `a Privilege: bc de f app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String; tellWhich#(Lglguerin/authkit/Authorization;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)VgetSecretIdentifier()[Battach([B)VmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V authorize (Lglguerin/authkit/Privilege;Z)Vrelease!  !*キア"! #$!r>ククLサYキカ+カ カ カ クサ Yキ M,+カ,+*カクア""*, -#/+00183=4%&!ク`:+カ カタ:ァ:クア:クア+カ:カ-カ:*カカカカ*カア"6 GIKM"P(U/X7YA\I_N`Uc_h'(PK ^ /bミgapp/authkit/test/TestTwo.classハコセ-n !0 12 !3 !45 06 7 89 : ;< 0= !>? @ABC !D E FG H I !JK !L MNOPmyOther Lglguerin/authkit/Authorization;()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)Vobtain@(Lglguerin/authkit/Authorization;Lglguerin/authkit/Privilege;Z)V SourceFile TestTwo.java $% "#TestTwo.main(): starting... QR STjava/lang/StringBufferAuthorization: UVW XY UZ [\app/authkit/test/TestTwointeract ]^TestTwo.main(): done... _ `aglguerin/authkit/Authorizationjava/lang/Throwable bc de fgglguerin/authkit/Privilege $R ,- hi avail: jk lm&glguerin/authkit/UnauthorizedException auth: app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)VEMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)Z tellWhich#(Lglguerin/authkit/Authorization;)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V authorize (Lglguerin/authkit/Privilege;Z)V! !"#$%&* *キ*オア'-A - ()&c7ククLサYキカ +カ カ カ クサ Yキ+*カクア'68 9#;1=6>*+&I*エヌ'*+カ カタオァ :クア*エイカWサY-キ:*+キ**エキア'"MPR V+Y5[=\H],-&U!*+カ*,+カ+,カァ:* ,+カア 'cd hjm n./PK  t4app/authkit/tools/PK ^ /qP)N N )app/authkit/tools/AppBundleLockdown.classハコセ-ツ =GH G I =J KL MNO =PQR STU 8VWXYZ [\] =^ M_ M`a =bc =de fg Shi jklmno =pq Sr Ms tu =vw ,Gx ,y ,z ,{| =} =~ M S =()VCodeLineNumberTablemain([Ljava/lang/String;)Vperform SourceFileAppBundleLockdown.java >?#app/authkit/tools/AppBundleLockdown DC   -psn_ os.name Mac OS  os.version10.0java/io/IOExceptionCan't run under Mac OS 10.0 >alerttrue "Choose an application to lock down  Cancelled 。 keep.DS_Store「 」 、・envoy.keep.DS_Storeヲ ァィbin/javaapp.authkit.envoy.Envoyenvoy.-app.authkit.tools.tasks.AppBundleLockdownTask ゥェverbose ォャ ュョッ ーア イウjava/lang/StringBuffer"Envoy process failed: status code エオ エカ キクLockdown Failed ケコ サシ&glguerin/authkit/UnauthorizedExceptionjava/lang/Throwable スセjava/lang/StringLocked down these app-bundles: ソタSuccess \チapp/authkit/envoy/ToolnewAuth"()Lglguerin/authkit/Authorization;glguerin/authkit/PrivilegeEMPTYLglguerin/authkit/Privilege;glguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)Z stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;java/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; startsWith(Ljava/lang/String;)Z(Ljava/lang/String;)VpresupposeProperty'(Ljava/lang/String;Ljava/lang/String;)VmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; preauthorize(Lglguerin/authkit/Privilege;)V chooseTarget((Ljava/lang/String;I)[Ljava/lang/String;mustBeAppBundle&(Ljava/lang/String;)Ljava/lang/String;java/lang/Boolean getBoolean getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;makeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;outLjava/io/PrintStream;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;failed+(Ljava/lang/Throwable;ZLjava/lang/String;)Vdepart(I)Vdetach(Z)V arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V((Ljava/lang/String;[Ljava/lang/Object;)V!=>?@*キアAb BC@$ サYキ*カアAhDC@N n*カM,イカW*+カ L>  ク  カ ク カ サYキソ+セ+*カ,,カカ* カL+ヌ サYキソ6ァ+*+2カS+セ。クク カ!W*"#$%+カ&::'クイ(:,カ):*カ*カ+>サYサ,Yキ-.カ/カ0カ1キソィPァV:*2カ3*カ4ィ:ァ@:*2カ3*カ4ィ$ァ*:*2カ3*カ4ィァ:ィソ: ,カ7ゥ +セ`ス8:9S++セク:*;カ<*カ4ア 5 666Aョ+rs xz&5?DLU^blr~」ォゥョェカォサッテーマウモエキサシス チツテ ヌ+ネ0ノ6ヘGムPメVモ`ヨhリmルEFPK ^ /、Z゚l%app/authkit/tools/PerformAsRoot.classハコセ-^ #$ # % & '( )*+ ,-./ 0 )1 23 45 67 8 9 :; < )=>()VCodeLineNumberTablemain([Ljava/lang/String;)Vperform SourceFilePerformAsRoot.java app/authkit/tools/PerformAsRoot  ?@A BCD EF-psn_ GHbin/javaapp.authkit.envoy.Envoyenvoy. IJ KLM NOP QR ST&glguerin/authkit/UnauthorizedException UV WX YZjava/lang/Throwable W[ \]app/authkit/envoy/ToolnewAuth"()Lglguerin/authkit/Authorization;glguerin/authkit/PrivilegeEMPTYLglguerin/authkit/Privilege;glguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)Z stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;makeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream;java/lang/SystemoutLjava/io/PrintStream; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)I getMessage()Ljava/lang/String;explain(Ljava/lang/String;)Vdepart(I)V(Ljava/lang/Throwable;)Vdetach(Z)V!*キア; $ サYキ*カアA *カM,イカW*+カ L+セア>*   +カ :,カ:*カイカ>ィ7ァ=:*カカ*カィ!ァ':*カ*カィァ:ィソ:,カゥ*カアAGA]ppNJK PSTV\,b4cAdGhRiWj]neojpptwx!"PK  t4app/authkit/tools/tasks/PK ^ /#'~ワ__3app/authkit/tools/tasks/AppBundleLockdownTask.classハコセ-x ': ;< ;=> ?@A :B C D 'E &FG &H &I &J 'K LM 'NO PQRSTUVWXYZ[\]^_`abREPLACELjava/lang/String; ConstantValueDELETER[Ljava/lang/String;CHMODCHOWN()VCodeLineNumberTableperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)Iexecute:([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I SourceFileAppBundleLockdownTask.java /0c de fgenvoy.keep.DS_Storeh ijjava/lang/StringBufferLocking down: kl mn op +,$ARG 56 -, ., qrs tu 5v: failed with exit code kwjava/lang/String /usr/bin/find-Pdx-name .*DS_Store-typef-exec/bin/rm{}; /bin/chmod-RPu-s,a-w/usr/sbin/chownroot-app/authkit/tools/tasks/AppBundleLockdownTask"app/authkit/tools/tasks/CommonTaskglguerin/authkit/AuthorizationmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/Boolean getBoolean(Ljava/lang/String;)Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)V substituteL([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;java/lang/SystemerrLjava/io/PrintStream;W([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)I(I)Ljava/lang/StringBuffer;!&'()* +, -, .,/01*キア2N341,カN,-カク666ァh+2:*サYキカ カ カ カ *イ  キ6ァ7*イ キ6ァ"*イ キ6ァ +セ。ャ2N 「・ァ"ェ:ュ?ッLーQアTエaオfカiクvケ{コ~・ス561e=*+,-カ:*イカ6"*サYキ2カ カ カカ カ ャ2ヒ フヘホ:ミ701{ スYSYSY SYSYSYSYSYSYSY SY  Sウ スY!SY"SY#SY SウスY$SY"SY%SY Sウア2_Dj_tz_89PK ^ /ン、PTT(app/authkit/tools/tasks/CommonTask.classハコセ-p - ./ 01 .2 03 45 67 89 :; :<= >? @A B CD >EF >GH >IJKLMN()VCodeLineNumberTableproducesOutput()Zexplain(Ljava/lang/String;)V(Ljava/lang/Throwable;)V substituteL([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;executeW([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)Iperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFileCommonTask.java O PQR S TQ U#V WX YZ[Ljava/lang/String;[ \]^ _` abglguerin/util/Streamerc de fCmd-stdout-schlepper ghi j keCmd-stderr-schlepper lmCmd-stdin-schlepper nojava/io/IOExceptionjava/lang/InterruptedException"app/authkit/tools/tasks/CommonTaskjava/lang/Objectapp/authkit/envoy/Taskjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamflusherrprintlnjava/lang/ThrowableprintStackTrace(Ljava/io/PrintStream;)Vclone()Ljava/lang/Object;java/lang/Stringequals(Ljava/lang/Object;)Zjava/lang/Runtime getRuntime()Ljava/lang/Runtime;exec(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream;3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)V makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread;java/lang/ThreadstartgetErrorStreamgetOutputStream()Ljava/io/OutputStream;waitFor()I!*キア* !ャ6"#8イカイ+カイカア>? @A"$8イカ+イカイカアGH IJ%&[/+カタ:6ァ,2カ -Sセ。ーW XZ[!X,]'(モク +カ :サ Yシカ -キ:カカサ Yシカキ:カカ,ニ%サ Yシ,カキ:カカカャ:ャ:ャzzz~. |  +CNRitz~)*+,PK ^ /uTi、"app/authkit/tools/tasks/None.classハコセ- ()VCodeLineNumberTableproducesOutput()Zperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile None.java app/authkit/tools/tasks/Nonejava/lang/Objectapp/authkit/envoy/Task!*キア" ャ( ャ. PK ^ /Oイネ0レレ$app/authkit/tools/tasks/RunEat.classハコセ-&      ()VCodeLineNumberTableperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile RunEat.java    !" #" $%app/authkit/tools/tasks/RunEat"app/authkit/tools/tasks/CommonTaskglguerin/authkit/AuthorizationmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/SystemoutLjava/io/PrintStream;errexecuteW([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)I!  *キア "  ;,+2カN,-カ*+イイカャ EFIPK ^ /ワ4畛$app/authkit/tools/tasks/RunOut.classハコセ-   ()VCodeLineNumberTableproducesOutput()Z SourceFile RunOut.java app/authkit/tools/tasks/RunOutapp/authkit/tools/tasks/RunEat!*キア# ャ.  PK  t4app/hex/PK ^ /Kモゥゥapp/hex/Dump.classハコセ-P ' () *+, *-. / 0 1 2 3 4 *5 6 7 89 :; <=>?()VCodeLineNumberTabletext(Ljava/lang/String;)VnewLinehexLine.(Ljava/io/PrintStream;Ljava/lang/String;[BII)V(Ljava/lang/String;[BII)VhexBlock(Ljava/lang/String;[B)V(Ljava/lang/String;[BI)V SourceFile Dump.java @ ABC D Ejava/lang/StringBuffer F GF HI JK LM NO E  "$ BLOCK:  !BLOCK END ----- app/hex/Dump app/hex/Hexjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintprintln(I)V setLength appendDigits5(Ljava/lang/StringBuffer;JII)Ljava/lang/StringBuffer;reverse()Ljava/lang/StringBuffer;append(C)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!*キア! $イ*カア +, % イカア 56  ゥeサYキ:*+カ6ァIカ,3~ク Wカ W カ W~  カ W*カ カク*カ ア2 C EFHI,J2K:LLNUF`PdQ !# イ*+クア[ "#$*++セクア cd "$Mクク*クク+セ、+セ=>66ァ「6+ク`6d=ククア:mno prsuv$x,y6vD{I|L}%&PK ^ /錐?app/hex/Hex.classハコセ-7   ! " # $ %& %' ()*()VCodeLineNumberTablegetHex(II)Ljava/lang/String;(JI)Ljava/lang/String; appendHex4(Ljava/lang/StringBuffer;JI)Ljava/lang/StringBuffer; appendDigits5(Ljava/lang/StringBuffer;JII)Ljava/lang/StringBuffer; SourceFileHex.java  java/lang/StringBuffer +  ,- ./0 12 34 56 app/hex/Hexjava/lang/Object(I)Vreverse()Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/CharacterforDigit(II)C toUpperCase(C)Cappend(C)Ljava/lang/StringBuffer;!*キア # クー" 2サYキN-クカカ ー + , N&* ク ク カW}@ 爆゚*ー9:;<$= P(*qク ク カWm@ 爆ン*ーJKLM&NPK  t4 app/util/PK ^ /症ク[ [ app/util/BasicAlert.classハコセ-ネ 3X YZ 3[\ ] ^_`a b ^c de fgh ij k 2l 2m no ^pq ^rst u 2v wx Yy 2z f{| }~ fc ng f Y f 3 2 f SCROLL_VERTI ConstantValue SCROLL_HORZokLjava/awt/Button;boxLjava/awt/TextArea;=(Ljava/awt/Frame;Ljava/lang/String;ZLjava/lang/String;IIIFF)VCodeLineNumberTable makeTextArea*(Ljava/lang/String;III)Ljava/awt/TextArea; getTextArea()Ljava/awt/TextArea;position%(Ljava/awt/Window;FF)Ljava/awt/Point;goAway()VactionPerformed(Ljava/awt/event/ActionEvent;)V windowClosing(Ljava/awt/event/WindowEvent;)VwindowActivated windowClosedwindowDeactivatedwindowDeiconifiedwindowIconified windowOpened SourceFileBasicAlert.java @ java/awt/BorderLayout @  java/awt/FontDialog @ 。 「」、 ・ヲjava/awt/Panel @Kjava/awt/FlowLayout @ァ DE >?ィ ゥ ェォCenter ェャjava/awt/ButtonOK @ュ <= ョッSouth ーK HI アイjava/awt/TextArea @ウ SansSerif エオカ キク ケコサ シク スセソ タ7 チ7ツ テ7 ト7 ナ ニK JK ヌKapp/util/BasicAlertjava/awt/Dialogjava/awt/event/ActionListenerjava/awt/event/WindowListener&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/WindowaddWindowListener"(Ljava/awt/event/WindowListener;)V setResizable(Z)V(II)Vjava/awt/Container setLayout(Ljava/awt/LayoutManager;)V(Ljava/lang/String;II)VsetFont(Ljava/awt/Font;)Vjava/awt/ColorwhiteLjava/awt/Color;java/awt/Component setBackground(Ljava/awt/Color;)V(III)Vjava/awt/TextComponent setEditableadd*(Ljava/awt/Component;)Ljava/awt/Component;<(Ljava/lang/String;Ljava/awt/Component;)Ljava/awt/Component;(Ljava/lang/String;)VaddActionListener"(Ljava/awt/event/ActionListener;)Vpack setLocation(Ljava/awt/Point;)V(Ljava/lang/String;III)V getBounds()Ljava/awt/Rectangle;java/awt/RectanglegetSize()Ljava/awt/Dimension; getToolkit()Ljava/awt/Toolkit;java/awt/Toolkit getScreenSize getLocation()Ljava/awt/Point;java/awt/Dimensionheightwidthjava/awt/Pointyx setVisibledispose requestFocus!23456789:78;<=>? @ABA ユ*+,キ**カ*カ*サYキカ*サY キ カ *イ カ ~6サ Yキ:  サYキカ**カオ*エカ *エカW* カW*サYキオ*エ*カサ Yキ:  サY キカ *エカW* カW*カ*** カカアCZ./ 245.659=;F<W=g>o?y@BCEFーGコHテJヌLヤMDEBN*サ Y+キ!:サY" キ カ#イ カ$ーCVWX'YFGB*エーC_HIB Z+カ%:カ&:+カ'カ(:カ):$エ*エ*dj6%エ+エ+dj6  オ,  オ-ーC. ij lor.s?vDwKyPzW|JKB* *カ.*カ/アC LMB*カ0アCNOB*カ0アCPOB *エカ1アCQOBアCROBアCSOB *エカ1アC・TOBアCェUOB *エカ1アCッVWPK ^ /ィ,ヨヤヤapp/util/FileDialogger.classハコセ-p 789 :;< =>?@ABCDE F G H IJ K LM N O P :Q :RS TU VW TXYLOAD_DIRI ConstantValue LOAD_APP NO_PROPS[Ljava/lang/String; propNamesmakeFileDialog:(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/awt/FileDialog;CodeLineNumberTable runFileDialog3(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/io/File;%(Ljava/awt/FileDialog;)Ljava/io/File;9(Ljava/awt/Frame;Ljava/lang/String;I[Ljava/lang/String;)Vshow()V SourceFileFileDialogger.java &'os.nameZ [\Mac OS ]^java/lang/String"apple.awt.fileDialogForDirectories java.version1.11.3"apple.awt.use-file-dialog-packages(com.apple.macos.use-file-dialog-packagesapp/util/FileDialogger 01 )* -/_ `a bc dc java/io/File 0e 0f (' [g hitruej klm 23 nojava/awt/FileDialogjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; startsWith(Ljava/lang/String;)Zjava/awt/Component setVisible(Z)VgetFile()Ljava/lang/String; getDirectory'(Ljava/lang/String;Ljava/lang/String;)V&(Ljava/awt/Frame;Ljava/lang/String;I)V&(Ljava/lang/String;)Ljava/lang/String; getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;java/awt/Dialogremove&(Ljava/lang/Object;)Ljava/lang/Object;! !"#$!"%&'(' )*+゙幹N ==クカ,スYSN ク: カ  カ= 2=クカ!スN- S ク カ- SサY*+-キー,B9=@C F*L3MGNIROTQX`\eajbyc~h -.+" *+ククー,r -/+O#*カ*カL*カM+ニ,ヌーサY,+キー,{~ 01+.*+,キ*オア, 23+*エL+ヌイL+セスM>ァ#+2:ニ,クSクカW+セ。ン*キ6ァ3+2:ニ%,2:ヌクカWァクカW+セ。フア,R、・ ヲ ゥャョッ"ア*エ5ャ>ケBシHセNソSチYツ^テjナuシネ43+ スウア,-56PK ^ / glguerin/PK  t4glguerin/authkit/PK ^ /[ゥn||$glguerin/authkit/Authorization.classハコセ-ー 'pq p &r &st &u v wxy z {| } ~ & &  p    &    HAS_PROCESS_COUPLED_STREAMSI ConstantValueHAS_PROCESS_INPUTSTREAMHAS_PROCESS_OUTPUTSTREAMHAS_PROCESS_ERRORSTREAMHAS_PROCESS_EXITVALUEHAS_PROCESS_WAITFOR HAS_PROCESS_DESTROY@HAS_PROCESS_ELEVATEDHAS_SYNTHETIC_PREAUTHHAS_SESSION_MULTIPROCESS WHEN_EARLIEST WHEN_LATEST pastGrantedLjava/util/Hashtable;()VCodeLineNumberTablefinalize ExceptionsgetCapabilities()I isCapable(I)Z authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zattach([B)VattachPrivilegeddetach(Z)VreleasegetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date; keysGranted whenGranted addGranted clearGrantedmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[BgetPublicIdentifier()Ljava/lang/String;makeFingerprint(Ljava/lang/String;)[BformFingerprint((Ljava/lang/String;[B)Ljava/lang/String; SourceFileAuthorization.java CDjava/util/Hashtable AB VWjava/lang/Throwable IJ Z [Jjava/util/Date C DMD5 jk lm。 「」&java/security/NoSuchAlgorithmException&glguerin/authkit/UnauthorizedExceptionjava/lang/StringBufferMissing MessageDigest imp: 、・ ヲi Cァ fg ィD ゥT ゥェ ォg0123456789ABCDEF 、ャュ ョッglguerin/authkit/Authorizationjava/lang/Objectkeysget&(Ljava/lang/Object;)Ljava/lang/Object;(J)Vjava/lang/SystemcurrentTimeMillis()Jput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;clearjava/security/MessageDigest getInstance1(Ljava/lang/String;)Ljava/security/MessageDigest;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString(Ljava/lang/String;)Vresetupdate(B)Vdigest(C)Ljava/lang/StringBuffer;java/lang/StringcharAt(I)C!&' ()*+,)*-.)*/0)*12)*34)*56)*78)*9:)*;<)*=>)*?@)*+ABCDE0*キ*サYキオアFjklGDE2 *カァLアF~ HIJKLE(*カ~ァャF、MNOPQRSTUDVWXDE*カアFテYZ[\]ZE *エカーF^\EN&#」*エ+カ タ N-ニサ Y-/キ ーーF  $_PEHク A*エ:ツ*エ+カ タ :ヌシ : P*エ+カW Pテァ :テソア ??F* "$ ()+$,)-4091G2`DE *エカアF;abcdeJfghiE*L*+*+カカーF !"jkE +クMァNサYサYキカ+カカキソN:*カN-セ;,カ,-カ-セ6,z存,z存,z存,存,カ :ィァ.:ィソ:-ニ6ァ -T-セ。N,カゥー)qqFZUW$]&^)b.c3i7k<n@oJpTq^retkyq}lmEW,ニ,セ!ー"NサY+キ#:カ$:6ァ),36-z~カ%カ$-~カ%カ$W,セ。ヨカーF& ュ ョ イコサ$ス*セGサQチnoPK ^ /glguerin/authkit/imp/PK  t4glguerin/authkit/imp/macosx/PK ^ /9ニァネネ1glguerin/authkit/imp/macosx/AuthProcess$FIn.classハコセ-C % & ' ( )*+ , -./ %0 1 2 3 -458one[BmyFDI(I)VCodeLineNumberTablefinalize()V Exceptions9read()I([BII)Iclose SourceFileAuthProcess.java    " !java/io/IOExceptionClosed :; <java/lang/StringBufferErrno: => =? @A "B+glguerin/authkit/imp/macosx/AuthProcess$FInFIn InnerClassesjava/io/InputStreamjava/lang/Throwable(Ljava/lang/String;)V'glguerin/authkit/imp/macosx/AuthProcess(I[BII)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(I)I!5*キ*シオ*オア *カア A**エカ<*エ3~ャャ。 「」・!}I*エ サYキソ*エ+ク 6ャャサYサ Yキ  カ tカカキソ"アイオカ"キ%ケ*コ,シ"f6*エ1*エ<*オク=サYサ Yキ  カ カカキソアニネ ノヒフヘ5マ#$7 -6 PK ^ /」Vィィ2glguerin/authkit/imp/macosx/AuthProcess$FOut.classハコセ-B $ % & ' ()* + ,-. $/ 0 1 2 ,347one[BmyFDI(I)VCodeLineNumberTablefinalize()V Exceptions8write([BII)Vclose SourceFileAuthProcess.java    !  java/io/IOExceptionClosed 9: ;java/lang/StringBufferErrno: <= <> ?@ !A,glguerin/authkit/imp/macosx/AuthProcess$FOutFOut InnerClassesjava/io/OutputStreamjava/lang/Throwable(Ljava/lang/String;)V'glguerin/authkit/imp/macosx/AuthProcess(I[BII)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(I)I!5*キ*シオ*オア *カア3*エ禅**エカア mA*エ サYキソ*エ+ク 6 サYサ Yキ  カ tカカキソア # @ !f6*エ1*エ<*オク=サYサ Yキ  カ カカキソア 5"#6 ,5 PK ^ /Hシii-glguerin/authkit/imp/macosx/AuthProcess.classハコセ-E 3 45 6 78 6 9:; <=>?@AFOut InnerClassesFInmyNameLjava/lang/String;inLjava/io/InputStream;outLjava/io/OutputStream;(Ljava/lang/String;II)VCodeLineNumberTabletoString()Ljava/lang/String;getOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;getErrorStreamwaitFor()I ExceptionsB exitValuedestroy()Vread(I[BII)Iwriteclose(I)I SourceFileAuthProcess.java + +glguerin/authkit/imp/macosx/AuthProcess$FIn C ,glguerin/authkit/imp/macosx/AuthProcess$FOut "java/lang/IllegalArgumentExceptionNo stderr stream D No waiting No exit value Can't destroy'glguerin/authkit/imp/macosx/AuthProcessjava/lang/Processjava/lang/InterruptedException(I)V(Ljava/lang/String;)V1 J"*キ*+オ*サYキオ*サYキオア9: ;<!=*エーB !*エーJ"#*エーQ$#" サ Y キ ソZ%&" サ Y キ ソe'()&" サ Y キ ソo*+" サ Yキ ソx ,- .- /012  PK ^ /$yO5glguerin/authkit/imp/macosx/MacOSXAuthorization.classハコセ-ミ @ ? ? ? @ ? ? # # # ? ?        @ ? @ @ # #。 *「」、 ・ヲ ?ァィ -ゥ ?ェ ?ォャュョ 2 ?ッ ?ー アイウ アエオカDEFAULTI ConstantValueINTERACTEXTENDDESTROYPREAUTH paramErrors[I mySession()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zclaim (Lglguerin/authkit/Privilege;I)Icheck(I)Vdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged makeSession([I)I killSession(II)Irequest(IILjava/lang/String;[BI)IrootExec,(IILjava/lang/String;[Ljava/lang/String;[I)I externalize(I[B)I internalize([B[I)IinternalizePriv(I[I)I SourceFileMacOSXAuthorization.java PQ OB \] ^_ キY VW pq クケ コl サU tu MN"java/lang/IllegalArgumentExceptionjava/lang/StringBufferAuthorization error: シス シセ ソケ Pタ)glguerin/authkit/UnauthorizedCancellationAuthorization cancelled&glguerin/authkit/UnauthorizedExceptionAuthorization denied: チQ rs ツcDon't know when: テeglguerin/authkit/Privilegesystem.privilege.admin Pト ナニNull or empty String[] ヌUNull or empty commandjava/lang/Stringネ ノハ vw'glguerin/authkit/imp/macosx/AuthProcess Pヒ fg xyNull or insufficient byte[]java/lang/IllegalStateExceptionSession active z{ |}フ ヘホAuthKit マタ/glguerin/authkit/imp/macosx/MacOSXAuthorizationglguerin/authkit/Authorization addGrantedgetName()Ljava/lang/String;getValuegetFlagsappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString(Ljava/lang/String;)V clearGranted keysGranted whenGranted((Ljava/lang/String;Ljava/lang/Object;I)VEMPTYLglguerin/authkit/Privilege;lengthjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V(Ljava/lang/String;II)Vglguerin/util/LibLoader getLoader()Lglguerin/util/LibLoader; loadLibrary1?@ABCDEBCFGBCHIBCJKBCLMNOBPQR* *キ*オアSソタ チTURャSVWRF>>**+キキ*+カアS,./ 134XYR*+カアSHZ[R'*+キァャSP"\]RW/*エシ N*-クキ*-.オ*エ+カ+カ +カ ク ャSac deh^_Rュmア  <=ァ*イ.サYサYキカカカキソイセ。ヤ サYキソサYサYキカカカキソS. vw 7BHR!`aR`(==*エ*カ*エ>*オ*クキアS&  」ィゥア'ウbcR*カ ーSタdeRK+、サYサYキ!カカカキソ*+カ"ーSフ ヘ$マfgR$ サ#Y$+キ%ーShiRチy*イ&キW+ニ+セ サY'キソ+2M,ニ ,カ( サY)キソ+セdス*N+--セク+シ :**エ,-ク,キサ-Y,..キ.:**,カ/カーS6    +5=F$K%[(m,v.jUR ャS:!klRI*エ<シー シM*,ク0キ,ーSOP Q TUW!mnRw?+ニ +セ 「 サY1キソ*エ サ2Y3キ4ソ*カシ M*+,ク5キ*,.オアS& r suv&y*{.|7}>~!oQRZ**エ サ2Y3キ4ソ*カシ L*+ク6キ*+.オアS。"「)」*pq*rs*tu*vw*xy*z{*|}~QRM-シ YOY7OY8OY9OY:OY;Oウク<=カ>アS・$ィ,。PK  t4glguerin/authkit/imp/plain/PK ^ /;)ケ  5glguerin/authkit/imp/plain/DenyAllAuthorization.classハコセ-T 789 7: ; < = >? @ ABC DEFG HIJemptyLjava/util/Hashtable;()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged SourceFileDenyAllAuthorization.java &glguerin/authkit/UnauthorizedExceptionjava/lang/StringBufferAuthorization denied: KL KM NO PPreauthorization denied:  Q'glguerin/authkit/Privilegeexec.root.denied RExecution denied: Authorization deniedjava/util/Hashtable S/glguerin/authkit/imp/plain/DenyAllAuthorizationglguerin/authkit/Authorizationappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)Vkeys((Ljava/lang/String;Ljava/lang/Object;I)V(I)V!*キア5ャ;3サYサYキカ+カカキ ソF !3サYサYキ カ+カカキ ソQ"#ャ\$%アf&'イ カ ーp()ーy*+$ サ Y+キー,-5サYサYキカ+2カカキ ソ. ャ/0" サYキ ソョ12" サYキ ソシ3" サYキ ソニ4% サYキウ ア.56PK ^ / ? @ A BCD >E F G H I JKL M NO NP QRS T >UV IWX isAttachedZ()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged SourceFileGrantAllAuthorization.java !  Y) Z! [/"java/lang/IllegalArgumentExceptionjava/lang/StringBufferIllegal when-code: \] \^ _` a b1glguerin/authkit/Privilegeexec.root.granted cd ef g5 23java/io/IOExceptionExecution failed: 6%java/lang/IllegalStateExceptionSession active0glguerin/authkit/imp/plain/GrantAllAuthorizationglguerin/authkit/Authorization addGranted clearGranted keysGrantedappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)V whenGranted((Ljava/lang/String;Ljava/lang/Object;I)Vjava/lang/Runtime getRuntime()Ljava/lang/Runtime;exec! !"" *キ*オア#H$%"~ャ#R&'"# *オ*+カア#e()"# *オ*+カア#r*+"*オャ#|,-"" *オ*カア#./"*カー#01"K+、サYサYキ カ カ カ キ ソ*+カー# $「23"$ サY+キー#ョ45"h8*オク+カM**+2カカ,ーMサYサYキカ +2カ カ キ ソ#ニハ ヒフマ6%"ャ#レ78"Y)*エ!*カシL=ァ +qT+セ。+ーシー##%9:"O'+ニ +セ*カ「 サYキソ*エ サYキソア#    & ;!"2*エ サYキソア#<=PK ^ /ユョ\マ・・ glguerin/authkit/Privilege.classハコセ-k @ "ABC D EF DG H& "IJ KL "MN OPQR "S TU V W X M Y OZ[ O\] D ^_EMPTYLglguerin/authkit/Privilege;NOVALUE[BnameLjava/lang/String;valueflagsIasStr(Ljava/lang/String;)VCodeLineNumberTable((Ljava/lang/String;Ljava/lang/Object;I)VgetName()Ljava/lang/String;getValue()[BgetFlags()ItoStringhashCodeequals(Ljava/lang/Object;)Z()V SourceFilePrivilege.java -1 -=java/lang/NullPointerExceptionName can't be null -. %&java/lang/StringBuffer: `a bcbyte[ `d] 83UTF8e fg$java/io/UnsupportedEncodingException Unencodeable hij 23 '( )& *+ ,( 97glguerin/authkit/Privilege :; #$java/lang/Objectappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;clone()Ljava/lang/Object;(I)Ljava/lang/StringBuffer;java/lang/StringgetBytes(Ljava/lang/String;)[BgetClass()Ljava/lang/Class;java/lang/Class1"#$%&'()&*+,( -./ *+キア0m-1/ャ*キ+ヌ サYキソイ:サY+キ カ :,ヌァ_,チ %,タ カ タ : カ セカカ Wァ6,カ:カ:カ Wァ:イ:カ ,カカカ W*+オ*オ*オ* カ カカオアVmp0V&*-4@V「\」e、m・pィwゥョッーアォイ23/*エー0ク45/# *エカ タ ー0ス67/*エャ0ツ83/*エー0ネ97/ *エカャ0ム:;/イj*+ヲャ+チ]+タM*エ,エカJ*エ,エ?*エセ,エセ2*エN,エ:6-セ6ァ-33ャ。ャャ06 9>DNZ\fh<=/3シウサYキ ウ!ア0WXU>?PK ^ /$Vゥ/glguerin/authkit/UnauthorizedCancellation.classハコセ-    (Ljava/lang/String;)VCodeLineNumberTable SourceFileUnauthorizedCancellation.java )glguerin/authkit/UnauthorizedCancellation&glguerin/authkit/UnauthorizedException!*+キア& PK ^ /レワ,glguerin/authkit/UnauthorizedException.classハコセ-    (Ljava/lang/String;)VCodeLineNumberTable SourceFileUnauthorizedException.java &glguerin/authkit/UnauthorizedExceptionjava/lang/SecurityException!*+キア# PK  t4glguerin/util/PK ^ /ウモ@ァ'glguerin/util/CaptureOutputStream.classハコセ-I &'( )* + , - . / 0 1 23 4 56 5789captured[BputIaroundZ(Ljava/io/OutputStream;I)VCodeLineNumberTable getCaptured()[Bwrite(I)V Exceptions:([BII)V SourceFileCaptureOutputStream.java ;"java/lang/IllegalArgumentExceptionjava/lang/StringBuffer <N must be >= 2: => =? @A B   C DE FGH  #!glguerin/util/CaptureOutputStreamjava/io/FilterOutputStreamjava/io/IOException(Ljava/io/OutputStream;)V()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)Vjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)VoutLjava/io/OutputStream;java/io/OutputStream!g7*+キ「サYサYキカカカキ ソ*シオ *オ *オ ア() *%,,-1.6/P*エ 5*エ セシL*エ セ*エ d=*エ *エ +ク *エ +*エ ク ァ*エ シL*エ +*エ ク +ー"=?@A(B9F@GNI Y1*エカ*エ *Yエ Z`オ 禅*エ *エ セ。 *オ *オ アSUV&W0X!"#*エ+カ*エ セ。'`*エ セd=+*エ *エ セク *オ *オ ア*エ `*エ セ。2*エ セ*エ d6+*エ *エ ク *オ *オ `=d>+*エ *エ ク *Yエ `オ アB` cef,g6h7oEsQt`ujvowt}x!"$%PK ^ /。オ)H H glguerin/util/LibLoader.classハコセ-ャ S TUV WX YZ &[ &\]^_ ` '` a b c d Wef `g h i j kl Wmn op qrst u vw Wxyz{|} &~  'j    isVerboseZ knownLoaderLglguerin/util/LibLoader; dirFallbackLjava/io/File; getLoader()Lglguerin/util/LibLoader;CodeLineNumberTable makeLoader()Vblab loadLibrary(Ljava/lang/String;)Vload#(Ljava/lang/String;Ljava/io/File;)VmakeFallbackDir()Ljava/io/File;toString()Ljava/lang/String; SourceFileLibLoader.java <= DAglguerin.util.LibLoader.imp  glguerin/util/LibLoaderjava/lang/ThreadDeathjava/lang/Throwable EF LM >? GF :; java/lang/StringBuffer# LibLoader dir: NO I HIjava/lang/UnsatisfiedLinkError JK$Don't know how to load JNI library: EI java/io/Filelib.jnilib E O# LibLoader: trying JIjava/lang/Classjava/lang/Object#com.apple.cocoa.foundation.NSBundle# LibLoader got NSBundle:  mainBundle 。「」 、・ resourcePathJava Eヲ java/lang/ClassNotFoundExceptionjava/lang/NoSuchMethodException java/lang/IllegalAccessException"java/lang/IllegalArgumentException+java/lang/reflect/InvocationTargetExceptionSystem.loadLibrary() ァィglguerin.util.LibLoader.debugゥ ェォjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;java/lang/Stringlength()IforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object;errLjava/io/PrintStream;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;java/io/PrintStreamprintln#(Ljava/io/File;Ljava/lang/String;)VgetAbsolutePath getMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;java/lang/reflect/Methodinvoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;'(Ljava/lang/String;Ljava/lang/String;)V pathSeparatorLjava/lang/String;java/lang/Boolean getBoolean(Ljava/lang/String;)Z! ' :; <=>? )@AB0イヌ クウイーCac f DABf*クK*ニ*カ*クカタ ーL+ソMサ Yキ ー ! Ctv{~!"EFB5*キ **カオ*カアC GFBC#イイサYキカ*エカカカアC"HIB:+クァ M*+*エカアCッアイJKBg,ヌサYサYキカ+カカキソサY,サYキ カ+カ!カカキ"カ#NイイサYキ$カ-カカカ-ク%アCヒフミCメIモbユfヨLMBpス&Lス'M(クNイイサYキ)カ-カカカ-*+カ+,カ,:--+カ+,カ,:サYカ./キ0ーLァMァNァ :ァ:ー[[1[_2[c3[g4[l5C: /=L[_cglnNOB5サYキ6カイ7カ*エカカーCPFB! 8ク9ウアCSQRPK ^ /FYuココ$glguerin/util/SinkOutputStream.classハコセ- ()VCodeLineNumberTablewrite(I)V Exceptions([BII)Vclose SourceFileSinkOutputStream.java glguerin/util/SinkOutputStreamjava/io/OutputStreamjava/io/IOException!*キア! ア*   ア2   ア;  PK ^ /;.glguerin/util/Streamer.classハコセ-N - . / 0 1 2 3 45 67 68 49 69 :;< = > ?@ABbuffer[BinLjava/io/InputStream; closeInputZoutLjava/io/OutputStream; closeOutputflush3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)VCodeLineNumberTablepump()J Exceptionsrun()V makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread; SourceFile Streamer.java (      C DEF GH ( I( $%java/io/IOExceptionjava/lang/Thread J K LMglguerin/util/Streamerjava/lang/Objectjava/lang/Runnablejava/io/InputStreamread([B)Ijava/io/OutputStreamwrite([BII)Vclose@(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V.(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V setDaemon(Z)V! !"Z&*キ*+オ*,オ*オ*オ*オ*オア#"EF HIKLM%N$%"ワ @ァ=*エ*エカ>ァ1*エニ*エ*エカ *エ *エカ a@*エヌツ*エニ *エカ *エ*エニ *エカ *エ*エニ *エカ ュ#J[`bcdfh,i3j:m?`FqMrTtbuiwwx~z&'("2 *カ XァLア# )*"K#,ニサY+*,キNァ サY+*キN-カ-ー#!+,PK ^ /vIy忍Eglguerin/util/VectorUtil.classハコセ-    ()VCodeLineNumberTableasVector(([Ljava/lang/Object;Z)Ljava/util/Vector; addToVector)(Ljava/util/Vector;[Ljava/lang/Object;Z)V SourceFileVectorUtil.java  java/util/Vector   glguerin/util/VectorUtiljava/lang/Object(I)V addElement(Ljava/lang/Object;)V!  *キア   2サY*セキM,*ク,ー    W'+ニ%>ァ+2:ヌ *カ+セ。豎 +- /01-&4PK ht4gnu/PK ht4gnu/io/PK ht4gnu/io/installer/PK ht45Pヲ仮シgnu/io/installer/installer.pref PK ht41ィ゚zz)gnu/io/installer/InstallInstruction.classハコセ14 #$ # % &' ( ) *+,dirpathsLjava/util/Hashtable;()VCodeLineNumberTableLocalVariableTablethis%Lgnu/io/installer/InstallInstruction; addResource#(Ljava/io/File;Ljava/lang/String;)VpathLjava/io/File;resourceLjava/lang/String;frgetKeys()Ljava/util/Enumeration;getPath"(Ljava/io/File;)Ljava/lang/String;f SourceFileInstallInstruction.java java/util/Hashtable -.java/lang/String /0 12 3#gnu/io/installer/InstallInstructionjava/lang/Objectget&(Ljava/lang/Object;)Ljava/lang/Object;equals(Ljava/lang/Object;)Zput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;keys!  >*キ*サYキオア  -+ニ,ヌア*エ+カタN-ニ -,カア*エ+,カWア  ",*---?*エヌー*エカ ー   Q+ニ *エヌー*エ+カター   !"PK ht4gnu/io/installer/macosx/PK  t4 f゙xx1gnu/io/installer/macosx/MACOSXRXTXInstaller.classハコセ1 L} K~ K K K K }   }    K  dlib 。 #「 #」 K、 #・ #ヲ #ァ Kィゥ #ェ #ォャ ュ #ョ ッーアイ ッウ エオカキ ク ケ コ サシ ス コセソ タチ ツテ ト ナ ニヌネノハヒJavaExtensionsLjava/lang/String; ConstantValue()VCodeLineNumberTableLocalVariableTablethis-Lgnu/io/installer/macosx/MACOSXRXTXInstaller; runPreProcesstLjava/lang/Throwable;pLjava/lang/Process;preinstallPath progArray[Ljava/lang/String;auth Lglguerin/authkit/Authorization;privLglguerin/authkit/Privilege;countIsucceedZrunPostProcesscreateJarFolderlibFileLjava/io/File;createLibFoldercreateTemporaryPreinstallFile()Ljava/lang/String;tempFileabsPathinstallAuthKiturlLjava/net/URL;path firstIndex lastIndexneedPathusingJWSoriginalClassLoaderLjava/lang/ClassLoader; destFolder SourceFileMACOSXRXTXInstaller.java PQ hQ kQ pQ RXTXcomm.jar3/gnu/io/installer/resources/macosx/jar/RXTXcomm.dat フヘlibrxtxSerial.jnilib;/gnu/io/installer/resources/macosx/lib/librxtxSerial.jnilib ホヘ/glguerin/authkit/imp/macosx/MacOSXAuthorizationglguerin/authkit/Privilegesystem.privilege.admin Pマミ ムメjava/lang/Throwableモ ヤユjava/lang/StringBuilder Throwable ヨラ ヨリ ルmレ ロマ lmjava/lang/String user.name ワン ゙゚ Q java/io/File Java/Extensions P j j preinstall Q-/gnu/io/installer/resources/macosx/preinstall m chmoda+x ゚ java.library.path  mjnlp  8/gnu/io/installer/resources/macosx/lib/libAuthKit.jnilib   m       needPath libAuthKit.jnilibinstallAuthKit Throwable +gnu/io/installer/macosx/MACOSXRXTXInstallergnu/io/installer/RXTXInstalleraddJarResource'(Ljava/lang/String;Ljava/lang/String;)VaddLibResource(Ljava/lang/String;)Vglguerin/authkit/Authorization authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/SystemoutLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln getProperty&(Ljava/lang/String;)Ljava/lang/String;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/Threadsleep(J)VprintStackTrace!gnu/io/installer/util/InstallUtil getFolderPath(SI)Ljava/lang/String;#(Ljava/io/File;Ljava/lang/String;)V jarFoldercanWrite()Zexistsmkdirs libFoldercreateTempFile4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; deleteOnExitcopyResourceToFile#(Ljava/lang/String;Ljava/io/File;)VgetAbsolutePathjava/lang/Runtime getRuntime()Ljava/lang/Runtime;execjava/lang/ProcesswaitFor()I currentThread()Ljava/lang/Thread;getContextClassLoader()Ljava/lang/ClassLoader;java/lang/Object toLowerCaseindexOf(Ljava/lang/String;)IgetClass()Ljava/lang/Class;java/lang/Class getResource"(Ljava/lang/String;)Ljava/net/URL; java/net/URLgetPath(I)I lastIndexOf substring(II)Ljava/lang/String;!KLMNO'PQRc!*キ*カ*カ*キ*カ* カ アS  T !UVWQR椽 Yキ Lサ YキM>6+,カ6ァ':イサYキカカカカ、モT*キ:ヌアスYSYクS:+カ:ク!ァ$:イサYキカカカカカ"ア #ky|SZ ! "##%$?&B'G)L*R+X,k.s/y3|0~126Tf %XYsZ[~XYRK\Nk2]^UV_`abcdefgQR+アS8T UVhQRゥYサ#Y$ク%キ&L*サ#Y+'キ(オ)*エ)カ*3サ#Y$ク%キ&L*サ#Y+'キ(オ)*エ)カ+ *エ)カ,WアS"<=>(?8@FAPBXETYUVIijkQRゥYサ#Y$ク%キ&L*サ#Y+'キ(オ-*エ-カ*3サ#Y$ク%キ&L*サ#Y+'キ(オ-*エ-カ+ *エ-カ,WアS"HIJ(K8LFMPNXQTYUVIijlmRウ9.ク/L+カ01+ク2+カ3Mク4スY5SY6SY,Sカ7N-カ8W,ーLー56S& UV WXY/Z4[6\7]T4/nj oN/Z[7XY9UVpQRム 邊サYキ9カ:クカカカ<ク;カ?カ@< *エ)ァN-ヌi*カABカC:カD:/カE6!カF6カG:/カE6/カF6カG:イサYキHカカカカサ#Y-Iキ(:カ0Bク2ァ:イサYキJカカカカアッヌハSZabc&d8eEfIgTh[idjmkxlmnoッrサsタtヌwハuフvxTp T[qr[TsNdKtdmBudx7vNサ njフXYUVネwf&チxyE「zj{|PK ht4gnu/io/installer/resources/PK t4"gnu/io/installer/resources/macosx/PK ht4&gnu/io/installer/resources/macosx/jar/PK ht4マv$9カ9カ2gnu/io/installer/resources/macosx/jar/RXTXcomm.datPK 餤U4 META-INF/ハPK 餤U4RぃWFFMETA-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.4.2_09 (Apple Computer, Inc.) PK 餤U4gnu/PK 餤U4gnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classハコセ.    getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort; initialize()V SourceFileCommDriver.javagnu/io/CommDriverjava/lang/ObjectPK 餤U4G\yアアgnu/io/CommPort.classハコセ.@ 2 34 356 789nameLjava/lang/String;debugZ ConstantValue()VCodeLineNumberTableenableReceiveFraming(I)V Exceptions:disableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByte()IdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeclosegetInputStream()Ljava/io/InputStream;;getOutputStream()Ljava/io/OutputStream;getName()Ljava/lang/String;toString SourceFile CommPort.java < => ?gnu/io/NoSuchPortException  gnu/io/CommPortjava/lang/Object(gnu/io/UnsupportedCommOperationExceptionjava/io/IOExceptiongnu/io/CommPortIdentifiergetPortIdentifier.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;internalClosePort!    !*キア #H !"#$%&'K*クL+ニ +W*クカァLア@B CGEH()*+,*-.*エーP/.*エーU01PK 餤U4Gウ22gnu/io/CommPortEnumerator.classハコセ.(      !"indexLgnu/io/CommPortIdentifier;debugZ ConstantValue()VCodeLineNumberTable nextElement()Ljava/lang/Object;hasMoreElements()Z SourceFileCommPortEnumerator.java # $% & ' gnu/io/CommPortEnumeratorjava/lang/Objectjava/util/Enumerationgnu/io/CommPortIdentifierSyncLjava/lang/Object;next CommPortIndex    !*キア )*f.イYLツ*エニ**エエオァ *イオ*エ+テーM+テ,ソ()),)689":);n2イYLツ*エニ*エエヌァ+テャイヌァ+テャM+テ,ソ-,--0-HJK-Mア&PK 餤U4Vヌ イ、、gnu/io/CommPortIdentifier.classハコセ. 7                      。「 」 、 ・ヲァ $ィ & ゥ 7ェォャ ュ +ョ ッ ー ア 7イ ウ エオ エカキ 5クケコ サ シス セソ タ PORT_SERIALI ConstantValue PORT_PARALLELPORT_I2C PORT_RS485PORT_RAWPortNameLjava/lang/String; AvailableZOwnercommportLgnu/io/CommPort; RXTXDriverLgnu/io/CommDriver; CommPortIndexLgnu/io/CommPortIdentifier;nextPortTypedebugSyncLjava/lang/Object;ownershipListenerLjava/util/Vector;HideOwnerEvents:(Ljava/lang/String;Lgnu/io/CommPort;ILgnu/io/CommDriver;)VCodeLineNumberTable addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)VAddIdentifierToList(Lgnu/io/CommPortIdentifier;)VaddPortOwnershipListener%(Lgnu/io/CommPortOwnershipListener;)VgetCurrentOwner()Ljava/lang/String;getNamegetPortIdentifier/(Ljava/lang/String;)Lgnu/io/CommPortIdentifier; Exceptions.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;getPortIdentifiers()Ljava/util/Enumeration; getPortType()IisCurrentlyOwned()Zopen+(Ljava/io/FileDescriptor;)Lgnu/io/CommPort;native_psmisc_report_owner&(Ljava/lang/String;)Ljava/lang/String;&(Ljava/lang/String;I)Lgnu/io/CommPort;removePortOwnershipListenerinternalClosePort()VfireOwnershipEvent(I)V SourceFileCommPortIdentifier.java _} MN KL PQ W@ VU RSgnu/io/CommPortIdentifier _` ef Z[ TU \]java/util/Vector チツ テト OLナ ニツgnu/io/NoSuchPortExceptiongnu.io.RXTXCommDriverヌ ネノ ハヒgnu/io/CommDriver フ}java/lang/Throwableヘ ホマjava/lang/StringBuffer ミム thrown while loading ミメ モjヤ ユヨgnu/io/CommPortEnumerator(gnu/io/UnsupportedCommOperationException ~ ラリjava/lang/InterruptedExceptiongnu/io/PortInUseException ij _ヨ ルz xy レツ ロ} ワqン ゙u ゚ヒ gnu/io/CommPortOwnershipListener java/lang/Objectos.name y jlinux  rxtxSerial ヨcontains(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)Vjava/lang/Stringequalsjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object; initializejava/lang/SystemerrLjava/io/PrintStream;append,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)Vwait(J)V getCommPort removeElement notifyAllelementsjava/util/EnumerationhasMoreElements nextElementownershipChange getProperty toLowerCaseindexOf(Ljava/lang/String;)I loadLibrary!7?@ABC@ADE@AFG@AHI@AJKLMNOLPQRSTUVUW@XNAYZ[\]^N_`aX$*キ*オ*+オ*,オ*オ*オ*オアb"V' WXYZ[#] cda+サY*,キ ク アb lm efa6イ YLツイ ヌ *ウ ァイ M,エニ ,エMァ,*オ+テァN+テ-ソア-0030b. y{ }~#&+5ghaN&*エ ヌ*サYキオ *エ +カ *エ +カアb。」%・ija*エーbアkja*エーbセ lma<イ Lイ YMツ+ニ+エ*カァ +エLァ,テァN,テ-ソ+ニ+ーサYキソ &)),)b"ヒヘ マムメ$ヤ.ユ4レn loaz6イ Lイ YMツ+ニ+エ*・ +エLァ,テァN,テ-ソ+ニ+ーサYキソ ##&#b" (,.n pqax@ウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#サ$Yキ%ーb  8 rsa*エャb!tua% *エァャb%!vwa サ&Yキ'ソb2n&xy!vza*エ%イ YNツ*カ(*カ)ァ:-テァ :-テソ*エサ+Y*カ,キ-ソ*エヌ**エ*エ*エケ.オ*エニ*+オ*オ*カ(*エーサ+Y**エキ/キ-ソ* ""&"bBEG ILNO)Q0S<UCWXY_[d\i]n^sbn+{ha1*エ ニ *エ +カ0Wアbrst |}aE*オ*オ*オ*カ1*カ(アb ~aY-*エ ニ(*エ カ2N-ケ3-ケ4タ5M,ケ6ァ豎b",}aWサ7Yキウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#8ク9K*カ:;カ<=ク>ア b* @ CDIF H>MDNQSVT1K 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classハコセ. PORT_OWNEDI ConstantValue PORT_UNOWNEDPORT_OWNERSHIP_REQUESTEDownershipChange(I)V SourceFileCommPortOwnershipListener.java gnu/io/CommPortOwnershipListenerjava/lang/Objectjava/util/EventListener    PK 餤U4⌒[サキキgnu/io/Configure$1.classハコセ.,     !"this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java # $ %&Save' ()* +gnu/io/Configure$1 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zgnu/io/Configure access$000     " *キ*+オアl:+カM,カ *エクアnopr PK 餤U4@6+ウgnu/io/Configure$2.classハコセ./       #$val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java %  & '() *+, -.gnu/io/Configure$2 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;gnu/io/Configure addCheckBoxes(Ljava/lang/String;)Vjava/awt/Frame setVisible(Z)V      '*キ*+オ*,オア4*エ+カカ*エカア " PK 餤U4lu綬gnu/io/Configure$3.classハコセ.D     ! "# $% &' &( )*+./val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java 0  1 234 567 89: ;<= >? @AB CAgnu/io/Configure$3 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/String substring(I)Ljava/lang/String;java/lang/IntegerparseInt(Ljava/lang/String;)Ignu/io/Configurecb[Ljava/awt/Checkbox;java/awt/CheckboxgetState()ZsetState(Z)Vjava/awt/Frame setVisible  '*キ*+オ*,オアnB+カカク=>「1*エエ2*エエ2カァカ *エカ ァミア 3;A-  PK 餤U4羣ユgnu/io/Configure$4.classハコセ.   this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFileConfigure.java   gnu/io/Configure$4 InnerClassesjava/awt/event/WindowAdapter()Vjava/lang/Systemexit(I)V   " *キ*+オア ヲ  !クア ィゥ PK 餤U4W$ュュgnu/io/Configure.classハコセ. [xyz {| }~ { [   {  } [ # #    [ 5 #} 5 + [。「 +} 」、・ +ヲァ 2 +ィゥ 5ェ 7ォ 5ィャ :ッ [ーア =イ =ウ =エオカ A} 5キク Eケコ Gサ Eシスセソ K}タ Nサ Kシチツテ +トナニ Wッ +ヌ +ネノ [cb[Ljava/awt/Checkbox;p1Ljava/awt/Panel; PORT_SERIALI ConstantValue PORT_PARALLELPortType EnumMessageLjava/lang/String;saveSpecifiedPorts()VCodeLineNumberTable addCheckBoxes(Ljava/lang/String;)Vmain([Ljava/lang/String;)V access$000(Lgnu/io/Configure;)V Synthetic SourceFileConfigure.java jkjava/lang/String java.homeハ ヒフ popath.separator: ヒヘfile.separator/line.separator gbjava/lang/StringBuffer pk ホマlibgnu.io.rxtx.SerialPorts ミムgnu.io.rxtx.ParallelPorts メモBad Port Type!ヤ ユojava/io/FileOutputStream ]^ ヨラ リム ルレ ロワ ンkjava/io/IOException IOException! _` ゙゚java/awt/Checkbox ホNORTH +gnu.io.rxtx.properties has not been detected. There is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save hijava/awt/Frame Configure gnu.io.rxtx.properties COM/dev/ java/awt/BorderLayout java/awt/Paneljava/awt/GridLayout pgnu/io/Configure$1 InnerClasses pt nojava/awt/TextArea p java/awt/Label Port Name: java/awt/TextField pgnu/io/Configure$2 p  Keep Portsjava/awt/Button1-gnu/io/Configure$3MoreSaveSouthCenterNorthgnu/io/Configure$4 gnu/io/Configurejava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintlngetState()ZgetLabelgetBytes()[Bwrite([B)Vcloseremove(Ljava/awt/Component;)V(I)Ljava/lang/StringBuffer;add<(Ljava/lang/String;Ljava/awt/Component;)Ljava/awt/Component; compareTo(Ljava/lang/String;)I setBounds(IIII)V setLayout(Ljava/awt/LayoutManager;)V(II)V(Ljava/lang/String;III)VsetSize setEditable(Z)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/lang/String;I)V%(Lgnu/io/Configure;Ljava/awt/Frame;)VaddActionListener"(Ljava/awt/event/ActionListener;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V setVisible [+]^_`abcdebcfgbhijkl{ サYクキMクN  ク: ク:*エ 0サYサ Yキ,カカカカカカキLァ2*エ !サYサ Yキ,カカカキLァ イカアイ+カサY+キ:6「D*エ2カ1サYサ Yキ*エ2カカ-カカキ:カカァコカカカァ :イ カアm^$ %&'%*-+Z.b/3469;・=イ?ヨA;DEJGIKnolh=「*エ2ニ*エ!*エ2カ"ァ=△<*エdサ#Yサ Yキ+カカ$カキ%S*エ!&*エd2カ'Wァテアm& O PQO%R.TOUaRgWpklセ*キ(*オ *サY)キオ*<=*ス#オサ+Y,キ-N  ク: カ. /:ァ0:-d2カ1-サ2Yキ3カ4*サ5Yキ6オ!*エ!サ7Yキ8カ9サ:Y*キ;:*カ<サ=Y*エ*2キ>:2カ?カ@サ5Yキ6:サAYBキCカDWサEYキF:  サGY*-キHカI カDWサ#YJキ%:  カDWスK: 6 6  △K  サKYサ YキLカ カ$カキMS  2サNY*-キOカP  2カDW h6 ァウサKYQキM: サKYRキM:  カP カP カDW カDW-SカTW-U*エ!カTW-VカTW-サWY*キXカY-カZアmカ-Z イ[\](^2`;bEcLePgZheipjkuv「xェyー{ケ|ネ}ユ~3DO[fqx。「」」ャ、クャスュ qrl% サ[Yキ\Wアm ーアstl*キアmuvwョ":GNWPK 餤U4HGムhhgnu/io/I2C$I2CInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileI2C.java 0 1 23 45  657 89 :5  ;< =5gnu/io/I2C$I2CInputStreamI2CInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/I2C access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 " *キ*+オアu-*エクW*エクャ w x! *++セカャ|゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ: '=DLT`ft| *エク ャ-  ,PK 餤U4mリ gnu/io/I2C$I2COutputStream.classハコセ.*     "this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileI2C.java   $ %& '( ) gnu/io/I2C$I2COutputStreamI2COutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/I2C access$1000(Lgnu/io/I2C;I)V access$1100(Lgnu/io/I2C;[BII)V access$1200     " *キ*+オアe % *エクア gh ( *エ++セクア j k ' *エ+クア m n $*エクア pq!  PK 餤U4ノト&&gnu/io/I2C$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileI2C.java           # N O#gnu/io/I2C$MonitorThreadjava/lang/Thread gnu/io/I2C eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ー ヲァィゥェ"ォ'ャ,ュ1ョ6ッ;ー"# $*エ カ ア! イウ$' *エ ャ!「(' *エ ャ!「)' *エャ!「*' *エャ!「+' *エャ!「,' *エャ!「-' *エャ!「.' *エャ!「/' *エャ!「0' *エャ!「12 *Zオ ャ!「32 *Zオ ャ!「42 *Zオャ!「52 *Zオャ!「62 *Zオャ!「72 *Zオャ!「82 *Zオャ!「92 *Zオャ!「:2 *Zオャ!「;2 *Zオャ!「<=& J%PK 餤U4ホ9gnu/io/I2C.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesI2CInputStreamI2COutputStreamfdIdsrFlagZoutLgnu/io/I2C$I2COutputStream;inLgnu/io/I2C$I2CInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/I2CPortEventListener; monThreadLgnu/io/I2C$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setI2CPortParams(IIII)VnativeSetI2CPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/I2CPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/I2C;I)V Synthetic access$1100(Lgnu/io/I2C;[BII)V access$1200(Lgnu/io/I2C;)V access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500 access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 SourceFileI2C.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/I2C$I2COutputStream wミ cdgnu/io/I2C$I2CInputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/I2CPortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/I2C$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネvrxtxI2C ]x uv ab gnu/io/I2Cgnu/io/I2CPortgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/I2CPort;IZZ)Vgnu/io/I2CPortEventListenerI2CEvent(Lgnu/io/I2CPortEvent;)Vstart interrupt access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>3@E[#_)c.g3l8=、BツGテLQ4Z5{|}~{|y*エ ーzAy*エーzFyK*キ*オ*オ*オ*オアzO PQRST{{y*エャz\y*エャz`y*エャzdy*エャzhyL*カァ M,カア*オアznro p qsty*エャzu{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アzァゥ ェョ$ーvy"*カ)アz イウy*エャzオy% *エァャzクy"*オアz ニヌ。y*エャzハ「y"*オアz ホマ」y*エャzメ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu !#ャ$ュ&コ'サ)ネ*ノ,-/01コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz789 :';{@シvyA*オ>*エ*ニ*エ*カE*オ*アz>? @ACスヲy" *エ*クFWアzEセヲy" *エ*クGWアzGソヲy" *エ*クHWアzIタヲy" *エ*クIWアzJチヲy" *エ*クJWアzKツヲy" *エ*クKWアzLテヲy" *エ*クLWアzMトヲy" *エ*クMWアzNナヲy" *エ*クNWアzOニヲy" *エ*クOWアzPヌvネvyD*カP*キQ*キR*キS*オアzVW XYZ[ノvy( *エ*カTアz ` aハヒy*キ アz"{フヘホy *+キアz"{フマミy*キアz"{フムメy*Zオャz"フモヤy*キャz"{フユヤy*エャz"フヨヤy*エャz"フラリy *+キャz"{フルヤy*キャz"{フレvy- UクVクWウXアz&'=ロワ\BY[Y] Y^PK 餤U43クgnu/io/I2CPort.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetI2CPortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener (Lgnu/io/I2CPortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFile I2CPort.java !gnu/io/I2CPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4|、ンiignu/io/I2CPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/I2CPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileI2CPortEvent.java !2   gnu/io/I2CPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U42レエヘヘ!gnu/io/I2CPortEventListener.classハコセ.   I2CEvent(Lgnu/io/I2CPortEvent;)V SourceFileI2CPortEventListener.javagnu/io/I2CPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4m pp"gnu/io/LPRPort$MonitorThread.classハコセ.+   ! " #$ %&'monErrorZ monBufferthis$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses!(Lgnu/io/LPRPort$MonitorThread;)Z access$100 access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 SourceFile LPRPort.java  ( ) *gnu/io/LPRPort$MonitorThreadjava/lang/Threadgnu/io/LPRPort eventLoopyield    8*キ*+オ*オ*オアJ HIJ+ *エカクアMN O*エャF*エャF*ZオャF*ZオャF #PK 餤U4b:[(gnu/io/LPRPort$ParallelInputStream.classハコセ.-       !"%this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I available SourceFile LPRPort.java & ' ()java/io/IOException * + ,"gnu/io/LPRPort$ParallelInputStreamParallelInputStream InnerClassesjava/io/InputStream()Vgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)IreadByte readArraynativeavailable   " *キ*+オア.6*エク サYキソ*エカャ 23:*エク サYキソ*エ++セカャ 789*エク サYキソ*エ+カャ =>6*エク サYキソ*エカャ BC$  #PK 餤U4} 腎t)gnu/io/LPRPort$ParallelOutputStream.classハコセ.*       !$this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile LPRPort.java  % &'java/io/IOException ( )#gnu/io/LPRPort$ParallelOutputStreamParallelOutputStream InnerClassesjava/io/OutputStreamgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)I writeByte writeArray     " *キ*+オア!;*エク サYキソ*エカア!>*エク サYキソ*エ++セカア!=*エク サYキソ*エ+カア#$%!/*エク サYキソア (*# "PK 餤U4pケョョgnu/io/LPRPort.classハコセ. = > 。 =「」 。 =、 =・ =ヲ =ァ =ィ =ゥ =ェォ ャ ュョッ ーアイ =ウ >エ =オ カキ カクケ コ =サ 1シ =ス 1セ 1ソ ュタチ "ツ "テ "ト "ナニ (ヌ ネノ2 ハヒフヘ /ホ 1。 1マ 1ミム 1メモ 1ヤ =エユ ュヨ =ラリル MonitorThread InnerClassesParallelInputStreamParallelOutputStreamdebugZ ConstantValuefdIout%Lgnu/io/LPRPort$ParallelOutputStream;in$Lgnu/io/LPRPort$ParallelInputStream;lprmodetimeout thresholdPPEventListener"Lgnu/io/ParallelPortEventListener; monThreadLgnu/io/LPRPort$MonitorThread; Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsレopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;getMode()IsetMode(I)Irestartsuspend setLPRMode(I)Z isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOut nativeClosecloseenableReceiveFraming(I)VdisableReceiveFramingisReceiveFramingEnabledgetReceiveFramingByteenableReceiveTimeoutdisableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizegetOutputBufferFree writeByteロ writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener%(Lgnu/io/ParallelPortEventListener;)VremoveEventListener notifyOnError(Z)VnotifyOnBufferfinalize access$200(Lgnu/io/LPRPort;)I Synthetic SourceFile LPRPort.java GH VU#gnu/io/LPRPort$ParallelOutputStream Vワ IJ"gnu/io/LPRPort$ParallelInputStream KL MH NH OH \] ン゙ hi(gnu/io/UnsupportedCommOperationException ゚U Irestart() is not implemented Wsuspend() is not implemented pU qU U U Not supported VW RS k PQ java/lang/StringBufferunknown event: gnu/io/ParallelPortEvent V  java/lang/Exception#java/util/TooManyListenersExceptiongnu/io/LPRPort$MonitorThread U U$notifyOnError is not implemented yet %notifyOnBuffer is not implemented yet  rxtxParallel W TUgnu/io/LPRPortgnu/io/ParallelPortgnu/io/PortInUseExceptionjava/io/IOException(Lgnu/io/LPRPort;)VnameLjava/lang/String;printStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintlnjava/lang/Runtime getRuntime()Ljava/lang/Runtime;gc isInterrupted access$000!(Lgnu/io/LPRPort$MonitorThread;)Z access$100errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/ParallelPort;IZZ)V gnu/io/ParallelPortEventListener parallelEvent(Lgnu/io/ParallelPortEvent;)Vjava/lang/Threadsleep(J)Vstart interrupt access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 loadLibrary0=> CDEFGHIJKLMHNHOHPQRS2 TUVWXr:*キ*サY*キオ*サY*キオ*オ *オ *オ **+キ オ*+オ アY& -IMR!&+;4<9AZ["\]Z[^_X*エーYJ`aX*エーYNbcX*エ ャYSdeXO*カWァ M,カャ*オ ャ YW[ X YZ\]ZfUX% イカアY abgUX% イカアY efhiZjklkmknkokpU!qUXP *エア*キ*キ*カ*オクカアYtu vwyz{rsX" サYキソYZtUXアYukXャYvcXャYwsX2 *オ ァ*オ アY xUX*オ アYykX% *エ ァャYzcX*エ ャY{sX3、 *オ ァ*オ アY |UX*オ アY}cX*エ ャY~kX&*エ 、ァャYscsccsZZUZcZcZZUkX1*エニ *エカャャYセソタ!Xカ*エ*エニ *エヌャォ:+*エクァ/ャ*エク ァ ャイ!サ"Yキ#$カ%カ&カ'カャサ(Y*ァキ)N*エニ *エ-ケ**エ*エニ *エヌャ+ク-ァ:ャゥッイ.YBヌノフ4マAミCメPモRユkヨmリレロワァ゙ゥエ!XT(*エニ サ/Yキ0ソ*+オ*サ1Y*キ2オ*エカ3アY 'Z/!UXA*オ*エニ*エカ4*オアY !X2イ5カ*エク6WアY!X2イ7カ*エク8WアY  UX( *エ*カ9アY  X*エャYUX) :ク;ク<アY#$%@1=?=A=BPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classハコセ.   (Ljava/lang/String;)VCodeLineNumberTable()V SourceFileNoSuchPortException.java   gnu/io/NoSuchPortExceptionjava/lang/Exception!"*+キア !" !*キア %&  PK 餤U4ェテテgnu/io/ParallelPort.classハコセ.3 ./0 LPT_MODE_ANYI ConstantValue LPT_MODE_SPP LPT_MODE_PS2 LPT_MODE_EPP LPT_MODE_ECPLPT_MODE_NIBBLE()VCodeLineNumberTablegetMode()IsetMode(I)I Exceptions1restartsuspend isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOutgetOutputBufferFreeaddEventListener%(Lgnu/io/ParallelPortEventListener;)V2removeEventListener notifyOnError(Z)VnotifyOnBuffer SourceFileParallelPort.java gnu/io/ParallelPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException!     *キア !"#$%&'()*+*,-PK 餤U4Pン`|gnu/io/ParallelPortEvent.classハコセ.#     ! PAR_EV_ERRORI ConstantValue PAR_EV_BUFFEROldValueZNewValue eventType(Lgnu/io/ParallelPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileParallelPortEvent.java "   gnu/io/ParallelPortEventjava/util/EventObject(Ljava/lang/Object;)V!      >*+キ*オ*オ*オア*+ ,-.*エャ1*エャ5*エャ9PK 餤U478」&gnu/io/ParallelPortEventListener.classハコセ.    parallelEvent(Lgnu/io/ParallelPortEvent;)V SourceFileParallelPortEventListener.java gnu/io/ParallelPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4咎Gqqgnu/io/PortInUseException.classハコセ.    currentOwnerLjava/lang/String;(Ljava/lang/String;)VCodeLineNumberTable()V SourceFilePortInUseException.java    gnu/io/PortInUseExceptionjava/lang/Exception!  + *+キ*+オア +, -  !*キア 01 PK 餤U4^狛&&gnu/io/Raw$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileRaw.java           # N O#gnu/io/Raw$MonitorThreadjava/lang/Thread gnu/io/Raw eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ョ 、・ヲァィ"ゥ'ェ,ォ1ャ6ュ;ョ"# $*エ カ ア! ーア$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4ナサヤhhgnu/io/Raw$RawInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileRaw.java 0 1 23 45  657 89 :5  ;< =5gnu/io/Raw$RawInputStreamRawInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/Raw access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 " *キ*+オアs-*エクW*エクャ u v! *++セカャz゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:~ '=DLT`ft| *エク ャ-  ,PK 餤U4ク聒 gnu/io/Raw$RawOutputStream.classハコセ.*     "this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileRaw.java   $ %& '( ) gnu/io/Raw$RawOutputStreamRawOutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/Raw access$1000(Lgnu/io/Raw;I)V access$1100(Lgnu/io/Raw;[BII)V access$1200     " *キ*+オアc % *エクア ef ( *エ++セクア h i ' *エ+クア k l $*エクア no!  PK 餤U4vウ蟋ァgnu/io/Raw.classハコセ.g [ [ [ [ [ [ [ [ [ \ [  [ [ [ [ [ [ [ [ [ [ [ [   [ [   [ [  [ [ C C C C C C C C C C  7 7 7 7 = [ !"# A$ C C% C& C' C( C) C* C+ C, C- C. C/ C0 [1 [2 [3 \4 [456 7 [8 [9:; MonitorThread InnerClassesRawInputStreamRawOutputStream ciAddressIdsrFlagZoutLgnu/io/Raw$RawOutputStream;inLgnu/io/Raw$RawInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RawPortEventListener; monThreadLgnu/io/Raw$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions<open(I)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRawPortParams(IIII)VnativeSetRawPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/RawPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize getVersion()Ljava/lang/String; access$1000(Lgnu/io/Raw;I)V Synthetic access$1100(Lgnu/io/Raw;[BII)V access$1200(Lgnu/io/Raw;)V access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500 access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 SourceFileRaw.java オ キク ob pb カ vb エx イウ ア yxgnu/io/Raw$RawOutputStream yヤ efgnu/io/Raw$RawInputStream gh ib jb kb lb mb nb qb= >? ab  java/io/IOException @x(gnu/io/UnsupportedCommOperationException Not supported yz A eBInvalid timeoutC Dz Invalid Threshold tu EF GF HF IF JF KF LF MF NF OF PBjava/lang/StringBufferunknown event: QR QS Tヘgnu/io/RawPortEvent yU rsV WX#java/util/TooManyListenersExceptiongnu/io/Raw$MonitorThread Yx Zx [\ ]\ ^\ _\ `\ a\ b\ c\ d\ e\ ァィ ェィ ノ ハx8$Id: Raw.java,v 1.1.2.13 2004/10/12 08:59:27 jarvi Exp $rxtxRaw fz wx cd gnu/io/Rawgnu/io/RawPortgnu/io/PortInUseExceptionjava/lang/IntegerparseInt(Ljava/lang/String;)IprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString(Lgnu/io/RawPort;IZZ)Vgnu/io/RawPortEventListenerRawEvent(Lgnu/io/RawPortEvent;)Vstart interrupt access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0[\abcdefghibjbkblbmbnbobpbqbrstuvbM wxyz{キc*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*+クオ**エキWア|B0>CY#])a.e3j8=「BタGチLQ1Y2b3}~}~{*エ ー|?{*エー|D{K*キ*オ*オ*オ*オア|M NOPQR}}{*エャ|Z{*エャ|^{*エャ|b{*エャ|f{L*カァ M,カア*オア|lpm n oqr{*エャ|s}{" サY キ!ソ|}x{ア|{ャ|{ャ|x{"*カ"ア| {J"*オ**エ*エカ#ァ イ$%カ&ア| !{*カ'ャ|{*カ(ャ|{M%*オ**エ*エ*エカ#ァ イ$)カ&ア|・ァ ィャ$ョx{"*カ*ア| ーア{*エャ|ウ。{% *エァャ|カ「{"*オア| トナ」{*エャ|ネ、{"*オア| フヘ・{*エャ|ミヲァィゥィェィォャュョッーア}イウ}エx}オ}カ}キク}ケxコサ{ ェネ 7JXftャコ*オ*エ+ク,ァ愕*エ+ク-ァ竺*エ+ク.ァア*エ+ク/ァrア*エ+ク0ァdア*エ+ク1ァVア*エ+ク2ァHア*エ+ク3ァ:ア*エ+ク4ァ,ア*エ+ク5ァアイ6サ7Yキ89カ:カ;カ<カ&アサ=Y*ァキ>N*エ?ニ *エ?-ケ@ア|n8=JKXYfgtu!ャ"ュ$コ%サ'ネ(ノ*+-./シス{P(*エ?ニ サAYキBソ*+オ?*サCY*キDオ+*エ+カEア|567 8'9}Aセx{A*オ?*エ+ニ*エ+カF*オ+ア|<= >?Aソィ{" *エ+クGWア|Cタィ{" *エ+クHWア|Eチィ{" *エ+クIWア|Gツィ{" *エ+クJWア|Hティ{" *エ+クKWア|Iトィ{" *エ+クLWア|Jナィ{" *エ+クMWア|Kニィ{" *エ+クNWア|Lヌィ{" *エ+クOWア|Mネィ{" *エ+クPWア|Nノハx{E*カQ*キR*キSW*キT*オア|TU VWXYヒx{!*カUア| ^_フヘ{!VL+ー| オカホマ{*キ ア|}ミムメ{ *+キア|}ミモヤ{*キア|}ミユヨ{*Zオャ|ミラリ{*キャ|}ミルリ{*エャ|ミレリ{*エャ|ミロワ{ *+キャ|}ミンリ{*キャ|}ミ゙x{- WクXクYウZア|#$;゚^C[][_ [`PK 餤U4ア#ミbbgnu/io/RawPort.classハコセ.6 123 DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT WRITE_SIZEIO_PORTx()VCodeLineNumberTablesetRawPortParams(IIII)V Exceptions4addEventListener (Lgnu/io/RawPortEventListener;)V5removeEventListener SourceFile RawPort.java #$gnu/io/RawPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException         !"#$%*キア&'()*+,)-.$/0PK 餤U41Fノiignu/io/RawPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RawPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRawPortEvent.java !2   gnu/io/RawPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U4訪Rヘヘ!gnu/io/RawPortEventListener.classハコセ.   RawEvent(Lgnu/io/RawPortEvent;)V SourceFileRawPortEventListener.javagnu/io/RawPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4?D1,44 gnu/io/RS485$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RS485.java           # N O#gnu/io/RS485$MonitorThreadjava/lang/Thread gnu/io/RS485 eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ュ 」、・ヲァ"ィ'ゥ,ェ1ォ6ャ;ュ"# $*エ カ ア! ッー$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFile RS485.java 0 1 23 45  657 89 :5  ;< =5gnu/io/RS485$RS485InputStreamRS485InputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/RS485 access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 " *キ*+オアr-*エクW*エクャ t u! *++セカャy゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:} ~'=DLT`ft| *エク ャ-  ,PK 餤U4い]--$gnu/io/RS485$RS485OutputStream.classハコセ.*     "this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFile RS485.java   $ %& '( ) gnu/io/RS485$RS485OutputStreamRS485OutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/RS485 access$1000(Lgnu/io/RS485;I)V access$1100(Lgnu/io/RS485;[BII)V access$1200     " *キ*+オアb % *エクア de ( *エ++セクア g h ' *エ+クア j k $*エクア mn!  PK 餤U4播>メ//gnu/io/RS485.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesRS485InputStreamRS485OutputStreamfdIdsrFlagZout Lgnu/io/RS485$RS485OutputStream;inLgnu/io/RS485$RS485InputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RS485PortEventListener; monThreadLgnu/io/RS485$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRS485PortParams(IIII)VnativeSetRS485PortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener"(Lgnu/io/RS485PortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/RS485;I)V Synthetic access$1100(Lgnu/io/RS485;[BII)V access$1200(Lgnu/io/RS485;)V access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500 access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 SourceFile RS485.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/RS485$RS485OutputStream wミ cdgnu/io/RS485$RS485InputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/RS485PortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/RS485$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネv rxtxRS485 ]x uv ab gnu/io/RS485gnu/io/RS485Portgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/RS485Port;IZZ)Vgnu/io/RS485PortEventListener RS485Event(Lgnu/io/RS485PortEvent;)Vstart interrupt access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>0=BX#\)`.d3i8=。BソGタLQ1Z2{|}~{|y*エ ーz>y*エーzCyK*キ*オ*オ*オ*オアzL MNOPQ{{y*エャzYy*エャz]y*エャzay*エャzeyL*カァ M,カア*オアzkol m npqy*エャzr{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アz、ヲ ァォ$ュvy"*カ)アz ッーy*エャzイy% *エァャzオy"*オアz テト。y*エャzヌ「y"*オアz ヒフ」y*エャzマ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu ャ!ュ#コ$サ&ネ'ノ)*,-.コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz456 7'8{@シvyA*オ>*エ*ニ*エ*カE*オ*アz;< =>@スヲy" *エ*クFWアzBセヲy" *エ*クGWアzDソヲy" *エ*クHWアzFタヲy" *エ*クIWアzGチヲy" *エ*クJWアzHツヲy" *エ*クKWアzIテヲy" *エ*クLWアzJトヲy" *エ*クMWアzKナヲy" *エ*クNWアzLニヲy" *エ*クOWアzMヌvネvyD*カP*キQ*キR*キS*オアzST UVWXノvy( *エ*カTアz ] ^ハヒy*キ アz{フヘホy *+キアz{フマミy*キアz{フムメy*Zオャzフモヤy*キャz{フユヤy*エャzフヨヤy*エャzフラリy *+キャz{フルヤy*キャz{フレvy- UクVクWウXアz#$:ロワ\BY[Y] Y^PK 餤U4コ1茉gnu/io/RS485Port.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetRS485PortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener"(Lgnu/io/RS485PortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFileRS485Port.java !gnu/io/RS485Portgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4Tユ蚩ognu/io/RS485PortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RS485Port;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRS485PortEvent.java !2   gnu/io/RS485PortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$34 567%&#*エャ$:'(#*エャ$>)(#*エャ$B*+PK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classハコセ.    RS485Event(Lgnu/io/RS485PortEvent;)V SourceFileRS485PortEventListener.javagnu/io/RS485PortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classハコセ. ミ マ    マ        マ     マ   マ  マ マ マ マ  $ $ $!"#$% *& - -' ( -) *+ ,- ,. - /01234 マ56789:;<=>? @ABC I IDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~。「」、・ヲァィゥェォャュョッーアイ マウエ シオ セカ キ クケコ サ シス シセソ マセタチツテトナニヌネdebugZ ConstantValuedeveldeviceDirectoryLjava/lang/String;osName()VCodeLineNumberTableregisterKnownPorts(I)ZisPortPrefixValid(Ljava/lang/String;)ZtestRead(Ljava/lang/String;I)ZgetDeviceDirectory()Ljava/lang/String;nativeGetVersiongetValidPortPrefixes(([Ljava/lang/String;)[Ljava/lang/String; checkSolaris(Ljava/lang/String;I)VregisterValidPorts*([Ljava/lang/String;[Ljava/lang/String;I)V initializeaddSpecifiedPortsregisterSpecifiedPortsregisterScannedPorts(I)V getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort;Report(Ljava/lang/String;)V SourceFileRXTXCommDriver.java ロワjava/lang/String ロノ ハヒ ロフ ヘホ マ ミム メモ ヤユ ヨ ラ リル レロ レルwindows ワンjava/lang/StringBuffer リル ゙゚ SolarisSunOS os.name ホ ゚ path.separator: java/util/StringTokenizer ロ   java.ext.dirsfile.separatorjava/io/FileInputStreamgnu.io.rxtx.propertiesjava/util/Properties       java/lang/Exceptiongnu.io.rxtx.SerialPortsgnu.io.SerialPortsgnu.io.rxtx.ParallelPortsgnu.io.ParallelPorts  Windows CECOM1:COM2:COM3:COM4:COM5:COM6:COM7:COM8:COM ゙LPT java/io/File /dev/term term/LinuxttySttySAttyUSBLinux-all-portscomxholtermodemrfcomm ttyircomm ttycosa0c ttycosa1cttyCttyCHttyDttyEttyFttyHttyIttyLttyMttyMXttyPttyRttySIttySRttyTttyVttyWttyXqnxserIrixttycttydttyfttymttyqtty4dtty4fmidiusFreeBSDcuaattyAcuaAcuaDcuaEcuaFcuaRstlNetBSDtty0cua/HP-UXtty0ptty1pUnixWareOpenUNIXtty00stty01stty02stty03s OpenServertty1Atty2Atty3Atty4Atty5Atty6Atty7Atty8Atty9Atty10Atty11Atty12Atty13Atty14Atty15Atty16Attyu1Attyu2Attyu3Attyu4Attyu5Attyu6Attyu7Attyu8Attyu9Attyu10Attyu11Attyu12Attyu13Attyu14Attyu15Attyu16ACompaq's Digital UNIXOSF1BeOSserialMac OS Xcu.KeyUSA28X191.tty.KeyUSA28X191.cu.KeyUSA28X181.tty.KeyUSA28X181.cu.KeyUSA19181.tty.KeyUSA19181.lplpt gnu/io/RXTXPortgnu/io/LPRPortgnu/io/PortInUseException   rxtxSerial   java/lang/ErrorStable Library)=========================================Native lib Version = Java lib Version = /WARNING: RXTX Version mismatch Jar version =  native lib Version = gnu/io/RXTXCommDriverjava/lang/Objectgnu/io/CommDriverjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V([C)Vconcat&(Ljava/lang/String;)Ljava/lang/String;gnu/io/CommPortIdentifier addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)Vlength()I substring(I)Ljava/lang/String; toUpperCase toLowerCase regionMatches(ILjava/lang/String;II)Zequals(Ljava/lang/Object;)ZindexOf(Ljava/lang/String;)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'(Ljava/lang/String;Ljava/lang/String;)VhasMoreElements()Z nextTokenload(Ljava/io/InputStream;)V setProperties(Ljava/util/Properties;)VkeySet()Ljava/util/Set; java/util/Setiterator()Ljava/util/Iterator;java/util/IteratorhasNextnext()Ljava/lang/Object; setProperty(I)Ljava/lang/StringBuffer;list()[Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintln loadLibrarygnu/io/RXTXVersion getVersion!マミムメモヤユヨモヤラリルレルロワン*キア゙$゚ ンQスM+ヌ>6+セ「%*+2キ,サY+2キSァレス:,ク,2ヌー゙. lo t uv"w3u9{?|H}NンsGシY[UN-aU-4{「3*+サY-キカキ+サY-キカ*ク -\4`旦ァヒア゙ *;Fァンb 66+ニ,ニ6+セ「ワ6,セ「フ,2:カ 6+2:カ 「ァヲカ カ : カ カ : カ  カァs*エカ カ%サYサYキ*エカカカキ: ァサYキ: *エカ*エカ * キァ* キ  *ク ァ3ァ#ア゙^ュョノヒフ"ワ(ン/゙5゚BNZruァイハヤ゙フヒ ワンh4*クオ**キオ<」*キ*キ*キ ァ羈゙"- .45 6(7-43;ンg7!"ク#Nサ$Y+-キ%:カ&カ':*キ*ク ァ牾゙?@DF"H,I6Lン@ヤMサYキ(クカ)クカカNサ*YサYキ-カ+カカキ,:サ-Yキ.:カ/ク0カ1ケ2:ケ3ケ4タ:カ5ク6WァンァNォA.8クYMヌ9クMァ:クYMヌ ;クMァ,ニ *,キ<ャャ7゙Rafg9hBiIjNkdlpmto{}ェ~ウスニハミメン*エ=カ8スY>SY?SY@SYASYBSYCSYDSYESN-Mァ*エカ カsスN6」*-dサYサYキFカカGカキSァヤ6」,-`サYサYキHカカGカキSァヤ-Mァ*エカ*エカVスN6:サIYJキK:カLセ-サYMキSス:-2SァMァサIY*エキKN-カL:M,ヌアスNォ@ル*エNカスYOSYPSYQS:Nァ*エRカャスYSSYTSYUSYVSYWSYXSYYSYZSY[SY \SY ]SY ^SY _SY `SYaSYbSYcSYdSYeSYOSYfSYgSYhSYQSYiSYjSYkS:NァK*エカ lカスYmS:Nァ**エnカ@ スYoSYpSYqSYrSYsSYtSYuSYvSYwS:Nァ*エxカX スYpSYySYzSY{SY\SY|SY]SY}SY^SY ~SY eSY SY S:Nァ*エカスY4:Nァc*エカ*エカスYMSYゴ:Nァ5*エ┯スYSYS:Nァ*エカ*エ宛#スY唄Y慨Y鬼Y郡:Nァロ*エ左ハ スY惨Y輯Y心Y全Y担Y鉄Y粘Y百Y亡Y 祐Y 牢Y 儡Y 售Y 婀Y彜Y抓Y朶Y欖YSY。SY「SY」SY、SY・SYヲSYァSYィSYゥSYェSYォSYャSYュS:Nァ*エョカ*エッカスY4:Nァ゚*エーカスYアS:Nァツ*エイカ.スYウSYエSYオSYカSYキSYクS:Nァ*エカ カ{スYFS:Nァj*エNカスYケS:NァM*エxカスYコS:Nァ0*エカ カスYHS:Nァス:Nァ*,-キサア゙^W <A「Q、X・cァ・ゥォカゥシュチッルヤ゙ユヨリルレ &,8>AEFKht >4D6T8_;e=q?ィJョLコN ]_a&d,fDiTmZofqvu|x{ョエタィェャェッーイシエヌキヘケルサノヒヘム%1<BNY_oz  ンュaォZQ*エカ カ サシY+キスーサシYサYキ*エカ+カカキスーサセY+キソーァNー4^タ5Q^タRZ^ダ" ,#5'R*[3^/_4ン$イチ+カツア゙ :;ワンメテクトクナKクニLァMクネLイチノカツイチハカツイチサYキヒカ+カカカツイチサYキフカ*カカカツ*+カ%イチサYキヘカ*カホカ+カカカツア ヌ゙6 -9 < A=@DE%F>GWJ_LRPK 餤U4ムb=pレレ#gnu/io/RXTXPort$MonitorThread.classハコセ.W B C D E F G H I J K L M NO NPQRCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablerun()Vfinalize ExceptionsS access$000 MonitorThread InnerClasses"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RXTXPort.java           $ T U V$gnu/io/RXTXPort$MonitorThreadjava/lang/Threadjava/lang/Throwablegnu/io/RXTXPortmonThreadisInterrupted eventLoop  BBBBBBBBBB !<*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア"2  "',16;#$!0*エ オ *エ カア"&'*%$!ア"/&'(+!*エ ャ" ,+!*エ ャ" -+!*エャ" .+!*エャ" /+!*エャ" 0+!*エャ" 1+!*エャ" 2+!*エャ" 3+!*エャ" 4+!*エャ" 56!*Zオ ャ" 76!*Zオ ャ" 86!*Zオャ" 96!*Zオャ" :6!*Zオャ" ;6!*Zオャ" <6!*Zオャ" =6!*Zオャ" >6!*Zオャ" ?6!*Zオャ" @A* N)PK 餤U44 'gnu/io/RXTXPort$SerialInputStream.classハコセ._ , - ./0 , .1 .23 45 .6 .7 .8 9:;< ,=> , .? .@ AB .C .DEHthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I ([BII[B)I available SourceFile RXTXPort.java I J KLjava/io/IOException MN OP'+++++++++ read() monThreadisInterruptedQ RS TU VI W$ #'+++++++ IOException() +++++++ NullPointerException() java/lang/NullPointerException$+++++++ IndexOutOfBoundsException() #java/lang/IndexOutOfBoundsException XL Y$Z [\ ]' ^(!gnu/io/RXTXPort$SerialInputStreamSerialInputStream InnerClassesjava/io/InputStream()Vgnu/io/RXTXPort access$1100(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZ access$1200()Lgnu/io/Zystem; gnu/io/Zystemreportln(Ljava/lang/String;)ZIOLockedIwaitForTheNativeCodeSillyreadByte access$1300nativeavailablejava/lang/Mathmin(II)I readArrayreadTerminatedArray  !" *キ*+オア"タ!#$!ヲb*エク サYキソ*エエ クカ W*エYエ `オ *エカ *エカ <=*エYエ dオ ャN*エYエ dオ -ソ9CRRSR""ユヨリ%レ2ン9AC%!#&!M*エエャ*エYエ `オ *エカ *++セカ =>*エYエ dオ ャ:*エYエ dオ ソ!,;;=;"  !* ,%!#'!n*エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウトヤヤヨヤ"f. 2368(;0>@@ICQIUMWRZTd]m^r_xajlprャsウvタyト}%!#(!p *エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウニヨヨリヨ"f 」・(ィ0ォ@ュIーQカUコWソZチdハmヒrフxホラルン゚ャウツニ%!)$!C*エエャ*エYエ `オ *エカ<=*エYエ dオ ャN*エYエ dオ -ソ$3343"  "$%*+G .FPK 餤U4。t5(gnu/io/RXTXPort$SerialOutputStream.classハコセ.O $ % &' &( &) &* &+, $ &- &./0 1 23 &4 &569this$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile RXTXPort.java ! : ;< => ?@ A! B<java/io/IOException CD EF#java/lang/IndexOutOfBoundsException$Invalid offset/length passed to read GH IJ KL MN"gnu/io/RXTXPort$SerialOutputStreamSerialOutputStream InnerClassesjava/io/OutputStreamgnu/io/RXTXPort access$1000(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZIOLockedIwaitForTheNativeCodeSilly access$1100 writeByte(IZ)V writeArray([BIIZ)V(Ljava/lang/String;)Vjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V nativeDrain(Z)Z sendEvent(IZ)Z " *キ*+オア-メz*エクア*エエア*エYエ`オ*エカ*エク*エYエdオサYキ ソ*エ*エエカ ァM*エYエdオ,ソ*エYエdオアJY\>7 8:<$=+>5@BAJEYM\I]KjLlNyOタp*エクア*エエア*エク サYキ ソ*エYエ`オ*エカ*エ++セ*エエカ ァM*エYエdオ,ソ*エYエdオア=OR6 Z []_)`6a=dOlRhSj`kbmoo*エクア`+セ、 サ Y キソシ:+ク*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ ァ:*エYエdオソ*エYエdオア]orFy z|"+=HIV]ort !ヘy*エクア*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ *エカWァL*エYエdオ+ソ*エYエdオア=X[:。 「」(ァ)ゥ6ェ=アNイXコ[カ\クiケkサxシ"#8 &7PK 餤U4K批55gnu/io/RXTXPort.classハコセ.' n o p q r s t u vw x yz x { | } ~         x      " %r % % %   /  3  。 「」 、 ・ ヲ ァ ィ ゥ ェ ォ ャ ュ ョ ッーア イウエ Iオ カキク Lrケ コ サ シス T セソタ チ ツ テ ト ナ ニ ヌ ネ ノ ハ ヒフ ヘ ホ マ ミ ム ム メ モ ヤ ユ ヨ ラ リ ル レ ロ ワ ン ゙ ゚                 r ッ   MonitorThread InnerClassesSerialInputStreamSerialOutputStreamdebugZ ConstantValue debug_readdebug_read_results debug_write debug_events debug_verbosezLgnu/io/Zystem;MonitorThreadAliveIOLockedIfdeisJpiddsrFlagout$Lgnu/io/RXTXPort$SerialOutputStream;in#Lgnu/io/RXTXPort$SerialInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListener Lgnu/io/SerialPortEventListener; monThreadLgnu/io/RXTXPort$MonitorThread;monThreadisInterruptedMonitorThreadLock closeLock Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;nativeGetParity(I)InativeGetFlowControlModesetSerialPortParams(IIII)VnativeSetSerialPortParams(IIII)Z getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte(IZ)V writeArray([BIIZ)V nativeDrain(Z)ZnativeavailablereadByte readArray([BII)IreadTerminatedArray ([BII[B)I eventLoopinterruptEventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener#(Lgnu/io/SerialPortEventListener;)VremoveEventListenerwaitForTheNativeCodeSillynativeSetEventFlag(IIZ)VnotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalizesetRcvFifoTrigger DeprecatednativeStaticSetSerialPortParams(Ljava/lang/String;IIII)VnativeStaticSetDSR(Ljava/lang/String;Z)ZnativeStaticSetDTRnativeStaticSetRTSnativeStaticIsDSR(Ljava/lang/String;)ZnativeStaticIsDTRnativeStaticIsRTSnativeStaticIsCTSnativeStaticIsCDnativeStaticIsRInativeStaticGetBaudRatenativeStaticGetDataBitsnativeStaticGetParitynativeStaticGetStopBitsnativeGetParityErrorChar()BnativeSetParityErrorChar(B)ZnativeGetEndOfInputCharnativeSetEndOfInputCharnativeSetUartTypenativeGetUartType()Ljava/lang/String;nativeSetBaudBase(I)ZnativeGetBaudBasenativeSetDivisornativeGetDivisornativeSetLowLatencynativeGetLowLatencynativeSetCallOutHangupnativeGetCallOutHangupnativeClearCommInputstaticGetBaudRatestaticGetDataBitsstaticGetParitystaticGetStopBitsstaticSetSerialPortParams staticSetDSR staticSetDTR staticSetRTS staticIsRTS staticIsCD staticIsCTS staticIsDSR staticIsDTR staticIsRIgetParityErrorCharsetParityErrorChargetEndOfInputCharsetEndOfInputChar setUARTType getUARTType setBaudBase getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangupgetCallOutHangupclearCommInput access$1000(Lgnu/io/RXTXPort;)I Synthetic access$1100 access$1200()Lgnu/io/Zystem; access$1300 SourceFile RXTXPort.java オ・ 。「 ヲ・ ッ・ チタ 」 、・ ァィ ゥ・"gnu/io/RXTXPort$SerialOutputStream チ ォャ!gnu/io/RXTXPort$SerialInputStream ュョ ー・ ア・ イ・ ウ・ カ・ キ・ シ ス セ ヌネ gnu/io/RXTXPort$MonitorThread コサ タ タ エ・ メモ(gnu/io/UnsupportedCommOperationExceptionInvalid Parameter チツjava/lang/StringBufferRXTXPort:setSerialPortParams(    ) returning < * ワレjava/io/IOException タ Not supported "java/lang/IllegalArgumentException!Unexpected negative timeout value ユ#Unexpected negative threshold value レ%Unexpected negative buffer size value クケ               unknown event:  ツgnu/io/SerialPortEvent チ #java/util/TooManyListenersException3 RXTXPort:removeEventListener() already interrupted   タ java/lang/Exception (RXTXPort:removeEventListener() returning        ! " # $ %+RXTXPort:close detected bad File Descriptor タ ツ タ  タ 0ネ 1ネ 2ネ 3ネ #$ %& '& (& ,* .* -* )* +* /* 45 67 85 97 :& ;< => ?ユ @> Aユ B C D E F gnu/io/Zystem rxtxSerial &ツ ソタ ェgnu/io/RXTXPortgnu/io/SerialPortgnu/io/PortInUseException(Lgnu/io/RXTXPort;)VnameLjava/lang/String;startappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toStringreportlnprintStackTrace access$000"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900java/lang/SystemerrLjava/io/PrintStream;java/io/PrintStreamprintln(Lgnu/io/SerialPort;IZZ)Vgnu/io/SerialPortEventListener serialEvent(Lgnu/io/SerialPortEvent;)VisAlivejoin(J)Vjava/lang/Threadsleep access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary1 。「」、・ヲ・ァィゥ・ェォャュョッ・ー・ア・イ・ウ・エ・オ・カ・キ・クケコサシスセ ソタチツテ(、*キ*オ*オ*オ* オ*オ *サ Y*キ オ *サ Y*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオ*+オ*オ*サY*キオ*エカ*カ*オ*オ アトrE< gjrtz)5チ<ホBレGLQVノ[ハ`IejoTxU}WXYZ[]」aナニ"ヌネナニノハテ*エ ートヒフテ*エートヘホマホ!ミムテャt*キ! サ"Y#キ$ソ*オ *オァ*オ*オ*オイサ%Yキ&'カ(カ)*カ(カ)*カ(カ)*カ(カ)+カ(カ,カ-Wアト& ェ ォュョ(ッ-ー2ア8イsオナ"メモナ"ヤユテ*エャトハヨユテ*エャトヨラユテ*エャトリユテ*エャトルレテ\*エア*カ.ァ M,カ0ア*オア /ト&     ロユテ*エャトワレナ/ンレテ" サ"Y1キ$ソト(ナ"゙タテアト0゚テャト8ユテャトAユタテ6*オ **エ *エ*エキ2アト]^aレテL$*オ **エ*エキ2ァ サ3Y4キ5ソアトik lq#xテ*キ6ャトユテ*カ7ャトレテO'*オ**エ *エ*エキ2ァ サ3Y8キ5ソアト &ヲタテ"*カ9アト ュョユテ*エャトカテ% *エァャトソレテ8 サ3Y:キ5ソ*オアトモヤリワユテ*エャトレテ8 サ3Y:キ5ソ*オアトユテ*エャトレナ/ナ/ナ/ユナ/ユナ/ナ/ナ/ タ タ テ.*エニ*エャャトOU Y  テ`*エ*エ;ニ *エヌャェV 8;>ADGJMPSァァァァァァァ ァ ァァェヒ 5DSbqュシ*エク<ァァャ*エク=ァャ*エク>ァャ*エク?ァzャ*エク@ァkャ*エクAァ\ャ*エクBァMャ*エクCァ>ャ*エクDァ/ャ*エクEァ ャイFサ%Yキ&Gカ(カ)カ,カHャサIY*ァキJN*エャ*エ;ニ *エ;-ケK*エ*エ;ニ *エヌャャトイ,gilPrSxV}Y\_behknェ、ュアョウータアツウマエムガキケコシスソ タ ツテナ)ニ+ネ8ノ:ヒSフUミiヤpリrレyワテy=*エ;ニ サLYキMソ*+オ;*エ$*オ*サY*キオ*エカ*カ*オアト*  ,37< ナLタテ*カ*エイNカ-W*オ*オ;ア*エニI*エカO?*オ*キP*エQカSァL+カU*エカO*エQカSQクVァ覘ァ*オ*オ;*オ*オ*オイWカ-Wア:DGTVfiTトb  1!6):.D2G/H1L5V:`;f<mCrDwE|FGHIタテA*エXクVァLァア TトUX Y[テN"*カ*オ**エキZ*エク[W*オアトgi jlm!nテN"*カ*オ**エキZ*エク\W*オアトxy z|}!~テN"*カ*オ**エキZ*エク]W*オアト !テN"*カ*オ**エキZ*エク^W*オアト !テN"*カ*オ**エキZ*エク_W*オアト、・ ヲァィ!ゥテO#*カ*オ**エキZ*エク`W*オアトイウ エオカ"キテO#*カ*オ**エキZ*エクaW*オアトタチ ツテト"ナテO#*カ*オ**エキZ*エクbW*オアトホマ ミムメ"モテO#*カ*オ**エ キZ*エクcW*オアトワン ゙゚"テO#*カ*オ**エ キZ*エクdW*オアト "ツ!タテセ^*エア*オ*エeクVァLァ*エ イgカ-Wア*カh*キi*エ*カj**エキk*キl*オ*オアTトF !(12 7 < CGOSX] タテ6*エ*カmイカnアト#' )*!レテアト5" #$ナ" %&ナ" '&ナ" (&ナ" )*ナ" +*ナ" ,*ナ" -*ナ" .*ナ" /*ナ" 0ネナ" 1ネナ" 2ネナ" 3ネナ"45ナ"67ナ"85ナ"97ナ":&ナ";<ナ"=>ナ"?ユナ"@>ナ"Aユナ"Bナ"Cナ"Dナ"Eナ"Fナ" Gネテ*クoャトナ" Hネテ*クpャト。ナ" Iネテ*クqャトエナ" Jネテ*クrャトヌナ" K$テ& *クsアト  ナ" L&テ*クtャトナ" M&テ*クuャトナ" N&テ*クvャト(ナ" O*テ*クwャト=ナ" P*テ*クxャトQナ" Q*テ*クyャトeナ" R*テ*クzャトyナ" S*テ*ク{ャトナ" T*テ*ク|ャト。ナ"U5テ#*キ}<ャト オケナ"V7テ*キ~ャトフナ"W5テ#*キ<ャト ゚ナ"X7テ*キャトナ"Y&テ*+キ〓トナ"Z<テ*カげトナ"[>テ*キΞト&ナ"/\ユテ*キ┏ト4ナ"/]>テ*キャトCナ"/^ユテ*キャトQナ"/_テ*キャト^ナ"`テ*キ握トkナ"aテ*キ荻トyナ"bテ*キ堪トナ"cテ*キ峡トナ"deテ*エャトfgeテ*エャトfhiテイートfjeテ*エャトfkタテKサ刑キ叉ァK失昇ウ続 Tト1 267wlm PK 餤U4カ擢ンgnu/io/RXTXVersion.classハコセ.   VersionLjava/lang/String;()VCodeLineNumberTable getVersion()Ljava/lang/String;nativeGetVersion SourceFileRXTXVersion.java   rxtxSerial  RXTX-2.1-7gnu/io/RXTXVersionjava/lang/Objectjava/lang/System loadLibrary(Ljava/lang/String;)V!    *キア   イー 1   + クウア '( )PK 餤U4"ヒ空gnu/io/SerialPort.classハコセ.f `ab DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_2 STOPBITS_1_5FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetSerialPortParams(IIII)V Exceptionsc getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener#(Lgnu/io/SerialPortEventListener;)VdremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterruptgetParityErrorChar()BsetParityErrorChar(B)ZgetEndOfInputCharsetEndOfInputChar setUARTType(Ljava/lang/String;Z)Z getUARTType()Ljava/lang/String; setBaudBase(I)Ze getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangup(Z)ZgetCallOutHangup SourceFileSerialPort.java !gnu/io/SerialPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersExceptionjava/io/IOException!      + !"*キア#$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJ&'KL&'MJ&'NL&'OP&'QR&'ST&'UV)&'UWT&'UX)&'UY1&'Z1&'[\&']1&'^_PK 餤U4"qarrgnu/io/SerialPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/SerialPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileSerialPortEvent.java !2   gnu/io/SerialPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$01 234%&#*エャ$7'(#*エャ$;)(#*エャ$?*+PK 餤U4ンルル$gnu/io/SerialPortEventListener.classハコセ.    serialEvent(Lgnu/io/SerialPortEvent;)V SourceFileSerialPortEventListener.javagnu/io/SerialPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U42L{ォPP.gnu/io/UnsupportedCommOperationException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFile&UnsupportedCommOperationException.java   (gnu/io/UnsupportedCommOperationExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4か゚BB'gnu/io/UnSupportedLoggerException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFileUnSupportedLoggerException.java   !gnu/io/UnSupportedLoggerExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4\キq q gnu/io/Zystem.classハコセ. +P *QR *ST UV, WX02468: YZ[\] ^ *_`a b c d e fg Uhi jk *lm no np jqrs &P &t &uvw SILENT_MODEI ConstantValue FILE_MODENET_MODEMEX_MODE PRINT_MODE J2EE_MSG_MODE J2SE_LOG_MODEmodetargetLjava/lang/String;(I)VCodeLineNumberTable Exceptions()V startLogger(Ljava/lang/String;)Vfinalize filewritereport(Ljava/lang/String;)Zreportln()Z SourceFile Zystem.java ?D <-asdf EFgnu.io.log.modex yz{ |}~ java/lang/NumberFormatException!gnu/io/UnSupportedLoggerExceptionTarget Not Allowed ?F =>java/io/RandomAccessFilerw ? F Djava/lang/Exception Debug output file write failed F HFgnu.io F D java/lang/StringBuffer  gnu/io/Zystemjava/lang/Objectjava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zjava/lang/IntegerparseInt(Ljava/lang/String;)I'(Ljava/lang/String;Ljava/lang/String;)Vlength()Jseek(J)V writeBytescloseoutLjava/io/PrintStream;java/io/PrintStreamprintlnjava/util/logging/Logger getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;fineappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!*+ ,-./0-.12-.34-.56-.78-.9:-.;<- => ?@A3*キウ*カアB4567C?DA*キクL+ニ+カ ウァz +カ ウァj +カ ウァZ +カ ウァJ +カ ウァ: +カ ウァ*+カ ウァ+クウァMウァウ*カアBfEF GIKM'O.Q7S>UGWNYW[^]g_nawcinkmnsuvCEDA8イ イアサYキソB{ ~CEFA!+ウアB CGDA) ウウアB。HFAg+サYイキM,,カカ,+カ,カァ Mイカア!B"ヲ ィゥェュ!ォ"ャ*ョIJAアYイァPイ イ+カャイァ6イャイ *+カ ァイャイ!ク"+カ#ャャBFイウ カクケサ!シ$ソ*チ,テ3ナ;ヌBノDヒLヘUホWミKLAFイァ=イ イカ$ャイァ$イャイ *%カ ァ イャャB:ヨラ ロン゙ #)+2;BDKJAカbイァYイ イ+カャイァ?イャイ*サ&Yキ'+カ(%カ(カ)カ ァイャイャャBB !$*, 3 MTV^`MDA!ウアB ./NOPK 餤U4 META-INF/ハPK 餤U4RぃWFF+META-INF/MANIFEST.MFPK 餤U4」gnu/PK 餤U4ナgnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classPK 餤U4G\yアアgnu/io/CommPort.classPK 餤U4Gウ22ノgnu/io/CommPortEnumerator.classPK 餤U4Vヌ イ、、8 gnu/io/CommPortIdentifier.classPK 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classPK 餤U4⌒[サキキアgnu/io/Configure$1.classPK 餤U4@6+ウ"gnu/io/Configure$2.classPK 餤U4lu綬マ%gnu/io/Configure$3.classPK 餤U4羣ユ)gnu/io/Configure$4.classPK 餤U4W$ュュ,gnu/io/Configure.classPK 餤U4HGムhh<gnu/io/I2C$I2CInputStream.classPK 餤U4mリ 暸gnu/io/I2C$I2COutputStream.classPK 餤U4ノト&&Dgnu/io/I2C$MonitorThread.classPK 餤U4ホ9YMgnu/io/I2C.classPK 餤U43クtkgnu/io/I2CPort.classPK 餤U4|、ンii;rgnu/io/I2CPortEvent.classPK 餤U42レエヘヘ!ロugnu/io/I2CPortEventListener.classPK 餤U4m pp"轅gnu/io/LPRPort$MonitorThread.classPK 餤U4b:[(陽gnu/io/LPRPort$ParallelInputStream.classPK 餤U4} 腎t)d~gnu/io/LPRPort$ParallelOutputStream.classPK 餤U4pケョョgnu/io/LPRPort.classPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classPK 餤U4ェテテqgnu/io/ParallelPort.classPK 餤U4Pン`|kgnu/io/ParallelPortEvent.classPK 餤U478」&Egnu/io/ParallelPortEventListener.classPK 餤U4咎Gqqj。gnu/io/PortInUseException.classPK 餤U4^狛&&」gnu/io/Raw$MonitorThread.classPK 餤U4ナサヤhhzォgnu/io/Raw$RawInputStream.classPK 餤U4ク聒 ーgnu/io/Raw$RawOutputStream.classPK 餤U4vウ蟋ァxウgnu/io/Raw.classPK 餤U4ア#ミbbMメgnu/io/RawPort.classPK 餤U41Fノii瞶gnu/io/RawPortEvent.classPK 餤U4訪Rヘヘ!∠gnu/io/RawPortEventListener.classPK 餤U4?D1,44 際gnu/io/RS485$MonitorThread.classPK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classPK 餤U4い]--$シgnu/io/RS485$RS485OutputStream.classPK 餤U4播>メ//+gnu/io/RS485.classPK 餤U4コ1茉 gnu/io/RS485Port.classPK 餤U4Tユ蚩o[gnu/io/RS485PortEvent.classPK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classPK 餤U4ムb=pレレ#B6gnu/io/RXTXPort$MonitorThread.classPK 餤U44 ']?gnu/io/RXTXPort$SerialInputStream.classPK 餤U4。t5(0Ignu/io/RXTXPort$SerialOutputStream.classPK 餤U4K批55Pgnu/io/RXTXPort.classPK 餤U4カ擢ン gnu/io/RXTXVersion.classPK 餤U4"ヒ空Ngnu/io/SerialPort.classPK 餤U4"qarrvgnu/io/SerialPortEvent.classPK 餤U4ンルル$"gnu/io/SerialPortEventListener.classPK 餤U42L{ォPP.=gnu/io/UnsupportedCommOperationException.classPK 餤U4か゚BB'ルgnu/io/UnSupportedLoggerException.classPK 餤U4\キq q `gnu/io/Zystem.classPK88!ヲPK ht4&gnu/io/installer/resources/macosx/lib/PK ht4 、ケ&&7gnu/io/installer/resources/macosx/lib/libAuthKit.jnilibホ タ__TEXT__text__TEXT(シ(__picsymbol_stub__TEXT  $__DATA__data__DATA__dyld__DATA__la_symbol_ptr__DATA < 8__LINKEDIT   X>]%1/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM \>ムユ6/System/Library/Frameworks/Security.framework/Versions/A/Security 4=ス?/usr/lib/libSystem.B.dylib !" P "  ー((|ヲB}ヲ|ヲ}cx=′ ヤ}ヲ| x=′ ミN |ヲB}hヲ|ヲ=k〔 ィ}iヲN |ヲソ8!|}x|シ+x8`88チ@H ュ|~yA 8@=」x繆8@♂ミ88タ}ヲN!h8!`テx|ヲサN |」+y|ト3xA「H ,<``c朦 セチリ|ヲ|ク+y<!`|ヨ3x|;x}Cx}7Kx|~x`暸「#|;x8。@♂(}ヲN!8||yA>テx$ヒx;`♂0}ヲN!|}y@L>テx$ヒx8♂d}ヲN!|{y@「(>テxDモx繆♂,}ヲN!8H8藤T`~ニウx8P8`88dテx低\刀P殿XH>|}xDモx繆♂,テx}ヲN!,A$>テx$ヒxeロx♂8タ}ヲN!x|xィ8!|ヲコチリN |ヲソ。|}x!ー|~x~;゙,A HMKX」x8!P|ヲサ。H0|ヲセチリ|#x!酢|x#♂0}ヲN!8|yx8cHユ8|zyAHCモxKm8Hリ;|ネ@ネ[モx<テx~トウx繆♂8}ヲN!<|}x繆♂$、x}ヲN!|wx8cH=,須|~x;{A「戟<、x繆;♂}ヲN!8<|fxヌx、x♂繆}ヲN!繆<8|ケョ、x♂烋ヲN!|ネAD@モx|xx8!p|ヲコチリN |ヲソ熕|サ+y!8|ル3x|;xD}Cx<}8Kx|}x`暸「焉#|;x8。@♂(}ヲN!8|~yAシ繆」xKU||y@「(=」xDモxナx♂,}ヲN!8H繆8D%ヒxcロxトxHムDモx=|{xナx」x♂,}ヲN!繆K。,@「8‖D」x=テxィ 88タ8HHL♂ミ}ヲN!`ロx|xx8!p|ヲサ潘 ソ|ヲ|ス+y<!酢ワ3x|~x`暸「t#|ト3x♂0}ヲN!<(`廖。P」x8@Hユ|}y@「(>テx繆8♂ト8タ 8@}ヲN!8a@88 Hux|xx8!p|ヲサN |ヲソ|、+x!|~x|ス+x|ワ3x#♂0}ヲN!<, `廖「t>、xテx8♂、8タ 8@}ヲN!8a@8`Hナ|}y@「(>テx繆8♂ミ8タ8`}ヲN!8a@88 Hュx|x8!|ヲサN |ヲソ|、+x!8||x|ン3x8a@@H|~y@「(<繆、x8♂ミ8タ8@}ヲN!hテx8!`|ヲサN |ヲソ!苣|ト3x!|ケ+x}Cx8#||x|レ3x|;x♂d}ヲN!8黥}yA`H8ナx|旡#ヒxHI・x<|~x8タDモx♂繆}ヲN!,@H=|ミHタx|xh8!`|ヲサ!膀 |ヲソ!苣|ト3x!|ケ+x|;x8#||x|レ3x}Cx♂d}ヲN!8黥}yA`Hノ8|暈eロx#ヒxHi・x<|~x8タDモx♂繆}ヲN!|リAH÷|ミHタx|xh8!`|ヲサ!膀 ソチ|ヲ|セ+y!ー8`A0H98テxHス,A「HcH8`X8!Pサチ|ヲN |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N |ヲB}hヲ=k|ヲ°@}ヲ9k@N |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N (((((((((((((((@4@0@,@(@$@ @@@@@ @D@@@<@8@ウリX(lエ0 / b フC ( リヌ  Ox マ4Mbォセンヲャ  __dyld_func_lookupdyld_stub_binding_helper__mh_bundle_header_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_externalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalizePriv_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_killSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_makeSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_request_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_rootExec_AuthorizationCopyPrivilegedReference_AuthorizationCopyRights_AuthorizationCreate_AuthorizationCreateFromExternalForm_AuthorizationExecuteWithPrivileges_AuthorizationFree_AuthorizationMakeExternalForm_calloc_free_malloc_memset_Java_glguerin_authkit_imp_macosx_AuthProcess_close_Java_glguerin_authkit_imp_macosx_AuthProcess_read_Java_glguerin_authkit_imp_macosx_AuthProcess_write___error_close_read_writedyld_lazy_symbol_binding_entry_pointdyld__mh_bundle_headerdyld_func_lookup_pointer_freeArgs_getArgsPK ht4リа@  :gnu/io/installer/resources/macosx/lib/librxtxSerial.jnilibハコセ● [ ホ L契_TEXTタタ__text__TEXTh<h__picsymbol_stub__TEXT洟洟$__picsymbolstub1__TEXT淆淆 __cstring__TEXTァ@ァ@__literal8__TEXTソソX__DATAタタ__data__DATAタタ__dyld__DATAタタ__nl_symbol_ptr__DATAタ0タ<__la_symbol_ptr__DATAタHタHH__cfstring__DATAチ8 チ8__const__DATAチXDチX__bss__DATAチ`__common__DATAテ 8__LINKEDITミタミア <C4-/usr/local/lib/librxtxSerial.jnilib hCケヒSp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation TCケヒS/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit XCケヒS/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 4CF-)/usr/lib/libgcc_s.1.dylib 4CケヒSX/usr/lib/libSystem.B.dylibメp蜚 P>>zク? z會$ケミN?|ヲB}ヲ|ヲ}cx=′ア}ヲ| x=′ア侵 }議xKフ|ヲB}hヲ|ヲ=k〔アl}iヲN |ヲ乍!Bヲ<8c詫88Kス=8/A<cアD}ヲN!8!`|ヲN |ヲB}ヲ=|ヲ9}ヲN `````|ヲソ。!`|> xBヲ|}x裾シ誓タ窃トト8^89 L|Cx|x}%KxH鵬シヤ^シB"^タ~シ|x},Kx}ヲN!|`xワタリ^タ~シ|x<_8「 <_8ツHwヘ|`x8^シB"ワ~シ|x<_8「<_8ツ },Kx}ヲN!|`xx8^89 L|x|Dx}%KxH附」x!|ヲサ。N `````|ヲソチ!酢> x厨裾8`88セ8H酋8/@88P8D8LPH8D8`|x8H!|ヲサチN `````|ヲソチ!|> xBヲ厨x<_Bッ88/@8HH8|xxH5|`x/@リ^8(<^80/AP^8,/A@^8"0^8, ,^8",^80 0~8H赦<HH^80/A^8B08,Kフ^8,/A^8B,80Kィ~8H子<_Bッ8<HH,^8,/A^8,8K8HH|x!|ヲサチN `````|ヲソチ!|> x厨/Aミ~88H痕|`x/Aク888D8<8`@8X8Y8~88%H挫|`x/Al8~88%H馴|`x/AT~88セ8H章|`x/A8H|`x~8|xH)~88@H8hH 8hh|x!|ヲサチN `````ソチ!ミ|> x厨HH^/A/Aク^/Aー/AP^/2At/2A^/AP8Hp^/KAP/nAPKワ^/,Ap/,A ^/泡@/ネA@Kィ^/XAH/ーAHK劇^/KA/KAH^/タAD/タA^/ `A KL/%A(^/8@A(K08`^AL8`^A(/pA8`^AK<`ツ^A<`^AKク8H$8@2真H8KH 8@n真H8H8@鱒^H8ネHワ8@,真Hミ8XHト8@ー真Hク8Hャ8@ `真H8タH8@%真H88@H|8@K真Hp8pHd8@真`HL8@真`H4<@真`ツH<@真`H|x!サチN `````|ヲソ。!P|> xBヲ厨ネ裾フ誓ミ8X8T8P^ネB~ネフ| x}ヲN!|`xH^ネB~ネH<_8「据<_8ツ逗| x}ヲN!|`xD^ネB~ネH<_8「摺<_8ツ逗| x}ヲN!|`x@^ネB~ネH<_8「成<_8ツ逗| x}ヲN!|`x<^ネB~ネH<_8「精<_8ツ逗| x}ヲN!|`x8^ネB烙~ネH| x}ヲN!8\~ミ|xH1|`x/@4<_8b逝Hs)^ネB烙~ネH| x}ヲN!HミdTョ真逗/AH^+A/A$HL^/A,/A,H08XH$8XH8XH 8XdTヲ真劇/A,^/0A,/AH$8TH8TH 8TdTj真/A^/AH8PH 8P8\|xH|`xL^ネBΔ8~LK|`x~ネフセD|xャx}ヲN!^ネB8~ネフセ@゙X| x}ヲN!^ネB8~ネフセ<゙P| x}ヲN!^ネB8~ネフセ8゙T| x}ヲN!!|ヲサ。N `````|ヲソチ!@|> xBヲ厨リ裾ワ誓8D^リB~リワ| x}ヲN!|`x<^リB~リ<<_8「<<_8ツ鈷| x}ヲN!|`x88/@h^リBト~リ| x}ヲN!^リBネ~リ| x}ヲN!^リB烙~リ<| x}ヲN!8ィH@H胃|`xD^リB8~リワセ8゙D| x}ヲN!^リB烙~リ<| x}ヲN!^リB(~リ8| x}ヲN!|`x@~@DHq掟`x/A8L|x<_8m@セ@HQ8L|xHoU^リB,~リ烙セ@| x}ヲN!H茅|bx|xH燕|`x~リ<_8m<_8「詐|xHl8ィH 8L|x<_8mdセ@Hノ8L|xHnヘ~@K9|`xHH/AD~リワセHKル^リB,~リ烙セ@| x}ヲN!HィH~@8Hu|`xHH/@H何|bx/Aミ~HK9|`x/@リ^リB,~リ烙セ@| x}ヲN!8L|x<_8mоセHHン8L|xHm痼HィHィ|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗~<_8「栄<_8ツ瑛Hi掃`x@^B(~8| x}ヲN!|`x<^B~芸 x}ヲN!|`x8~<_8「禍<_8ツ瑛Hi|`xD<_8b街HlユD/@l^Bト~| x}ヲN!^Bネ~| x}ヲN!^B烙~8| x}ヲN!<_8b獲HleHエ<_8b釜HlU@/@@~@Hq|`xHH/@H處bx/Aヤ~<DHr<_8b堪Hl^B烙~8| x}ヲN!<_8b簡Hkユ^B,~逗セ<| x}ヲN!!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ窃、ィャ8d~88H1|`x/@<_8b偉Hk)8hHィ8@~|xセ、H痞`x/A<_8bHj8hHp8@~|xセィHケ|`x/A<_8b0Hjケ8hH88@~|xセャH -|`x/A<_8b荏Hj8hH/@@8d~<@`дj|xH÷dTd8d~<`дm|xH]8~8Hq|`x/A8~8H處`x/@L8~8HA|`x/A8~8Hi|`x/@<_8b煙Hiチ8hH@~88セ8H5|`x/@<_8b仮Hi8hH 8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю劇~x|<_8「 <_8ツHe)|`x<~xH怖`x88/@<_8bHhナ8HHL~x<セ8゙о桑|`x/A<_8bエHh8HH 8HH|x!|ヲサチN `````ソチ!ミ|> x厨H裾LL^/A/Aシ^/Aエ/AT^/2Ax/2A ^/ATL/AHp/KAP^/nAPKリ/,Ap^/,A /泡@^/ネA@K、/XAH^/ーAHK/KA^/KAH/タAD^/タA/ `A KH^/%A(/8@A(K,8`^AL8`^A(/pA8`^AK<`ツ^A<`^AKエ8H88@2真H,8KH 8@n真H8H8@鱒^H8ネH8@,真H8XHリ8@ー真Hフ8Hタ8@ `真Hエ8タHィ8@%真H88@H8@K真H8pHx8@真`H`8@真`HH<@真`ツH0<@真`H^L真H 8|x!サチN `````ソチ!タ|> x厨X裾\誓`^\T*`,,/A\,/A,/A,8(H劇,/AH,/AXKワ^\8(HX`^\8(H<`^\8(H `^\8(H(|x!サチN `````|ヲソチ!ー|> x厨h裾l誓pp< x厨裾恊セ888<~|xHwナDT/A8`8 xBヲ厨裾恊セ~88Hw|`x/@<_8bフHa8hHh@T」>Th/@(@T宀Th/@8hH,@T」>T/A8hH 8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pp< xBヲ厨xx x厨H^H8H!サチN `````|ヲソチ!`|> xBヲ厨ク8~8<_8~`セクHwノ!|ヲサチN `````|ヲソチ!|> xBヲ厨<_8b~ H^8< xBヲ厨ネ裾フ誓ミ|タ3xヤ<_B銑@ミT>D~ネフ<_8「x<_8ツx粂X鋼`x<DT>| x8E|x<_8|タ}%KxHu!8E|xH\%8D~<|x8HvA|`x88/@Hwi|bx/A8/AャヤT>/@l<_B銑@@/@H4^@ー@^@B<A^@ー/@ヤ^@8D<_8b|ミH[e8E|x<_8|セ8Ht=8E|xH[A8/@8Hv。|bx|xHu掃`x~ネ<_8}<_8「}|xHX騾!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏}Cx<_B汁H8@8<~<_8「v<_8ツvHV怖`xD^Bd~8| x}ヲN!|`x8^8<|B媒"^<|P~D}$Kx|xHt1|`x@@/@<^@|<<_8b{/@\H/@H4^HーH^HBDA^Hー/@ヤ^H8D<_8b{LHY@/@8Hte|bx|xHsU|`x~<_8{<_8「{l|xHVュ!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||+x|~x|x<_8「t`<_8ツtdHT−`xD|~x|x<_8「x`<_8ツxdHTY|`x@88<_8by/A8@Hィ@/A,^@D/A^@8D^@8H@/A`^@ /AP88^||xx|Ex゙@Kレ88^9 L|x|Dx}%KxHq 8|x88HQE8@@|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓~x|<_8「r4<_8ツr8HR]|`x8><b`Mモ| 翻&p} p|P~8|xHn-!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「q<_8ツq廩Qナ|`x88<~8|xHjm|`x/A]T>dhH@Hpノ|bx|xHoケ|`x~<_8W<_8「vタ|xHS8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「pエ<_8ツpクHP痞`x88<~8|xHi榎`x/A]T>|ミThH@Ho痞bx|xHnム|`x~<_8V4<_8「u|xHR)8hh|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「oフ<_8ツoミHO|`x88<~8<@`дj|xHnムT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツn腥O|`x88<~8<@`дj|xHm蛟 xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツnHN%|`x88<~8<@`дj|xHm xBヲ厨ネ裾フ8<~ネフ<_8「m<_8ツmHM9|`x88<~8<@`дj|xHl xBヲ厨ネ裾フ8<~ネフ<_8「l(<_8ツl,HLM|`x88<~8<@`дj|xHk- xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「k<<_8ツk@HKY|`x88<~8<@`дj|xHj9ミT>/@<`8@|x<_8R}%KxHg8@|xHN凰!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「j4<_8ツj8HJQ|`x88<~8<@`дj|xHi1ミT >8@|x<_8Q$}%KxHfムミT>/@<`8@|x<_8Q$}%KxHfm8@|xHMq!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「i <_8ツiHI1|`x88<~8<@`дj|xHh xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「h <_8ツh$HH=|`x88<~8<@`дj|xHgミT>/@<`8@|x<_8O8}%KxHdy8@|xHK}!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_Bリ88`4H`ノ|`x<<|xxHd^<|(8/@0^<8,^<80<_Bリ<Ht8|xxHcス|`x/AX^8,/A^8,8Kネ^<8,^<80^8<,<_Bリ8!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHei|bx|xHdY|`x~h<_8M<_8「l4|xHGア8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHd痞bx|xHcム|`x~h<_8L<_8「kシ|xHG)8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHdU|bx|xHcE|`x~h<_8K<_8「kH|xHF8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHcヘ|bx|xHbス|`x~h<_8Kp<_8「jミ|xHF8|x!|ヲサチN `````|ヲソチ!|> x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H`m|`x<~8/@D`DHDT,D8D~@<`дm|xHa痼~8 x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H^}|`x<~8/@D`DHDTクD8D~@<`дm|xH_~8 xBヲ厨x裾|誓窃ю倦>8@^xB(~x8| x}ヲN!|`x<~xКロU|`x8H\i|`x@~<@HE掟`x/@~ x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8HYオ|`x<~8/@D`DHDTD8D~@<`дm|xH[)~8 xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~項@TセT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~T/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x@~@Kスュ|`x<^ィB,~ィーセ@| x}ヲN! xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ x厨X裾\88|t|x!サチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「Np<_8ツNtH.掟`x88<~8|xHGE|`x/ALT>|thH<_8bWH2)8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l|+xpHM1|bx|xHL!|`x~h<_84ワ<_8「V|xH/y8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾忿+x~<_8「M$<_8ツM(H-I|`x88<~8|xHE|`x/A<T>L8<~88|xHHe|`x/A8hHLHL)|bx|xHK|`x~<_82、<_8「V|xH.q<_8bV H0}8hh|x!|ヲサチN `````|ヲソチ!酢> xBヲ8~88HI<_8bU$H/÷8<@C0=?ノゥdxlL真HネHh(><<b`Mモ| 翻6p} p|P<@C0=?ノゥdxlT真PネPh( *リX\|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾誓 窃$(,8T8L8H8<^~|x<_8「O4<_8ツO8H+)|`x8^8@^88(X,/A葱m|`xHHо,/A@KQ|`xL^LH|@P,A^8@TH8h8@|x8|ExHDE Tル~| xT:88|B8B0" T8|0})xUb:88|B8B0",/Aо^LH|@P,|PP>P<b`Mモ| 翻6p} p|P`^P<b`Mモ|翻 6p|@p} HP>閨> 閖@P真閠^關d8`DH 8D^ 88^h|x|Dx88タDHD%|`x\^\8@(<_8bT`H-1^8@8H4\/@リT|x$|^X~ |x|ExHDル|`x\\/@hHHA|bx/A xBヲ厨ィ裾ャ誓ー窃エク~ィャ<_8「G|<_8ツGH'掟`x<ー/@88H$ー/@88H ー88@~<|xH@ |`x/AP8`>8<Q`| 翻.p} p|PT>a8@~<8|xHBa|`x/@8HF1|bx|xHE!|`x~ィ<_8K<_8「P|xH(y!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||~x|x<_8「F,<_8ツF0H&U|`x<|~x|x<_8「Oク<_8ツF0H&-|`x88|8^D~x|xセ<|Fx88KQ|`x@@/@DHE)|bx|xHD|`x~x<_8Jャ<_8「Oタ|xH'q8LH0@/ADT>HH 8HHLL|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю|~x|x<_8「D<_8ツD鍠%|`x<|~x|x<_8「Np<_8ツD鍠$ル|`x8/@<<_8bNЗ(園~x<_8Nャ<_8「Nリ<_8ツN腥&Q8HH^xBd~x8| x}ヲN!|`x@лx@||x8|~x|xセ<|Fx8K}|`xD^xBо~xセ@8タ| x}ヲN!D/@P<_8bNH'オHC!|bx|xHB|`x~x<_8Id<_8「Nリ|xH%i8HH DHH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「C<_8ツCH#-|`x8~88HAル|`x/A8HH 8HH|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏8H劇~|x<_8「B\<_8ツB`H"m|`x<劇~|x<_8「K<_8ツB`H"E|`x8/@<<_8bKH%~<_8L$<_8「LP<_8ツL\H#ス8XHフ^Bd~8| x}ヲN!|`xD^Bd~8| x}ヲN!|`x@培xD|BH||x8劇~|xセ<|Fx88Kオ|`xL^HL|HL/@P<_8bLlH%H@q|bx|xH?a|`x~<_8Fワ<_8「LP|xH"ケ8XHネH/@p^@8B| t^HD|B8B|t@@^@| t^HD|B8B|t@<_8bL粂$QH L/@H^Aト^Bо~逗セD8タ| x}ヲN!LXX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「?<_8ツ?路チ|`x88<~8<@`f|xH>。|`x/A <8@A<HHL<_8bIリH#=H>ゥ|bx|xH=處`x~x<_8D<_8「J|xH <HH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ~<_8「><_8ツ>路ス|`x88<~8|xH7e|`x/@シTセ/ADdDHDTD<_8ツIHy!|ヲサチN `````|ヲソ。!|> xBヲ厨x^x恊@^xB<^@BΔ^@B~@<| x}ヲN!|`x~@|x<_8「Gフ<_8ツGャx}ヲN!|`x8^@B(~@<セ88タ| x}ヲN!!|ヲサ。N `````|ヲソチ!ー|> xBヲ厨hh/AL^hH/@<^h /A,<_8bFH凰~h88Hオ^h8H8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_8bF路ア8|x!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!P|> xBヲ厨ネ^ネ8^<|x<@`f|ExH:A|`x8><^ネ|48@|x<_8FT}%Kx}f[xH7ム><8@|x<_8F}%KxH7オ8@|xH) xBヲ厨x8<x/A、^x88<_8bEフH項^x8^<|x<@`дj|ExH9-|`x/A <_8bEH<_8bFHルHD x!サチN `````ソチ!ミ|> x厨H8|x!サチN `````|ヲソチ!ー|> xBヲ厨h~hKQ|`x/@、h/A^h/A ~hK!~hK1h/Al~hK5|`x/AX^h/@$<_8bD4Hン8`N H658`N H6-H(<_8bDdHM~h88Hル8`N H6!|ヲサチN `````|ヲソチ!|> xBヲ厨x^xB@^x恊<<_BO楳8^x0/A艢8/@T<_BO楳x<_BO楳B8ー<_BO楳B8エ8DHp^8ー8^8ー/@閠^8xー^x8エ^x8ーKエD^xT:|@8B8^D8DD/ @ミ^x8H^x8D^x8^x8@~<@<_8「6ミ<_8ツ6ヤHヘ|`x^x^x|xK怖`x^x逗~xK|`x^x楳^x^x8B<|x<@`дj|ExH4m|`x/@<_8bC路%^ xBヲ厨h^h、/A8^hB怙B|烙^h"怙^h、}#Kx|x}l[x}ヲN!^hー/A@^hエ/A0^h"エ^hー ー^h"ー^hエ エHp^hー/A,^hBー8エ^hー<_BLpH8^hエ/A^hBエ8ーH<_BLp8!|ヲサチN `````|ヲソチ!`|> xBヲ厨ク裾シ^クBBシ~ク|x|Lx}ヲN!|`xワクヤ8シリ8h8~8K|`x/Aタ8~8Kキa|`x/Aャ8~8K菱x/A$<_8b?H8~8Kカ8~8K飃t^888^9>p|x|Dx88タ}'KxH,|`xll/@H1 |bx/Al/A 8~8Ka8~8KUKh!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_8>\| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!@|> xBヲ厨リ裾ワ誓熕゙艢^リB(~リ8| x}ヲN!|`xD8@8HY8@H,8|8^L9 ,|x|Dx}%KxH-÷~H88H)1|`x/@<_8b>,H 8@Hワ8L|xH'A8mmT>l8L~H8|xH*Y|`x/@0<_8b>PHア8@8|~H8|xH*%Hp8x~H|x8H*m|`x/@,H-ン|bx/#A<_8b>pHQ8@8|~H8|xH)ナ~H8セ8H(5~Dィィ|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x8@8`|xH'Q|`x< xBヲ厨x裾|<_BE8<_BE|x|8H*驂ix<_BE~x}$Kx|x8タH&・|`x88/A(8|x<_E88タH$~8H&M<_E|x!|ヲサチN `````|ヲソ。!酢> xBヲ厨裾倹セ8D8L|xKュ|`x/A<_8b: H#薊^B怙~<_8:,| x}ヲN!|`x@@/@<_8b:HH DXHー^BH~@<_8「:x<_8ツ:л x}ヲN!|`x< xBヲ厨ネ裾フ誓ミ88ミ+A48@ミ|B0真^狼@コ/@d^狼@シ/@,89|x<_88|セミH%89|xH 菱,~ネフ8Kノ|`x/@88H8T>|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓^xB(~x8| x}ヲN!|`x88T&/ @H8E|x8H%−`x@@/@~@H$8DH08DH 8D^<8<T&/ @88E|x8H$ヘ|`x@@/@~@H#ム8D^xB,~xセ8| x}ヲN!DT>|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_85| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5禰 斧!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b5`H =8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5(Hル!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b4H8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_B<リ@~x|<_8「$<_8ツ$H1|`x<88H<_B<リ@@/@,<_8b4シHナ8/AlHT^@ー@^@B<A^@ー/@ヤ^@B<@ー88K、<_8b4タHY8`鍠"!8/@\^@8<_8b4トH-!|ヲサチN `````|ヲソチ!|> x厨x^x恊8^8Bネ~8| x}ヲN!^8B|^xB"^xャ~8}$Kx|x}l[x}ヲN!|`x<|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃л;x<_B:リ88/@ <_8b2鍠菱x^8ー8^8BA^8ー/@ヤ^8BA<_8b3HAH$>цT >^8U :|@8B礎!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗/A0^恊8/A$^/@,H8XH<_8b2 Hン8XH<_8b28H5^、/@8XHシ<_8b2\H ^8Bネ~8| x}ヲN!<_8b2pH蛟^8BB真T^BB真P^Bィ真L8H/A 8H~8PセL゙劇H◇T}ヲN!|`x<<_8b2Hi<XX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃8@^xB~x|| x}ヲN!|`x<^xB~x<ゼл x}ヲN!|`x88/@h^xBト~x| x}ヲN!^xBネ~x| x}ヲN!^xB烙~x<| x}ヲN!@HH逗^xB~x|セ8| x}ヲN!|`x@^xB烙~x<| x}ヲN!<_8bо8H|`x/@@/@<_8b1H痼@HH|x!|ヲサチN `````|ヲソチ!p|> xBヲ厨ィ裾ャ誓ー窃エ^ィB怙~ィャ| x}ヲN!|`x88/@@^ィBト~ィ| x}ヲN!^ィBネ~ィ| x}ヲN!Hh8<|x<_8/xセエ゙ーHA^ィBBシ8<~ィ8|x|Lx}ヲN!^ィB烙~ィ8| x}ヲN!!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_B5\8ー|xhHY!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!ー|> xBヲ厨h<_B4フ8ー|xhHノ!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!|> xBヲ厨(裾,~(H|`x<<|x(|8H^888^88B|t//A^<8<|x<_8-p}%Kx}f[xH}8P|xK!8HpHA|ix8D|x<_8-、}%KxHE8P9>D|x<_8-ャ}%KxH)8P|xK-8D~@|x8 HI~@HA8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8|x<_8+閠セネH8|xK操~ネH!|`x/A<_8b+Kq8路88<_8b+`|xH|`x/A<_8b, K98路ィ88~ネ|xHヘ|`x/AD<_8b,TK89>閖x<_8,}%KxHル8|xKン8路L8TF>T >LTF>T >LT >8<|x<_8,<_8「+`}&Kx}g[x}HSxHyHU|ix8芸x<_8+シ}%KxHY8<8^8|x|DxH|`x/@D89><|x<_8,エ}%KxH8|xK!8|xKオ8路8<|x8 8$H|`x88/@889><|x<_8,ヤ}%KxHオ8|xKY8路(8劇~8|x8 Hノ~8Hチ8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ<_8b(88Hル|`x/A<_8b*К8路`Hu|`x/A<_8b*クK8路8~ネH!|`x/A<_8b+,Kス8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ~ネH=|`x88|xネ| xBヲ厨h裾l8閖x<_8)シセhH8閖xK~h88Hチ|`x/A<_8b)ミKH8TF>T >LTF>T >LT >8|x<_8)}ESx}&Kx}g[xH・8|x88HU|`x/A<_8b* K工8|xlH|`x/@<89>|x<_8*,}%KxHA8閖xKE8|xHノH,89>|x<_8*H}%KxH 8閖xK !|ヲサチN `````|ヲソ。!@|> xBヲ厨リ裾ワ~リ8Hナ|`x<@|x<_8(}%Kxヲx}g[xワHス8L|xKチ8ィH 8ィィ|x!|ヲサ。N `````|ヲソ。!酢> xBヲ<_8B$"B@>Dー^H<_8B(t"BJ>Nー^R8@|xH |`x|x8J|xH |`x|]8|x8H |`x88/@<_8b'シKi8XH8@~8|xH }~8<_8'腥 m8J~8|xH ]~8H オ|`x/@$~8H <_8b'鍖8XH~8<_8(,H ル|`x< xBヲ厨<_)48^L9 4|Cx|x}%KxHオ<_B)"|B >я~真8D~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8<_8b",|xH mHネDT:88|B8B8^ィ|x|DxH A|`x/@ャ^ AxDT:88|B8BΔDT:88|B8B|xH -|`x<_」x8",|xH ユ|`x/A~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8酢x<_8't}%KxH 8|xK!8hHミ8H~|xH ・DT:88|B8B|T>\TF>T>\T >8酢x<_8'ト}e[x}FSx}CxィxH q88^H|x|DxH |`x/@889>酢x<_8't}%KxH 58|xKI8hH^<8<T >\TF>T >\T >8酢x<_8#h<_8「",}&Kx}g[x}HSxH I88^H|x|DxH|`x/@8酢x8H 9|`x88烙~8|x8 H~8H 589>D|x<_8(}%KxH YD|x8Hゥ|`x/A食 9|bx/@|89>酢x<_8( }%KxH8|xK。8酢xH |`x/A<89>酢x8P<_8「(<}&KxHノ8|xK]8hH 8hh|x!|ヲサ。N `````ソチ!ミ|> x厨H裾L8|x!サチN `````ソチ!ミ|> x厨H裾L!サチN `````ソチ!ミ|> x厨H裾L!サチN `````|ヲソチ!|> x厨x裾|8<x/@^<HHヤ^|8^xB(~x<<`・| x}ヲN!|`x8^88@8HH|88@@T^xB ~x<8| x}ヲN!^</A^|8^<HH8/A8HHH|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_B!楳h<_8b Hu<`|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b 、H!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p^hB ~h<_8 t| x}ヲN!|`x|x!|ヲサチN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ d}ヲN |ヲB}hヲ=k|ヲ H}ヲN |ヲB}hヲ=k|ヲ ,}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲリ}ヲN |ヲB}hヲ=k|ヲシ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲмヲN |ヲB}hヲ=k|ヲh}ヲN |ヲB}hヲ=k|ヲL}ヲN |ヲB}hヲ=k|ヲ0}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲワ}ヲN |ヲB}hヲ=k|ヲタ}ヲN |ヲB}hヲ=k|ヲ、}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲl}ヲN |ヲB}hヲ=k|ヲP}ヲN |ヲB}hヲ=k|ヲ4}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ烋ヲN |ヲB}hヲ=k|ヲト}ヲN |ヲB}hヲ=k|ヲィ}ヲN |ヲB}hヲ=k|ヲ迎ヲN |ヲB}hヲ=k|ヲp}ヲN |ヲB}hヲ=k|ヲT}ヲN |ヲB}hヲ=k|ヲ8}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ艟ヲN |ヲB}hヲ=k|ヲネ}ヲN |ヲB}hヲ=k|ヲャ}ヲN |ヲB}hヲ=k|ヲ図ヲN |ヲB}hヲ=k|ヲt}ヲN |ヲB}hヲ=k|ヲX}ヲN |ヲB}hヲ=k|ヲ<}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ閘ヲN |ヲB}hヲ=k|ヲフ}ヲN |ヲB}hヲ=k|ヲー}ヲN |ヲB}hヲ=k|ヲ媒ヲN |ヲB}hヲ=k|ヲx}ヲN |ヲB}hヲ=k|ヲ\}ヲN |ヲB}hヲ=k|ヲ@}ヲN |ヲB}hヲ=k|ヲ$}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲミ}ヲN |ヲB}hヲ=k|ヲエ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ|}ヲN |ヲB}hヲ=k|ヲ`}ヲN |ヲB}hヲ=k|ヲD}ヲN |ヲB}hヲ=k|ヲ(}ヲN |ヲB}hヲ=k|ヲ }ヲN __dyld_call_module_initializers_for_dylibfdIsendEvent(IZ)ZspeeddataBitsstopBitsparityCannot Get Serial Port Settings pidopen: locking has failed for %s open: locking worked for %s open: fd returned is %i gnu/io/PortInUseExceptionopen>nativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i java/io/IOExceptionwriteBytewriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) UnsupportedCommOperationExceptionnativeSetBaudBasenativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXjava/lang/ArrayIndexOutOfBoundsExceptionreadArrayInvalid lengthRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedMonitorThreadLockZcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialBSDClientTypeIOSerialStreamIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier addPortName(Ljava/lang/String;ILgnu/io/CommDriver;)VgetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. %s%s%i/dev/%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s%s/LCK..%s/var/lockfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXXLCK..lk..LK./etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucp%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown ApplicationC0鐘鐘タチXチタタ ,tチh+ツhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhネオシネオヤスースクスタストスミススセセケ4セ0セ@セPセdケ4タ@チP@チ@@チ@チ@チ@チ@チ@チ@チ|@チx@チt@チp@チl@チh@チ`@チ\@チX@チ4@チ0@チ,@チ(@チ$@チ @チ@チ@チ@チ@チ @チ@チ@チ@タ@タ@タ@タ@タ@タ@タ@タ@タワ@タリ@タヤ@タミ@タフ@タネ@タト@タタ@タシ@タク@タエ@ター@タャ@タィ@タ、@タ@タ@タ@タ@タ@タ@タ@タ@タ@タ|@タx@タt@タp@タl@タh@タd@タ`@タ\@タX@タT@タP@タL@タH@Dタiタタ賄タアdタヨ<.タDタDリDDD DD8$タ8 タタ 8 *9$xN8:d8タ/Gh;d8wd8ネ<.8Dム8DメxDヤDユDヨフDラヤDリD゙<D゚Xラ$ム8,X楳セレ"2AWk|斧・サル )Ae沃ウノレ(8Q8c88楳8ヲ8ク8ハ8ワ8999$969H9Z9l9~9逗9「9エ9ニ9リ9黴9:: :2:D:V:h:z:劇:梳:ー:ツ:ヤ:諤:; ;;.;@;R;d;v;;噫;ャ;セ;ミ;窶;<<<*<<>>.>A>T>g>z>項>>ウ>ニ>ル>>??%?8?K?^?q?о?沃?ェ?ス?ミ?縲?@ @@/@B@U@h@{@死@。@エ@ヌ@レ@AAA&A9ALA_ArAAAォAセAムA艢AB BB0BCBVBiB|B準B「BオBネBロBCCC'C:CMC`CsCC凰CャCソCメC蛟CD DD1DDDWDjD}D逗D」DカDノDワDEEE(E;ENEaEtEE噫EュEタEモE諤EF FF2FEFXFkF~F操F、FキFハFンFGGG)G<GOGbGuGG它GョGチGヤG轢GH H H2HEHVHgHyH劇H捩HョHチHメH蛟HI II1IDIUIhI{I劇I捩IョIソIミI縲IJJJ(J;JNJaJtJJ噫JュJタJモJ諤JK KK2KEKXKkK~K操K、KキKハKンKLLL)L:LKL\LoLL斧LィLサLホL痼LMMM-M@MSMfMyM劇M麾MイMナMリMMNN$N7NJN]NpN÷N楳NァNコNヘN烙NOOO,O?OROeOxO朽O梳OアOトOラO黴OPP#P6PIP\PoPP斧PィPサPホP痼PQQQ-Q@QSQfQyQ劇Q麾QイQナQヨQ騾QRR"R5RHR[RnR÷R楳RァRコRヘR烙RSSS,S?SRSeSxS朽S梳SアSトSユS閠STT!T4TGTZTmTT凍TヲTケTフT゚TUUU+U>UQUdUwU橿U捩UーUテUヨU騾UVV"V5VHV[VnV÷V楳VァVコVヘV烙VWWW,W?WRWdWwW橿W捩WーWチWモW諤WXX/XIX`XwX準XヲXセXラXYYY+YIYhYоYYスYリYZZ/ZBZUZhZ{Z死Z。ZエZヌZワZ[[F[y[ィ[\\4\G\Y\o\ヘシ\蔵ホタ\擒ミト\ゥメ8\オタ8\カp\キ$8Np.pDpDDーDシDトDフD ヤD ワD+\ク$p\癶\\8] ]k]シ]゚]^ ^^9^L^_タp^`D^sP^。^仟シ^吭^壟^$N.D<D>8D@HDBTDF`DH|DIDKィDLシD\ミD]リDNDPDRDTDX,DY4DZDD_PDa`DepDh|^$<^ク;x^ハ=<^モ^゙>8^閠_O_b_タ_も_$N.DvDyタD{フD|D}D~DDDDD0DHDdD|DDD、_$v_國u_、w8_ウ`e`凰`ウ`モ`aaタaシa$(Nシ.シD「シD」D<D」HD・DヲDァDィャDゥクDェトDォミDャワDュDョDッDー DアDイ$Dエ0Dカ<DクHDコTDサlDセDトDエDクa$「シa+。Ha?$ Nネ.ネDネDD DDDDD|D エD D $D DD`DlDDDDDDD D @D!LD"XD(`D)D*D?DAーDCDD DE4DF\a@$ネaWネabフanミax\aXa摩Ta、PaエLaテHaミDa烙@a<b 8bタネbpb$ィNp.pDXpDZャD]エD^ワDaDb Dc<DdXDexDiDlDmクDoリDzD|D~4D@DdDD、DシDネDリDDDD$D8DXDlDDィDエDタD。トb$Xpb=TリbHUワbTWbbYHbkZDbu[Lbム\@b楳b。]<bョ^8bサタpbシワbス$lNワ.ワDュワDッDー<DアhDウDオエDケタDコフDサDシDス$Dセ0Dタ4Dヒ@DホLDマ\Dミ|DメDモDヤエDユタDルbセ$ュワb陟ォbャbャc ョHcョDc$ッ@c-ー<c>ア8cKタワcLcM$N.DD @D HD `D lD xD D 、D ーD ミD ワD D!D!D! D!,D!DD!PD!hD4!D8!ネD9!ヤDE!DG!DH"DJ"DK" cN$cecpczc唖、c丐ィcィャcカ8cナdcメタcモ"8cヤ$@N"8."8DX"8DY"DZ"、D_"クDa"トDh"ミDl"ワDn#Dv#D{#D|#(cユ$X"8d VxdV|d$Vd3VdEVdWWdgY<dpZ8d}タ"8d~#@d$N#@.#@D#@D#hDリ#トD#ヤD%D% D%,D%8D%DD%PD%\D%hD%tD%D%D%D%、D%ーD%シD%ネD%ヤD「%D」%Dヲ&Dャ&(Dリ&@Dワ&LD゙&Xd$#@d裏Hd「Ldア$(N&h.&hD&hD&D&、D&ミD&ワD&D'D'D' D',D'<D'HD'XD'dD'hdイ$&hdヘXdリ\d遐`deeタ&he'xe$N'x.'xD'xD'ャD*'リD'D'D(D( D(,D(8D (LD*(XD+(\e$'xe5he@leOpea$N(t.(tD-(tD/(ィD1(ーD3(タD5(ミD7(ワD9(D;(D=)D?)D@) eb$-(te劬,e、,eー,eシ.<eヒ/8eユタ(teヨ)8eラ$トN)8.)8DB)8DE)tDG)DH)DW)、DZ)ヤD\)D^)Db*Dd* eリ$B)8fAfAfAf)C8f8タ)8f9*$f:$N*$.*$Dq*$Dv*`D*D*Dy*ィD{*エD}*ネD*ヤD*D*D*f;$q*$fSphf^plfmppf}$N+.+D、+D・+DDィ+LDェ+\Dャ+dDア+pDカ+|Dコ+Dシ+ィDツ+トDテ+ミDェ+ワDモ+Dヌ+Dヒ+Dミ,Dム,Dユ,Dヨ,$Dラ,0f~$、+f蔵」xf捩・<fィァ8fータ+fア,8fイ$(N,8.,8D,8D,\D,hfウ$,8fヘHfル$<N,tfレ,t.,tD,tD,ィD,シf$,tgクg8gタ,tg,ミg$\N,ミ.,ミD,ミD-D-D-D-$D-0D -8D#-@D$-XD%-pD&-D3-D5-クD6-トD7-D9-D:-D;.DD<.PD=.D?.D@.、g$,ミg0g<8gI<gY@giDg{Pg項\g凰hh'hBhUhuhhiiタ,ミi.シi$N.シ..シDM.シDO/DQ/DR/D\/@D]/dD^/pD_/D`/ャDo/クDq/ネDr/リDu/Dt/Dw0Dx0$D{00D|0HD~0TD0`D0i$M.シiCKネiNLフiZLミifLヤi{O@iQDi斧iャR<iオS8iツTEiフタ.シiヘ0ィiホ$N0ィ.0ィD0ィD0D1Dゥ1Dェ18Dク1dDケ1Dコ1ィDシ1クDス1トDセ1Dフ2Dホ2(Dミ28Dモ2HDメ2TDユ2xDヨ2D2D2ミiマ$0ィijjj j0j?jTHjaDjj@jw<jム8j逗j淆0ィj2j。$<N2.2D2D3$D3LD3tD3|D3D3D3、D 3ミD 3D3D44D4PD4lD4xD4D4D4リD"4D#4j「$2jフxjラ|j罌jDk@k <k8k%Hk3タ2k4k@タ4kA4kB5kC$,N5.5D/5D05LD35pD65kD$/5kl-xkw.|kΒ.k斧08k楝5k游5ャk$N5ャ.5ャDD5ャDE5DI6DK6$DN68DP6lDQ6xk。$D5ャkラAk笄CkE8kF<lタ5ャl6l$N6.6D_6D`6ネDc6De7Dh7 Dj7TDk7`l $_6lE\lP^l\`8lea<ltタ6lu7xlv$N7x.7xDy7xDz7ーD{7クD7ワD7D8D8 D8@D8Llw$y7xl屏wネlヲxフlイz<lソlモ{8lワ|@lタ7xl8dl$N8d.8dD8dD8D8、D8ネD8D9D。9 D「9,l$8dmネmフm'<m48m=@mKタ8dmL9DmM$N9D.9DDー9DDア9|Dイ9Dカ9ィDキ9タDク9Dコ9Dサ: Dシ:mN$ー9Dmrョネm}ッフm園ア<m摩イ8m麾ウ@mュタ9Dmョ:0mッ$N:0.:0Dハ:0Dヒ:hDフ:pDミ:Dム:ャDメ:フDヤ:リDユ:Dヨ;mー$ハ:0mモネネm゙ノフm黴ヒ<mフ8nヘ@nタ:0n;n$N;.;D;D;TD;\D;D;D;クD;トD;D;n$;n5ネn@フnL<nY8nb@npタ;nq<nr$N<.<D<DD,>$n$=o ネoフo!ミo0<o=8oF@oTタ=oU>8oV$(N>8.>8D:>8D;>pD<>xD@>DA>エDB>ヤDD>DE?DF? oW$:>8o{8ネo9フo逐;<o麾<8oィ=@oカタ>8oキ?$oク$N?$.?$DT?$DU?dDV?lDZ?D[?ィD\?ネD]?ヤD^?D_@ Db@oケ$T?$o゙Rネo鬆SフoSミpU<pV8pW@p(タ?$p)@,p*$N@,.@,Dv@,Dw@dDy@tDz@D{@D}@D@ャD@クD@トD@ヤD@リD@DADADA DA,DA8DAHp+$v@,pHuxpZu|pdw<pqw8p{タ@,p|A\p}$0NA\.A\DォA\DトADニAフDネAミp~$ォA\pョァhpケィlpナェppラ$NA.ADルADB DBTDBXpリ$ルAqヨhqリlq$NBp.BpDBpDBャDBDBq $BpqOhqZlqfpqw$NB.BD-BD?C4DAChDCClqx$-Bqァ*hqイ,lqセ$NC.CDWCDYCタD[CネD_CDdDDfDDgD(DjD4DkDHDlDhDnD|DrDDsDDtDタDuDフDyDD{DD~DDE DE,DEPDE\qソ$WCqUxqV|r VrVr%X@r.Y<r8ZDrE[8rVタCrWEtrX$NEt.EtDEtDEーDEクD。EDヲEDィFDゥFDャF$DュF8DョFXDーFlDエFxDオFDカFーDキFシDサFヤDスFDタFDツGDトGDニG@DヌGLrY$Etr刈xr腹|r」rアrソ@rネ<rメDr゚8rタEtrGdr$NGd.GdDロGdDンGーD゙GクD゚GDGDHDHDH,DH8DHLDHlDHDHDHーDHDHDHDID I<D I@D IhD ID IタD IトD IミD IワD JD JD J(r$ロGds1ルxs<レ|sJレsXレsjレs|レs滋レs梳ワDsァン@sア゙<sツ゚8sマタGdsミJ<sム$リNJ<.J<D /J<D 1JxD 2JD 7JャD <JクD >JミD ?JD BJD CKD DK D FK4D JK@D KKXD LKxD MKD QKD SKィD VKエD XKリD ZKD \LD ]Lsメ$ /J<t -xt .|t .t* .t8 0@tA 1<tK 28t\ 3DtiタJ<tjL,tk$NL,.L,D lL,D mLhD nLpD oLD sLャD vLクD xLトD yLワD zLD |MD }M(D ~M4tl$ lL,t悛 jネtァ kフtウ kミtチ m@tホ n<t゚ o8t閠 pDtタL,tMLt$ NML.MLD MLD MD MD MシD MフD MリD MD MD ND N(D NHD NTt$ MLu) ネu4 フu@ ミuN @u[ <ul 8uu DuβMLuNlu$ NNl.NlD ャNlD ュNィD ョNーD ッNワD ウND カND クOD ケOD コO<D シOHD スOhD セOtu$ ャNluカ ェネuチ ォフuヘ ォミuロ ュ@u閠 ョ<u ッ8v ーDvタNlvOv$ NO.OD フOD ヘOネD ホOミD マOD モP D ヨPD リP$D ルP<D レP\D ワPhD ンPD ゙Pv$ フOvB ハネvM ヒフvY ヒミvg ヘ@vt ホ<v マ8v死 ミDv愨Ov杳Pャv$ NPャ.PャD PャD PD PD QD Q,D Q8D QDD Q\D Q|D QD QィD Qエv$ Pャvマ ネvレ フv譬 ミv @w <w 8w Dw)タPャw*Qフw+$ NQフ.QフD QフD RD RD R<D RLD RXD RdD R|D RD RィD RネD Rヤw,$ Qフw[ ネwf フwr ミw @w項 <w梳 8wァ DwオタQフwカRwキ$ NR.RD *RD +S(D ,STD /SdD 2SD 5SD 7SD 9SシD :SネD OSヤD PTD RTD ST0wク$ *Rw )ィw )ャx )ーx +@x$ ,<x- -Dx< .8xKタRxLTHxM$\NTH.THD ^THD _TD `TーD bTタD eTD hTD jTD lUD mU$D oU0D tU`D oUlD pUD qUD rUD sUャD tUクD vUシxN$ ^THx│ ]ィx匠 ]ャx屏 ]ーxゥ _<xコ `8xテ a@xメタTHxモUヤxヤ$NUヤ.UヤD UヤD VD V<D VLD VpD V|D VD V、D VーD VシD VD VD WD WD WD W xユ$ Uヤy ィy ャy ーy. <y? 8yH @yWタUヤyXW8yY$dNW8.W8D ォW8D ャWtD ュWD ッWーD イWヤD オWD キWD ケXD コXD シX D ソXDD スXPD セX\D ソXhD チXlyZ$ ォW8y摺 ェィy屏 ェャyァ ェーyオ ャ<yニ ュ8yマ ョ@y゙タW8y゚Xy$LNX.XD モXD ヤXャD ゚XエD XシD Xトy$ モXz ムXz# メ\z/ ヤz<タXz=Xヤz>$PNXヤ.XヤD XヤD Y D Y0D YLD Y`D YlD Yxz?$ Xヤzu z z劇 8z斧 <z、タXヤz・Yzヲ$シNY.YD YD YミD "ZD $Zzァ$ Yz゙ hz鬆 lz p{$NZ .Z D 7Z D 8Z`D <ZD =ZD >ZャD @ZフD BZリD D[ D F[D G[${$ 7Z {; 5{F 6{R 6{a 88{j 9<{yタZ {z[<{{$N[<.[<D L[<D P[lD Q[xD V[D X[{|$ L[<{操 N8{愨[<{杳\{$ヤN\.\D u\D v\XD w\`D |\pD ~\xD \、D \ーD \シD \トD \ミD \D \D \D ]D ]D ](D ]@D ]D ]D ]ャD ]フD ^D ^D 、^D ィ^HD ゥ^XD ォ^dD ャ^pD ョ^|D ー^D ア^タD イ^D エ^D オ_D キ_ D ク_D コ_$D サ_0D シ_@D ハ_TD _`D ロ_D ワ_、D ン_ー{$ u\{カ o{チ p{ヘ q {ラ r${遐 s({ t,| v\||! vX|, vT|8 wP|H|Y wL|d wH|q y`|{ yD||凰 zh|・ |@|ー |<|シ }8|ヌタ\|ネ_ネ|ノ$クN_ネ._ネD f_ネD g` D k`0D l`<D n`HD o`TD r``D v`hD x`D y`D z`ーD `ミD a|ハ$ f_ネ} eィ} eャ}# eー}2 eエ}E eク}U g<}^ h@}m i8}{タ_ネ}|a}}$PNa.aD aD aPD axD aD aフD aリD b D %bD &bH}~$ a}・ x}ー |}シ @}ネ D}ラ <}烙} 8~ タa~b`~$HNb`.b`D 6b`D :b、D ;bフD AbD BcD Dc D Fc,D Hc8D IcdD JcD KcネD LcヤD NcD PdD Xd D Yd,~$ 6b`~8 4x~C 5|~O 5~` 5~p 5~ 7D~劇 8@~凰 :<~「 ;8~ータb`~アdD~イ$NdD.dDD fdDD gd|D hdD idクD jdトD kdミ~ウ$ fdD~譬 dx~ e|~ g8タdDd$、Nd.dD dD e0D e8D e`D eD eD eD eタD eフD eD f$D fhD fxD fD fD fトD fミD 「g8D 」gDD ヲgHD ァgdD ョgD ッg $ d; |F }R }c }s }Β ~ L、 Hー Dス @ミ <ル 8鄲d鞨gー$ネNgー.gーD シgーD スgD ホh D モh0D h@D hLD hXD hD h$ シgー コx# サ|/ ス88 セ<EタgーFhーG$Nhー.hーD hーDhDiDi,Di<D iLD iXD idDixDiDiDiィDiクDiトDiD"jH$ hーu 権 梳 <ュ8カタhーキjク$hNj.jD/jD0jLD1jXD3jhD4jトD5jケ$/jリ.x艢0@1<38タjk$Nk.kDAkD_k4Dbk`DcklDgk|DjkDkk $Ak+@h7$、Nk、.k、Dyk、DkリDkDk8$yk、\xh($\Nl.lDlDオl$)$l<H¥$0Nl0.l0Dチl0DナldDニlDムlエDメlミDモlワDヤlDヨlDラm$$チl0アタネ⊃ツ<¬ツ8モテ@≪タl0≫m√$Nm.mDmDmLDmTDm`DmlDmxDm、DmーDmシDmタDmワDnDn Dn8DnDDnTDnpDnDnエDnワDnDnDo∽$mx<8*タm+o,$No.oDoD'o4-$oB$,No@.o@D5o@DBodDDohC$5o@B4HN$8Nox.oxDPoxDSoャDVoタDWoワD[oD\oD^p D`pDdp(Dgp0Dip8Dkp<DlpHDtpXDvp`O$PoxlOhx$Npt.ptDptDpィDpクDpトDpヤDpDpDqDqDq(Dq4Dq@DqPDq\DqhDqxD「qャD」qクD・qトDヲqミDィqワDゥrDェr Dャr4DュrdDーrpDイrエDオrトDカrDキs0Dクs<DケsHDコsTDシs`DスslDセstDソsy$ptたxにDび@ま<よ8タpts$$Ns.sDヒsDフsフDホsワDミtDメt0DモtDDミtXDユt\DラtlDリt|DレtDロt、DワtクDンtネ$ヒsハh&$DNtワ.tワDtワDuDu@DuHDuPDuXDulDuDuDuDu、DuャDuエDuクDuD vD"vD$vD%v$D(v('$tワグクセシデ8パタtワヒv<ビ$`Nv<.v<D9v<D:vtD;vピ$9v<Η7hΣ8lセ$xNvエ.vエDOvエDVvDWw DXw(D[w0Dw<DwTDwxDwDwDwクDwトDwミDwリDwワDwDxDx DxD「x0D」x<D、xDDァxHDゥxdDォxDャxDュxDーxDアx、DウxクDオxリDカxDキxDクyDyDy$Dy8DyDDyLDy`DypD y|D!yD#yィD$yクα$OvエJリKワLN(PL7QxАUHИVDХW@ЯX<jタvエk8м|涜w扉yp歩yミ$Nyミ.yミD4yミD8zD:z(D;z8D=zDD?zdD@zpDBz|DCzDDzクDFzトDHzヤDIz$4yミ┠3xヘ5<烙A/Li準コワ6@t78.Vrタyミszt$(Nzu チ.zDXzD[{0D\{@D_{Da{Db{ーDd{クDe{タ$Xz。WxッW|チ( YチヤZ8騾.I\タz]{リ^$N{リ.{リDq{リDt|Du|Dw|4D{|DD||pD}||D~|D|D|フD|リD|D}$D}TD}tD}D}シD}D~ D~D~8D~D_$q{リp刈p蔓pィrLツルsHtDタ{リy@z<%タ|D&8:タ|;~<~8=~\>$N~\.~\D・~\Dォ~Dョ~Dシ~ワDチ~DアDウ Dテ,Dト4?$・~\v」ネ□、フ頃、ミ亜(3>迂ォ8厩'泳ャ9悦タ~\謁L越$NL閲 ツ.LDムLDヨDルエDタDDDD,D8D@DHDLDXDル`DxDDャDネDDDDD D (演$ムL価マx果ミ|茄ミ芽メD悔( モツ恐具%窪圭迎剣験弧語!8更腔穀混済碕 ;ヤE晒ユ@燦ユ<酸ヨ8四タL士 始$N . D D』D□姉$ 示h竺l漆$xN∈.∈D)∈D*♪D+疾$)∈趣'h囚(l(p$\N.D8D9LD:9D;\$8洲6h讐7l従$`NU.UDHUDIげDJぞ戎$HU署Fh鋤Gl奨Gp招$\Nひ.ひDWひDXDYDZ掌$Wひ剰Uh状Vl$`N0.0Dj0DkドDlベDmDpΖDrΚDsクDzζD{σDvDuDwD}0D~<DpДDПDЫDh$j01hx<i|食k@振l<真m8刃タ0塵л壬$LNл.лDлD┴D「╋D」ミDュDョ尋$л翠x枢<世8成タл政0整$エN0.0Dセ0DソxDチDテDトDネ、DニーDハヤDフDヘDマDヤ星$セ0説ケx尖コ|煎サシス ソ8-タ0.,/$N,.,D,DhDDDャDクDトDミDDDD DDDィ0$,腺゚鮮゚曾゚蘇<爽8タ,操タ早$Nタ.タD タDDD0D`DlDD愛D案D威D蔭DD 羽D$欝D%荏曹$ タ遭 x促 |賊 遜 陀@替濁<8(タタ)悦*$クN悦.悦D4悦D6穏D8霞D9餓D:D<$DA(DC灰DE獲DG褐+$4悦棚3ィ探3ャ誕3ー地3エ畜5<仲68駐調タ悦諜刈超$(N刈.刈DS刈DU間DY喜跳$S刈掴Rh嬬$`N.DeDm$紬$e汀dH$0N0.0Dx0Dz掬D~弓$x0wh$$`N巨.巨D巨D橋%$巨5H釘$0N饗.饗D<饗DH串DIDNDS DN,DU圭DV芸DX倹DY懸D[肩D\呼D^糊DaDbDd De后Df構Dg紘Dh鋼Di剛Dj告鼎$<饗鉄;(兎;,菟D@土D<刀ED湯EP蕩F騰F8瞳屯タ饗惇昏敦$N昏.昏D昏D財D鮭DD「D」$D・0Dァ傘Dィ蚕Dェ刺Dャ私Dュ諮Dョ汐Dッ失Dア柴Dキ Dク,Dコ臭Dシ宿Dス春Dセ準Dタ曙Dチ妾Dテ抄Dニ紹Dヌ賞Dノ剰Dハ飾DヒDフ沌$昏楢ネ日フ<)7韮8葱8埜タ昏嚢(悩$N(.(Dリ(Dワ申D゙靭D゚推D瑞D摺D成D精D昔D切D蝉D栓濃$リ(敗ラネ賠ル8泊タ(白箔$N.DD繊D善D租D 側D 惰D 隊D卓D只D粕$畑ネ伴フ繁@番<彼8疲タ皮碑$N.D D%探D&値D(遅D+註D,凋D.帳D3亭D6逓D7D9 D;(D<泥D=撤DA伝DB倒DD嶋秘$ hl!8+"6"疋タ髭糖彦$N糖.糖DP糖DU屯DV楢DX迩DZD\ D](D_4D`<Da妊Dc嚢De柏Dg畔Dh番Dj扉Dk肥膝$P糖評Oリ斌Oワ布Q<父Q8舞R@弗SL粉タ糖糞紛$hN.DD4D謬D付D紛D並D蔑D娩D戊D抱DDD$D」0D・<Dヲ傍Dィ冒Dェ僕Dォ膜Dャ又Dッ蔓Dー蜜Dア眠Dエ椋D牝雰$箆<補@J83芳謀魔迄>w橿捩于佚俟偖 /傳儡冓タ冕勿冖$リN勿冤 チX凉 チh.勿D勿D"D#0D%郵D(輿D)用D*淀D,瞭D.鱗D8涙D<|D=DB丐DG丶DB于DI倨DJ倩DM們DO<DQ兔DS凅DT刋DX剞DY劬D`Db4Dd啀De喀Dg喇DJ嗾Dj囈D.國D埖D壘D夊D奐D<D媾D孚D寤D寳D岻D巖D廁DD。D・<Dヲ廩Dェ弋Dォ彖刎$勿辨匏L卮#叺$H吝$$/$咤$啀%D唸嗹%@%<嚊%8嚼%D囹&H圜&ィ垉&堙タ勿堝忸塲$N忸.忸Dク忸Dケ悛Dコ悧堡$ク忸壺キH奐キL$<N惷.惷Dニ惷Dネ憔$ニ惷 ナH2ナL妁$4N懆.懆Dユ懆D妝$ユ懆婢ヤH嫺ヤL孛寤$4N.DD扠D抖D挾D掟D擣D敲D旙D暼DD(D曄D曠實$屶x峺|嵶<巉幎(;拜捫搗擘攅斂昊晰8タ杤$@N杤.杤D杤D梍D椄D棆D楮$杤)h:l朏$tN榧.榧D'榧D)D*朖$'榧枌&h柤&l$XN(梳 檮 椢 棠 楮 s槓 v樅 サ樸d(樢d(2d(氓<.(D(D 歸D 沍汨$(湫h游l滔p滾 />Rfuоタ沃タゥタノタロタタチチ#チ5チGチYチkチ}チ準チ。チウチナチラチ騾チツ ツツ1ツCツUツgツyツ朽ツ捩ツッツチツモツ蛟ツテ テテ-テ?テQテcテuテテ凰テォテステマテ痼テトトト)ト;トMト_トqトムト斧トァトケトヒトントナナナ%ナ7ナIナ[ナmナナ操ナ」ナオナヌナルナナニニ!ニ3ニEニWニiニ{ニ項ニ麾ニアニテニユニ轢ニヌ ヌヌ2ヌEヌXヌkヌ~ヌ操ヌ、ヌキヌハヌンヌネネネ)ネ<ネOネbネuネネ它ネョネチネヤネ轢ネノ ノ ノ3ノFノYノlノノ逐ノ・ノクノヒノ゙ノハハハ*ハ=ハPハcハvハ園ハ怙ハッハツハユハ閠ハヒヒ!ヒ4ヒGヒZヒmヒヒ凍ヒヲヒケヒフピヒフフフ+フ>フQフdフwフ橿フ捩フーフテフヨフ騾フヘヘ"ヘ5ヘHヘ[ヘnヘ÷ヘ楳ヘァヘコヘヘヘ烙ヘホホホ,ホ?ホRホeホxホ朽ホ梳ホアホトホラホ黴ホママ#マ6マIマ\マoママ斧マィマサマホマ痼マミミミ-ミ@ミSミeミ凰ミャミソミメミ蛟ミム ムム/ム@ムSムfムyム劇ム麾ムイムテムヨム騾ムメ メメ-メ@メSメfメwメメ凰メャメソメメメ蛟メモ モモ1モDモWモjモ}モ逗モ」モカモノモワモヤヤヤ(ヤ;ヤNヤaヤtヤヤ噫ヤォヤシヤヘヤ烙ヤユユユ,ユ?ユRユeユxユ朽ユ梳ユアユトユラユ黴ユヨヨ#ヨ6ヨIヨ\ヨoヨヨ斧ヨィヨサヨホヨ痼ヨラララ+ラ>ラQラdラwラ橿ラ捩ラーラテラヨラ騾ラリリ"リ5リHリ[リnリ÷リ楳リァリコリヘリ烙リルルル,ル?ルRルeルxル朽ル梳ルアルトルラル黴ルレレ#レ6レGレZレmレレ凍レヲレケレフレ゚レロロロ+ロ>ロQロdロwロ橿ロ它ロョロチロヤロ蛟ロワ ワワ1ワBワUワhワ{ワ死ワ。ワエワヌワレワンンン&ン9ンLン_ンrンンンォンセンムン艢ン゙ ゙゙0゙C゙V゙i゙|゙準゙「゙オ゙ネ゙ロ゙゚゚゚'゚:゚M゚`゚s゚゚凰゚ャ゚ソ゚ム゚艢゚ .漾澳瀛燠犇猥琲.瓲畩疱瘢癶盖瞋碣 (礒秡窩笙箙簗籖糅)<絨綸纓罨羶肛腮舸萢蒻,蕋藥蚋蜿$|N洟蜷d洟` テ& テ テ: テノL~\&vエKpl_ネヲ5ャヤ6tワ(Qひ{0、8dソ9Dロ7x>8:0.;JdDuワ2ケABXヤ6(te)8XコA\Bp Z 70`Y"8ソRTHUヤGW8uOPャトMLNlQフ;L,cCJ<オEt゙Gdgー:pUb`uadセ5゙=?$ ∈ AU k< hー ュ0ィ ホ.シ v< 8 .l ? Qk m糖 }( m ィ クyミ ホ+ レo@ 懆 饗  s 2,8 D Zz mシ  タ 、k、 ナ,ミ モpt 勿 лr[< タ )l0 Dタ T\ e{リ 巨 0 ox ォ サ刈 ヒ, ラネ  @, 忸 "惷 :o G悦 ]&h r*$ #@ 'x ェj チ昏 フ タ杤榧 ( ル  )9Ghサトハミリ ,4;BSYajx「ェイコタミ "-@Rcsy」ャオセノヨ nシHKヒ4klmno、opアクニfgヨ}ヤヨ ー " $ & R U g ァ ア ウ カ ケ テ ネ ユチHチPチ8チPサネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハウユテ噫サネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハエオキカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~>?ウ。「」@、・ヲAァィゥェォャュョッーアイ6>zケ>エオカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ウ。「」、・ヲァィゥェォャュョッーアイクケコサシスセソタチツテトナニヌネノハヒ>?フヘホマミムメモヤユヨラリルレロワン゙゚@Aキ___initialize_Cplusplus__dyld_func_lookupcfm_stub_binding_helperdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf$LDBL128_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf$LDBL128_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf$LDBL128_sprintf$LDBL128_sscanf$LDBL128_stat_strcat_strcmp_strcpy_strerror_strlen_strncmp_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld_lazy_symbol_binding_entry_pointdyld__mh_dylib_headerdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled.__initialize_Cplusplus:F(0,1)p:(0,2):t(0,1)=(0,1):t(0,2)=*(0,3):t(0,3)=f(0,1)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s1828reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;cfm_vectors:(0,31),128,7200;GetVersion:(0,32),7328,32;DefineClass:(0,33),7360,32;FindClass:(0,34),7392,32;FromReflectedMethod:(0,35),7424,32;FromReflectedField:(0,36),7456,32;ToReflectedMethod:(0,37),7488,32;GetSuperclass:(0,38),7520,32;IsAssignableFrom:(0,39),7552,32;ToReflectedField:(0,40),7584,32;Throw:(0,41),7616,32;ThrowNew:(0,42),7648,32;ExceptionOccurred:(0,43),7680,32;ExceptionDescribe:(0,44),7712,32;ExceptionClear:(0,44),7744,32;FatalError:(0,45),7776,32;PushLocalFrame:(0,46),7808,32;PopLocalFrame:(0,47),7840,32;NewGlobalRef:(0,47),7872,32;DeleteGlobalRef:(0,48),7904,32;DeleteLocalRef:(0,48),7936,32;IsSameObject:(0,49),7968,32;NewLocalRef:(0,47),8000,32;EnsureLocalCapacity:(0,46),8032,32;AllocObject:(0,50),8064,32;NewObject:(0,51),8096,32;NewObjectV:(0,52),8128,32;NewObjectA:(0,53),8160,32;GetObjectClass:(0,54),8192,32;IsInstanceOf:(0,55),8224,32;GetMethodID:(0,56),8256,32;CallObjectMethod:(0,57),8288,32;CallObjectMethodV:(0,58),8320,32;CallObjectMethodA:(0,59),8352,32;CallBooleanMethod:(0,60),8384,32;CallBooleanMethodV:(0,61),8416,32;CallBooleanMethodA:(0,62),8448,32;CallByteMethod:(0,63),8480,32;CallByteMethodV:(0,64),8512,32;CallByteMethodA:(0,65),8544,32;CallCharMethod:(0,66),8576,32;CallCharMethodV:(0,67),8608,32;CallCharMethodA:(0,68),8640,32;CallShortMethod:(0,69),8672,32;CallShortMethodV:(0,70),8704,32;CallShortMethodA:(0,71),8736,32;CallIntMethod:(0,72),8768,32;CallIntMethodV:(0,73),8800,32;CallIntMethodA:(0,74),8832,32;CallLongMethod:(0,75),8864,32;CallLongMethodV:(0,76),8896,32;CallLongMethodA:(0,77),8928,32;CallFloatMethod:(0,78),8960,32;CallFloatMethodV:(0,79),8992,32;CallFloatMethodA:(0,80),9024,32;CallDoubleMethod:(0,81),9056,32;CallDoubleMethodV:(0,82),9088,32;CallDoubleMethodA:(0,83),9120,32;CallVoidMethod:(0,84),9152,32;CallVoidMethodV:(0,85),9184,32;CallVoidMethodA:(0,86),9216,32;CallNonvirtualObjectMethod:(0,87),9248,32;CallNonvirtualObjectMethodV:(0,88),9280,32;CallNonvirtualObjectMethodA:(0,89),9312,32;CallNonvirtualBooleanMethod:(0,90),9344,32;CallNonvirtualBooleanMethodV:(0,91),9376,32;CallNonvirtualBooleanMethodA:(0,92),9408,32;CallNonvirtualByteMethod:(0,93),9440,32;CallNonvirtualByteMethodV:(0,94),9472,32;CallNonvirtualByteMethodA:(0,95),9504,32;CallNonvirtualCharMethod:(0,96),9536,32;CallNonvirtualCharMethodV:(0,97),9568,32;CallNonvirtualCharMethodA:(0,98),9600,32;CallNonvirtualShortMethod:(0,99),9632,32;CallNonvirtualShortMethodV:(0,100),9664,32;CallNonvirtualShortMethodA:(0,101),9696,32;CallNonvirtualIntMethod:(0,102),9728,32;CallNonvirtualIntMethodV:(0,103),9760,32;CallNonvirtualIntMethodA:(0,104),9792,32;CallNonvirtualLongMethod:(0,105),9824,32;CallNonvirtualLongMethodV:(0,106),9856,32;CallNonvirtualLongMethodA:(0,107),9888,32;CallNonvirtualFloatMethod:(0,108),9920,32;CallNonvirtualFloatMethodV:(0,109),9952,32;CallNonvirtualFloatMethodA:(0,110),9984,32;CallNonvirtualDoubleMethod:(0,111),10016,32;CallNonvirtualDoubleMethodV:(0,112),10048,32;CallNonvirtualDoubleMethodA:(0,113),10080,32;CallNonvirtualVoidMethod:(0,114),10112,32;CallNonvirtualVoidMethodV:(0,115),10144,32;CallNonvirtualVoidMethodA:(0,116),10176,32;GetFieldID:(0,117),10208,32;GetObjectField:(0,118),10240,32;GetBooleanField:(0,119),10272,32;GetByteField:(0,120),10304,32;GetCharField:(0,121),10336,32;GetShortField:(0,122),10368,32;GetIntField:(0,123),10400,32;GetLongField:(0,124),10432,32;GetFloatField:(0,125),10464,32;GetDoubleField:(0,126),10496,32;SetObjectField:(0,127),10528,32;SetBooleanField:(0,128),10560,32;SetByteField:(0,129),10592,32;SetCharField:(0,130),10624,32;SetShortField:(0,131),10656,32;SetIntField:(0,132),10688,32;SetLongField:(0,133),10720,32;SetFloatField:(0,134),10752,32;SetDoubleField:(0,135),10784,32;GetStaticMethodID:(0,56),10816,32;CallStaticObjectMethod:(0,51),10848,32;CallStaticObjectMethodV:(0,52),10880,32;CallStaticObjectMethodA:(0,53),10912,32;CallStaticBooleanMethod:(0,136),10944,32;CallStaticBooleanMethodV:(0,137),10976,32;CallStaticBooleanMethodA:(0,138),11008,32;CallStaticByteMethod:(0,139),11040,32;CallStaticByteMethodV:(0,140),11072,32;CallStaticByteMethodA:(0,141),11104,32;CallStaticCharMethod:(0,142),11136,32;CallStaticCharMethodV:(0,143),11168,32;CallStaticCharMethodA:(0,144),11200,32;CallStaticShortMethod:(0,145),11232,32;CallStaticShortMethodV:(0,146),11264,32;CallStaticShortMethodA:(0,147),11296,32;CallStaticIntMethod:(0,148),11328,32;CallStaticIntMethodV:(0,149),11360,32;CallStaticIntMethodA:(0,150),11392,32;CallStaticLongMethod:(0,151),11424,32;CallStaticLongMethodV:(0,152),11456,32;CallStaticLongMethodA:(0,153),11488,32;CallStaticFloatMethod:(0,154),11520,32;CallStaticFloatMethodV:(0,155),11552,32;CallStaticFloatMethodA:(0,156),11584,32;CallStaticDoubleMethod:(0,157),11616,32;CallStaticDoubleMethodV:(0,158),11648,32;CallStaticDoubleMethodA:(0,159),11680,32;CallStaticVoidMethod:(0,160),11712,32;CallStaticVoidMethodV:(0,161),11744,32;CallStaticVoidMethodA:(0,162),11776,32;GetStaticFieldID:(0,117),11808,32;GetStaticObjectField:(0,163),11840,32;GetStaticBooleanField:(0,164),11872,32;GetStaticByteField:(0,165),11904,32;GetStaticCharField:(0,166),11936,32;GetStaticShortField:(0,167),11968,32;GetStaticIntField:(0,168),12000,32;GetStaticLongField:(0,169),12032,32;GetStaticFloatField:(0,170),12064,32;GetStaticDoubleField:(0,171),12096,32;SetStaticObjectField:(0,172),12128,32;SetStaticBooleanField:(0,173),12160,32;SetStaticByteField:(0,174),12192,32;SetStaticCharField:(0,175),12224,32;SetStaticShortField:(0,176),12256,32;SetStaticIntField:(0,177),12288,32;SetStaticLongField:(0,178),12320,32;SetStaticFloatField:(0,179),12352,32;SetStaticDoubleField:(0,180),12384,32;NewString:(0,181),12416,32;GetStringLength:(0,182),12448,32;GetStringChars:(0,183),12480,32;ReleaseStringChars:(0,184),12512,32;NewStringUTF:(0,185),12544,32;GetStringUTFLength:(0,182),12576,32;GetStringUTFChars:(0,186),12608,32;ReleaseStringUTFChars:(0,187),12640,32;GetArrayLength:(0,188),12672,32;NewObjectArray:(0,189),12704,32;GetObjectArrayElement:(0,190),12736,32;SetObjectArrayElement:(0,191),12768,32;NewBooleanArray:(0,192),12800,32;NewByteArray:(0,193),12832,32;NewCharArray:(0,194),12864,32;NewShortArray:(0,195),12896,32;NewIntArray:(0,196),12928,32;NewLongArray:(0,197),12960,32;NewFloatArray:(0,198),12992,32;NewDoubleArray:(0,199),13024,32;GetBooleanArrayElements:(0,200),13056,32;GetByteArrayElements:(0,201),13088,32;GetCharArrayElements:(0,202),13120,32;GetShortArrayElements:(0,203),13152,32;GetIntArrayElements:(0,204),13184,32;GetLongArrayElements:(0,205),13216,32;GetFloatArrayElements:(0,206),13248,32;GetDoubleArrayElements:(0,207),13280,32;ReleaseBooleanArrayElements:(0,208),13312,32;ReleaseByteArrayElements:(0,209),13344,32;ReleaseCharArrayElements:(0,210),13376,32;ReleaseShortArrayElements:(0,211),13408,32;ReleaseIntArrayElements:(0,212),13440,32;ReleaseLongArrayElements:(0,213),13472,32;ReleaseFloatArrayElements:(0,214),13504,32;ReleaseDoubleArrayElements:(0,215),13536,32;GetBooleanArrayRegion:(0,216),13568,32;GetByteArrayRegion:(0,217),13600,32;GetCharArrayRegion:(0,218),13632,32;GetShortArrayRegion:(0,219),13664,32;GetIntArrayRegion:(0,220),13696,32;GetLongArrayRegion:(0,221),13728,32;GetFloatArrayRegion:(0,222),13760,32;GetDoubleArrayRegion:(0,223),13792,32;SetBooleanArrayRegion:(0,224),13824,32;SetByteArrayRegion:(0,225),13856,32;SetCharArrayRegion:(0,226),13888,32;SetShortArrayRegion:(0,227),13920,32;SetIntArrayRegion:(0,228),13952,32;SetLongArrayRegion:(0,229),13984,32;SetFloatArrayRegion:(0,230),14016,32;SetDoubleArrayRegion:(0,231),14048,32;RegisterNatives:(0,232),14080,32;UnregisterNatives:(0,233),14112,32;MonitorEnter:(0,234),14144,32;MonitorExit:(0,234),14176,32;GetJavaVM:(0,235),14208,32;GetStringRegion:(0,236),14240,32;GetStringUTFRegion:(0,237),14272,32;GetPrimitiveArrayCritical:(0,238),14304,32;ReleasePrimitiveArrayCritical:(0,239),14336,32;GetStringCritical:(0,183),14368,32;ReleaseStringCritical:(0,184),14400,32;NewWeakGlobalRef:(0,240),14432,32;DeleteWeakGlobalRef:(0,241),14464,32;ExceptionCheck:(0,242),14496,32;NewDirectByteBuffer:(0,243),14528,32;GetDirectBufferAddress:(0,244),14560,32;GetDirectBufferCapacity:(0,245),14592,32;;:t(0,30)=*(0,246):t(0,31)=ar(0,21);0;224;(0,30):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=*(0,460):t(0,246)=(0,246):t(0,247)=f(0,461):t(0,248)=f(0,8):t(0,249)=f(0,8):t(0,250)=f(0,10):t(0,251)=f(0,462):t(0,252)=f(0,9):t(0,253)=f(0,8):t(0,254)=f(0,463):t(0,255)=f(0,9):t(0,256)=f(0,461):t(0,257)=f(0,461):t(0,258)=f(0,464):t(0,259)=f(0,246):t(0,260)=f(0,246):t(0,261)=f(0,461):t(0,262)=f(0,9):t(0,263)=f(0,246):t(0,264)=f(0,463):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,9):t(0,269)=f(0,8):t(0,270)=f(0,463):t(0,271)=f(0,10):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,9):t(0,275)=f(0,463):t(0,276)=f(0,463):t(0,277)=f(0,463):t(0,278)=f(0,465):t(0,279)=f(0,465):t(0,280)=f(0,465):t(0,281)=f(0,466):t(0,282)=f(0,466):t(0,283)=f(0,466):t(0,284)=f(0,467):t(0,285)=f(0,467):t(0,286)=f(0,467):t(0,287)=f(0,461):t(0,288)=f(0,461):t(0,289)=f(0,461):t(0,290)=f(0,468):t(0,291)=f(0,468):t(0,292)=f(0,468):t(0,293)=f(0,469):t(0,294)=f(0,469):t(0,295)=f(0,469):t(0,296)=f(0,470):t(0,297)=f(0,470):t(0,298)=f(0,470):t(0,299)=f(0,246):t(0,300)=f(0,246):t(0,301)=f(0,246):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,9):t(0,305)=f(0,463):t(0,306)=f(0,463):t(0,307)=f(0,463):t(0,308)=f(0,465):t(0,309)=f(0,465):t(0,310)=f(0,465):t(0,311)=f(0,466):t(0,312)=f(0,466):t(0,313)=f(0,466):t(0,314)=f(0,467):t(0,315)=f(0,467):t(0,316)=f(0,467):t(0,317)=f(0,461):t(0,318)=f(0,461):t(0,319)=f(0,461):t(0,320)=f(0,468):t(0,321)=f(0,468):t(0,322)=f(0,468):t(0,323)=f(0,469):t(0,324)=f(0,469):t(0,325)=f(0,469):t(0,326)=f(0,470):t(0,327)=f(0,470):t(0,328)=f(0,470):t(0,329)=f(0,246):t(0,330)=f(0,246):t(0,331)=f(0,246):t(0,332)=f(0,462):t(0,333)=f(0,9):t(0,334)=f(0,463):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,467):t(0,338)=f(0,461):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,470):t(0,342)=f(0,246):t(0,343)=f(0,246):t(0,344)=f(0,246):t(0,345)=f(0,246):t(0,346)=f(0,246):t(0,347)=f(0,246):t(0,348)=f(0,246):t(0,349)=f(0,246):t(0,350)=f(0,246):t(0,351)=f(0,463):t(0,352)=f(0,463):t(0,353)=f(0,463):t(0,354)=f(0,465):t(0,355)=f(0,465):t(0,356)=f(0,465):t(0,357)=f(0,466):t(0,358)=f(0,466):t(0,359)=f(0,466):t(0,360)=f(0,467):t(0,361)=f(0,467):t(0,362)=f(0,467):t(0,363)=f(0,461):t(0,364)=f(0,461):t(0,365)=f(0,461):t(0,366)=f(0,468):t(0,367)=f(0,468):t(0,368)=f(0,468):t(0,369)=f(0,469):t(0,370)=f(0,469):t(0,371)=f(0,469):t(0,372)=f(0,470):t(0,373)=f(0,470):t(0,374)=f(0,470):t(0,375)=f(0,246):t(0,376)=f(0,246):t(0,377)=f(0,246):t(0,378)=f(0,9):t(0,379)=f(0,463):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,467):t(0,383)=f(0,461):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,470):t(0,387)=f(0,246):t(0,388)=f(0,246):t(0,389)=f(0,246):t(0,390)=f(0,246):t(0,391)=f(0,246):t(0,392)=f(0,246):t(0,393)=f(0,246):t(0,394)=f(0,246):t(0,395)=f(0,246):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,473):t(0,399)=f(0,246):t(0,400)=f(0,471):t(0,401)=f(0,474):t(0,402)=f(0,246):t(0,403)=f(0,472):t(0,404)=f(0,475):t(0,405)=f(0,9):t(0,406)=f(0,246):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,491):t(0,423)=f(0,246):t(0,424)=f(0,246):t(0,425)=f(0,246):t(0,426)=f(0,246):t(0,427)=f(0,246):t(0,428)=f(0,246):t(0,429)=f(0,246):t(0,430)=f(0,246):t(0,431)=f(0,246):t(0,432)=f(0,246):t(0,433)=f(0,246):t(0,434)=f(0,246):t(0,435)=f(0,246):t(0,436)=f(0,246):t(0,437)=f(0,246):t(0,438)=f(0,246):t(0,439)=f(0,246):t(0,440)=f(0,246):t(0,441)=f(0,246):t(0,442)=f(0,246):t(0,443)=f(0,246):t(0,444)=f(0,246):t(0,445)=f(0,246):t(0,446)=f(0,246):t(0,447)=f(0,461):t(0,448)=f(0,461):t(0,449)=f(0,461):t(0,450)=f(0,461):t(0,451)=f(0,246):t(0,452)=f(0,246):t(0,453)=f(0,30):t(0,454)=f(0,246):t(0,455)=f(0,492):t(0,456)=f(0,246):t(0,457)=f(0,463):t(0,458)=f(0,9):t(0,459)=f(0,30):t(0,460)=f(0,468)jint:t(0,461)=(0,18)jfieldID:t(0,462)=(0,493)jboolean:t(0,463)=(0,494)jthrowable:t(0,464)=(0,9)jbyte:t(0,465)=(0,495)jchar:t(0,466)=(0,496)jshort:t(0,467)=(0,497)jlong:t(0,468)=(0,498)jfloat:t(0,469)=(0,499)jdouble:t(0,470)=(0,500)jstring:t(0,471)=(0,9)jsize:t(0,472)=(0,461):t(0,473)=*(0,501):t(0,474)=*(0,502)jobjectArray:t(0,475)=(0,503)jbooleanArray:t(0,476)=(0,503)jbyteArray:t(0,477)=(0,503)jcharArray:t(0,478)=(0,503)jshortArray:t(0,479)=(0,503)jintArray:t(0,480)=(0,503)jlongArray:t(0,481)=(0,503)jfloatArray:t(0,482)=(0,503)jdoubleArray:t(0,483)=(0,503):t(0,484)=*(0,463):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,467):t(0,488)=*(0,461):t(0,489)=*(0,468):t(0,490)=*(0,469):t(0,491)=*(0,470)jweak:t(0,492)=(0,9):t(0,493)=*(0,504)unsigned char:t(0,494)=@s8;r(0,494);0;255;signed char:t(0,495)=@s8;r(0,495);-128;127;short unsigned int:t(0,496)=@s16;r(0,496);0;65535;short int:t(0,497)=@s16;r(0,497);-32768;32767;long long int:t(0,498)=@s64;r(0,498);01000000000000000000000;0777777777777777777777;float:t(0,499)=r(0,2);4;0;double:t(0,500)=r(0,2);8;0;:t(0,501)=k(0,466):t(0,502)=k(0,22)jarray:t(0,503)=(0,9):t(0,504)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,246)env:p(0,6)jclazz:p(0,8)old_action:(0,505)sigaction:T(0,505)=s12__sigaction_u:(0,506),0,32;sa_mask:(0,507),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,506)=u4__sa_handler:(0,509),0,32;__sa_sigaction:(0,510),0,32;;__darwin_sigset_t:t(0,508)=(0,511)sigset_t:t(0,507)=(0,508):t(0,509)=*(0,512):t(0,510)=*(0,513)__uint32_t:t(0,511)=(0,4):t(0,512)=f(0,246):t(0,513)=f(0,246)new_action:(0,505)block_mask:(0,507)sigset_t:t(0,507)find_preopened_ports:F(0,2)filename:p(0,474)fd:(0,2)int:t(0,2)p:(0,514)preopened:T(0,515)=s52filename:(0,516),0,320;fd:(0,2),320,32;next:(0,514),352,32;prev:(0,514),384,32;;:t(0,514)=*(0,515):t(0,516)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,517)termios:T(0,517)=s44c_iflag:(0,518),0,32;c_oflag:(0,518),32,32;c_cflag:(0,518),64,32;c_lflag:(0,518),96,32;c_cc:(0,520),128,160;c_ispeed:(0,521),288,32;c_ospeed:(0,521),320,32;;long unsigned int:t(0,519)=r(0,519);0;037777777777;tcflag_t:t(0,518)=(0,519):t(0,520)=ar(0,21);0;19;(0,522)speed_t:t(0,521)=(0,18)cc_t:t(0,522)=(0,494)void:t(0,246)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,517)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,462)jfdataBits:(0,462)jfstopBits:(0,462)jfparity:(0,462)Java_gnu_io_RXTXPort_open:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,474)char:t(0,22)jclazz:(0,8)jfid:(0,462)Java_gnu_io_RXTXPort_nativeClose:F(0,246)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,474)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,517)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,463)env:p(0,6)jobj:p(0,9)speed:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,461)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,523)dataBits:p(0,461)temp:(0,2):t(0,523)=*(0,518)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,523)stopBits:p(0,461)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)translate_parity:F(0,2)env:p(0,6)cflag:p(0,523)parity:p(0,461)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,246)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,246)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,462)newmask:(0,507)oldmask:(0,507)newaction:(0,505)oldaction:(0,505)tid:(0,524)_opaque_pthread_t:T(0,526)=s604__sig:(0,18),0,32;__cleanup_stack:(0,527),32,32;__opaque:(0,528),64,4768;;__darwin_pthread_t:t(0,525)=(0,529)pthread_t:t(0,524)=(0,525):t(0,527)=*(0,530):t(0,528)=ar(0,21);0;595;(0,22):t(0,529)=*(0,526)__darwin_pthread_handler_rec:T(0,530)=s12__routine:(0,531),0,32;__arg:(0,30),32,32;__next:(0,527),64,32;;:t(0,531)=*(0,532):t(0,532)=f(0,246)Java_gnu_io_RXTXPort_writeByte:F(0,246)env:p(0,6)jobj:p(0,9)ji:p(0,461)interrupted:p(0,463)index:(0,12)byte:(0,494)unsigned char:t(0,494)fd:(0,2)result:(0,2)msg:(0,5)Java_gnu_io_RXTXPort_writeArray:F(0,246)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)count:p(0,461)interrupted:p(0,463)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,485)jbyte:t(0,465)Java_gnu_io_RXTXPort_nativeDrain:F(0,463)env:p(0,6)jobj:p(0,9)interrupted:p(0,463)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,246)env:p(0,6)jobj:p(0,9)duration:p(0,461)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_isDSR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDSR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isDTR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)static_add_filename:F(0,246)filename:p(0,474)fd:p(0,2)newp:(0,514)p:(0,514)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,463)env:p(0,6)jobj:p(0,9)BaudBase:p(0,461)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,463)env:p(0,6)jobj:p(0,9)Divisor:p(0,461)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,246)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)baudrate:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)pid:(0,2)filename:(0,474)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)filename:(0,474)result:(0,2)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,465)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,465)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)fd:(0,2)ttyset:(0,517)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,533)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,533)=*(0,494)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,534):t(0,534)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,246)env:p(0,6)jobj:p(0,9)vtime:p(0,461)threshold:p(0,461)buffer:p(0,461)fd:(0,2)ttyset:(0,517)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,461)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,535)fd:(0,2):t(0,535)=ar(0,21);0;0;(0,494)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)bytes:(0,2)body:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)jterminator:p(0,477)bytes:(0,2)total:(0,2)body:(0,485)terminator:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,246)env:p(0,6)jobj:p(0,9)flowmode:p(0,461)ttyset:(0,517)fd:(0,2)unlock_monitor_thread:F(0,246)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,462)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,246)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,246)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,246)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,246)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,246)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,246)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,471)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)port_type:p(0,461)ttyset:(0,517)c:(0,22)fd:(0,2)name:(0,474)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,517)createSerialIterator:F(0,536)serialIterator:p(0,537)kernResult:(0,536)kern_return_t:t(0,536)=(0,2):t(0,537)=*(0,538)io_iterator_t:t(0,538)=(0,539)io_object_t:t(0,539)=(0,540)mach_port_t:t(0,540)=(0,541)__darwin_mach_port_t:t(0,541)=(0,542)__darwin_mach_port_name_t:t(0,542)=(0,543)__darwin_natural_t:t(0,543)=(0,4)masterPort:(0,540)mach_port_t:t(0,540)classesToMatch:(0,544):t(0,545)=*(0,546)CFMutableDictionaryRef:t(0,544)=(0,545):t(0,546)=xs__CFDictionary:_resultStr.13368getRegistryString:F(0,547)sObj:p(0,539)propName:p(0,547)resultStr:V(0,548)nameCFstring:(0,549):t(0,547)=*(0,22):t(0,548)=ar(0,21);0;255;(0,22):t(0,550)=*(0,551)CFTypeRef:t(0,549)=(0,550):t(0,551)=k(0,246)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,461)theSerialIterator:(0,538)io_iterator_t:t(0,538)theObject:(0,539)io_object_t:t(0,539)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,471)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,463)env:p(0,6)jobj:p(0,9)portType:p(0,461) :T(0,552)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552)result:(0,463)jboolean:t(0,463)message:(0,5)_mystat.13460Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)result:(0,463)mystat:V(0,553)stat:T(0,553)=s96st_dev:(0,554),0,32;st_ino:(0,556),32,32;st_mode:(0,558),64,16;st_nlink:(0,560),80,16;st_uid:(0,562),96,32;st_gid:(0,564),128,32;st_rdev:(0,554),160,32;st_atimespec:(0,566),192,64;st_mtimespec:(0,566),256,64;st_ctimespec:(0,566),320,64;st_size:(0,567),384,64;st_blocks:(0,569),448,64;st_blksize:(0,571),512,32;st_flags:(0,511),544,32;st_gen:(0,511),576,32;st_lspare:(0,20),608,32;st_qspare:(0,573),640,128;;timespec:T(0,566)=s8tv_sec:(0,574),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,555)=(0,20)dev_t:t(0,554)=(0,555)__darwin_ino_t:t(0,557)=(0,511)ino_t:t(0,556)=(0,557)__darwin_mode_t:t(0,559)=(0,561)mode_t:t(0,558)=(0,559)__uint16_t:t(0,561)=(0,496)nlink_t:t(0,560)=(0,561)__darwin_uid_t:t(0,563)=(0,511)uid_t:t(0,562)=(0,563)__darwin_gid_t:t(0,565)=(0,511)gid_t:t(0,564)=(0,565)__darwin_off_t:t(0,568)=(0,575)off_t:t(0,567)=(0,568)__darwin_blkcnt_t:t(0,570)=(0,575)blkcnt_t:t(0,569)=(0,570)__darwin_blksize_t:t(0,572)=(0,20)blksize_t:t(0,571)=(0,572):t(0,573)=ar(0,21);0;1;(0,575)time_t:t(0,574)=(0,17)__int64_t:t(0,575)=(0,498)teststring:(0,548)fd:(0,2)i:(0,2)name:(0,474)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,471)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,246)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,463)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,461)event:p(0,461)flag:p(0,463)index:(0,12)send_event:F(0,2)eis:p(0,12)type:p(0,461)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,576)env:p(0,6)jobj:p(0,9)id:p(0,547)type:p(0,547)result:(0,2)__darwin_size_t:t(0,577)=(0,519)size_t:t(0,576)=(0,577)jclazz:(0,8)jfd:(0,462)throw_java_exception:F(0,246)env:p(0,6)exc:p(0,547)foo:p(0,547)msg:p(0,547)buf:(0,578)clazz:(0,8):t(0,578)=ar(0,21);0;59;(0,22)report_warning:F(0,246)msg:p(0,547)report_verbose:F(0,246)msg:p(0,547)report_error:F(0,246)msg:p(0,547)report:F(0,246)msg:p(0,547)fhs_lock:F(0,2)filename:p(0,474)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,579)message:(0,5)file:(0,5)p:(0,547):t(0,579)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,474)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,579)message:(0,5)name:(0,5)fd:(0,2)buf:(0,553)check_lock_status:F(0,2)filename:p(0,474)buf:(0,553)fhs_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)file:(0,5)p:(0,547)i:(0,2)uucp_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)buf:(0,553)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,474)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,579)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,580)testLockFileDirName:(0,581)testLockFileName:(0,582)testLockAbsFileName:(0,547):t(0,580)=*(0,583):t(0,581)=ar(0,21);0;9;(0,22):t(0,582)=ar(0,21);0;9;(0,22)FILE:t(0,583)=(0,584)__sFILE:T(0,584)=s88_p:(0,533),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,497),96,16;_file:(0,497),112,16;_bf:(0,585),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,586),256,32;_read:(0,587),288,32;_seek:(0,588),320,32;_write:(0,589),352,32;_ub:(0,585),384,64;_extra:(0,590),448,32;_ur:(0,2),480,32;_ubuf:(0,591),512,24;_nbuf:(0,535),536,8;_lb:(0,585),544,64;_blksize:(0,2),608,32;_offset:(0,592),640,64;;__sbuf:T(0,585)=s8_base:(0,533),0,32;_size:(0,2),32,32;;:t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=*(0,597):t(0,591)=ar(0,21);0;2;(0,494)fpos_t:t(0,592)=(0,568):t(0,593)=f(0,2):t(0,594)=f(0,2):t(0,595)=f(0,592):t(0,596)=f(0,2):t(0,597)=xs__sFILEX:_C.128.13902_C.127.13901is_device_locked:F(0,2)port_filename:p(0,474)lockdirs:(0,598)lockprefixes:(0,599)p:(0,547):t(0,598)=ar(0,21);0;12;(0,474):t(0,599)=ar(0,21);0;3;(0,474)file:(0,5)pid_buffer:(0,600)message:(0,5)i:(0,2):t(0,600)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,553)buf2:(0,553)lockbuf:(0,553)system_does_not_lock:F(0,2)filename:p(0,474)pid:p(0,2)system_does_not_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)dump_termios:F(0,246)foo:p(0,547)ttyset:p(0,601):t(0,601)=*(0,517)get_java_environment:F(0,6)java_vm:p(0,602)was_attached:p(0,484)env:(0,603):t(0,602)=*(0,604):t(0,603)=*(0,30)JavaVM:t(0,604)=(0,605):t(0,605)=*(0,606):t(0,606)=k(0,607)JNIInvokeInterface_:T(0,607)=s48reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;cfm_vectors:(0,608),96,128;DestroyJavaVM:(0,609),224,32;AttachCurrentThread:(0,610),256,32;DetachCurrentThread:(0,609),288,32;GetEnv:(0,611),320,32;AttachCurrentThreadAsDaemon:(0,610),352,32;;:t(0,608)=ar(0,21);0;3;(0,30):t(0,609)=*(0,612):t(0,610)=*(0,613):t(0,611)=*(0,614):t(0,612)=f(0,461):t(0,613)=f(0,461):t(0,614)=f(0,461)err_get_env:(0,461)jint:t(0,461)JNI_OnLoad:F(0,461)java_vm:p(0,602)reserved:p(0,30)JNI_OnUnload:F(0,246)vm:p(0,602)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,602)preopened_port:G(0,514)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s1828reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;cfm_vectors:(0,11),128,7200;GetVersion:(0,12),7328,32;DefineClass:(0,13),7360,32;FindClass:(0,14),7392,32;FromReflectedMethod:(0,15),7424,32;FromReflectedField:(0,16),7456,32;ToReflectedMethod:(0,17),7488,32;GetSuperclass:(0,18),7520,32;IsAssignableFrom:(0,19),7552,32;ToReflectedField:(0,20),7584,32;Throw:(0,21),7616,32;ThrowNew:(0,22),7648,32;ExceptionOccurred:(0,23),7680,32;ExceptionDescribe:(0,24),7712,32;ExceptionClear:(0,24),7744,32;FatalError:(0,25),7776,32;PushLocalFrame:(0,26),7808,32;PopLocalFrame:(0,27),7840,32;NewGlobalRef:(0,27),7872,32;DeleteGlobalRef:(0,28),7904,32;DeleteLocalRef:(0,28),7936,32;IsSameObject:(0,29),7968,32;NewLocalRef:(0,27),8000,32;EnsureLocalCapacity:(0,26),8032,32;AllocObject:(0,30),8064,32;NewObject:(0,31),8096,32;NewObjectV:(0,32),8128,32;NewObjectA:(0,33),8160,32;GetObjectClass:(0,34),8192,32;IsInstanceOf:(0,35),8224,32;GetMethodID:(0,36),8256,32;CallObjectMethod:(0,37),8288,32;CallObjectMethodV:(0,38),8320,32;CallObjectMethodA:(0,39),8352,32;CallBooleanMethod:(0,40),8384,32;CallBooleanMethodV:(0,41),8416,32;CallBooleanMethodA:(0,42),8448,32;CallByteMethod:(0,43),8480,32;CallByteMethodV:(0,44),8512,32;CallByteMethodA:(0,45),8544,32;CallCharMethod:(0,46),8576,32;CallCharMethodV:(0,47),8608,32;CallCharMethodA:(0,48),8640,32;CallShortMethod:(0,49),8672,32;CallShortMethodV:(0,50),8704,32;CallShortMethodA:(0,51),8736,32;CallIntMethod:(0,52),8768,32;CallIntMethodV:(0,53),8800,32;CallIntMethodA:(0,54),8832,32;CallLongMethod:(0,55),8864,32;CallLongMethodV:(0,56),8896,32;CallLongMethodA:(0,57),8928,32;CallFloatMethod:(0,58),8960,32;CallFloatMethodV:(0,59),8992,32;CallFloatMethodA:(0,60),9024,32;CallDoubleMethod:(0,61),9056,32;CallDoubleMethodV:(0,62),9088,32;CallDoubleMethodA:(0,63),9120,32;CallVoidMethod:(0,64),9152,32;CallVoidMethodV:(0,65),9184,32;CallVoidMethodA:(0,66),9216,32;CallNonvirtualObjectMethod:(0,67),9248,32;CallNonvirtualObjectMethodV:(0,68),9280,32;CallNonvirtualObjectMethodA:(0,69),9312,32;CallNonvirtualBooleanMethod:(0,70),9344,32;CallNonvirtualBooleanMethodV:(0,71),9376,32;CallNonvirtualBooleanMethodA:(0,72),9408,32;CallNonvirtualByteMethod:(0,73),9440,32;CallNonvirtualByteMethodV:(0,74),9472,32;CallNonvirtualByteMethodA:(0,75),9504,32;CallNonvirtualCharMethod:(0,76),9536,32;CallNonvirtualCharMethodV:(0,77),9568,32;CallNonvirtualCharMethodA:(0,78),9600,32;CallNonvirtualShortMethod:(0,79),9632,32;CallNonvirtualShortMethodV:(0,80),9664,32;CallNonvirtualShortMethodA:(0,81),9696,32;CallNonvirtualIntMethod:(0,82),9728,32;CallNonvirtualIntMethodV:(0,83),9760,32;CallNonvirtualIntMethodA:(0,84),9792,32;CallNonvirtualLongMethod:(0,85),9824,32;CallNonvirtualLongMethodV:(0,86),9856,32;CallNonvirtualLongMethodA:(0,87),9888,32;CallNonvirtualFloatMethod:(0,88),9920,32;CallNonvirtualFloatMethodV:(0,89),9952,32;CallNonvirtualFloatMethodA:(0,90),9984,32;CallNonvirtualDoubleMethod:(0,91),10016,32;CallNonvirtualDoubleMethodV:(0,92),10048,32;CallNonvirtualDoubleMethodA:(0,93),10080,32;CallNonvirtualVoidMethod:(0,94),10112,32;CallNonvirtualVoidMethodV:(0,95),10144,32;CallNonvirtualVoidMethodA:(0,96),10176,32;GetFieldID:(0,97),10208,32;GetObjectField:(0,98),10240,32;GetBooleanField:(0,99),10272,32;GetByteField:(0,100),10304,32;GetCharField:(0,101),10336,32;GetShortField:(0,102),10368,32;GetIntField:(0,103),10400,32;GetLongField:(0,104),10432,32;GetFloatField:(0,105),10464,32;GetDoubleField:(0,106),10496,32;SetObjectField:(0,107),10528,32;SetBooleanField:(0,108),10560,32;SetByteField:(0,109),10592,32;SetCharField:(0,110),10624,32;SetShortField:(0,111),10656,32;SetIntField:(0,112),10688,32;SetLongField:(0,113),10720,32;SetFloatField:(0,114),10752,32;SetDoubleField:(0,115),10784,32;GetStaticMethodID:(0,36),10816,32;CallStaticObjectMethod:(0,31),10848,32;CallStaticObjectMethodV:(0,32),10880,32;CallStaticObjectMethodA:(0,33),10912,32;CallStaticBooleanMethod:(0,116),10944,32;CallStaticBooleanMethodV:(0,117),10976,32;CallStaticBooleanMethodA:(0,118),11008,32;CallStaticByteMethod:(0,119),11040,32;CallStaticByteMethodV:(0,120),11072,32;CallStaticByteMethodA:(0,121),11104,32;CallStaticCharMethod:(0,122),11136,32;CallStaticCharMethodV:(0,123),11168,32;CallStaticCharMethodA:(0,124),11200,32;CallStaticShortMethod:(0,125),11232,32;CallStaticShortMethodV:(0,126),11264,32;CallStaticShortMethodA:(0,127),11296,32;CallStaticIntMethod:(0,128),11328,32;CallStaticIntMethodV:(0,129),11360,32;CallStaticIntMethodA:(0,130),11392,32;CallStaticLongMethod:(0,131),11424,32;CallStaticLongMethodV:(0,132),11456,32;CallStaticLongMethodA:(0,133),11488,32;CallStaticFloatMethod:(0,134),11520,32;CallStaticFloatMethodV:(0,135),11552,32;CallStaticFloatMethodA:(0,136),11584,32;CallStaticDoubleMethod:(0,137),11616,32;CallStaticDoubleMethodV:(0,138),11648,32;CallStaticDoubleMethodA:(0,139),11680,32;CallStaticVoidMethod:(0,140),11712,32;CallStaticVoidMethodV:(0,141),11744,32;CallStaticVoidMethodA:(0,142),11776,32;GetStaticFieldID:(0,97),11808,32;GetStaticObjectField:(0,143),11840,32;GetStaticBooleanField:(0,144),11872,32;GetStaticByteField:(0,145),11904,32;GetStaticCharField:(0,146),11936,32;GetStaticShortField:(0,147),11968,32;GetStaticIntField:(0,148),12000,32;GetStaticLongField:(0,149),12032,32;GetStaticFloatField:(0,150),12064,32;GetStaticDoubleField:(0,151),12096,32;SetStaticObjectField:(0,152),12128,32;SetStaticBooleanField:(0,153),12160,32;SetStaticByteField:(0,154),12192,32;SetStaticCharField:(0,155),12224,32;SetStaticShortField:(0,156),12256,32;SetStaticIntField:(0,157),12288,32;SetStaticLongField:(0,158),12320,32;SetStaticFloatField:(0,159),12352,32;SetStaticDoubleField:(0,160),12384,32;NewString:(0,161),12416,32;GetStringLength:(0,162),12448,32;GetStringChars:(0,163),12480,32;ReleaseStringChars:(0,164),12512,32;NewStringUTF:(0,165),12544,32;GetStringUTFLength:(0,162),12576,32;GetStringUTFChars:(0,166),12608,32;ReleaseStringUTFChars:(0,167),12640,32;GetArrayLength:(0,168),12672,32;NewObjectArray:(0,169),12704,32;GetObjectArrayElement:(0,170),12736,32;SetObjectArrayElement:(0,171),12768,32;NewBooleanArray:(0,172),12800,32;NewByteArray:(0,173),12832,32;NewCharArray:(0,174),12864,32;NewShortArray:(0,175),12896,32;NewIntArray:(0,176),12928,32;NewLongArray:(0,177),12960,32;NewFloatArray:(0,178),12992,32;NewDoubleArray:(0,179),13024,32;GetBooleanArrayElements:(0,180),13056,32;GetByteArrayElements:(0,181),13088,32;GetCharArrayElements:(0,182),13120,32;GetShortArrayElements:(0,183),13152,32;GetIntArrayElements:(0,184),13184,32;GetLongArrayElements:(0,185),13216,32;GetFloatArrayElements:(0,186),13248,32;GetDoubleArrayElements:(0,187),13280,32;ReleaseBooleanArrayElements:(0,188),13312,32;ReleaseByteArrayElements:(0,189),13344,32;ReleaseCharArrayElements:(0,190),13376,32;ReleaseShortArrayElements:(0,191),13408,32;ReleaseIntArrayElements:(0,192),13440,32;ReleaseLongArrayElements:(0,193),13472,32;ReleaseFloatArrayElements:(0,194),13504,32;ReleaseDoubleArrayElements:(0,195),13536,32;GetBooleanArrayRegion:(0,196),13568,32;GetByteArrayRegion:(0,197),13600,32;GetCharArrayRegion:(0,198),13632,32;GetShortArrayRegion:(0,199),13664,32;GetIntArrayRegion:(0,200),13696,32;GetLongArrayRegion:(0,201),13728,32;GetFloatArrayRegion:(0,202),13760,32;GetDoubleArrayRegion:(0,203),13792,32;SetBooleanArrayRegion:(0,204),13824,32;SetByteArrayRegion:(0,205),13856,32;SetCharArrayRegion:(0,206),13888,32;SetShortArrayRegion:(0,207),13920,32;SetIntArrayRegion:(0,208),13952,32;SetLongArrayRegion:(0,209),13984,32;SetFloatArrayRegion:(0,210),14016,32;SetDoubleArrayRegion:(0,211),14048,32;RegisterNatives:(0,212),14080,32;UnregisterNatives:(0,213),14112,32;MonitorEnter:(0,214),14144,32;MonitorExit:(0,214),14176,32;GetJavaVM:(0,215),14208,32;GetStringRegion:(0,216),14240,32;GetStringUTFRegion:(0,217),14272,32;GetPrimitiveArrayCritical:(0,218),14304,32;ReleasePrimitiveArrayCritical:(0,219),14336,32;GetStringCritical:(0,163),14368,32;ReleaseStringCritical:(0,164),14400,32;NewWeakGlobalRef:(0,220),14432,32;DeleteWeakGlobalRef:(0,221),14464,32;ExceptionCheck:(0,222),14496,32;NewDirectByteBuffer:(0,223),14528,32;GetDirectBufferAddress:(0,224),14560,32;GetDirectBufferCapacity:(0,225),14592,32;;:t(0,10)=*(0,226):t(0,11)=ar(0,227);0;224;(0,10):t(0,12)=*(0,228):t(0,13)=*(0,229):t(0,14)=*(0,230):t(0,15)=*(0,231):t(0,16)=*(0,232):t(0,17)=*(0,233):t(0,18)=*(0,234):t(0,19)=*(0,235):t(0,20)=*(0,236):t(0,21)=*(0,237):t(0,22)=*(0,238):t(0,23)=*(0,239):t(0,24)=*(0,240):t(0,25)=*(0,241):t(0,26)=*(0,242):t(0,27)=*(0,243):t(0,28)=*(0,244):t(0,29)=*(0,245):t(0,30)=*(0,246):t(0,31)=*(0,247):t(0,32)=*(0,248):t(0,33)=*(0,249):t(0,34)=*(0,250):t(0,35)=*(0,251):t(0,36)=*(0,252):t(0,37)=*(0,253):t(0,38)=*(0,254):t(0,39)=*(0,255):t(0,40)=*(0,256):t(0,41)=*(0,257):t(0,42)=*(0,258):t(0,43)=*(0,259):t(0,44)=*(0,260):t(0,45)=*(0,261):t(0,46)=*(0,262):t(0,47)=*(0,263):t(0,48)=*(0,264):t(0,49)=*(0,265):t(0,50)=*(0,266):t(0,51)=*(0,267):t(0,52)=*(0,268):t(0,53)=*(0,269):t(0,54)=*(0,270):t(0,55)=*(0,271):t(0,56)=*(0,272):t(0,57)=*(0,273):t(0,58)=*(0,274):t(0,59)=*(0,275):t(0,60)=*(0,276):t(0,61)=*(0,277):t(0,62)=*(0,278):t(0,63)=*(0,279):t(0,64)=*(0,280):t(0,65)=*(0,281):t(0,66)=*(0,282):t(0,67)=*(0,283):t(0,68)=*(0,284):t(0,69)=*(0,285):t(0,70)=*(0,286):t(0,71)=*(0,287):t(0,72)=*(0,288):t(0,73)=*(0,289):t(0,74)=*(0,290):t(0,75)=*(0,291):t(0,76)=*(0,292):t(0,77)=*(0,293):t(0,78)=*(0,294):t(0,79)=*(0,295):t(0,80)=*(0,296):t(0,81)=*(0,297):t(0,82)=*(0,298):t(0,83)=*(0,299):t(0,84)=*(0,300):t(0,85)=*(0,301):t(0,86)=*(0,302):t(0,87)=*(0,303):t(0,88)=*(0,304):t(0,89)=*(0,305):t(0,90)=*(0,306):t(0,91)=*(0,307):t(0,92)=*(0,308):t(0,93)=*(0,309):t(0,94)=*(0,310):t(0,95)=*(0,311):t(0,96)=*(0,312):t(0,97)=*(0,313):t(0,98)=*(0,314):t(0,99)=*(0,315):t(0,100)=*(0,316):t(0,101)=*(0,317):t(0,102)=*(0,318):t(0,103)=*(0,319):t(0,104)=*(0,320):t(0,105)=*(0,321):t(0,106)=*(0,322):t(0,107)=*(0,323):t(0,108)=*(0,324):t(0,109)=*(0,325):t(0,110)=*(0,326):t(0,111)=*(0,327):t(0,112)=*(0,328):t(0,113)=*(0,329):t(0,114)=*(0,330):t(0,115)=*(0,331):t(0,116)=*(0,332):t(0,117)=*(0,333):t(0,118)=*(0,334):t(0,119)=*(0,335):t(0,120)=*(0,336):t(0,121)=*(0,337):t(0,122)=*(0,338):t(0,123)=*(0,339):t(0,124)=*(0,340):t(0,125)=*(0,341):t(0,126)=*(0,342):t(0,127)=*(0,343):t(0,128)=*(0,344):t(0,129)=*(0,345):t(0,130)=*(0,346):t(0,131)=*(0,347):t(0,132)=*(0,348):t(0,133)=*(0,349):t(0,134)=*(0,350):t(0,135)=*(0,351):t(0,136)=*(0,352):t(0,137)=*(0,353):t(0,138)=*(0,354):t(0,139)=*(0,355):t(0,140)=*(0,356):t(0,141)=*(0,357):t(0,142)=*(0,358):t(0,143)=*(0,359):t(0,144)=*(0,360):t(0,145)=*(0,361):t(0,146)=*(0,362):t(0,147)=*(0,363):t(0,148)=*(0,364):t(0,149)=*(0,365):t(0,150)=*(0,366):t(0,151)=*(0,367):t(0,152)=*(0,368):t(0,153)=*(0,369):t(0,154)=*(0,370):t(0,155)=*(0,371):t(0,156)=*(0,372):t(0,157)=*(0,373):t(0,158)=*(0,374):t(0,159)=*(0,375):t(0,160)=*(0,376):t(0,161)=*(0,377):t(0,162)=*(0,378):t(0,163)=*(0,379):t(0,164)=*(0,380):t(0,165)=*(0,381):t(0,166)=*(0,382):t(0,167)=*(0,383):t(0,168)=*(0,384):t(0,169)=*(0,385):t(0,170)=*(0,386):t(0,171)=*(0,387):t(0,172)=*(0,388):t(0,173)=*(0,389):t(0,174)=*(0,390):t(0,175)=*(0,391):t(0,176)=*(0,392):t(0,177)=*(0,393):t(0,178)=*(0,394):t(0,179)=*(0,395):t(0,180)=*(0,396):t(0,181)=*(0,397):t(0,182)=*(0,398):t(0,183)=*(0,399):t(0,184)=*(0,400):t(0,185)=*(0,401):t(0,186)=*(0,402):t(0,187)=*(0,403):t(0,188)=*(0,404):t(0,189)=*(0,405):t(0,190)=*(0,406):t(0,191)=*(0,407):t(0,192)=*(0,408):t(0,193)=*(0,409):t(0,194)=*(0,410):t(0,195)=*(0,411):t(0,196)=*(0,412):t(0,197)=*(0,413):t(0,198)=*(0,414):t(0,199)=*(0,415):t(0,200)=*(0,416):t(0,201)=*(0,417):t(0,202)=*(0,418):t(0,203)=*(0,419):t(0,204)=*(0,420):t(0,205)=*(0,421):t(0,206)=*(0,422):t(0,207)=*(0,423):t(0,208)=*(0,424):t(0,209)=*(0,425):t(0,210)=*(0,426):t(0,211)=*(0,427):t(0,212)=*(0,428):t(0,213)=*(0,429):t(0,214)=*(0,430):t(0,215)=*(0,431):t(0,216)=*(0,432):t(0,217)=*(0,433):t(0,218)=*(0,434):t(0,219)=*(0,435):t(0,220)=*(0,436):t(0,221)=*(0,437):t(0,222)=*(0,438):t(0,223)=*(0,439):t(0,224)=*(0,440):t(0,225)=*(0,441):t(0,226)=(0,226)long unsigned int:t(0,227)=r(0,227);0;037777777777;:t(0,228)=f(0,442):t(0,229)=f(0,443):t(0,230)=f(0,443):t(0,231)=f(0,444):t(0,232)=f(0,445):t(0,233)=f(0,2):t(0,234)=f(0,443):t(0,235)=f(0,446):t(0,236)=f(0,2):t(0,237)=f(0,442):t(0,238)=f(0,442):t(0,239)=f(0,447):t(0,240)=f(0,226):t(0,241)=f(0,226):t(0,242)=f(0,442):t(0,243)=f(0,2):t(0,244)=f(0,226):t(0,245)=f(0,446):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,2):t(0,249)=f(0,2):t(0,250)=f(0,443):t(0,251)=f(0,446):t(0,252)=f(0,444):t(0,253)=f(0,2):t(0,254)=f(0,2):t(0,255)=f(0,2):t(0,256)=f(0,446):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,448):t(0,260)=f(0,448):t(0,261)=f(0,448):t(0,262)=f(0,449):t(0,263)=f(0,449):t(0,264)=f(0,449):t(0,265)=f(0,450):t(0,266)=f(0,450):t(0,267)=f(0,450):t(0,268)=f(0,442):t(0,269)=f(0,442):t(0,270)=f(0,442):t(0,271)=f(0,451):t(0,272)=f(0,451):t(0,273)=f(0,451):t(0,274)=f(0,452):t(0,275)=f(0,452):t(0,276)=f(0,452):t(0,277)=f(0,453):t(0,278)=f(0,453):t(0,279)=f(0,453):t(0,280)=f(0,226):t(0,281)=f(0,226):t(0,282)=f(0,226):t(0,283)=f(0,2):t(0,284)=f(0,2):t(0,285)=f(0,2):t(0,286)=f(0,446):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,448):t(0,290)=f(0,448):t(0,291)=f(0,448):t(0,292)=f(0,449):t(0,293)=f(0,449):t(0,294)=f(0,449):t(0,295)=f(0,450):t(0,296)=f(0,450):t(0,297)=f(0,450):t(0,298)=f(0,442):t(0,299)=f(0,442):t(0,300)=f(0,442):t(0,301)=f(0,451):t(0,302)=f(0,451):t(0,303)=f(0,451):t(0,304)=f(0,452):t(0,305)=f(0,452):t(0,306)=f(0,452):t(0,307)=f(0,453):t(0,308)=f(0,453):t(0,309)=f(0,453):t(0,310)=f(0,226):t(0,311)=f(0,226):t(0,312)=f(0,226):t(0,313)=f(0,445):t(0,314)=f(0,2):t(0,315)=f(0,446):t(0,316)=f(0,448):t(0,317)=f(0,449):t(0,318)=f(0,450):t(0,319)=f(0,442):t(0,320)=f(0,451):t(0,321)=f(0,452):t(0,322)=f(0,453):t(0,323)=f(0,226):t(0,324)=f(0,226):t(0,325)=f(0,226):t(0,326)=f(0,226):t(0,327)=f(0,226):t(0,328)=f(0,226):t(0,329)=f(0,226):t(0,330)=f(0,226):t(0,331)=f(0,226):t(0,332)=f(0,446):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,448):t(0,336)=f(0,448):t(0,337)=f(0,448):t(0,338)=f(0,449):t(0,339)=f(0,449):t(0,340)=f(0,449):t(0,341)=f(0,450):t(0,342)=f(0,450):t(0,343)=f(0,450):t(0,344)=f(0,442):t(0,345)=f(0,442):t(0,346)=f(0,442):t(0,347)=f(0,451):t(0,348)=f(0,451):t(0,349)=f(0,451):t(0,350)=f(0,452):t(0,351)=f(0,452):t(0,352)=f(0,452):t(0,353)=f(0,453):t(0,354)=f(0,453):t(0,355)=f(0,453):t(0,356)=f(0,226):t(0,357)=f(0,226):t(0,358)=f(0,226):t(0,359)=f(0,2):t(0,360)=f(0,446):t(0,361)=f(0,448):t(0,362)=f(0,449):t(0,363)=f(0,450):t(0,364)=f(0,442):t(0,365)=f(0,451):t(0,366)=f(0,452):t(0,367)=f(0,453):t(0,368)=f(0,226):t(0,369)=f(0,226):t(0,370)=f(0,226):t(0,371)=f(0,226):t(0,372)=f(0,226):t(0,373)=f(0,226):t(0,374)=f(0,226):t(0,375)=f(0,226):t(0,376)=f(0,226):t(0,377)=f(0,1):t(0,378)=f(0,454):t(0,379)=f(0,455):t(0,380)=f(0,226):t(0,381)=f(0,1):t(0,382)=f(0,456):t(0,383)=f(0,226):t(0,384)=f(0,454):t(0,385)=f(0,457):t(0,386)=f(0,2):t(0,387)=f(0,226):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,472):t(0,403)=f(0,473):t(0,404)=f(0,226):t(0,405)=f(0,226):t(0,406)=f(0,226):t(0,407)=f(0,226):t(0,408)=f(0,226):t(0,409)=f(0,226):t(0,410)=f(0,226):t(0,411)=f(0,226):t(0,412)=f(0,226):t(0,413)=f(0,226):t(0,414)=f(0,226):t(0,415)=f(0,226):t(0,416)=f(0,226):t(0,417)=f(0,226):t(0,418)=f(0,226):t(0,419)=f(0,226):t(0,420)=f(0,226):t(0,421)=f(0,226):t(0,422)=f(0,226):t(0,423)=f(0,226):t(0,424)=f(0,226):t(0,425)=f(0,226):t(0,426)=f(0,226):t(0,427)=f(0,226):t(0,428)=f(0,442):t(0,429)=f(0,442):t(0,430)=f(0,442):t(0,431)=f(0,442):t(0,432)=f(0,226):t(0,433)=f(0,226):t(0,434)=f(0,10):t(0,435)=f(0,226):t(0,436)=f(0,474):t(0,437)=f(0,226):t(0,438)=f(0,446):t(0,439)=f(0,2):t(0,440)=f(0,10):t(0,441)=f(0,451)jint:t(0,442)=(0,475)jclass:t(0,443)=(0,2)jmethodID:t(0,444)=(0,476)jfieldID:t(0,445)=(0,477)jboolean:t(0,446)=(0,478)jthrowable:t(0,447)=(0,2)jbyte:t(0,448)=(0,479)jchar:t(0,449)=(0,480)jshort:t(0,450)=(0,481)jlong:t(0,451)=(0,482)jfloat:t(0,452)=(0,483)jdouble:t(0,453)=(0,484)jsize:t(0,454)=(0,442):t(0,455)=*(0,485):t(0,456)=*(0,486)jobjectArray:t(0,457)=(0,487)jbooleanArray:t(0,458)=(0,487)jbyteArray:t(0,459)=(0,487)jcharArray:t(0,460)=(0,487)jshortArray:t(0,461)=(0,487)jintArray:t(0,462)=(0,487)jlongArray:t(0,463)=(0,487)jfloatArray:t(0,464)=(0,487)jdoubleArray:t(0,465)=(0,487):t(0,466)=*(0,446):t(0,467)=*(0,448):t(0,468)=*(0,449):t(0,469)=*(0,450):t(0,470)=*(0,442):t(0,471)=*(0,451):t(0,472)=*(0,452):t(0,473)=*(0,453)jweak:t(0,474)=(0,2)long int:t(0,475)=r(0,475);-2147483648;2147483647;:t(0,476)=*(0,488):t(0,477)=*(0,489)unsigned char:t(0,478)=@s8;r(0,478);0;255;signed char:t(0,479)=@s8;r(0,479);-128;127;short unsigned int:t(0,480)=@s16;r(0,480);0;65535;short int:t(0,481)=@s16;r(0,481);-32768;32767;long long int:t(0,482)=@s64;r(0,482);01000000000000000000000;0777777777777777777777;float:t(0,483)=r(0,490);4;0;double:t(0,484)=r(0,490);8;0;:t(0,485)=k(0,449):t(0,486)=k(0,491)jarray:t(0,487)=(0,2):t(0,488)=xs_jmethodID::t(0,489)=xs_jfieldID:char:t(0,491)=r(0,491);0;127;ホ H__TEXT__text__TEXTエ ヨmエ __picsymbol_stub__TEXT学学__cstring__TEXT詣p詣__textcoal_nt__TEXT __DATA__data__DATA__dyld__DATA__cfstring__DATA __bss__DATA@`__common__DATA@タ__IMPORT__jump_table__IMPORT"__pointers__IMPORT"。$"。:8__LINKEDITーーー ォ </4C/usr/local/lib/librxtxSerial.jnilib h"ヒケCp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation T"ヒケC/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit X"ヒケC/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 45FC/usr/lib/libgcc_s.1.dylib 4"ヒケCX/usr/lib/libSystem.B.dylibーw, P22zャ=qz舩uキpCoーo=XーG朽W琲X朽G熕瑞瑞振牙VS`丘畿麹ャ可クL吋$欝$ $鞅畿 怨H畿 輝|畿吋$畿 $メ怨P畿怨L畿鴻m吋$ 鴻、m吋$欝$畿 $雍Y怨ャ畿 笈虚P鴻ィm吋$ 鴻ーm吋$欝$畿 $ム怨T回黒ャクL吋$欝$ $$解ト`[^]ツ瑞瑞瑞U牙8孔吋$ヌD$ヌ$畿タu6ヌEワヌEヌE畿ワ右萇D$孔煢D$ヌ$靹ノテ瑞瑞瑞U牙S4雍鴻齦右マu ヌE鰛偽畿吋$$錵タ。畿機(右畿機0タt;畿機,タt1畿輝0畿機,隠,畿輝,畿機0隠0畿$鐶畿右蓁r畿機0タt畿機0ヌ@,ヤ畿機,タt畿機,ヌ@0サ畿$鴻齦ヌ畿右蓁畿機,タt畿機,右-ヌE畿艫ト4[]テ瑞瑞瑞U牙Xマ位孔フ吋$畿$雎タ芦ヌEフヌEリヌEミヌEヤニEニEヌD$%孔フ$閨タxuヌD$%孔フ$鎹タx^孔フ吋$ヌD$畿$)タx@靆吋$ヌD$畿$錵ヌD$@ヌD$畿$*ヌEトヌEト畿トノテ瑞瑞瑞U牙畿右±ハ±匠±д±<マ2=マ2マ!ヌE鱠マK#マn%゙±,Г±,±±ネャ±X±ー吹}K=±KG±タ ±タ±` 餝±%±@83±±±pモ±マ±ツマ±ヒ鱇ヌE鯏ヌE2鮃ヌEK鬮ヌEn髻ヌE體ヌE驥ヌEネ~ヌE,uヌEXlヌEーcヌEZヌE` QヌEタHヌE%?ヌE@86ヌEK-ヌEp$ヌEヌEヌEツ ヌE畿ノテ瑞瑞瑞U牙VSp鐫ヌEヤヌEリヌEワ畿輝|畿 吋$畿$メ右芫E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右闍E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻"h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻.h吋$畿芍D$畿$メ右畿輝\畿芍D$畿$メ孔ィ吋$畿$鑪タy*鴻6h$霓U畿輝\畿芍D$畿$メ驗畿ー可≫蔚怐}t.±wマt6±t±t"ヌEヤヌEヤヌEヤヌEヤ畿ー可≫0蔚±t±0tマtヌEリヌEリヌEリ畿ー可≫蔚、マ、t ±、t ヌEワヌEワ孔ィ$雜右煖E恐エ畿煢$鐐吋$ 畿濶D$畿 吋$畿$ヨ畿巨エ畿ヤ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿ワ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿リ吋$ 畿吋$畿 吋$畿$メζp[^]テ瑞瑞瑞U牙S閂}ヌE畿輝|畿 吋$畿$メ右畿巨x鴻e吋$ 鴻pe吋$畿吋$畿$メ右マuC畿輝@畿$メ畿輝D畿$メ畿輝\畿吋$畿$メヌE阨右闍E巨エ畿濶D$ 畿吋$畿 吋$畿$メ畿輝\畿吋$畿$メ畿巨、ヌD$畿吋$畿$メ右畿濶D$畿$隘Tタф畿吋$鴻xe吋$孔秤$孔秤$雹R畿巨ィ畿吋$畿吋$畿$メ$韵吋$ 鴻リe吋$鴻瀑吋$畿$右ヌE鴻啗$A畿濶$鐓{右孔マt隴{uマ~ニ畿吋$鴻コW吋$孔$鍠{孔$隴@マt2鈩{$錢{吋$ 鴻レW吋$鴻JW吋$畿$闔?スDtヌ蕈鬯マt'畿朽Dタt畿ヌD畿ヌHマto畿機 タte黒顰畿吋$ 孔 吋$畿吋$$闡麹L黒顰クL吋$欝$ $閘zヌD$ヌD$劫L$鑿<ヌ蕈球蕈犠ノテ瑞瑞瑞U牙S4鎭i鴻゙P吋$ 鴻祓吋$畿 吋$畿$鍠=右貴ヌE萼Mb畿蔔鮹科チ禾)チ科吋$畿$陜yζ4[]テ瑞瑞瑞U牙ST鞦h鴻qP吋$ 鴻uP吋$畿 吋$畿$鞆<右孔ネ吋$畿$靉xタxカEカミ禍チミミチ右ト9關y$鐵y吋$ 鴻拔吋$鴻U吋$畿$隹=ヌEト畿トζT[]テ瑞瑞瑞U牙ST/h鴻ソO吋$ 鴻テO吋$畿 吋$畿$)<右孔ネ吋$畿$xタxカE驗タ並カタ右ト9韲x$霑x吋$ 鴻T吋$鴻OT吋$畿$ =ヌEト畿トζT[]テ瑞瑞瑞U牙S闊gヌE鴻O吋$ 鴻O吋$畿 吋$畿$閔;右孔吋$ヌD$jt@畿$錻x畿%吋$鴻pT吋$孔$頤w孔$陋=畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S靫fヌE鴻dN吋$ 鴻hN吋$畿 吋$畿$霽:右孔吋$ヌD$jt@畿$闥w畿漾吋$鴻リS吋$孔$錢w畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S-fヌE鴻スM吋$ 鴻チM吋$畿 吋$畿$ :右孔吋$ヌD$jt@畿$齏v畿 吋$鴻MS吋$孔$陏v孔$錚<畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S閔eヌE鴻 M吋$ 鴻M吋$畿 吋$畿$鈩9右孔吋$ヌD$jt@畿$9v畿%吋$鴻キR吋$孔$韆u孔$闔;畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霽dヌE鴻WL吋$ 鴻[L吋$畿 吋$畿$霄8右孔吋$ヌD$jt@畿$閻u畿吋$鴻R吋$孔$4u孔$鞋:畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙Sd畿E班E鴻・K吋$ 鴻ゥK吋$畿 吋$畿$8右孔吋$ヌD$jt@畿$靉t}u 畿κ右 畿瓔右孔吋$ヌD$mt畿$陌tカE秤D$鴻渦吋$孔$鍮t孔$頸9ト[]テ瑞瑞瑞U牙S鍖c畿E班E鴻ロJ吋$ 鴻゚J吋$畿 吋$畿$87右孔吋$ヌD$jt@畿$tカE秤D$鴻マP吋$孔$雍s}u 畿フ右 畿右孔吋$ヌD$mt畿$雋sカE秤D$鴻マP吋$孔$鐵s孔$ 9ト[]テ瑞瑞瑞U牙S鐡bヌE鴻I吋$ 鴻I吋$畿 吋$畿$鏝6右孔吋$ヌD$jt@畿$"s畿吋$鴻O吋$孔$靦r孔$閇8畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S雉a畿E班E鴻CI吋$ 鴻GI吋$畿 吋$畿$陟5右孔吋$ヌD$jt@畿$鑢r}u 畿κ右 畿右孔吋$ヌD$mt畿$7rカE秤D$鴻_O吋$孔$韋q孔$關7ト[]テ瑞瑞瑞U牙S$韲`鴻"r右ヌ$4q右偽畿吋$$陞q偽畿 隠(マu#畿ヌ@,畿ヌ@0鴻"r偽T偽畿吋$$畿機,タt 畿機,右ユ畿ヌ@,偽畿隠0偽畿隠,鴻"r偽ζ$[]テ瑞瑞瑞U牙S `-q$q吋$ 鴻ワM吋$鴻M吋$畿$鎬5クζ[]テ瑞瑞瑞U牙S靦_鞐p$雎p吋$ 鴻ナM吋$鴻。M吋$畿$4クζ[]テ瑞瑞瑞U牙S閧_闖p$鐫p吋$ 鴻凱吋$鴻RM吋$畿$隸4クζ[]テ瑞瑞瑞U牙S3_錙p$p吋$ 鴻OM吋$鴻M吋$畿$鐐4クζ[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右鑵o右畿吋$畿$鞴6タ畿$霰ル右マu;ヌD$畿$鏥o右マy 鑚otリ畿$陜レタヲマ孔濶D$ヌD$jt@畿$+o}u 畿閠フ右齏 畿閠右闕E濶D$ヌD$mt畿$顆n畿吋$畿$:畿吋$畿$靉畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右韶m右畿吋$畿$鐫5タ畿$錣リ右マu;ヌD$畿$靨m右マy 頌mtリ畿$ルタヲマ孔濶D$ヌD$jt@畿$隧m}u 畿閭ネ右齏 畿閭瓔右闕E濶D$ヌD$mt畿$鑾m畿吋$畿$閼8畿吋$畿$鍖畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S4鞨[ヌE畿巨、ヌD$畿吋$畿$メ右畿吋$畿$=右鏝l右畿吋$畿$靈3タミ畿$隰ヨ右閭}u;ヌD$畿$;l右閭}y 鏤ltリ畿濶$閼ラタマyX畿巨ィ畿吋$畿吋$畿$メl$韈k吋$ 鴻J吋$鴻ーI吋$畿$40颯マuO畿巨ィ畿吋$畿吋$畿$メ鴻0J吋$ 鴻ワC吋$鴻ーI吋$畿$鞜/鴆畿 吋$畿吋$畿吋$ 畿吋$畿濶D$畿$4タtU畿巨ィ畿吋$畿吋$畿$メ5k$k吋$ 鴻J吋$鴻ーI吋$畿$鏘/h畿吋$畿$ 6畿濶D$畿$靨畿巨ィ畿吋$畿吋$畿$メ!畿巨ィ畿吋$畿吋$畿$メζ4[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右j右畿吋$畿$鑼1タ畿$鏘ヤ右マu;ヌD$畿$鞴i右マy jtリ畿$-ユタヲマ孔濶D$ヌD$jt@畿$霆i}u 畿閭ネ右齏 畿閭右闕E濶D$ヌD$mt畿$閾i畿吋$畿$阮4畿吋$畿$鐓畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S韵WヌE畿巨、ヌD$畿吋$畿$メ右畿$頸メ右マu ヌEa孔吋$ヌD$jt@畿$阡h畿吋$鴻sF吋$孔怏$錣h孔怏$齏-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$WヌE畿巨、ヌD$畿吋$畿$メ右畿$'メ右マu ヌEc孔吋$ヌD$jt@畿$靄g畿%吋$鴻フE吋$孔怏$钁g孔怏$-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S鏝VヌE畿巨、ヌD$畿吋$畿$メ右畿$鏤ム右マu ヌE`孔吋$ヌD$jt@畿$顰f畿吋$鴻#E吋$孔怏$隲f孔怏$鏨,畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S闕UヌE畿巨、ヌD$畿吋$畿$メ右畿$關ミ右マu ヌEa孔吋$ヌD$jt@畿$2f畿漾吋$鴻}D吋$孔怏$鞦e孔怏$濶+畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霙TヌE畿巨、ヌD$畿吋$畿$メ右畿$霰マ右マu ヌEa孔吋$ヌD$jt@畿$鑒e畿 吋$鴻メC吋$孔怏$e孔怏$霎*畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S顆SヌE畿巨、ヌD$畿吋$畿$メ右畿$顫ホ右マu ヌEc孔吋$ヌD$jt@畿$陷d畿%吋$鴻+C吋$孔怏$鍼d孔怏$頌)畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙VS`,S畿巨、ヌD$畿吋$畿$メ右畿$6ホ右畿巨ィ畿吋$畿吋$畿$メマu ヌEエn孔タ吋$畿$鞐bタy鴻B$.)ヌEエA孔タ$c家孔タ$#c9ニt ヌEエ孔タ$鞳b右畿$陂マ右エ畿エζ`[^]テ瑞瑞瑞U牙Sd?R畿巨、ヌD$畿吋$畿$メ右畿$鍼ヘ右畿巨ィ畿吋$畿吋$畿$メマu ヌEー髞孔ト吋$畿$韶aタy鴻マA$>(ヌEーg畿フ可≫蔚エ±エt5±エwマエtヌEー8±エt±エt翩EーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd*Q畿巨、ヌD$畿吋$畿$メ右畿$4フ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーw孔ト吋$畿$鞋`タy鴻@$,'ヌEーJ畿フ可≫0蔚エ±エt!±エ0t!マエt ヌEーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd5P畿巨、ヌD$畿吋$畿$メ右畿$?ヒ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーe孔ト吋$畿$韈_タy鴻9@$7&ヌEー8畿フ可≫蔚エマエt±エtヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙ヌEヌE畿セタノテ瑞瑞瑞U牙ST0O鴻タ6吋$ 鴻ト6吋$畿 吋$畿$*#右孔ネ吋$畿$_タx カEリセタ右ト鴻p?$鐐%ヌEト畿トζT[]テ瑞瑞瑞U牙S$襍N畿E霈_$闖_吋$ 鴻?吋$鴻<吋$畿$鞋#クζ$[]テ瑞瑞瑞U牙ST鐐N畿Eト鴻5吋$ 鴻5吋$畿 吋$畿$鏥"右孔ネ吋$畿$錻^タx.カEトEリ孔ネ吋$ヌD$畿$ ^タx ヌEタG顫^$靉^吋$ 鴻リ>吋$鴻:吋$畿$#鴻>$6$ヌEタ畿タζT[]テ瑞瑞瑞U牙S4闍MヌD$孔$鏨^鴻;>$隹#偽禍チミミミチ*ネ貴ヌE萼Mb畿蔔鮹科チ禾)チ科*タXチ,タζ4[]テ瑞瑞瑞U牙VSMヌEリヌEヌEヌE畿 鴻8吋$ 鴻8吋$欝$畿$鞐 右畿機右畿ヌ@畿右ヤマW頽右蓚Jマx,鞳右煖U芫E)ミ;E|偽畿隠畿リ怨@飄劫H可ク吋$ヌD$$閧\畿チ家渠H貴クモ ミ延オHマ粟偽芫E煢チ)ム果畿)ミ右ワ貴ワヌ4モMb球4鮹科チ禾)チ科右ネ貴ワヌ4モMb球4鮹科チ茄)ニ卸D球DチDミミチ果)ツ鴛D球DチDミミチ右フ孔ネ右齏ヌE偽δ畿濶D$ヌD$ ヌD$劫H吋$$閧[右ミマミu&鴻ツ=$閾!偽畿隠ヌ@鰆マミ児偽ヤ畿リE欝$吋$畿$鏤[右ミマミyP霪[t/雕[#t#鴻=$!偽畿隠ヌ@j偽畿隠ヌ@Uマミt偽ミ孔リ偽ミ孔ヤ) ヌ$<[畿リ;E}マ楪孔メ偽畿隠貴リ燕@球@ト[^]テ瑞瑞瑞U牙Sd頏I鴻1吋$ 鴻1吋$畿 吋$畿$韭右マy ヌEマu ヌE畿右孔ト吋$畿$雕YタxBニE貴ヌEエQ畿エ鮹科チ禾)チ科E蜊Eト吋$ヌD$畿$鐫Yタy2鏐Z$+Z吋$ 鴻:吋$鴻6吋$畿$閂ζd[]テ瑞瑞瑞U牙SDI偽 鴻0吋$ 鴻0吋$欝$畿$顯右偽 鴻0吋$ 鴻!:吋$欝$畿$靨右畿吋$ヌD$孔吋$ 畿吋$孔 吋$畿$鑄右マy;閼Y$鏝Y吋$ 鴻):吋$鴻!5吋$畿$隍ヌEマt カEカタ右蓁ヌE畿芍E煖E焜トD[]テ瑞瑞瑞U牙SDH偽 鴻/吋$ 鴻/吋$欝$畿$顰右偽 鴻/吋$ 鴻"9吋$欝$畿$勒右マyC鴻69$%鴻^9吋$ 鴻n9吋$鴻z9吋$畿$靨ヌE鰮畿巨ヌD$畿吋$畿$メ右畿E可畿吋$畿吋$欝$ 畿吋$孔 吋$畿$顆右闍E巨ヌD$ 畿吋$畿吋$畿$メマyI鴻ヲ9$鏐鞋W$隸W吋$ 鴻n9吋$鴻"4吋$畿$顰ヌE畿濶E芫E艫トD[]テ瑞瑞瑞U牙S4鑚F鴻.吋$ 鴻.吋$畿 吋$畿$鑪右ヌD$畿$5Wタt ヌEヌE畿艫ト4[]テ瑞瑞瑞U牙STFヌE偽 鴻-吋$ 鴻-吋$欝$畿$顯右偽 鴻-吋$ 鴻(7吋$欝$畿$靨右マyC鴻<7$$鴻d7吋$ 鴻t7吋$鴻7吋$畿$靦ヌEヤ駟畿巨ヌD$畿吋$畿$メ右闍E巨ヌD$畿吋$畿$メ右畿可U闍E芻可畿吋$ヌD$欝$ 畿吋$孔 吋$畿$霾右煖U熏EマyL鴻ャ7$鍮靜U$陦U吋$ 鴻t7吋$鴻(2吋$畿$韶ヌEヤ驢マ~?畿βカ畿E閭カ8ツu&畿カ畿E閭カ8ツu鴻フ7$靄マ~ 畿;E畿巨ヌD$ 畿濶D$畿吋$畿$メ畿煢Eヤ畿ヤζT[]テ瑞瑞瑞U牙S4鞣C鴻r+吋$ 鴻v+吋$畿 吋$畿$鞋右孔吋$ヌD$f@畿$隗Tタx畿t畿右蓁F鴻コ5$闃T$鐓T吋$ 鴻5吋$鴻0吋$畿$隱畿右芫E艫ト4[]テ瑞瑞瑞U牙SD*C鴻コ*吋$ 鴻セ*吋$畿 吋$畿$$右孔ネ吋$畿$Sタ畿タt 畿ミ 右ミ 畿ミ%右ミ畿ネ蔔右ネ畿チタt 畿ネフ右ネ 畿ネ蕘右ネ畿チタt 畿ネフ右ネ 畿ネ右ネ孔ネ吋$ヌD$畿$鑚Rタt)鴻>5吋$ 鴻&+吋$鴻0吋$畿$闥ζD[]テ瑞瑞瑞U牙VS B畿朽右畿朽右畿恐x畿輝|畿吋$畿$メ可鴻N4吋$ 鴻R4吋$欝$畿$ヨ右畿巨、ヌD$ 畿吋$畿吋$畿$メζ [^]テ瑞瑞瑞U牙S鑿AマtN畿朽Hu@畿機 タt6鴻テ3$闡ヌD$ヌD$畿$2畿ヌHクζ[]テ瑞瑞瑞U牙SA鴻3$閨クζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S靆@畿孔吋$ヌD$f@$雜Q右畿機4偽吋$ 欝$鴻3吋$孔$鐚Q畿吋$鴻メ3吋$孔$?Q孔$隍畿タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$)@ヌEマы畿機8右鴻]3$鍜畿孔吋$ヌD$jt@$竟Pタt!鴻3$鐔鴻ュ3$鎭5畿可 畿機< 禾)チ科右マt マt畿吋$ヌD$畿$閧畿可≫畿機<%禾)チ科右マt.マt(鴻ル3$靤畿吋$ヌD$畿$/畿可≫畿機<%禾)チ科右マt マt畿吋$ヌD$畿$韭畿可磧畿機<漾禾)チ科右マt マt畿吋$ヌD$畿$隱マt 偽畿臼<鴻4$靦ζ$[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙クノテ瑞瑞瑞U牙S鏗>畿$霎タ・マt畿朽タt 畿$4畿$鞆マtv畿$&タtg畿機タu(鴻N2$/ヌ$ N靹Nヌ$ N靆N5鴻~2$鍮ヌD$ヌD$畿$險ヌ$ N闢Nζ[]テ瑞瑞瑞U牙VS0閨=畿朽右畿朽右鴻サN右畿機0┛マuJ鴻サN偽鴻サNヌー鴻サNヌエヌET畿朽ー右畿朽ータu迢U畿奄ー偽畿奄エ畿ヌーキ偽闍EヌD孔閭マ ~諡EヌH畿ヌD畿ヌ畿ヌ@鴻%吋$ 鴻%吋$畿吋$畿$鑚可畿畿$'可畿艶畿$雋可畿艶偽δ<畿欝$ヌD$jt@$Mタy鴻ン1$钁畿笈畿巨、鴻%吋$ 鴻!%吋$欝$畿$ム可畿艶ィ畿朽ィタс畿ク可ク吋$ヌD$$霪K畿チ家可畿渠精畿加クモ ツ畿鉛ーク畿ヌ8畿ヌ<畿ヌ@0ヌE 鴻2$鐐畿$ヌE畿艫ト0[^]テ瑞瑞瑞U牙S鞐:畿朽、タt)畿朽稀\畿巨、畿朽欝$$ム畿朽ータt?畿朽エタt2畿巨エ畿朽ー奄ー畿巨ー畿朽エ奄エe畿朽ータt(畿朽ーヌエ畿巨ー鴻L0畿朽エタt畿朽エヌー鴻Lヌζ[]テ瑞瑞瑞U牙St鞋9畿輝|畿 吋$畿$メ怨P畿怨H孔 怨Lヌワ劫ャ$タ劫ャ$鐐ノタミ劫ャ$<畿タt/鴻ィ.$鞆劫ャ$靹ネ劫ャ$錻驫球ャ恒劫ャ8吋$ヌD$ ヌD$劫ャク吋$$鐇I怨球タy韵Ik球タx劫ャ$鏃劫ャ$顱トt[]テ瑞瑞瑞U牙S闌8畿巨鴻t-吋$畿$メζ[]テ瑞瑞瑞U牙S鏥8畿巨、ヌD$畿吋$畿$メ右霽EヌE鞁H右畿吋$畿濶$鎬タt-畿巨ィ畿濶D$畿吋$畿$メヌE飃ヌD$畿濶$險H右艫}y 霽Htリマy鴻H-$鞨 ヌE鮖マッ孔ク吋$畿芍$陌Gタy ヌE骰ヌD$畿芍$陞G右マy鴻`-$霖 ヌE餮庚攻ク毅陰毅陰毅 陰 毅陰毅陰毅陰毅陰毅 陰 毅$陰$毅(陰(ヌD$ヌD$畿芍$Gタy鴻-$錚 ヌE鰄孔ク$隲FニEルカEルEリ孔ク吋$ヌD$畿芍$關Fタy1鴻ィ-$頡 ヌE孔吋$ヌD$畿芍$鐓FsヌD$孔キ吋$畿芍$霾Fタy!7G#t鴻ネ-$陌 ヌE孔吋$ヌD$畿芍$F畿吋$ヌD$畿芍$$F畿吋$畿濶$韲畿巨ィ畿濶D$畿吋$畿$メ畿芍$鐃F畿カタ右щEпト[]テ瑞瑞瑞U牙S4鑵5孔吋$ヌ$陲E右マt 畿吋$鴻*$鐐F畿右蓚鴻+$鞐E右マu鴻,+$0F畿右蓁\鴻5酷5吋$欝$畿$頷E偽畿吋$畿吋$$鎹E右マt畿吋$鴻x+$靨E畿右芫E艫ト4[]テ瑞瑞瑞U牙VS 闖4鴻ユEニ鴻ケE0鴻ケEヌD$畿 吋$$鑵EヌD$ 液$吋$畿$隕D右マt2偽ヌD$ ヌD$鴻ユE吋$$D畿$鑁D鴻ユEζ [^]テ瑞瑞瑞U牙VSP鞦3ヌE孔煢$鎬タt鴻*$鞐D鬥畿輝鴻5*吋$畿$メ右マu鴻Q*$ 畿濶Eヤ駱畿巨ト鴻*吋$ 鴻ュ*吋$畿吋$畿$メ右マ鴻ケ*$鏥D畿恐鴻*吋$畿芍$鑞吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿恐鴻*吋$畿芍$韭吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿煢$齏B右艫}畿濶Eヤ畿ヤζP[^]テ瑞瑞瑞U牙S竟1ニEマw#貴ク可モ竕U萩E買<タuW畿買タu)畿吋$鴻)吋$孔ァ$閊B孔ァ$"$ヌD$畿 吋$畿$濶タ~ニEカEト[]テ瑞瑞瑞U牙S4鏖1畿巨、ヌD$畿吋$畿$メ右ヌE鬣畿吋$畿吋$ 鴻ユ(吋$鴻ン(吋$劫$霹A鴻ィ吋$劫$鑁A鴻ィキ@キタ%= u6ヌD$劫$闃A右マ~畿$鏐AニEニEニE孔マ?参畿吋$ 鴻ユ(吋$鴻(吋$劫$A鴻ィ吋$劫$霎@鴻ィキ@キタ%= u.ヌD$劫$鞣@右マ~畿$隹@ニE畿巨ィ畿吋$畿吋$畿$メカEト4[]テ瑞瑞瑞U牙S隘/畿巨鴻)'吋$畿$メζ[]テ瑞瑞瑞U牙S鑵/鴻 '$齏ζ[]テ瑞瑞瑞U牙S鍮/鴻'$霰クζ[]テ瑞瑞瑞U牙S/鴻 '$陏ζ[]テ瑞瑞瑞U牙S顋.鴻 '$鑼クζ[]テ瑞瑞瑞U牙S$靜.鴻@右鴻^吋$ 鴻b吋$畿 吋$畿$霆右ヌEy鴻@右マu"鴻 '$顆マtR6畿朽ー右畿;Et 畿朽ータuン畿;EuヒヌEツ鴻'$隲ヌ$?マu°Eヌ鴻'$閙ζ$[]テ瑞瑞瑞U牙(畿朽右畿輝D畿$メ畿笈畿巨ャ畿朽欝$吋$畿$ムカタ右畿カタノテ瑞瑞瑞U牙S4閂-畿E芻Υ>右マu鴻%$隘K畿朽ー右畿;Et 畿朽ータuン畿;Et鴻%$鑄貴カU芫E欝ζ4[]テ瑞瑞瑞U牙WVSL韭,マt"畿朽右艫}t畿朽~( ヌEヤ鰺鴻%$1ヌEヤ魍鴻%$靫畿朽、タu ヌEヤ驫鴻ツ%$隴畿芫輝D畿芍$メ鴻ヨ%$闖畿芫矯マ淆カネ畿恐ィ畿朽鵜$畿 吋$ 液$欝$畿芍$ラカタ右熏%$7畿煢Eヤ畿ヤζL[^_]テ瑞瑞瑞U牙WVS<靂+ヌEワ畿輝|畿 吋$畿$メ右煖E巨x畿吋$ 畿吋$畿煢D$畿$メ右艫}uB畿輝@畿$メ畿輝D畿$メ畿輝\畿煢D$畿$メ畿ワ右ヤ骭畿巨畿芍D$畿 吋$畿$メ右ワ畿輝\畿煢D$畿$メ鴻`偽右ミ蔚フヌEネ丘ミ急フ貴ネヲクt カFカO)ネタuマワu鴻$$畿ワ右ヤ畿ヤζ<[^_]テ瑞瑞瑞U牙ST闖*畿輝畿 吋$畿$メ右マu"畿輝@畿$メ畿輝D畿$メX畿吋$ 畿吋$鴻マ#吋$孔ク$;畿輝8孔ク吋$畿吋$畿$メ畿輝\畿吋$畿$メζT[]テ瑞瑞瑞U牙S鞏)鴻 ;項ー偽欝$$2:ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S陏)鴻ネ:項ー偽欝$$韵9ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙WS鏨)畿ケ怨0ク郷0ョ科ミ右畿E右孔(畿カnativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i writeBytejava/io/IOExceptionwriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) nativeSetBaudBaseUnsupportedCommOperationExceptionnativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXInvalid lengthreadArrayjava/lang/ArrayIndexOutOfBoundsExceptionRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedZMonitorThreadLockcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialStreamIOSerialBSDClientTypeIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier (Ljava/lang/String;ILgnu/io/CommDriver;)VaddPortNamegetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. /dev/%s%s%i%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s/var/lock%s/LCK..%sfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXX/etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucpLCK..lk..LK.%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown Application$テ熄熄ネワネ@ ゥィ@0  .Gdエ `dエ <dエ ネ エ dヨ ムdヨ "<.ヨ Dムヨ Dメ Dヤ Dユ Dヨ7 Dラ@ Dリn D゙・ D゚ツ 1$ムヨ Mイ4_|アナヨ3dソ #4K\q6677)7;7M7_7q777ァ7ケ7ヒ7ン7788%878I8[8m888」8オ8ヌ8ル8889!939E9W9i9{999ア9テ9ユ999 ::/:A:S:e:w:::ュ:ソ:ム:::;;+;=;O;a;s;;;ゥ;サ;ヘ;;;<<,<?<R<e<x<<<ア<ト<ラ<<<=#=6=I=\=o===ィ=サ=ホ===>>->@>S>f>y>>>イ>ナ>リ>>>?$?7?J?]?p???ゥ?シ?マ???@@.@A@T@g@z@后@ウ@ニ@ル@@@A%A8AKA^AqAБ輸ェAスAミA紜A BB/BBBUBhB{B撮。BエBヌBレBBCC&C9CLC_CrCC呂ォCセCムC腓C DD0DCDVDiD|D愁「DオDネDロDDEE'E:EME`EsEE僞ャEソEメE薤E FF1FDFWFjF}F色「FオFニFラF颶F GG1GBGUGhG{G雑。GエGナGリGGG HH/H@HSHeHvHH路ォHセHムH腥H II0ICIVIiI|I終「IオIネIロIIJJ'J:JMJ`JsJJ價ェJサJフJ゚JJKK+K>KQKdKwK階扛ーKテKヨK飫KL"L5LHL[LnL´猫ァLコLヘL澂LMM*M=MPMcMvM窺廴ッMツMユM鎬MN!N4NGNZNmNN哲ヲNケNフN゚NNOO+O>OQOdOwO外抂ーOテOヨO餔OP"P5PFPYPlPP単・PクPヒP゙PPQQ*Q=QPQcQvQ渦弉ッQツQユQ鏖QR!R4RERXRkR~R然、RキRハRンRRSS)SH D@U DB[ DFg DH DI DK DLュ D\シ D]ヌ DNマ DPル DR DT DX DY DZ D_" Da, De: DhD ]$<6 (];:]=C]N]>X]ソ]メ]]タ6 ]J ]$NJ .J DvJ DyV D{` D|z D} D~ D D D D Dオ Dフ D D D! D* D4 ]$vJ ^u^wフ#^ユ^ _#_C_[_q__タJ _6 \$N6 .6 D「6 D」B D D」 D・ウDヲソDァヒDィラDゥDェDォDャDュ DョDッDー(Dア1Dイ:DエCDカLDクUDコ^DサgDセpDトyDD_$「6 媽。ッ_$QN.DDD。DィDッDノDD +D \D D 、DコDネD゚DD D)D2D;DBD jD!sD"|D(D)「D*ォD?イDAタDCDDDE@DFhー_$ヌ_メ_ ゙_鐇ィ_ヤ`リ`ワ$`3`@`P`c`v` `タ`o荏$No.oDXoDZD]D^・DaヨDbワDcDdDeDiDl'DmODofDzD|・D~チDフDDD+DGDRD`DfDDDォDチDモDDD#D.D6D。9柿$Xoュ`Tク`U ト`Wメ`Yロ`Z藾[`\aa]a^+aタo,aB-a$モNB.BDュBDッTDー}Dア「DウシDオDケDコDサ DシDス0Dセ>DタCDヒQDホWDマeDミwDメDモDヤョDユシDルン.a$ュBXaォcaャ oaャ}aョ蛎ョ蚤ッ拌ーョaアサaタBシaスa$。N.DDDDD D,DLDZDfDDDDタDホDレDDDDD4ID8uD9DEDGェDHクDJチDKヒセa$ユa濛 鸞abb&bフ5bネBbタCbムDb$Nム.ムDXムDYDZ D_!Da'Dh5Dl>DnpDv~D{D|Eb$Xム}bVbV 巴V」bVオbVヌbWラbY瀉Zbタムbb$ニN.DD」DリDDD#D/D;DGDSD_DkDwDDDDD、DュDカDソD「ネD」ムDヲレDャDリDワD゙b$cc !c$iN.DD DD/D8DFDNDWDdDmDzDDDD"c$=cHc Wcictccタc営$N.DDェD*ツDヒDレDDD DD "D*+D+.劃$・cーc ソcムc$N0.0D-0D/<D1CD3UD5aD7gD9tD;zD=D?D@メc$-0 d,d, d,,d.ネ;d/Edタ0FdGd$bN.DBDE、DGコDHネDWムDZD\D^DbDdHd$BvdA‥A 硬A囘Cフィdタゥdェd$N.DqDv0DHD]DyfD{oD}~DDDD「ォd$qテdpホdp ンdpd$Nィ.ィD、ィD・コDィタDェヘDャヤDアDカDコDシ DツDテ,Dェ9Dモ?DヌADヒGDミWDムeDユgDヨuDラd$、ィe」 e・eァ eタィ!e"e$N.DDDァ#e$=eIe$NゥJeゥ.ゥDゥDサDラZe$ゥreeィ影タゥ各ン菊$4Nン.ンDンDDD D D D # D#* D$D D%^ D&x D3 D5ャ D6コ D7 D9 D: D;mIm Umbmomxmm芭タメ+瀕,卜$ハN,.,D,Dキ,Dセ,D",D$-D%-D&/-D'8-D(R-D)o-D,z-洋$,シmヌm モm瀘mmnnタ,n-n$N-.-D:-D;-D<-D@ネ-DA-DB.DD .DE!.DF+.n$:-9n8Dn9 Pn;]n<fn=tnタ-un4.vn$アN4..4.DT4.DUO.DVV.DZ.D[.D\ェ.D]ウ.D^ヘ.D_.Db.wn$T4.從RァnS ウnSタnUヘnVヨnW舅Snタ4.n.n$ハN...Dv.Dw/Dy/Dz,/D{>/D}G/DM/DW/Da/Dn/Dp/D/D/D/D・/Dョ/Dキ/Dト/n$v.ou$ou .ow;owEoタ.Foハ/Go$フNハ/.ハ/Dォハ/Dトワ/Dニ0Dネ0Ho$ォハ/xoァバィ 出ェ。o$ON0.0Dル0D+0D]0Db0「o$ル0メoヨンoリ 駮$ONh0.h0Dh0Dz0Dャ0Dア0麸$h0p$p 0pAp$ONキ0.キ0D-キ0D?ノ0DA0DC1Bp$-キ0qp*|p, p$ON1.1DW1DY1D[1D_D1DdL1Dff1Dgt1Djz1Dk1Dl「1Dnオ1Drソ1Dsル1Dt1Du1Dy 2D{2D~12DR2D[2D|2D2英$W1コpUナpV モpV疳VpXpYqZ q[qV+qタ1,q2-q$N2.2D2D2D。2D。ニ2Dヲホ2Dィ2Dゥ2Dャ2Dュ3Dョ$3Dー73DエA3Dオ[3Dカl3Dキu3Dサ3Dス。3Dタウ3Dツヤ3Dトン3Dニ3Dヌ4.q$2_qjq xqq智孀・qイqテqミqタ2ムq 4メq$N 4. 4Dロ 4Dン4D゙#4D゚H4D]4De4D4D4D4Dゥ4Dサ4Dホ4Dヤ4D4D'5D,5D25DS5D |5D 5D ウ5D ヤ5D 6D 6D 6D ,6D M6D O6D p6モq$ロ 4rルrレ *rレ8rレJrレ\rレnrレ ~rワrン喪゙「r゚ッrタ 4ーrv6アr$lNv6.v6D/ v6D1 6D2 6D7 エ6D< シ6D> ヨ6D? 6DB 6DC 7DD 7DF %7DJ /7DK I7DL Z7DM c7DQ }7DS 7DV 。7DX ツ7DZ ヒ7D\ 7D] 7イr$/ v6縒- r. r.  s. s0 s1 )s2 :s3 Gs. Tsタv6Us7Vs$N7.7Dl 7Dm 8Dn 8Do 98Ds G8Dv M8Dx V8Dy p8Dz 8D| 8D} ー8D~ コ8Ws$l 7sj 痴k 枹k ャsm ケsn ハso モsp 疽タ7龝テ8縱$ヒNテ8.テ8D テ8D リ8D ゚8D 9D 9D 9D !9D ;9D \9D g9D }9D 9舖$ テ8t t +t 9t Ft Wt `t ntタテ8ot9pt$ヘN9.9Dャ 9Dュ ・9Dョ ャ9Dッ ム9Dウ ゚9Dカ 9Dク 9Dケ :Dコ ':Dシ 2:Dス G:Dセ Q:qt$ャ 9。tェ ャtォ クtォ ニtュ モtョ 舩ッ tー tタ9tZ:t$ハNZ:.Z:Dフ Z:Dヘ o:Dホ v:Dマ :Dモ ゥ:Dヨ ッ:Dリ ク:Dル メ:Dレ :Dワ :Dン ;D゙ ;t$フ Z:-uハ 8uヒ Duヒ Ruヘ _uホ puマ yuミ uタZ:u%;疫$ヒN%;.%;D %;D :;D A;D f;D t;D z;D ;D ;D シ;D ヌ;D ン;D ;隔$ %;コu ナu ムu ゚u u u v vタ%;v;v$ヒN;.;D ;D <D <D 1<D ?<D E<D N<D h<D <D <D ェ<D エ<v$ ;Fv Qv ]v kv xv 益 致 vタ;。vス<「v$ヘNス<.ス<D* ス<D+ ミ<D, <D/ =D2 $=D5 *=D7 3=D9 I=D: W=DO `=DP =DR =DS 、=」v$* ス<ルv) 舸) v) v+ w, w- タ'w. 6wタス<7wォ=8w$Nォ=.ォ=D^ ォ=D_ ス=D` =Db =De >Dh >Dj #>Dl 9>Dm G>Do P>Dt v>Do >Dp >Dq >Dr ・>Ds ョ>Dt キ>Dv コ>9w$^ ォ=ow] zw] w] 背_ ・w` ョwa トスwタォ=セwタ>ソw$Nタ>.タ>D タ>D メ>D >D ?D &?D ,?D 5?D K?D Y?D b?D ?D ?D ?D 」?D ャ?D ッ?タw$ タ>w w x x *x 3x トBxタタ>Cxオ?Dx$Nオ?.オ?Dォ オ?Dャ ヌ?Dュ ?Dッ ?Dイ @Dオ !@Dキ *@Dケ @@Dコ N@Dシ W@Dソ t@Dス }@Dセ @Dソ 宗Dチ 叩Ex$ォ オ?{xェ xェ 遅ェ xャ アxュ コxョ トノxタオ?ハx蓮ヒx$N蓮.蓮Dモ 蓮Dヤ 、@D゚ ォ@D イ@D ク@フx$モ 蓮yム yメ yヤ 'yタ蓮(yコ@)y$"Nコ@.コ@D コ@D フ@D @D AD AD %AD /A*y$ コ@`y ky wy y ネ准タコ@笥5A惣${N5A.5AD 5AD MAD" AD$ Б馳$ 5Aノy ヤy 炸 y y$UN晦.晦D7 晦D8 「AD< ヒAD= 瓣D> 錢D@ BDB BDD ABDF OBDG YBy$7 晦2z5 =z6 Iz6 Vz8 _z9 ネnz6 ト|zタ晦}z_B~z$ユN_B._BDL _BDP qBDQ ВDV 達DX ゙Bz$L _B配N 毟タ_Bz脾。z$N脾.脾Du 脾Dv BDw CD| CD~ CD ACD JCD TCD ZCD dCD qCD wCD CD 靴D 匹D 」CD トCD 颪D CD DD -DD ゥDD アDD、 クDDィ 鵐Dゥ DDォ DDャ EDョ EDー EDア EEDイ ]EDエ kEDオ tEDキ EDク 右Dコ 髭Dサ 妣Dシ 」EDハ ュED サEDロ リEDワ 瓲Dン E「z$u 脾ケzo トzp ミzq レzr 黝s zt {v ミ{${v ヤ/{v リ;{w ワK{\{w g{w t{y ネ~{y 顎悳z Hィ{| ウ{| ソ{} ハ{タ脾ヒ{Eフ{$NE.EDf EDg FDk 5FDl ;FDn DFDo JFDr SFDv YFDx oFDy sFDz 擢D アFD 紮ヘ{$f E|e |e &|e 5|e H|e X|g a|h トp|i ~|タE|颶|$N颶.颶D 颶D FD $GD MGD GD GD キGD% タGD& 礙−$ 颶ィ| ウ| ソ| ヒ| レ| 縹} }タ颶}鍜}$N鍜.鍜D6 鍜D: GD; #HDA LHDB RHDD `HDF 羽DH 菱DI コHDJ HDK IDL IDN -IDP _IDX hIDY qI}$6 鍜;}4 F}5 R}5 c}5 s}5 マ7 殉8 怡: ・}; ウ}タ鍜エ}wIオ}$NwI.wIDf wIDg 迂Dh イIDi ノIDj メIDk ワIカ}$f wI驀d }e ~g ~タwI ~礫 ~$kN礫.礫D 礫D ID ID $JD MJD SJD aJD 開D 褒D サJD 濳D KD 'KD -KD ;KD mKD yKD「 ョKD」 シKDヲ セKDァ ミKDョ KDッ L ~$ 礫>~| I~} U~} f~} v~} ~~ 宀 ァ~ ウ~ タ~ モ~ ワ~ 黯タ礫~L~$&NL.LDシ LDス LDホ CLDモ aLD iLD qLD LD アLD コL~$シ Lコ &サ 2ス ;セ HタLIタLJ$クNタL.タLD タLDメLDLDMDMD ,MD 7MD @MDMMDXMDaMDnMDyMDMDMD"ノMK$ タLx   。 ネーケタタLコマMサ$NマM.マMD/マMD0祟D1MD3MD4CND5lNシ$/マMロ.013 タマM sN $、NsN.sNDAsND_NDb」NDcアNDgフNDjルNDk゙N $AsN.@:$qN膀.膀Dy膀DNDOD O;$y膀bxl$+NO.ODODオOm$O逐$NO.ODチODナ2ODニQODムwODメ徹Dモ朧Dヤ・ODヨョODラクO凍$チOエタタツヘツヨテ艢タO蛟チO諤$、NチO.チODチODモODレOD膂DODODPD)PD7PDメ]?鷯@]A$N].]D・]Dォ^Dョ^Dシ<^DチX^Dアe^DウタDテ運Dト洪B$・]y」х、 睡、「  +6ALォ['mャァ{タ]|某}$N某~@.某Dム某Dヨォ^Dルミ^Dワ^D _D&_DA_DZ_D`_Dk_Do_Dq_Dw_Dル{_D祇Dエ_Dホ_D饑D`D`D`D`D8`D <`決$ム某ツマヘミ ルミメ(モ@ ウ(H_エヘ$;[r阜ッメ #>ヤQユZユbヨoタ某pE`q$ッNE`.E`DE`DW`Dt`r$E`ゥエ タ$5Nz`.z`D)z`D*形D+啻チ$)z`'( ($&N`.`D8`D9イ`D:タ`D;ナ`$8`I6T7 `$+Nヒ`.ヒ`DHヒ`DIン`DJ`a$Hヒ`梼F梹G ェGク$&N`.`DW`DXaDYaDZaケ$W`UV $+Na.aDjaDk.aDl;aDmdaDpkaDrmaDszaDzaD{斬Dv紡Du「aDwケaD}フaD~レaDp訛DaDaDb$ja4h?i KkXlamqタar bs$N b. bD bDbD「%bD」5bDュjbDョpbt$ b件・ッタ bーrbア$eNrb.rbDセrbDソ鈎Dチ傭Dテ拊DトォbDネュbDニケbDハミbDフレbDヘ鐫Dマ鹵Dヤbイ$セrb繽ケコ サシス!ソ.ス;タrb<b=$Nb.bDbDcD$cD:cDFcDTcD`cDncDcD苗D・cDウcDcD dDd>$bP゚\゚ j゚vヰ告タb諮d署$Nd.dD dD0dD7dDQdD|dDED壇D「dDケdDトdD鐡DdD セ卆ォセスセマセ眄セソソ)ソ;ソMソ_ソqソα柄ァソケソヒソンソソタタ%タ7タIタ[タmタタ詑」タオタヌタルタタタチ!チ3チEチWチiチ{チ挫淬アチテチユチ鄰チ ツツ/ツAツSツeツwツ可崢ュツソツムツ翊ツテテ+テ=テOテaテsテテ療ゥテサテヘテ゚テテトト'ト9トKト]トoトト篤・トキトノトロトトナナ'ナ:ナMナ`ナsナナ卩ャナソナメナ蠻ナ ニニ1ニDニWニjニ}ニ脆」ニカニノニワニニヌヌ(ヌ;ヌNヌaヌtヌヌ塢ュヌタヌモヌ貮ヌ ネネ2ネEネXネkネ~ネ楕、ネキネハネンネネノノ)ノ<ノOノbノuノ伊嵋ョノチノヤノ酲ノ ハ ハ3ハFハYハlハハ通・ハクハヒバハハヒヒ*ヒ=ヒPヒcヒvヒ架慷ッヒツヒユヒ靈ヒフ!フ4フGフZフmフフ椴ヲフケフフプフフヘヘ+ヘ>ヘQヘdヘwヘ艦斛ーヘテヘヨヘ鯱ヘホ"ホ4ホGホZホmホホ鳶、ホキホハホロホホママ'マ:マMマ^マqママ変ヲマキマネマロママミミ#ミ4ミGミZミmミミ寅ヲミケミフミ゚ミミムム+ム>ムQムdムwム貫旃ームテムヨム鰉ムメ"メ5メFメWメhメ{メ者。メエメヌメレメメモモ&モ9モLモ_モrモモ侖ォモセモムモ萼モ ヤヤ0ヤCヤVヤiヤ|ヤ砦ヤウヤニヤルヤヤヤユ%ユ8ユKユ^ユqユユ臨ェユスユミユ耻ユ ヨヨ/ヨBヨUヨhヨ{ヨ蛇。ヨエヨヌヨレヨヨララ&ラ9ラLラ_ラrララ俎ォラセラムラ籏ラリリ.リAリTリgリzリ菜リウリニリルリリリル%ル6ルIル\ルoルル遁ヲルケルフルンルルレレ)レ<レOレbレuレ移巓ョレチレヤレ釟レ ロ ロ3ロFロYロlロロ紬・ロクロヒロ゙ロロワワ*ワ=ワPワcワvワ嘩憔ッワツワユワ鞋ワン!ン4ンGンZンlンン吊・ンクンノンロンン゙゙5゙O゙i゙゙壜ア゙ノ゙玻゙゚(゚;゚N゚l゚近ァ゚テ゚珀゚4Rex金樅アトラ2EXッ粃f。エヌン *$5N学+d学0  ー タ ミ某ヌ]展ミ <Ev '、サ'リ V`!`Kat)コ)ォ_(ヌ-l* +wIEBgス$0アキ0リコ@05[蓮ハ/イh0ル晦rb05A_ムス<スォ=タ>オ?EZ:l%;テ8シ9; 731\v62ョ 4L o%鍜E颶d礫&ョ,ヒ4.z` ヒ`; メ+X タL} # 」!セ ^W ヨ  O' 柤9 sNU 僧e セjx チO J zZカ ィツ Qレ :v 吐 \k  U , 6 B Z[U 6 h Hv~ d 膀ュ ンサ hRル Ip  bB_B   O, < 脾M \g fo Pf} 浪 Bf」  fウ bソ ホ ゚ . v ,v" wQ/ [eE Z l }  マMゥ Bhエ %l Pv\/wjE`ァUwチ ラ   !/Pn」ャイクタヘレ#*39AJX_tzィクネヨ"+39AIQ[dmx nシH@ソツM#)5ノハrヨ゙ム = W Y [ カ  y ァ イ シ ニ ネ ヒ ホ (オ オ ッシラルリントホスツヒアヘチケメロュイヨテコヤウムワハユサモタエナ゙ソークレヌ゚マフニネャカョセミァノキ|ィゥォェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~23ァ45。「」、・ヲ2zキ2ィゥェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ァ。「」、・ヲャュョッーアイウエオカキクケコサシスセソ23タチツテトナニヌネノハヒフヘホマミムメモヤユヨ4ラリ5ルレロワン゙゚ォ__dyld_func_lookupdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion___i686.get_pc_thunk.bx_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf_sprintf_sscanf_stat_strcat_strcmp_strcpy_strerror_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld__mh_dylib_headerdyld_lazy_symbol_binding_entry_pointdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled./Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s928reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;GetVersion:(0,31),128,32;DefineClass:(0,32),160,32;FindClass:(0,33),192,32;FromReflectedMethod:(0,34),224,32;FromReflectedField:(0,35),256,32;ToReflectedMethod:(0,36),288,32;GetSuperclass:(0,37),320,32;IsAssignableFrom:(0,38),352,32;ToReflectedField:(0,39),384,32;Throw:(0,40),416,32;ThrowNew:(0,41),448,32;ExceptionOccurred:(0,42),480,32;ExceptionDescribe:(0,43),512,32;ExceptionClear:(0,43),544,32;FatalError:(0,44),576,32;PushLocalFrame:(0,45),608,32;PopLocalFrame:(0,46),640,32;NewGlobalRef:(0,46),672,32;DeleteGlobalRef:(0,47),704,32;DeleteLocalRef:(0,47),736,32;IsSameObject:(0,48),768,32;NewLocalRef:(0,46),800,32;EnsureLocalCapacity:(0,45),832,32;AllocObject:(0,49),864,32;NewObject:(0,50),896,32;NewObjectV:(0,51),928,32;NewObjectA:(0,52),960,32;GetObjectClass:(0,53),992,32;IsInstanceOf:(0,54),1024,32;GetMethodID:(0,55),1056,32;CallObjectMethod:(0,56),1088,32;CallObjectMethodV:(0,57),1120,32;CallObjectMethodA:(0,58),1152,32;CallBooleanMethod:(0,59),1184,32;CallBooleanMethodV:(0,60),1216,32;CallBooleanMethodA:(0,61),1248,32;CallByteMethod:(0,62),1280,32;CallByteMethodV:(0,63),1312,32;CallByteMethodA:(0,64),1344,32;CallCharMethod:(0,65),1376,32;CallCharMethodV:(0,66),1408,32;CallCharMethodA:(0,67),1440,32;CallShortMethod:(0,68),1472,32;CallShortMethodV:(0,69),1504,32;CallShortMethodA:(0,70),1536,32;CallIntMethod:(0,71),1568,32;CallIntMethodV:(0,72),1600,32;CallIntMethodA:(0,73),1632,32;CallLongMethod:(0,74),1664,32;CallLongMethodV:(0,75),1696,32;CallLongMethodA:(0,76),1728,32;CallFloatMethod:(0,77),1760,32;CallFloatMethodV:(0,78),1792,32;CallFloatMethodA:(0,79),1824,32;CallDoubleMethod:(0,80),1856,32;CallDoubleMethodV:(0,81),1888,32;CallDoubleMethodA:(0,82),1920,32;CallVoidMethod:(0,83),1952,32;CallVoidMethodV:(0,84),1984,32;CallVoidMethodA:(0,85),2016,32;CallNonvirtualObjectMethod:(0,86),2048,32;CallNonvirtualObjectMethodV:(0,87),2080,32;CallNonvirtualObjectMethodA:(0,88),2112,32;CallNonvirtualBooleanMethod:(0,89),2144,32;CallNonvirtualBooleanMethodV:(0,90),2176,32;CallNonvirtualBooleanMethodA:(0,91),2208,32;CallNonvirtualByteMethod:(0,92),2240,32;CallNonvirtualByteMethodV:(0,93),2272,32;CallNonvirtualByteMethodA:(0,94),2304,32;CallNonvirtualCharMethod:(0,95),2336,32;CallNonvirtualCharMethodV:(0,96),2368,32;CallNonvirtualCharMethodA:(0,97),2400,32;CallNonvirtualShortMethod:(0,98),2432,32;CallNonvirtualShortMethodV:(0,99),2464,32;CallNonvirtualShortMethodA:(0,100),2496,32;CallNonvirtualIntMethod:(0,101),2528,32;CallNonvirtualIntMethodV:(0,102),2560,32;CallNonvirtualIntMethodA:(0,103),2592,32;CallNonvirtualLongMethod:(0,104),2624,32;CallNonvirtualLongMethodV:(0,105),2656,32;CallNonvirtualLongMethodA:(0,106),2688,32;CallNonvirtualFloatMethod:(0,107),2720,32;CallNonvirtualFloatMethodV:(0,108),2752,32;CallNonvirtualFloatMethodA:(0,109),2784,32;CallNonvirtualDoubleMethod:(0,110),2816,32;CallNonvirtualDoubleMethodV:(0,111),2848,32;CallNonvirtualDoubleMethodA:(0,112),2880,32;CallNonvirtualVoidMethod:(0,113),2912,32;CallNonvirtualVoidMethodV:(0,114),2944,32;CallNonvirtualVoidMethodA:(0,115),2976,32;GetFieldID:(0,116),3008,32;GetObjectField:(0,117),3040,32;GetBooleanField:(0,118),3072,32;GetByteField:(0,119),3104,32;GetCharField:(0,120),3136,32;GetShortField:(0,121),3168,32;GetIntField:(0,122),3200,32;GetLongField:(0,123),3232,32;GetFloatField:(0,124),3264,32;GetDoubleField:(0,125),3296,32;SetObjectField:(0,126),3328,32;SetBooleanField:(0,127),3360,32;SetByteField:(0,128),3392,32;SetCharField:(0,129),3424,32;SetShortField:(0,130),3456,32;SetIntField:(0,131),3488,32;SetLongField:(0,132),3520,32;SetFloatField:(0,133),3552,32;SetDoubleField:(0,134),3584,32;GetStaticMethodID:(0,55),3616,32;CallStaticObjectMethod:(0,50),3648,32;CallStaticObjectMethodV:(0,51),3680,32;CallStaticObjectMethodA:(0,52),3712,32;CallStaticBooleanMethod:(0,135),3744,32;CallStaticBooleanMethodV:(0,136),3776,32;CallStaticBooleanMethodA:(0,137),3808,32;CallStaticByteMethod:(0,138),3840,32;CallStaticByteMethodV:(0,139),3872,32;CallStaticByteMethodA:(0,140),3904,32;CallStaticCharMethod:(0,141),3936,32;CallStaticCharMethodV:(0,142),3968,32;CallStaticCharMethodA:(0,143),4000,32;CallStaticShortMethod:(0,144),4032,32;CallStaticShortMethodV:(0,145),4064,32;CallStaticShortMethodA:(0,146),4096,32;CallStaticIntMethod:(0,147),4128,32;CallStaticIntMethodV:(0,148),4160,32;CallStaticIntMethodA:(0,149),4192,32;CallStaticLongMethod:(0,150),4224,32;CallStaticLongMethodV:(0,151),4256,32;CallStaticLongMethodA:(0,152),4288,32;CallStaticFloatMethod:(0,153),4320,32;CallStaticFloatMethodV:(0,154),4352,32;CallStaticFloatMethodA:(0,155),4384,32;CallStaticDoubleMethod:(0,156),4416,32;CallStaticDoubleMethodV:(0,157),4448,32;CallStaticDoubleMethodA:(0,158),4480,32;CallStaticVoidMethod:(0,159),4512,32;CallStaticVoidMethodV:(0,160),4544,32;CallStaticVoidMethodA:(0,161),4576,32;GetStaticFieldID:(0,116),4608,32;GetStaticObjectField:(0,162),4640,32;GetStaticBooleanField:(0,163),4672,32;GetStaticByteField:(0,164),4704,32;GetStaticCharField:(0,165),4736,32;GetStaticShortField:(0,166),4768,32;GetStaticIntField:(0,167),4800,32;GetStaticLongField:(0,168),4832,32;GetStaticFloatField:(0,169),4864,32;GetStaticDoubleField:(0,170),4896,32;SetStaticObjectField:(0,171),4928,32;SetStaticBooleanField:(0,172),4960,32;SetStaticByteField:(0,173),4992,32;SetStaticCharField:(0,174),5024,32;SetStaticShortField:(0,175),5056,32;SetStaticIntField:(0,176),5088,32;SetStaticLongField:(0,177),5120,32;SetStaticFloatField:(0,178),5152,32;SetStaticDoubleField:(0,179),5184,32;NewString:(0,180),5216,32;GetStringLength:(0,181),5248,32;GetStringChars:(0,182),5280,32;ReleaseStringChars:(0,183),5312,32;NewStringUTF:(0,184),5344,32;GetStringUTFLength:(0,181),5376,32;GetStringUTFChars:(0,185),5408,32;ReleaseStringUTFChars:(0,186),5440,32;GetArrayLength:(0,187),5472,32;NewObjectArray:(0,188),5504,32;GetObjectArrayElement:(0,189),5536,32;SetObjectArrayElement:(0,190),5568,32;NewBooleanArray:(0,191),5600,32;NewByteArray:(0,192),5632,32;NewCharArray:(0,193),5664,32;NewShortArray:(0,194),5696,32;NewIntArray:(0,195),5728,32;NewLongArray:(0,196),5760,32;NewFloatArray:(0,197),5792,32;NewDoubleArray:(0,198),5824,32;GetBooleanArrayElements:(0,199),5856,32;GetByteArrayElements:(0,200),5888,32;GetCharArrayElements:(0,201),5920,32;GetShortArrayElements:(0,202),5952,32;GetIntArrayElements:(0,203),5984,32;GetLongArrayElements:(0,204),6016,32;GetFloatArrayElements:(0,205),6048,32;GetDoubleArrayElements:(0,206),6080,32;ReleaseBooleanArrayElements:(0,207),6112,32;ReleaseByteArrayElements:(0,208),6144,32;ReleaseCharArrayElements:(0,209),6176,32;ReleaseShortArrayElements:(0,210),6208,32;ReleaseIntArrayElements:(0,211),6240,32;ReleaseLongArrayElements:(0,212),6272,32;ReleaseFloatArrayElements:(0,213),6304,32;ReleaseDoubleArrayElements:(0,214),6336,32;GetBooleanArrayRegion:(0,215),6368,32;GetByteArrayRegion:(0,216),6400,32;GetCharArrayRegion:(0,217),6432,32;GetShortArrayRegion:(0,218),6464,32;GetIntArrayRegion:(0,219),6496,32;GetLongArrayRegion:(0,220),6528,32;GetFloatArrayRegion:(0,221),6560,32;GetDoubleArrayRegion:(0,222),6592,32;SetBooleanArrayRegion:(0,223),6624,32;SetByteArrayRegion:(0,224),6656,32;SetCharArrayRegion:(0,225),6688,32;SetShortArrayRegion:(0,226),6720,32;SetIntArrayRegion:(0,227),6752,32;SetLongArrayRegion:(0,228),6784,32;SetFloatArrayRegion:(0,229),6816,32;SetDoubleArrayRegion:(0,230),6848,32;RegisterNatives:(0,231),6880,32;UnregisterNatives:(0,232),6912,32;MonitorEnter:(0,233),6944,32;MonitorExit:(0,233),6976,32;GetJavaVM:(0,234),7008,32;GetStringRegion:(0,235),7040,32;GetStringUTFRegion:(0,236),7072,32;GetPrimitiveArrayCritical:(0,237),7104,32;ReleasePrimitiveArrayCritical:(0,238),7136,32;GetStringCritical:(0,182),7168,32;ReleaseStringCritical:(0,183),7200,32;NewWeakGlobalRef:(0,239),7232,32;DeleteWeakGlobalRef:(0,240),7264,32;ExceptionCheck:(0,241),7296,32;NewDirectByteBuffer:(0,242),7328,32;GetDirectBufferAddress:(0,243),7360,32;GetDirectBufferCapacity:(0,244),7392,32;;:t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=(0,245):t(0,246)=f(0,460):t(0,247)=f(0,8):t(0,248)=f(0,8):t(0,249)=f(0,10):t(0,250)=f(0,461):t(0,251)=f(0,9):t(0,252)=f(0,8):t(0,253)=f(0,462):t(0,254)=f(0,9):t(0,255)=f(0,460):t(0,256)=f(0,460):t(0,257)=f(0,463):t(0,258)=f(0,245):t(0,259)=f(0,245):t(0,260)=f(0,460):t(0,261)=f(0,9):t(0,262)=f(0,245):t(0,263)=f(0,462):t(0,264)=f(0,9):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,8):t(0,269)=f(0,462):t(0,270)=f(0,10):t(0,271)=f(0,9):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,462):t(0,275)=f(0,462):t(0,276)=f(0,462):t(0,277)=f(0,464):t(0,278)=f(0,464):t(0,279)=f(0,464):t(0,280)=f(0,465):t(0,281)=f(0,465):t(0,282)=f(0,465):t(0,283)=f(0,466):t(0,284)=f(0,466):t(0,285)=f(0,466):t(0,286)=f(0,460):t(0,287)=f(0,460):t(0,288)=f(0,460):t(0,289)=f(0,467):t(0,290)=f(0,467):t(0,291)=f(0,467):t(0,292)=f(0,468):t(0,293)=f(0,468):t(0,294)=f(0,468):t(0,295)=f(0,469):t(0,296)=f(0,469):t(0,297)=f(0,469):t(0,298)=f(0,245):t(0,299)=f(0,245):t(0,300)=f(0,245):t(0,301)=f(0,9):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,462):t(0,305)=f(0,462):t(0,306)=f(0,462):t(0,307)=f(0,464):t(0,308)=f(0,464):t(0,309)=f(0,464):t(0,310)=f(0,465):t(0,311)=f(0,465):t(0,312)=f(0,465):t(0,313)=f(0,466):t(0,314)=f(0,466):t(0,315)=f(0,466):t(0,316)=f(0,460):t(0,317)=f(0,460):t(0,318)=f(0,460):t(0,319)=f(0,467):t(0,320)=f(0,467):t(0,321)=f(0,467):t(0,322)=f(0,468):t(0,323)=f(0,468):t(0,324)=f(0,468):t(0,325)=f(0,469):t(0,326)=f(0,469):t(0,327)=f(0,469):t(0,328)=f(0,245):t(0,329)=f(0,245):t(0,330)=f(0,245):t(0,331)=f(0,461):t(0,332)=f(0,9):t(0,333)=f(0,462):t(0,334)=f(0,464):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,460):t(0,338)=f(0,467):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,245):t(0,342)=f(0,245):t(0,343)=f(0,245):t(0,344)=f(0,245):t(0,345)=f(0,245):t(0,346)=f(0,245):t(0,347)=f(0,245):t(0,348)=f(0,245):t(0,349)=f(0,245):t(0,350)=f(0,462):t(0,351)=f(0,462):t(0,352)=f(0,462):t(0,353)=f(0,464):t(0,354)=f(0,464):t(0,355)=f(0,464):t(0,356)=f(0,465):t(0,357)=f(0,465):t(0,358)=f(0,465):t(0,359)=f(0,466):t(0,360)=f(0,466):t(0,361)=f(0,466):t(0,362)=f(0,460):t(0,363)=f(0,460):t(0,364)=f(0,460):t(0,365)=f(0,467):t(0,366)=f(0,467):t(0,367)=f(0,467):t(0,368)=f(0,468):t(0,369)=f(0,468):t(0,370)=f(0,468):t(0,371)=f(0,469):t(0,372)=f(0,469):t(0,373)=f(0,469):t(0,374)=f(0,245):t(0,375)=f(0,245):t(0,376)=f(0,245):t(0,377)=f(0,9):t(0,378)=f(0,462):t(0,379)=f(0,464):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,460):t(0,383)=f(0,467):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,245):t(0,387)=f(0,245):t(0,388)=f(0,245):t(0,389)=f(0,245):t(0,390)=f(0,245):t(0,391)=f(0,245):t(0,392)=f(0,245):t(0,393)=f(0,245):t(0,394)=f(0,245):t(0,395)=f(0,470):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,245):t(0,399)=f(0,470):t(0,400)=f(0,473):t(0,401)=f(0,245):t(0,402)=f(0,471):t(0,403)=f(0,474):t(0,404)=f(0,9):t(0,405)=f(0,245):t(0,406)=f(0,475):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,245):t(0,423)=f(0,245):t(0,424)=f(0,245):t(0,425)=f(0,245):t(0,426)=f(0,245):t(0,427)=f(0,245):t(0,428)=f(0,245):t(0,429)=f(0,245):t(0,430)=f(0,245):t(0,431)=f(0,245):t(0,432)=f(0,245):t(0,433)=f(0,245):t(0,434)=f(0,245):t(0,435)=f(0,245):t(0,436)=f(0,245):t(0,437)=f(0,245):t(0,438)=f(0,245):t(0,439)=f(0,245):t(0,440)=f(0,245):t(0,441)=f(0,245):t(0,442)=f(0,245):t(0,443)=f(0,245):t(0,444)=f(0,245):t(0,445)=f(0,245):t(0,446)=f(0,460):t(0,447)=f(0,460):t(0,448)=f(0,460):t(0,449)=f(0,460):t(0,450)=f(0,245):t(0,451)=f(0,245):t(0,452)=f(0,30):t(0,453)=f(0,245):t(0,454)=f(0,491):t(0,455)=f(0,245):t(0,456)=f(0,462):t(0,457)=f(0,9):t(0,458)=f(0,30):t(0,459)=f(0,467)jint:t(0,460)=(0,18)jfieldID:t(0,461)=(0,492)jboolean:t(0,462)=(0,493)jthrowable:t(0,463)=(0,9)jbyte:t(0,464)=(0,494)jchar:t(0,465)=(0,495)jshort:t(0,466)=(0,496)jlong:t(0,467)=(0,497)jfloat:t(0,468)=(0,498)jdouble:t(0,469)=(0,499)jstring:t(0,470)=(0,9)jsize:t(0,471)=(0,460):t(0,472)=*(0,500):t(0,473)=*(0,501)jobjectArray:t(0,474)=(0,502)jbooleanArray:t(0,475)=(0,502)jbyteArray:t(0,476)=(0,502)jcharArray:t(0,477)=(0,502)jshortArray:t(0,478)=(0,502)jintArray:t(0,479)=(0,502)jlongArray:t(0,480)=(0,502)jfloatArray:t(0,481)=(0,502)jdoubleArray:t(0,482)=(0,502):t(0,483)=*(0,462):t(0,484)=*(0,464):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,460):t(0,488)=*(0,467):t(0,489)=*(0,468):t(0,490)=*(0,469)jweak:t(0,491)=(0,9):t(0,492)=*(0,503)unsigned char:t(0,493)=@s8;r(0,493);0;255;signed char:t(0,494)=@s8;r(0,494);-128;127;short unsigned int:t(0,495)=@s16;r(0,495);0;65535;short int:t(0,496)=@s16;r(0,496);-32768;32767;long long int:t(0,497)=@s64;r(0,497);01000000000000000000000;0777777777777777777777;float:t(0,498)=r(0,2);4;0;double:t(0,499)=r(0,2);8;0;:t(0,500)=k(0,465):t(0,501)=k(0,22)jarray:t(0,502)=(0,9):t(0,503)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,245)env:p(0,6)jclazz:p(0,8)old_action:(0,504)sigaction:T(0,504)=s12__sigaction_u:(0,505),0,32;sa_mask:(0,506),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,505)=u4__sa_handler:(0,508),0,32;__sa_sigaction:(0,509),0,32;;__darwin_sigset_t:t(0,507)=(0,510)sigset_t:t(0,506)=(0,507):t(0,508)=*(0,511):t(0,509)=*(0,512)__uint32_t:t(0,510)=(0,4):t(0,511)=f(0,245):t(0,512)=f(0,245)new_action:(0,504)block_mask:(0,506)sigset_t:t(0,506)find_preopened_ports:F(0,2)filename:p(0,473)fd:(0,2)int:t(0,2)p:(0,513)preopened:T(0,514)=s52filename:(0,515),0,320;fd:(0,2),320,32;next:(0,513),352,32;prev:(0,513),384,32;;:t(0,513)=*(0,514):t(0,515)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,516)termios:T(0,516)=s44c_iflag:(0,517),0,32;c_oflag:(0,517),32,32;c_cflag:(0,517),64,32;c_lflag:(0,517),96,32;c_cc:(0,519),128,160;c_ispeed:(0,520),288,32;c_ospeed:(0,520),320,32;;long unsigned int:t(0,518)=r(0,518);0;037777777777;tcflag_t:t(0,517)=(0,518):t(0,519)=ar(0,21);0;19;(0,521)speed_t:t(0,520)=(0,18)cc_t:t(0,521)=(0,493)void:t(0,245)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,516)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,461)jfdataBits:(0,461)jfstopBits:(0,461)jfparity:(0,461)Java_gnu_io_RXTXPort_open:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,473)char:t(0,22)jclazz:(0,8)jfid:(0,461)Java_gnu_io_RXTXPort_nativeClose:F(0,245)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,473)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,516)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,462)env:p(0,6)jobj:p(0,9)speed:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,460)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,522)dataBits:p(0,460)temp:(0,2):t(0,522)=*(0,517)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,522)stopBits:p(0,460)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)translate_parity:F(0,2)env:p(0,6)cflag:p(0,522)parity:p(0,460)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,245)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,245)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,461)newmask:(0,506)oldmask:(0,506)newaction:(0,504)oldaction:(0,504)tid:(0,523)_opaque_pthread_t:T(0,525)=s604__sig:(0,18),0,32;__cleanup_stack:(0,526),32,32;__opaque:(0,527),64,4768;;__darwin_pthread_t:t(0,524)=(0,528)pthread_t:t(0,523)=(0,524):t(0,526)=*(0,529):t(0,527)=ar(0,21);0;595;(0,22):t(0,528)=*(0,525)__darwin_pthread_handler_rec:T(0,529)=s12__routine:(0,530),0,32;__arg:(0,30),32,32;__next:(0,526),64,32;;:t(0,530)=*(0,531):t(0,531)=f(0,245)Java_gnu_io_RXTXPort_writeByte:F(0,245)env:p(0,6)jobj:p(0,9)ji:p(0,460)interrupted:p(0,2)index:(0,12)byte:(0,493)unsigned char:t(0,493)fd:(0,2)result:(0,2)msg:(0,5)interrupted:(0,462)Java_gnu_io_RXTXPort_writeArray:F(0,245)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)count:p(0,460)interrupted:p(0,2)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,484)jbyte:t(0,464)interrupted:(0,462)Java_gnu_io_RXTXPort_nativeDrain:F(0,462)env:p(0,6)jobj:p(0,9)interrupted:p(0,2)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)interrupted:(0,462)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,245)env:p(0,6)jobj:p(0,9)duration:p(0,460)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_isDSR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_setDSR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_isDTR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)static_add_filename:F(0,245)filename:p(0,473)fd:p(0,2)newp:(0,513)p:(0,513)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,462)env:p(0,6)jobj:p(0,9)BaudBase:p(0,460)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,462)env:p(0,6)jobj:p(0,9)Divisor:p(0,460)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,245)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)baudrate:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)pid:(0,2)filename:(0,473)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)filename:(0,473)result:(0,2)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,464)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,464)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)value:(0,464)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)fd:(0,2)ttyset:(0,516)value:(0,464)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,532)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,532)=*(0,493)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,533):t(0,533)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,245)env:p(0,6)jobj:p(0,9)vtime:p(0,460)threshold:p(0,460)buffer:p(0,460)fd:(0,2)ttyset:(0,516)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,460)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,534)fd:(0,2):t(0,534)=ar(0,21);0;0;(0,493)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)bytes:(0,2)body:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)jterminator:p(0,476)bytes:(0,2)total:(0,2)body:(0,484)terminator:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,245)env:p(0,6)jobj:p(0,9)flowmode:p(0,460)ttyset:(0,516)fd:(0,2)unlock_monitor_thread:F(0,245)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,461)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,245)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,245)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,245)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,245)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,245)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,245)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,470)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)port_type:p(0,460)ttyset:(0,516)c:(0,22)fd:(0,2)name:(0,473)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,516)createSerialIterator:F(0,535)serialIterator:p(0,536)kernResult:(0,535)kern_return_t:t(0,535)=(0,2):t(0,536)=*(0,537)io_iterator_t:t(0,537)=(0,538)io_object_t:t(0,538)=(0,539)mach_port_t:t(0,539)=(0,540)__darwin_mach_port_t:t(0,540)=(0,541)__darwin_mach_port_name_t:t(0,541)=(0,542)__darwin_natural_t:t(0,542)=(0,4)masterPort:(0,539)mach_port_t:t(0,539)classesToMatch:(0,543):t(0,544)=*(0,545)CFMutableDictionaryRef:t(0,543)=(0,544):t(0,545)=xs__CFDictionary:_resultStr.13700getRegistryString:F(0,546)sObj:p(0,538)propName:p(0,546)resultStr:V(0,547)nameCFstring:(0,548):t(0,546)=*(0,22):t(0,547)=ar(0,21);0;255;(0,22):t(0,549)=*(0,550)CFTypeRef:t(0,548)=(0,549):t(0,550)=k(0,245)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,460)theSerialIterator:(0,537)io_iterator_t:t(0,537)theObject:(0,538)io_object_t:t(0,538)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,470)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,462)env:p(0,6)jobj:p(0,9)portType:p(0,460) :T(0,551)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551)result:(0,462)jboolean:t(0,462)message:(0,5)_mystat.13792Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)result:(0,462)mystat:V(0,552)stat:T(0,552)=s96st_dev:(0,553),0,32;st_ino:(0,555),32,32;st_mode:(0,557),64,16;st_nlink:(0,559),80,16;st_uid:(0,561),96,32;st_gid:(0,563),128,32;st_rdev:(0,553),160,32;st_atimespec:(0,565),192,64;st_mtimespec:(0,565),256,64;st_ctimespec:(0,565),320,64;st_size:(0,566),384,64;st_blocks:(0,568),448,64;st_blksize:(0,570),512,32;st_flags:(0,510),544,32;st_gen:(0,510),576,32;st_lspare:(0,20),608,32;st_qspare:(0,572),640,128;;timespec:T(0,565)=s8tv_sec:(0,573),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,554)=(0,20)dev_t:t(0,553)=(0,554)__darwin_ino_t:t(0,556)=(0,510)ino_t:t(0,555)=(0,556)__darwin_mode_t:t(0,558)=(0,560)mode_t:t(0,557)=(0,558)__uint16_t:t(0,560)=(0,495)nlink_t:t(0,559)=(0,560)__darwin_uid_t:t(0,562)=(0,510)uid_t:t(0,561)=(0,562)__darwin_gid_t:t(0,564)=(0,510)gid_t:t(0,563)=(0,564)__darwin_off_t:t(0,567)=(0,574)off_t:t(0,566)=(0,567)__darwin_blkcnt_t:t(0,569)=(0,574)blkcnt_t:t(0,568)=(0,569)__darwin_blksize_t:t(0,571)=(0,20)blksize_t:t(0,570)=(0,571):t(0,572)=ar(0,21);0;1;(0,574)time_t:t(0,573)=(0,17)__int64_t:t(0,574)=(0,497)teststring:(0,547)fd:(0,2)i:(0,2)name:(0,473)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,470)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,245)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,462)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,460)event:p(0,460)flag:p(0,2)index:(0,12)flag:(0,462)send_event:F(0,2)eis:p(0,12)type:p(0,460)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,575)env:p(0,6)jobj:p(0,9)id:p(0,546)type:p(0,546)result:(0,2)__darwin_size_t:t(0,576)=(0,518)size_t:t(0,575)=(0,576)jclazz:(0,8)jfd:(0,461)throw_java_exception:F(0,245)env:p(0,6)exc:p(0,546)foo:p(0,546)msg:p(0,546)buf:(0,577)clazz:(0,8):t(0,577)=ar(0,21);0;59;(0,22)report_warning:F(0,245)msg:p(0,546)report_verbose:F(0,245)msg:p(0,546)report_error:F(0,245)msg:p(0,546)report:F(0,245)msg:p(0,546)fhs_lock:F(0,2)filename:p(0,473)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,578)message:(0,5)file:(0,5)p:(0,546):t(0,578)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,473)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,578)message:(0,5)name:(0,5)fd:(0,2)buf:(0,552)check_lock_status:F(0,2)filename:p(0,473)buf:(0,552)fhs_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)file:(0,5)p:(0,546)i:(0,2)uucp_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)buf:(0,552)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,473)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,578)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,579)testLockFileDirName:(0,580)testLockFileName:(0,581)testLockAbsFileName:(0,546):t(0,579)=*(0,582):t(0,580)=ar(0,21);0;9;(0,22):t(0,581)=ar(0,21);0;9;(0,22)FILE:t(0,582)=(0,583)__sFILE:T(0,583)=s88_p:(0,532),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,496),96,16;_file:(0,496),112,16;_bf:(0,584),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,585),256,32;_read:(0,586),288,32;_seek:(0,587),320,32;_write:(0,588),352,32;_ub:(0,584),384,64;_extra:(0,589),448,32;_ur:(0,2),480,32;_ubuf:(0,590),512,24;_nbuf:(0,534),536,8;_lb:(0,584),544,64;_blksize:(0,2),608,32;_offset:(0,591),640,64;;__sbuf:T(0,584)=s8_base:(0,532),0,32;_size:(0,2),32,32;;:t(0,585)=*(0,592):t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=ar(0,21);0;2;(0,493)fpos_t:t(0,591)=(0,567):t(0,592)=f(0,2):t(0,593)=f(0,2):t(0,594)=f(0,591):t(0,595)=f(0,2):t(0,596)=xs__sFILEX:is_device_locked:F(0,2)port_filename:p(0,473)lockdirs:(0,597)lockprefixes:(0,598)p:(0,546):t(0,597)=ar(0,21);0;12;(0,473):t(0,598)=ar(0,21);0;3;(0,473)file:(0,5)pid_buffer:(0,599)message:(0,5)i:(0,2):t(0,599)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,552)buf2:(0,552)lockbuf:(0,552)system_does_not_lock:F(0,2)filename:p(0,473)pid:p(0,2)system_does_not_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)dump_termios:F(0,245)foo:p(0,546)ttyset:p(0,600):t(0,600)=*(0,516)get_java_environment:F(0,6)java_vm:p(0,601)was_attached:p(0,483)env:(0,602):t(0,601)=*(0,603):t(0,602)=*(0,30)JavaVM:t(0,603)=(0,604):t(0,604)=*(0,605):t(0,605)=k(0,606)JNIInvokeInterface_:T(0,606)=s32reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;DestroyJavaVM:(0,607),96,32;AttachCurrentThread:(0,608),128,32;DetachCurrentThread:(0,607),160,32;GetEnv:(0,609),192,32;AttachCurrentThreadAsDaemon:(0,608),224,32;;:t(0,607)=*(0,610):t(0,608)=*(0,611):t(0,609)=*(0,612):t(0,610)=f(0,460):t(0,611)=f(0,460):t(0,612)=f(0,460)err_get_env:(0,460)jint:t(0,460)JNI_OnLoad:F(0,460)java_vm:p(0,601)reserved:p(0,30)JNI_OnUnload:F(0,245)vm:p(0,601)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,601)preopened_port:G(0,513)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s928reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;GetVersion:(0,11),128,32;DefineClass:(0,12),160,32;FindClass:(0,13),192,32;FromReflectedMethod:(0,14),224,32;FromReflectedField:(0,15),256,32;ToReflectedMethod:(0,16),288,32;GetSuperclass:(0,17),320,32;IsAssignableFrom:(0,18),352,32;ToReflectedField:(0,19),384,32;Throw:(0,20),416,32;ThrowNew:(0,21),448,32;ExceptionOccurred:(0,22),480,32;ExceptionDescribe:(0,23),512,32;ExceptionClear:(0,23),544,32;FatalError:(0,24),576,32;PushLocalFrame:(0,25),608,32;PopLocalFrame:(0,26),640,32;NewGlobalRef:(0,26),672,32;DeleteGlobalRef:(0,27),704,32;DeleteLocalRef:(0,27),736,32;IsSameObject:(0,28),768,32;NewLocalRef:(0,26),800,32;EnsureLocalCapacity:(0,25),832,32;AllocObject:(0,29),864,32;NewObject:(0,30),896,32;NewObjectV:(0,31),928,32;NewObjectA:(0,32),960,32;GetObjectClass:(0,33),992,32;IsInstanceOf:(0,34),1024,32;GetMethodID:(0,35),1056,32;CallObjectMethod:(0,36),1088,32;CallObjectMethodV:(0,37),1120,32;CallObjectMethodA:(0,38),1152,32;CallBooleanMethod:(0,39),1184,32;CallBooleanMethodV:(0,40),1216,32;CallBooleanMethodA:(0,41),1248,32;CallByteMethod:(0,42),1280,32;CallByteMethodV:(0,43),1312,32;CallByteMethodA:(0,44),1344,32;CallCharMethod:(0,45),1376,32;CallCharMethodV:(0,46),1408,32;CallCharMethodA:(0,47),1440,32;CallShortMethod:(0,48),1472,32;CallShortMethodV:(0,49),1504,32;CallShortMethodA:(0,50),1536,32;CallIntMethod:(0,51),1568,32;CallIntMethodV:(0,52),1600,32;CallIntMethodA:(0,53),1632,32;CallLongMethod:(0,54),1664,32;CallLongMethodV:(0,55),1696,32;CallLongMethodA:(0,56),1728,32;CallFloatMethod:(0,57),1760,32;CallFloatMethodV:(0,58),1792,32;CallFloatMethodA:(0,59),1824,32;CallDoubleMethod:(0,60),1856,32;CallDoubleMethodV:(0,61),1888,32;CallDoubleMethodA:(0,62),1920,32;CallVoidMethod:(0,63),1952,32;CallVoidMethodV:(0,64),1984,32;CallVoidMethodA:(0,65),2016,32;CallNonvirtualObjectMethod:(0,66),2048,32;CallNonvirtualObjectMethodV:(0,67),2080,32;CallNonvirtualObjectMethodA:(0,68),2112,32;CallNonvirtualBooleanMethod:(0,69),2144,32;CallNonvirtualBooleanMethodV:(0,70),2176,32;CallNonvirtualBooleanMethodA:(0,71),2208,32;CallNonvirtualByteMethod:(0,72),2240,32;CallNonvirtualByteMethodV:(0,73),2272,32;CallNonvirtualByteMethodA:(0,74),2304,32;CallNonvirtualCharMethod:(0,75),2336,32;CallNonvirtualCharMethodV:(0,76),2368,32;CallNonvirtualCharMethodA:(0,77),2400,32;CallNonvirtualShortMethod:(0,78),2432,32;CallNonvirtualShortMethodV:(0,79),2464,32;CallNonvirtualShortMethodA:(0,80),2496,32;CallNonvirtualIntMethod:(0,81),2528,32;CallNonvirtualIntMethodV:(0,82),2560,32;CallNonvirtualIntMethodA:(0,83),2592,32;CallNonvirtualLongMethod:(0,84),2624,32;CallNonvirtualLongMethodV:(0,85),2656,32;CallNonvirtualLongMethodA:(0,86),2688,32;CallNonvirtualFloatMethod:(0,87),2720,32;CallNonvirtualFloatMethodV:(0,88),2752,32;CallNonvirtualFloatMethodA:(0,89),2784,32;CallNonvirtualDoubleMethod:(0,90),2816,32;CallNonvirtualDoubleMethodV:(0,91),2848,32;CallNonvirtualDoubleMethodA:(0,92),2880,32;CallNonvirtualVoidMethod:(0,93),2912,32;CallNonvirtualVoidMethodV:(0,94),2944,32;CallNonvirtualVoidMethodA:(0,95),2976,32;GetFieldID:(0,96),3008,32;GetObjectField:(0,97),3040,32;GetBooleanField:(0,98),3072,32;GetByteField:(0,99),3104,32;GetCharField:(0,100),3136,32;GetShortField:(0,101),3168,32;GetIntField:(0,102),3200,32;GetLongField:(0,103),3232,32;GetFloatField:(0,104),3264,32;GetDoubleField:(0,105),3296,32;SetObjectField:(0,106),3328,32;SetBooleanField:(0,107),3360,32;SetByteField:(0,108),3392,32;SetCharField:(0,109),3424,32;SetShortField:(0,110),3456,32;SetIntField:(0,111),3488,32;SetLongField:(0,112),3520,32;SetFloatField:(0,113),3552,32;SetDoubleField:(0,114),3584,32;GetStaticMethodID:(0,35),3616,32;CallStaticObjectMethod:(0,30),3648,32;CallStaticObjectMethodV:(0,31),3680,32;CallStaticObjectMethodA:(0,32),3712,32;CallStaticBooleanMethod:(0,115),3744,32;CallStaticBooleanMethodV:(0,116),3776,32;CallStaticBooleanMethodA:(0,117),3808,32;CallStaticByteMethod:(0,118),3840,32;CallStaticByteMethodV:(0,119),3872,32;CallStaticByteMethodA:(0,120),3904,32;CallStaticCharMethod:(0,121),3936,32;CallStaticCharMethodV:(0,122),3968,32;CallStaticCharMethodA:(0,123),4000,32;CallStaticShortMethod:(0,124),4032,32;CallStaticShortMethodV:(0,125),4064,32;CallStaticShortMethodA:(0,126),4096,32;CallStaticIntMethod:(0,127),4128,32;CallStaticIntMethodV:(0,128),4160,32;CallStaticIntMethodA:(0,129),4192,32;CallStaticLongMethod:(0,130),4224,32;CallStaticLongMethodV:(0,131),4256,32;CallStaticLongMethodA:(0,132),4288,32;CallStaticFloatMethod:(0,133),4320,32;CallStaticFloatMethodV:(0,134),4352,32;CallStaticFloatMethodA:(0,135),4384,32;CallStaticDoubleMethod:(0,136),4416,32;CallStaticDoubleMethodV:(0,137),4448,32;CallStaticDoubleMethodA:(0,138),4480,32;CallStaticVoidMethod:(0,139),4512,32;CallStaticVoidMethodV:(0,140),4544,32;CallStaticVoidMethodA:(0,141),4576,32;GetStaticFieldID:(0,96),4608,32;GetStaticObjectField:(0,142),4640,32;GetStaticBooleanField:(0,143),4672,32;GetStaticByteField:(0,144),4704,32;GetStaticCharField:(0,145),4736,32;GetStaticShortField:(0,146),4768,32;GetStaticIntField:(0,147),4800,32;GetStaticLongField:(0,148),4832,32;GetStaticFloatField:(0,149),4864,32;GetStaticDoubleField:(0,150),4896,32;SetStaticObjectField:(0,151),4928,32;SetStaticBooleanField:(0,152),4960,32;SetStaticByteField:(0,153),4992,32;SetStaticCharField:(0,154),5024,32;SetStaticShortField:(0,155),5056,32;SetStaticIntField:(0,156),5088,32;SetStaticLongField:(0,157),5120,32;SetStaticFloatField:(0,158),5152,32;SetStaticDoubleField:(0,159),5184,32;NewString:(0,160),5216,32;GetStringLength:(0,161),5248,32;GetStringChars:(0,162),5280,32;ReleaseStringChars:(0,163),5312,32;NewStringUTF:(0,164),5344,32;GetStringUTFLength:(0,161),5376,32;GetStringUTFChars:(0,165),5408,32;ReleaseStringUTFChars:(0,166),5440,32;GetArrayLength:(0,167),5472,32;NewObjectArray:(0,168),5504,32;GetObjectArrayElement:(0,169),5536,32;SetObjectArrayElement:(0,170),5568,32;NewBooleanArray:(0,171),5600,32;NewByteArray:(0,172),5632,32;NewCharArray:(0,173),5664,32;NewShortArray:(0,174),5696,32;NewIntArray:(0,175),5728,32;NewLongArray:(0,176),5760,32;NewFloatArray:(0,177),5792,32;NewDoubleArray:(0,178),5824,32;GetBooleanArrayElements:(0,179),5856,32;GetByteArrayElements:(0,180),5888,32;GetCharArrayElements:(0,181),5920,32;GetShortArrayElements:(0,182),5952,32;GetIntArrayElements:(0,183),5984,32;GetLongArrayElements:(0,184),6016,32;GetFloatArrayElements:(0,185),6048,32;GetDoubleArrayElements:(0,186),6080,32;ReleaseBooleanArrayElements:(0,187),6112,32;ReleaseByteArrayElements:(0,188),6144,32;ReleaseCharArrayElements:(0,189),6176,32;ReleaseShortArrayElements:(0,190),6208,32;ReleaseIntArrayElements:(0,191),6240,32;ReleaseLongArrayElements:(0,192),6272,32;ReleaseFloatArrayElements:(0,193),6304,32;ReleaseDoubleArrayElements:(0,194),6336,32;GetBooleanArrayRegion:(0,195),6368,32;GetByteArrayRegion:(0,196),6400,32;GetCharArrayRegion:(0,197),6432,32;GetShortArrayRegion:(0,198),6464,32;GetIntArrayRegion:(0,199),6496,32;GetLongArrayRegion:(0,200),6528,32;GetFloatArrayRegion:(0,201),6560,32;GetDoubleArrayRegion:(0,202),6592,32;SetBooleanArrayRegion:(0,203),6624,32;SetByteArrayRegion:(0,204),6656,32;SetCharArrayRegion:(0,205),6688,32;SetShortArrayRegion:(0,206),6720,32;SetIntArrayRegion:(0,207),6752,32;SetLongArrayRegion:(0,208),6784,32;SetFloatArrayRegion:(0,209),6816,32;SetDoubleArrayRegion:(0,210),6848,32;RegisterNatives:(0,211),6880,32;UnregisterNatives:(0,212),6912,32;MonitorEnter:(0,213),6944,32;MonitorExit:(0,213),6976,32;GetJavaVM:(0,214),7008,32;GetStringRegion:(0,215),7040,32;GetStringUTFRegion:(0,216),7072,32;GetPrimitiveArrayCritical:(0,217),7104,32;ReleasePrimitiveArrayCritical:(0,218),7136,32;GetStringCritical:(0,162),7168,32;ReleaseStringCritical:(0,163),7200,32;NewWeakGlobalRef:(0,219),7232,32;DeleteWeakGlobalRef:(0,220),7264,32;ExceptionCheck:(0,221),7296,32;NewDirectByteBuffer:(0,222),7328,32;GetDirectBufferAddress:(0,223),7360,32;GetDirectBufferCapacity:(0,224),7392,32;;:t(0,10)=*(0,225):t(0,11)=*(0,226):t(0,12)=*(0,227):t(0,13)=*(0,228):t(0,14)=*(0,229):t(0,15)=*(0,230):t(0,16)=*(0,231):t(0,17)=*(0,232):t(0,18)=*(0,233):t(0,19)=*(0,234):t(0,20)=*(0,235):t(0,21)=*(0,236):t(0,22)=*(0,237):t(0,23)=*(0,238):t(0,24)=*(0,239):t(0,25)=*(0,240):t(0,26)=*(0,241):t(0,27)=*(0,242):t(0,28)=*(0,243):t(0,29)=*(0,244):t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=(0,225):t(0,226)=f(0,440):t(0,227)=f(0,441):t(0,228)=f(0,441):t(0,229)=f(0,442):t(0,230)=f(0,443):t(0,231)=f(0,2):t(0,232)=f(0,441):t(0,233)=f(0,444):t(0,234)=f(0,2):t(0,235)=f(0,440):t(0,236)=f(0,440):t(0,237)=f(0,445):t(0,238)=f(0,225):t(0,239)=f(0,225):t(0,240)=f(0,440):t(0,241)=f(0,2):t(0,242)=f(0,225):t(0,243)=f(0,444):t(0,244)=f(0,2):t(0,245)=f(0,2):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,441):t(0,249)=f(0,444):t(0,250)=f(0,442):t(0,251)=f(0,2):t(0,252)=f(0,2):t(0,253)=f(0,2):t(0,254)=f(0,444):t(0,255)=f(0,444):t(0,256)=f(0,444):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,446):t(0,260)=f(0,447):t(0,261)=f(0,447):t(0,262)=f(0,447):t(0,263)=f(0,448):t(0,264)=f(0,448):t(0,265)=f(0,448):t(0,266)=f(0,440):t(0,267)=f(0,440):t(0,268)=f(0,440):t(0,269)=f(0,449):t(0,270)=f(0,449):t(0,271)=f(0,449):t(0,272)=f(0,450):t(0,273)=f(0,450):t(0,274)=f(0,450):t(0,275)=f(0,451):t(0,276)=f(0,451):t(0,277)=f(0,451):t(0,278)=f(0,225):t(0,279)=f(0,225):t(0,280)=f(0,225):t(0,281)=f(0,2):t(0,282)=f(0,2):t(0,283)=f(0,2):t(0,284)=f(0,444):t(0,285)=f(0,444):t(0,286)=f(0,444):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,446):t(0,290)=f(0,447):t(0,291)=f(0,447):t(0,292)=f(0,447):t(0,293)=f(0,448):t(0,294)=f(0,448):t(0,295)=f(0,448):t(0,296)=f(0,440):t(0,297)=f(0,440):t(0,298)=f(0,440):t(0,299)=f(0,449):t(0,300)=f(0,449):t(0,301)=f(0,449):t(0,302)=f(0,450):t(0,303)=f(0,450):t(0,304)=f(0,450):t(0,305)=f(0,451):t(0,306)=f(0,451):t(0,307)=f(0,451):t(0,308)=f(0,225):t(0,309)=f(0,225):t(0,310)=f(0,225):t(0,311)=f(0,443):t(0,312)=f(0,2):t(0,313)=f(0,444):t(0,314)=f(0,446):t(0,315)=f(0,447):t(0,316)=f(0,448):t(0,317)=f(0,440):t(0,318)=f(0,449):t(0,319)=f(0,450):t(0,320)=f(0,451):t(0,321)=f(0,225):t(0,322)=f(0,225):t(0,323)=f(0,225):t(0,324)=f(0,225):t(0,325)=f(0,225):t(0,326)=f(0,225):t(0,327)=f(0,225):t(0,328)=f(0,225):t(0,329)=f(0,225):t(0,330)=f(0,444):t(0,331)=f(0,444):t(0,332)=f(0,444):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,446):t(0,336)=f(0,447):t(0,337)=f(0,447):t(0,338)=f(0,447):t(0,339)=f(0,448):t(0,340)=f(0,448):t(0,341)=f(0,448):t(0,342)=f(0,440):t(0,343)=f(0,440):t(0,344)=f(0,440):t(0,345)=f(0,449):t(0,346)=f(0,449):t(0,347)=f(0,449):t(0,348)=f(0,450):t(0,349)=f(0,450):t(0,350)=f(0,450):t(0,351)=f(0,451):t(0,352)=f(0,451):t(0,353)=f(0,451):t(0,354)=f(0,225):t(0,355)=f(0,225):t(0,356)=f(0,225):t(0,357)=f(0,2):t(0,358)=f(0,444):t(0,359)=f(0,446):t(0,360)=f(0,447):t(0,361)=f(0,448):t(0,362)=f(0,440):t(0,363)=f(0,449):t(0,364)=f(0,450):t(0,365)=f(0,451):t(0,366)=f(0,225):t(0,367)=f(0,225):t(0,368)=f(0,225):t(0,369)=f(0,225):t(0,370)=f(0,225):t(0,371)=f(0,225):t(0,372)=f(0,225):t(0,373)=f(0,225):t(0,374)=f(0,225):t(0,375)=f(0,1):t(0,376)=f(0,452):t(0,377)=f(0,453):t(0,378)=f(0,225):t(0,379)=f(0,1):t(0,380)=f(0,454):t(0,381)=f(0,225):t(0,382)=f(0,452):t(0,383)=f(0,455):t(0,384)=f(0,2):t(0,385)=f(0,225):t(0,386)=f(0,456):t(0,387)=f(0,457):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,225):t(0,403)=f(0,225):t(0,404)=f(0,225):t(0,405)=f(0,225):t(0,406)=f(0,225):t(0,407)=f(0,225):t(0,408)=f(0,225):t(0,409)=f(0,225):t(0,410)=f(0,225):t(0,411)=f(0,225):t(0,412)=f(0,225):t(0,413)=f(0,225):t(0,414)=f(0,225):t(0,415)=f(0,225):t(0,416)=f(0,225):t(0,417)=f(0,225):t(0,418)=f(0,225):t(0,419)=f(0,225):t(0,420)=f(0,225):t(0,421)=f(0,225):t(0,422)=f(0,225):t(0,423)=f(0,225):t(0,424)=f(0,225):t(0,425)=f(0,225):t(0,426)=f(0,440):t(0,427)=f(0,440):t(0,428)=f(0,440):t(0,429)=f(0,440):t(0,430)=f(0,225):t(0,431)=f(0,225):t(0,432)=f(0,10):t(0,433)=f(0,225):t(0,434)=f(0,472):t(0,435)=f(0,225):t(0,436)=f(0,444):t(0,437)=f(0,2):t(0,438)=f(0,10):t(0,439)=f(0,449)jint:t(0,440)=(0,473)jclass:t(0,441)=(0,2)jmethodID:t(0,442)=(0,474)jfieldID:t(0,443)=(0,475)jboolean:t(0,444)=(0,476)jthrowable:t(0,445)=(0,2)jbyte:t(0,446)=(0,477)jchar:t(0,447)=(0,478)jshort:t(0,448)=(0,479)jlong:t(0,449)=(0,480)jfloat:t(0,450)=(0,481)jdouble:t(0,451)=(0,482)jsize:t(0,452)=(0,440):t(0,453)=*(0,483):t(0,454)=*(0,484)jobjectArray:t(0,455)=(0,485)jbooleanArray:t(0,456)=(0,485)jbyteArray:t(0,457)=(0,485)jcharArray:t(0,458)=(0,485)jshortArray:t(0,459)=(0,485)jintArray:t(0,460)=(0,485)jlongArray:t(0,461)=(0,485)jfloatArray:t(0,462)=(0,485)jdoubleArray:t(0,463)=(0,485):t(0,464)=*(0,444):t(0,465)=*(0,446):t(0,466)=*(0,447):t(0,467)=*(0,448):t(0,468)=*(0,440):t(0,469)=*(0,449):t(0,470)=*(0,450):t(0,471)=*(0,451)jweak:t(0,472)=(0,2)long int:t(0,473)=r(0,473);-2147483648;2147483647;:t(0,474)=*(0,486):t(0,475)=*(0,487)unsigned char:t(0,476)=@s8;r(0,476);0;255;signed char:t(0,477)=@s8;r(0,477);-128;127;short unsigned int:t(0,478)=@s16;r(0,478);0;65535;short int:t(0,479)=@s16;r(0,479);-32768;32767;long long int:t(0,480)=@s64;r(0,480);01000000000000000000000;0777777777777777777777;float:t(0,481)=r(0,488);4;0;double:t(0,482)=r(0,488);8;0;:t(0,483)=k(0,447):t(0,484)=k(0,489)jarray:t(0,485)=(0,2):t(0,486)=xs_jmethodID::t(0,487)=xs_jfieldID:char:t(0,489)=r(0,489);0;127;PK t4ユマ-,gnu/io/installer/resources/macosx/preinstall#!/bin/sh curruser=$1 echo $curruser if [ ! -d /var/lock ] then mkdir /var/lock fi chgrp uucp /var/lock chmod 775 /var/lock if [ ! `niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then niutil -mergeprop / /groups/uucp users $curruser fi PK  t4ナゥ/''$gnu/io/installer/RXTXInstaller.classハコセ1テ 1f gh f ij k l m no npq r s tu v w xyz{ |} ~ ~ f x x x | "f " " "       xsysPrefLjava/util/prefs/Preferences; checkPref jarFolderLjava/io/File; libFolderinst%Lgnu/io/installer/InstallInstruction;()VCodeLineNumberTableLocalVariableTablethis Lgnu/io/installer/RXTXInstaller; runPreProcessrunPostProcessinstallfeLjava/util/Enumeration;finishInstallationtLjava/lang/Throwable;getInstallInstruction'()Lgnu/io/installer/InstallInstruction; getInstance"()Lgnu/io/installer/RXTXInstaller;osNameLjava/lang/String;initInstallation(Ljava/lang/Class;)V checkPrefName rootClassLjava/lang/Class;addLibResource'(Ljava/lang/String;Ljava/lang/String;)VpathresourcelibFileaddJarResourcejarFile addResource#(Ljava/io/File;Ljava/lang/String;)Vmain([Ljava/lang/String;)Vargs[Ljava/lang/String; installer SourceFileRXTXInstaller.java :; 43#gnu/io/installer/InstallInstruction 89gnu/io/installer/RXTXInstaller PQ A;   java/io/File 23 。「」 、・ B; G;ヲ ァ;java/lang/Throwableos.nameィ ゥェォ ャュmac ョッ+gnu/io/installer/macosx/MACOSXRXTXInstallerinstaller.prefー アイ ウエ/check オッ カキ クケjava/lang/StringBuilder Throwable コサ コシ スュセ ソタ 76 :] \] 56 LM C; チツjava/lang/ObjectgetKeys()Ljava/util/Enumeration;java/util/EnumerationhasMoreElements()Z nextElement()Ljava/lang/Object;getPath"(Ljava/io/File;)Ljava/lang/String;!gnu/io/installer/util/InstallUtil installPart](Ljava/util/prefs/Preferences;Ljava/util/prefs/Preferences;Ljava/lang/String;Ljava/io/File;)Vjava/util/prefs/Preferences removeNodejava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;java/lang/String toLowerCase()Ljava/lang/String; startsWith(Ljava/lang/String;)Zjava/lang/ClassgetResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;importPreferences(Ljava/io/InputStream;)V nodeExistsnode1(Ljava/lang/String;)Ljava/util/prefs/Preferences;outLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)V systemRoot()Ljava/util/prefs/Preferences;!12343567689 :;<G*キ*オ*サYキオア=  > ?@A;B;C;<ョL*カ*カ*エニ4*エカ L+ケ #+ケ タ Mイ *エ*エ,カ,クァレ*カ*カア=*  #-@CGK > -D6)EFL?@G;<\*エヌア*エカァLア=#%&'>HI?@JK</*エー=*> ?@ LM<RクカK*カ サYキーー=. /02>  NOPQ<ニR*オ+ヌア+カクM*イ ,カ イ ,カ ァオァ"M*オイ!サ"Yキ#$カ%,カ&カ'カ(ア /2=* 67 9:;/?2<3=8>Q@>*RO3HIR?@RSTUV<x$*エ)ニ +ニ,ヌアサ Y*エ)+キ*N*-,カ+ア=CDE#F>*$?@$WO$XOY6ZV<x$*エ,ニ +ニ,ヌアサ Y*エ,+キ*N*-,カ+ア=IJK#L>*$?@$WO$XO[6\]<b*エヌ*サYキオ*エ+,カ-ア=OPQ> ?@W6XO ^_<I ク.L+ニ+カ/ア=TU V> `a b@c;<ク0ウ ア= dePK ht4gnu/io/installer/util/PK ht4`m$ZSS'gnu/io/installer/util/InstallUtil.classハコセ1 sdat apps            。「」 、・ ヲ ァィ ゥ ェ ォ &ャュ &ョ &ッ &ー ア イウ &エ オ イカ イキクケコ サ イシ イス kSystemDomainS ConstantValue kLocalDomainkNetworkDomain kUserDomainkClassicDomainkPreferenceFolderIprefkApplicationSupportFolderasupkSharedUserDataFolderkApplicationFolderkExtensionFolderextnkDomainLibraryFolderdlib()VCodeLineNumberTableLocalVariableTablethis#Lgnu/io/installer/util/InstallUtil;getSharedFolderPath()Ljava/lang/String;getApplicationFolderPathgetGlobalApplicationFolderPath getFolderPath(I)Ljava/lang/String;clazzLjava/lang/Class;mLjava/lang/reflect/Method;tLjava/lang/Throwable; folderKind(SI)Ljava/lang/String;domaincopyResourceToFile#(Ljava/lang/String;Ljava/io/File;)VfosLjava/io/FileOutputStream;isLjava/io/InputStream;buffer[Brb absResPathLjava/lang/String;fileLjava/io/File; installPart](Ljava/util/prefs/Preferences;Ljava/util/prefs/Preferences;Ljava/lang/String;Ljava/io/File;)VcheckResParentNamecheckInstallPrefLjava/util/prefs/Preferences;installValueLengthJcheckValueLength newLengthsysPref checkPref resPathName fileToInstall needInstallZ separatorC prevLengthfooFileresName resParentName installPref SourceFileInstallUtil.java MN XY Xacom.apple.eio.FileManager セソ findFolderjava/lang/Class タ[ チツjava/lang/Objectjava/lang/Integer Mテト ナニjava/lang/Stringjava/lang/Throwablejava/lang/Short Mヌネ ノハjava/lang/StringBuildergetFolderPath Throwable ヒフ ヒヘ ホUマ ミム!gnu/io/installer/util/InstallUtil メモjava/io/FileOutputStream Mヤユ ヨラ リル レN ロN ワ java/io/File Mム ンU ゙U ゚ Y File  is uptodate copy file cd NforName%(Ljava/lang/String;)Ljava/lang/Class;TYPE getMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;(I)Vjava/lang/reflect/Methodinvoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(S)Vjava/lang/SystemoutLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)VgetResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;(Ljava/io/File;)Vjava/io/InputStreamread([BII)Iwrite([BII)VcloseprintStackTrace separatorChargetName getParentreplace(CC)Ljava/lang/String;java/util/prefs/Preferencesnode1(Ljava/lang/String;)Ljava/util/prefs/Preferences;length()J substring nodeExists(Ljava/lang/String;)ZgetLong(Ljava/lang/String;J)JputLong(Ljava/lang/String;J)Vflush! 6789:78;<78=>78?@78ABC8DEC8FGC8HC8IC8JKC8LMNO/*キアPQ RS TUOクーP VUOクーP WUO! クーP XYO2クL+ス Yイ Sカ M,ス Yサ YキSカターLー./P/0Q*)Z[\]0^_2`C XaOハ\クM,ス YイSYイ Sカ N-ス YサYキSYサ YキSカターMイサYキカ,カカカー?@P@ A!Z#Q4:Z[#\]A^_\b7\`C cdOG*カMシN6,ニ,サY+キ :,--セカ!Y6-カ"ァカ#ァM,カ$ア>AP6 '()*+,--6.9/>3A1B2F4QHef6gh0ij-kCB^_GlmGno pqOー:-ニ,ヌア+ヌァ6イ%6 7サ&Y,キ':カ(: カ): / /カ*: * カ+: -カ,7ァ:  爆ァ6n カ-: : + カ. + カ+ァ: ァ::   カ/7 ヌ ァ   カ/7 漠爆爆 漠ァ6$イサYキ0カ-カ1カカカァ:イサYキ2カ-カカカ,-ク3-カ,7    カ4 カ5ァ: アSY\| 47P!6 789:&;-<4=F>N?SAYB^DlEqFyG|ILJKM」NカOワTUVWX Z&[/\4]9_Qタ^^_ ^_ycrm |`st 」9uvカ&wv&xv 9^_ :yt:zt:{m:|o&}~!v&o- m 4m Nt PK t4憔g META-INF/MANIFEST.MFPK t49シ3i?META-INF/CONCORD.SFPK t4%鮪ュ ウMETA-INF/CONCORD.RSAPK  t4 META-INF/ハPK ^ /ョapp/PK ^ / ミapp/authkit/PK  t4app/authkit/envoy/PK ^ /逮カ%ララ*app/authkit/envoy/Envoy.classPK ^ /dャトユユ()Vexplain(Ljava/lang/Throwable;)Vprepareperformfinish()I groupTaskArgs>(Ljava/util/Enumeration;Ljava/util/Vector;Ljava/lang/String;)V taskPerform(ILjava/util/Vector;)IgetAuthorization"()Lglguerin/authkit/Authorization; buildAuthnewAuth protocolIn()Ljava/io/InputStream; protocolOut()Ljava/io/PrintStream;protocolBegins prepareTaskIO protocolEnds taskBegins(ILjava/lang/String;)VtaskBeginsOutput(ILapp/authkit/envoy/Task;)VtaskEndsOutputtaskEnds(ILapp/authkit/envoy/Task;I)V taskFails SourceFile Envoy.java h happ/authkit/envoy/Envoy }~ ~ z java/lang/Throwable ~  xh ~ ~ cdenvoy.tasks.between:-      java/util/Vector } kj ij    ~ ~    "java/lang/IllegalArgumentExceptionNo Task }  java/lang/String   !" #app/authkit/envoy/Task $ %  &~/glguerin.authkit.imp.plain.DenyAllAuthorizationMac OS Xos.name '/glguerin.authkit.imp.macosx.MacOSXAuthorizationglguerin/authkit/Authorizationjava/lang/ThreadDeath/glguerin/authkit/imp/plain/DenyAllAuthorization ef gh (fjava/io/PrintStreamglguerin/util/SinkOutputStream }) *java/io/ByteArrayInputStream }+ ,-java/lang/StringBufferstop:0: ./ .0 1  task-begin::java/lang/IllegalStateException text-begin: text-end: task-end:java/lang/Object task-begin text-begintext-endtask-endstopjava/lang/Systemouterrexit(I)VflushprintStackTrace(Ljava/io/PrintStream;)V getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;glguerin/util/VectorUtilasVector(([Ljava/lang/Object;Z)Ljava/util/Vector;elements()Ljava/util/Enumeration;sizejava/util/EnumerationhasMoreElements()ZremoveAllElements nextElement()Ljava/lang/Object;toString()Ljava/lang/String;equals(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)V(Ljava/lang/String;)V firstElementremoveElementAtcopyInto([Ljava/lang/Object;)Vjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstanceproducesOutput6([Ljava/lang/String;Lglguerin/authkit/Authorization;)IattachPrivileged&(Ljava/lang/String;)Ljava/lang/String;in(Ljava/io/OutputStream;)VsetOut([B)VsetIn(Ljava/io/InputStream;)Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;print!^_`ab`acdefghijkjl`aXm`aVn`aop`aqr`ast`auv`awxh yz{6イLイMサYキN-カ-*カ-カクァN+カ -,カ ,カ クア # |2  #(-15}~{* *キ *オ ア|s {9*カカ +イカ イカ ア|"#$%~{5*カ*カ**カオア|58;<z{ォcクM+クカNサY+セキ:*オ*オァ3*-,カカ#***エカオ*エア*Yエ`オ-ケハア|6 HLMO!P)U1V9YGZN[O]YPb`{% *カ *エャ| no{^.,カ!ァ +ケ"カ#:-カ$ァ,カ%+ケンア|$-{G サ,カ サ&Y'キ(ソ'N:66,カ)カ#N,カ*,カス+:,カ,*-カ--ク.カ/タ0:ケ16 *カ2*カ3ケ46ィァ,:6*カ5ィァ:ィソ:  *カ6ゥ *カ7ァ *カ8ャou |j・%ヲ*ゥ3ェ9ッ?イKオTカYキ`コoスuタzチツニヌハ」ヒッヘクマ{*エー|ル{+ *カ9L+カ:+ー| {o/;L<=ク>カ$?L+ク.カ/タ@ーM,ソN*-カ5サBYキCーA! | !'{*エDー|4{*エEー|9~{/*イFオD*イオEア|GHI~{?サGYサHYキIキJクKサLYシキMクNア|STU~{R**カL+サOYキPQカR*エカSカTカU+VカU+カ ア|`ab%c)d{X0*カN-サOYキPWカRカSXカR,カRカTカU-VカU-カ ア|mn%o+p/q{|D*エ ニ サYYキZソ*カN-サOYキP[カRカSカTカU-VカU-カ *イオ *カクKア|& ~+15<C{Kイカ *エ N*オ -ヌ サYYキZソ-クK*カ:サOYキP\カRカSカTカUVカUカ ア|.   &>EJ{\4*カ:サOYキP]カRカSXカRカSカTカUVカUカ ア|ィゥ'ェ.ォ3ャ{\4*カ:サOYキP]カRカSXカRカSカTカUVカUカ ア|カキ'ク.ケ3コ抉K ^ /dャトユユapp/authkit/envoy/Task.classハコセ-   producesOutput()Zperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile Task.javaapp/authkit/envoy/Taskjava/lang/ObjectPK ^ /・ヨタツツapp/authkit/envoy/Tool.classハコセ-、 ツテ トナ トニ ツヌ ネ sノハ ヒフヘ ノホ マ ミ ムメ ノ ツモ ツヤ ツユ ヨラリルレ &ロワ ン゙ ン゚  ノ ! & ! ! ! (ノ ( . . . 1 . . . . . ? ?APPL ? . G     &        sム  ツ aノ c! " c#$ g% g& &' &( &)* &+,- o. o/0 o12 u3 u4 5 67 89:; <= > ?@ sA ンB C DセE>? F GHItell(Ljava/lang/String;)VCodeLineNumberTableexplain(Ljava/lang/Throwable;)V()Vperform([Ljava/lang/String;)Vdepart(I)VpresupposeProperty'(Ljava/lang/String;Ljava/lang/String;)VnewAuth"()Lglguerin/authkit/Authorization; stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String; nonceFrame()Ljava/awt/Frame; chooseTarget((Ljava/lang/String;I)[Ljava/lang/String;mustBeAppBundle&(Ljava/lang/String;)Ljava/lang/String; ExceptionsmakeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; getJavaPathaddJavaCommand:(Ljava/util/Vector;Ljava/lang/String;[Ljava/lang/String;)VaddPrefixedProperties'(Ljava/util/Vector;Ljava/lang/String;)VaddOneProperty addEnvoyTaskcaptureUntilEOF0(Ljava/io/InputStream;Ljava/io/OutputStream;I)[BschlepUntilEOF.(Ljava/io/InputStream;Ljava/io/OutputStream;)JtranslateEnvoyMessage([B)Ljava/lang/String;getEnvoyMessageParts:(Ljava/lang/String;ILjava/lang/String;)[Ljava/lang/Object; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)Ifailed+(Ljava/lang/Throwable;ZLjava/lang/String;)Valert((Ljava/lang/String;[Ljava/lang/Object;)V SourceFile Tool.javaJ KLM N O PL QR no-exitS TUjava/lang/StringBufferdepart: VW VX YZjava/lang/ThreadDeath [ \ァ ]^_ `a/glguerin.authkit.imp.plain.DenyAllAuthorizationMac OS Xos.name bc/glguerin.authkit.imp.macosx.MacOSXAuthorizationd ef ghglguerin/authkit/Authorizationjava/lang/Throwable /glguerin/authkit/imp/plain/DenyAllAuthorizationjava/util/Vector iU jk lmjava/lang/String nojava/awt/Frame pq 「」r st uZ java/io/File vwjava/io/IOExceptionNo such file or directory: xwNot a bundle directory: Contents yzPkgInfo { |w }~,Missing or truncated Contents/PkgInfo file: java/io/RandomAccessFiler mNot an app-bundle:  Z"java/lang/IllegalArgumentExceptionNeeds non-null envoyClass ャュ ョッ アュ java.home }mbinjava ォァ-cpjava.class.path file.encoding ーッ   h w-D=envoy.tasks.between:- \glguerin/util/SinkOutputStream!glguerin/util/CaptureOutputStream  エオ glguerin/util/Streamer  ~    java/util/StringTokenizer: mjava/lang/Object Zjava/lang/Integer java/lang/NumberFormatException イウ カキstop クケ'Envoy protocol failure: no STOP message%Envoy protocol failure: short parts: java/lang/Number m'Envoy protocol failure: bad indicator: V ZCaught:  Z セソapp/util/BasicAlert 。「 」app/authkit/envoy/Tooljava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintlnflusherrprintStackTrace(Ljava/io/PrintStream;)Vjava/lang/Boolean getBoolean(Ljava/lang/String;)Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;exit getProperty getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;equals(Ljava/lang/Object;)Zjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object; startsWith addElement(Ljava/lang/Object;)Vsize()IcopyInto([Ljava/lang/Object;)V setResizable(Z)Vapp/util/FileDialogger runFileDialog3(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/io/File;getAbsolutePathexists()Z isDirectory separatorLjava/lang/String;#(Ljava/io/File;Ljava/lang/String;)VisFilelength()JreadIntclosegetCanonicalPathglguerin/util/VectorUtil addToVector)(Ljava/util/Vector;[Ljava/lang/Object;Z)Vjava/util/Properties propertyNames()Ljava/util/Enumeration;java/util/Enumeration nextElementhasMoreElements8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;(Ljava/io/OutputStream;I)V getCaptured()[B3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)Vpump([B)V lastIndexOf(Ljava/lang/String;I)IindexOf substring(II)Ljava/lang/String; countTokens nextTokenparseInt(Ljava/lang/String;)IintValue,(Ljava/lang/Object;)Ljava/lang/StringBuffer; getMessagegetClass()Ljava/lang/Class;getName=(Ljava/awt/Frame;Ljava/lang/String;ZLjava/lang/String;IIIFF)Vjava/awt/Dialogshow!s イ+カア|8イカイ+カイカア 8イカ+イカイカア *キアV.ク$イサ Yキ  カ カ カカサYキソクアォュ!ョ)ア-イ1+クヌ ク+,カWアソタチo/LクカL+クカターM,ソN*-カサYキ ー!メヤユレン!゚'。Lサ!Y+セキ"N6ァ +2:ニ,カ# -カ$+セ。゚-カ%+セ-カ%ス&L-+カ'+ー* $*4=EJ「」/サ(Yキ)L+カ*+ー  、・@*カ++ク,N-ヌース&Y-カ-Sー "ヲァJサ.Y+キ/M,カ0!サ1Yサ Yキ 2カ ,カ-カ カキ3ソ,カ4!サ1Yサ Yキ 5カ ,カ-カ カキ3ソサ.Y,サ Yキ 6カ イ7カ 8カ カキ9N-カ:-カ;<莫!サ1Yサ Yキ >カ ,カ-カ カキ3ソサ?Y-@キA:カBC!サ1Yサ Yキ Dカ ,カ-カ カキ3ソィァ:ィソ:カEゥ,カFーイ:8 >?.A5BSEvFGヲKイNシOレPRWィ1ゥェ M-ヌ サGYHキIソサ!Yキ":*+,カJ*カK-カ$*カLカ%ス&:カ'ー* cdfi!l)o/r9uCvJxォァl@サ YMクキNM,イ7カ W+ニ+カO ,+カ Wァ,Pカ イ7カ Qカ W,カー  );ャュR&+*,カRカ$+Sカ$+Tクカ$*+UカV+-クWア「 ・ヲェュ%ョョッg3,ニ1クカXNァ-ケYカZ:,カ# *+カV-ケ[゚ア"ケシ スソタ"チ)ス2トーッV.,ニ,,クN-ニ#+サ Yキ \カ ,カ ]カ -カ カカ$アヒヘ ホ マ-ムアュC+^_ク`カ$,ニ+,カ$+-クWア゙ イウM%,ヌ サaYキbMサcY,キd:*+カeXカfー ィ1エオ-サgYシ+,キhカiュィ1カキJ"=ァ+3+?T+セ。サ&Y+キjー  クケ +-+カO`カk6ァ +-カl6ー+mカl6ー+カn:サoYpキq:カrスs:6 ァ, カtS サuY 2カZクvキwSァ:  セ。メーe|xFDEGI!J#L-M2N4Q>UKVUX[[eacXfコサク**+,(カyカzN*-{カ|:ヌ サ1Y}キ3ソセ「 サ1Yサ Yキ ~カ セカ カキ3ソ2タカ!サ1Yサ Yキ カ 2カじキ3ソ2タカャ& ~ &-JWuィ1シスO+カ:ニ カOサ Yキ ┯ +カカカ カ: *+カァ *カ*-スsYSカ鯵"。「」.ヲ2ァ:ゥ@ャNュセソシ t穏n,セ>6「> 、  >6サ Yキ :6ァ!,2:ニカZカ mカ W,セ。゙サ該*カ++カ2弦左竺6 セタ チツテ!ナ*ニ0ネ6ノ;ハKニUホsメタチPK 」 t4app/authkit/test/PK ^ /s閲アアapp/authkit/test/AllTests.classハコセ-H !" # $%& !' ( ) * +, !- $./ !0 12 3456()VCodeLineNumberTablemain([Ljava/lang/String;)Vtell(Ljava/lang/String;)V SourceFile AllTests.java AllTests.main(): starting... 7 89java/lang/StringBufferAuthorization: :; <= :> ?@app/authkit/test/TestPrivsinteract ABapp/authkit/test/TestReattach#AllTests.main(): I'm outta here... C DEF Gapp/authkit/test/AllTestsjava/lang/Objectapp/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;getClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln!*キア! uEククLサYキカ+カ カ カ クサ Yキ +*カサYキ+*カクア)+ ,#/12?5D6 $イ*カア <= PK ^ /U.6トトapp/authkit/test/AuthTest.classハコセ- Nst uv wx Myz M{|} M~ M w u    M M        s M   + M。「 」、 ・ 」ヲァ ィゥ . ェォャ Mュョッ ;ー :ア Mイ :、 :ウ Mエ オ :カ キ クケ コ サ :シ uス :セ uソ タチツ()VCodeLineNumberTabletestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization; tellGranted5(Ljava/lang/String;Lglguerin/authkit/Authorization;)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)VformatPrivilegeb(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)Ljava/lang/String; tellWhich#(Lglguerin/authkit/Authorization;)VgetWhich4(Lglguerin/authkit/Authorization;)Ljava/lang/String; resession5(Lglguerin/authkit/Authorization;Ljava/lang/String;)V8(Lglguerin/authkit/Authorization;Ljava/io/InputStream;)V ExceptionsputHexTo(Ljava/lang/String;[B)V<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BI)V?(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;[BI)VhexLine.(Ljava/io/PrintStream;Ljava/lang/String;[BII)Vtell(Ljava/lang/String;)Vexplain(Ljava/lang/Throwable;)V SourceFile AuthTest.java OPtrueテ トナニ ヌネ UV&glguerin/authkit/UnauthorizedException op"java/lang/IllegalArgumentException mn ..granted: YZ ノハ authkit.imp トヒ/glguerin.authkit.imp.plain.DenyAllAuthorizationフ ヘホ マミglguerin/authkit/Authorizationjava/lang/ThreadDeathjava/lang/Throwable ムメモ ヤミglguerin/authkit/Privilege [\ ユヨ ]^java/lang/StringBuffer On ラリ ルレ at ラロ -- ワン ラ゙ ゚ ..Auth-ID: ab java/io/FileInputStream cejava/io/IOException P ハ Wrong number of bytes: ラ of # --  gijava/io/PrintStreamjava/io/FileOutputStream O O gj n kl O n  ラ P P app/authkit/test/AuthTestjava/lang/Objectjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;java/lang/StringequalsIgnoreCase(Ljava/lang/String;)Zlength()I&(Ljava/lang/String;)Ljava/lang/String;java/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object;getPastGrantedPrivileges()Ljava/util/Enumeration;java/util/Enumeration nextElementhasMoreElements()Zappend,(Ljava/lang/Object;)Ljava/lang/StringBuffer;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;,(Ljava/lang/String;)Ljava/lang/StringBuffer; isAvailable(Lglguerin/authkit/Privilege;)Z(Z)Ljava/lang/StringBuffer;toString()Ljava/lang/String;getPublicIdentifierEMPTYLglguerin/authkit/Privilege;java/io/InputStreamclosegetSecretLengthread([B)I(I)Ljava/lang/StringBuffer;attach([B)V(Ljava/lang/String;Z)V(Ljava/io/OutputStream;)Vprintln(I)Vprint setLength app/hex/Hex appendHex4(Ljava/lang/StringBuffer;JI)Ljava/lang/StringBuffer;reverse()Ljava/lang/StringBuffer;(C)Ljava/lang/StringBuffer;outLjava/io/PrintStream;flusherrprintStackTrace(Ljava/io/PrintStream;)V!MNOPQ*キアR-STQN,クカ66ァ%*+-2カァ:クァ :ク-セ。レ ク * +カ  ク ア!+R. L NRS!U+W2N<YAZH[M\UVQアRb WXQ~6*ニ *カ K*クL+ニ +カ L+クカターM,ソN-クー!,,!,/R& n ostu!z,}/4YZQI!,カNァ*+-ケタ,カ-ケアR [\Q# *+,-カク アR]^QrBサY+キ,カ:-ニ--,カ:ニ カ!カW"カ!-,カ#カ$Wカ%ーR「、ァィゥ,ォ<ョ_`Q3サYキ&'カ!*+カ(カ!カ%ク アRキabQC+カ)M,カ ,ー+イ*カ#W+カ)ーRタチ ツトナcdQCNサ+Y,キ,N*+-カ-ィァ.:クィァ!:ィソ:-ニ-カ/ァ :クゥア.$$269.R& モヨ ラリレ$ン29BceQャh+カ0シN,-カ16-セ)サ.YサYキ&2カ!カ34カ!-セカ3カ%キ5ソ+-カ6ィァ$:ィソ:6ァ -T-セ。ゥアFFR* ;@FV[gf.ghQ% *+78,,セカ9アR giQb.サ:Yサ;Y+キ<キ=:*,-カ>カ?ァ :クア#&.R#&-gjQ T,ニ+,カ@ セ、セ6666ァ(「6*+-カA`6d6ルアR*  ! #$&'))4*@'S,klQィdサYキB:+,カC6ァHカD-3~クEWカFW カGW~  カGW+カ%カCケ+カHアR2 7 9:<=+>1?9@KBT:_DcE mnQ イI*カ@アRM onQ.イIカJイK*カ@アRST U opQ *イKカLアRZqrPK ^ /ワ孟{++app/authkit/test/Digester.classハコセ-\ * + , -. / 01 2 34 56 /7 8 9 : ;<= ;> ? @AB ;CDEcheckerLjava/util/zip/CRC32;proutLjava/io/PrintStream;?(Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/lang/String;)VCodeLineNumberTablegetInput>(Ljava/io/InputStream;Ljava/lang/String;)Ljava/io/InputStream;run()V SourceFile Digester.java F $% GH java/util/zip/CRC32 '  java/util/zip/CheckedInputStream I JKjava/lang/Throwable LMjava/lang/StringBuffer ....count: NO NP QRS TU ....check: 0x VU WKX YZ -- CRC32 ['app/authkit/test/Digesterglguerin/util/Streamer3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)VinLjava/io/InputStream;0(Ljava/io/InputStream;Ljava/util/zip/Checksum;)Vpump()JprintStackTrace(Ljava/io/PrintStream;)Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(J)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/io/PrintStreamprintln(Ljava/lang/String;)VprintgetValue app/hex/HexgetHex(JI)Ljava/lang/String;flush! !"B* シ,キ**+-カオ*,オア#ACEF$%"B,ニ*サYキオサY+*エキ L+ー#MOPS&'" @*カ @ィ$ァyN*エニ -*エカ ィァc:ィソ:*エニP*エサ Yキカカカカ*エニ(*エカ*エ*エカクカ*エカ*エカゥア ###:_bc fgh#k4mNoUq^rqszwz()PK ^ /攵x!app/authkit/test/TestAttach.classハコセ-シ =O =PQ OR S TU V W =XYZ [\] O ^_ [`ab cd efg [h =i cj =k *l em n [op qr st uv =wxyz *{ e|}~ . - - - e = -()VCodeLineNumberTablemain([Ljava/lang/String;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V performTestH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Iobtain5(Lglguerin/authkit/Authorization;Ljava/lang/String;)VspewToZ(Ljava/lang/String;Ljava/lang/String;Lglguerin/authkit/Authorization;[Ljava/lang/String;)V](Ljava/io/PrintStream;Ljava/lang/String;Lglguerin/authkit/Authorization;[Ljava/lang/String;)V SourceFileTestAttach.java >? java/lang/StringBufferAuthorization:  attach app/authkit/test/TestAttach FGTestAttach.main(): done... !TestAttach: can't be run this way. 。「 」?@ 、・ ヲァ ィゥ ヲI ェォ ャュ HI ョッ-- TestAttach -- JLout. ー writing: JK&glguerin/authkit/UnauthorizedException ア"java/lang/IllegalArgumentExceptionjava/io/IOExceptionglguerin/authkit/Privilege > イウjava/io/PrintStreamjava/io/FileOutputStream >エ >オ カ? キ.. java.version:  java.version???..... java.home:  java.home.... Session-ID: ク..... Privilege: ケコ サ?app/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)Vjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;exit(I)Vjava/lang/Stringequals(Ljava/lang/Object;)Zglguerin/authkit/AuthorizationattachPrivilegedinLjava/io/InputStream; resession8(Lglguerin/authkit/Authorization;Ljava/io/InputStream;)Vlength()IEMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)ZerrLjava/io/PrintStream;(I)Ljava/lang/StringBuffer;(Ljava/lang/Throwable;)V authorize (Lglguerin/authkit/Privilege;Z)V(Ljava/lang/String;Z)V(Ljava/io/OutputStream;)VcloseprintlngetPublicIdentifierformatPrivilegeb(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)Ljava/lang/String;flush!=>?@*キアAL BC@n>クLサYキカ+カカカ ク   ク MサYキ+,*キ>ク クアAVWY&Z4\9^=_DE@"ク アA hiFG@[モ,カ +カァ/,カ*+イカァ,カ *+,カァ +イカW6ァ*+-2キ-セ。*イ +-カ!6ァサYキ"カカ#カ  ク :カァ*サYキ$カカカ ク * +-カ%ァカァ:ク'ャ:ク'ャ:ク'ャャウカ&ウソ(ウネ)A^ $+4<BKU`f」ュウカソネ「ム、HI@:+サ*Y,キ+カ,ァNア &AュッーJK@ I:サ-Yサ.Y+キ/キ0:*,-カ!ィァ&:ク'ィァ:ィソ:ニカ1ゥア%)22A"キサシス%ソ2ツAテHナJL@ニ+,カ2+サYキ3カ45ク カカ カ2+サYキ6カ75ク カカ カ2+サYキ8カ-カ9カカ カ26ァ!サ*Y2キ+:+*:-カ;カ2セ。ン+カ<アA* ミメ"モ?ユYラ_ルmレzラン゙MNPK ^ /T / app/authkit/test/TestAuth.classハコセ-ョソ タ チツ テト ナ ニヌ ネ ノハ テヒ フヘ テホマ ミム メ Fモ ]ヤ ユヨ ラリル レ ロワ ン ゙ ゚ ニノ '  ゚    ] ]         F   ]  ]   ] ミ  ' W    ]  !"#$ %&'( ) * +,-. ミ/  012345 ]678 9 ]:; <=> }?@ AB +C +D <E FG <HI JKLBETWEENLjava/lang/String; ConstantValueAVAILPREAUTHAUTH_WAUTH_WOPUTGETRELEASEDESTROYVERSIONSNOOZEATJAVA myBetweenmain([Ljava/lang/String;)VCodeLineNumberTable()VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V decodeActions6(Lglguerin/authkit/Authorization;[Ljava/lang/String;)VasVector'([Ljava/lang/Object;)Ljava/util/Vector;doAvail7(Lglguerin/authkit/Authorization;[Ljava/lang/String;I)V doPreauthdoAuth8(Lglguerin/authkit/Authorization;[Ljava/lang/String;IZ)VdoPut ExceptionsM writeSecret5(Lglguerin/authkit/Authorization;Ljava/lang/String;)VdoGetV(Lglguerin/authkit/Authorization;[Ljava/lang/String;I)Lglguerin/authkit/Authorization;NO doVersiondoSnoozedawdle(I)VdoExec SourceFile TestAuth.javaTestAuth.main(): starting... PQ RSjava/lang/StringBuffer 「」Authorization: TUV WX TY Z[app/authkit/test/TestAuth dont-care 、・TestAuth.main(): done... between:\ ]^ _` ab ヲァ&glguerin/authkit/UnauthorizedException cd"java/lang/IllegalArgumentException ィゥ efjava/util/Vector 「サ g」h ij kl mn op qrjava/lang/String st -----with: uv ()# Release: w」## Destroy: xysee ェォpre ャォau+ ュョau-put ッォver クォzzz ケォget エオ got:  detach: シァjava/lang/Throwableglguerin/authkit/Privilege 「Q Privilege: z{ Past Granted... |} ~ preauth:  auth: イウ  ## Secret identifier:  rjava/io/FileOutputStream  wrote: 」 jglguerin/authkit/Authorization. 」 ウ java.version:  java.version??? java.home:  java.home java/lang/NumberFormatException sleeping: T コサ java/lang/InterruptedException@   auth.bin.javabinjava Executing:  process:  class: [ app/authkit/test/Digester。 「」MD5 「、Digester-daemon・ ヲァ ィサ ゥ」 ェォ ャ」 secret bytes to child ュrUnexpectedly interrupted exited:  sleeping a few seconds...app/authkit/test/AuthTestjava/io/IOException java/lang/IllegalAccessException java/lang/InstantiationExceptiontell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;EMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)Zexplain(Ljava/lang/Throwable;)Velements()Ljava/util/Enumeration;removeAllElementsjava/util/Enumeration nextElement()Ljava/lang/Object;equals(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)VhasMoreElements()Zsize()IcopyInto([Ljava/lang/Object;)VgetWhich4(Lglguerin/authkit/Authorization;)Ljava/lang/String;releasedetach(Z)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V tellGranted5(Ljava/lang/String;Lglguerin/authkit/Authorization;)V preauthorize(Lglguerin/authkit/Privilege;)V authorize (Lglguerin/authkit/Privilege;Z)VgetSecretIdentifier()[BoutLjava/io/PrintStream;putHexTo?(Ljava/io/PrintStream;Ljava/lang/String;Ljava/lang/String;[BI)Vlengthjava/io/OutputStreamwrite([B)Vclosejava/lang/Class newInstanceattachPrivileged resessionjava/lang/IntegerparseInt(Ljava/lang/String;)I(I)Ljava/lang/StringBuffer;java/lang/Threadsleep(J)V arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V java/io/File separatorexecPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getName isCapable(I)Zjava/lang/ProcessgetInputStream()Ljava/io/InputStream;?(Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/lang/String;)Vglguerin/util/Streamer makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread; setPrioritystartgetOutputStream()Ljava/io/OutputStream;flushwaitFor! 3579:@-0<>oq c7ククLサYキカ+カカ カ クサ Yキ + *カクア。 #16「」0*キ*クオア。  、・h(+イカW*+-キァ:クァ :ククア。 "$"&''ヲァ  *,キカNサY,セキ:ァカ ァ$-ケ!カ":*エカ#ァカ$-ケ%ルカ&6-ケ%アァケス':カ(2:サYキ)カ*+カ*カ+カカ,カカ ク-カ#$サYキ.カ*+カ*カカ ク+カ/ァ%0カ#%サYキ1カ*+カ*カカ ク+カ2ァ3カ#*+キ4ァ5カ#*+キ6ァマ7カ#*+キ8ァケ9カ#*+キ8ァ」:カ#*+キ;ァ<カ#*+キ=ァy>カ#*+キ?ァd@カ#S*+キA:+・JサYキBカ*カ*カカ クサYキCカ*+カ*カカ ク+カ2Lァ *+キDァ,:クァ":クァ:  クァアoooE。ハ25 79=?*@6A9C@=IGPHUJ^KaPhQoVuXZィ]ツ^ノ`モcdfi knp)s5u?xKzU}`ju、ソル゙「、 ヲィゥI!サY+セキM>ァ ,+2カ$+セ。,ー。ャ ュョューェォk7,セ「'ァサFY,2キG:*H+カI,セ。蟋Jク*H+カKア。"キケ サシ!ケ*チ/ツ6トャォo?ァ8サFY,2キG:サYキHカカ カ ク+カL*M+カI,セ。ネア。ハフヘ)ホ/ム8ハ>モュョqAァ:サFY,2キG:サYキHカカ カ ク+カN*O+カI,セ。ニア。ルロワ)ン1:ル@ッォb2,セ「ァ*+,2キP,セ。ァ+カQ:*イRSTカUア。 #1ーアイウ・Y,ニ ,カVアN:サWY,キX:+カQN-カYサYキZカ,カカ クィァ:ィソ:ニカ[ゥアBB。2     & < BQXーアエオk7+:,セ「.+カカ\タ]:,2:^カ# カ_ァ *カ`ー。"!$ (+/$0,246ーカキクォY9サYキaカbcクカカ クサYキdカecクカカ クア。AB8Cーカキケォ?6,セ「,2クf6ァ:66サYキhカカiカ ク*キjア g。& MQ TVYZ!]8_>`ーアコサ:kiクmァM,クア n。g ijシァニ ヨ>,2oカ#,セdス':,セクpM>,2qカ#SサYeクキr:イsカWtク:カVカWァuカイsカvカW,カ SサYキwカ,2カカ ク+,カx:サYキyカカ カ クサYキzカカカ{カカ ク+カ|1サ}Yカ~イRキ:カ: カカ┤:+カ|:カ:+カQ:カYカカ[サYキZカセカiカカ クィァ;:クィァ.:ィソ:ニ6 ァ  T  セ。:ゥ+ カ|3カ6ァ:サY温漢サYキ狂カiカ クァ 減*キjアワTZEgg「・n。セ/vz |}!~$&1AJS[fyキヤワ・ヲァゥェャ アウカ キ&ク-ケ2コ7サTシZセgツvト|ナトニヘム・モアユヒルミレユワスセPK ^ / 、!app/authkit/test/TestDetach.classハコセ-P $ %& $' ( )* + , -. $ /0 12 34 356 78 9:()VCodeLineNumberTablemain([Ljava/lang/String;)VtestAuthPrivileged#(Lglguerin/authkit/Authorization;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestDetach.java  ;<java/lang/StringBufferAuthorization: =>? @A =B CD EFapp/authkit/test/TestDetach interact GHTestDetach.main(): done... I J KL&glguerin/authkit/UnauthorizedException EM"java/lang/IllegalArgumentException NOapp/authkit/test/AuthTestmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vglguerin/authkit/AuthorizationattachPrivilegeddetach(Z)V(Ljava/lang/Throwable;)V resession5(Lglguerin/authkit/Authorization;Ljava/lang/String;)V! *キア& uAクLサYキカ+カカカ ク サ Yキ M*セ ,+キ ァ ,+*カク ア"013&6+739;;@<V+カ+カァM,クァN-クア  GH I KMN !, *+-カ+カア[^ _"#PK ^ /jrフフ&app/authkit/test/TestExternalize.classハコセ-W %& ' () %* + ,- . /0 %1 234 56 789: 7; <= 7>?()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestExternalize.java #TestExternalize.main(): starting... @A BCjava/lang/StringBufferAuthorization: DEF GH DI JK app/authkit/test/TestExternalizeinteract LM TestExternalize.main(): done... glguerin/authkit/Privilege A #Denied: N OP Granted: ## Secret form: QRS TU Vapp/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vglguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)ZgetSecretIdentifier()[B app/hex/DumphexBlock(Ljava/lang/String;[B)Vrelease! *キア'  c7ククLサYキカ+カ カ カ クサ Yキ +*カクア02 3#51768!"t@サY-キ::+カ:サYキカカ カ ク+カク+カア"@ CDEG2J;K?L#$PK ^ /慶ヲ2!app/authkit/test/TestLoader.classハコセ-| *9: *; <= )> )? <@A 9B C DE FG HI <HJ )KL <MNOPQ RS *TUV WXYZ[\]^_`abcd listProps[Ljava/lang/String;()VCodeLineNumberTablemain([Ljava/lang/String;)V tryLoading.(Lglguerin/util/LibLoader;Ljava/lang/String;)VtellProperties SourceFileTestLoader.java -.TestLoader.main(): starting... efg hi +, 52 jkjava/lang/StringBufferLibLoader class: lmn opq rs ts loads from:  34TestLoader.main(): done... ufLoaded: java/lang/UnsatisfiedLinkErrorUnsatisfiedLinkError:  -- vsjava/lang/Throwable wx-- System properties... y z{  = java/lang/Stringjava.library.pathsun.boot.library.path java.ext.dirsjava.class.path java.homeuser.dirglguerin.util.LibLoader.impapp/authkit/test/TestLoaderapp/authkit/test/AuthTesttell(Ljava/lang/String;)Vglguerin/util/LibLoader isVerboseZ makeLoader()Lglguerin/util/LibLoader;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;java/lang/ClassgetName()Ljava/lang/String;toString loadLibrary getMessageexplain(Ljava/lang/Throwable;)Vjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;!)* +,-./*キア0 12/ャhクウイククLサYキ  カ +カ カ カ カクサYキ カ +カカ カクク=ァ +*2ク*セ。クア02 03 589/:H;M=R>Y=b@gA 34/O*+カサYキ カ +カ カクァ.MサYキ カ +カ カ ,カカ カクァN-ククアD0LMNPDRITNU 52/wCク>ァ0*2L+クMサYキ カ +カ  カ ,カ カク*セ。ミクア0"ac efg4c=iBj6./E-ス!Y"SY#SY$SY%SY&SY'SY(Sウア078PK ^ /ツ47V(( app/authkit/test/TestPrivs.classハコセ-J "# $ %& "' ( )* + ,- ". /01 23 45 678()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestPrivs.java TestPrivs.main(): starting... 9: ;<java/lang/StringBufferAuthorization: =>? @A =B CDapp/authkit/test/TestPrivsinteract EFTestPrivs.main(): done... glguerin/authkit/Privilege : Privilege: G HD I upper: app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/String toUpperCase((Ljava/lang/String;Ljava/lang/Object;I)V! *キア c7ククLサYキカ+カ カ カ クサ Yキ +*カクア(* +#-1/60pHサY-キ:サYキカカ カ クサY--カキ:サYキカカ カ クア7 8!:0;G< !PK ^ /ル鬣ァァ#app/authkit/test/TestReattach.classハコセ-d () * +, (- . /0 1 23 4 567 (8 9: ; < =>?@ AB C DE()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestReattach.java  TestReattach.main(): starting... FG HIjava/lang/StringBufferAuthorization: JKL MN JO PQ## Secret form: RST UVapp/authkit/test/TestReattachinteract WXTestReattach.main(): done... YZ [V\ ]^glguerin/authkit/Authorization java/lang/IllegalAccessException _` java/lang/InstantiationException a bcapp/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;getSecretIdentifier()[B app/hex/DumphexBlock(Ljava/lang/String;[B)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)V tellWhich#(Lglguerin/authkit/Authorization;)VputHexTojava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)Vreleaseattach([B)V! *キア! "# p@ククLサYキカ+カ カ カ ク +カ クサYキ+*カクア!(* +#-,/:1?2$% ・Q*+カ+カ :*-カ:+カ カタ:ァ:クア:クアカカ*カ*-カ カア!$!,!2 EF GIK$M,O4Q9R@TFUPV&'PK ^ /#(ff&app/authkit/test/TestReleaseSelf.classハコセ-g )* + ,- ). / 01 2 34 ) 56 78 9:;< => ? @ AB C D EF()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)V SourceFileTestReleaseSelf.java  #TestReleaseSelf.main(): starting... GH IJjava/lang/StringBufferAuthorization: KLM NO KP QR app/authkit/test/TestReleaseSelf STinteract UV TestReleaseSelf.main(): done... W XYglguerin/authkit/Authorization java/lang/IllegalAccessException Z[ java/lang/InstantiationException \] ^_ `a Privilege: bc de f app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String; tellWhich#(Lglguerin/authkit/Authorization;)VtestAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)VgetSecretIdentifier()[Battach([B)VmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V authorize (Lglguerin/authkit/Privilege;Z)Vrelease!  !*キア"! #$!r>ククLサYキカ+カ カ カ クサ Yキ M,+カ,+*カクア""*, -#/+00183=4%&!ク`:+カ カタ:ァ:クア:クア+カ:カ-カ:*カカカカ*カア"6 GIKM"P(U/X7YA\I_N`Uc_h'(PK ^ /bミgapp/authkit/test/TestTwo.classハコセ-n !0 12 !3 !45 06 7 89 : ;< 0= !>? @ABC !D E FG H I !JK !L MNOPmyOther Lglguerin/authkit/Authorization;()VCodeLineNumberTablemain([Ljava/lang/String;)V testAuthOne6(Lglguerin/authkit/Authorization;ZLjava/lang/String;)Vobtain@(Lglguerin/authkit/Authorization;Lglguerin/authkit/Privilege;Z)V SourceFile TestTwo.java $% "#TestTwo.main(): starting... QR STjava/lang/StringBufferAuthorization: UVW XY UZ [\app/authkit/test/TestTwointeract ]^TestTwo.main(): done... _ `aglguerin/authkit/Authorizationjava/lang/Throwable bc de fgglguerin/authkit/Privilege $R ,- hi avail: jk lm&glguerin/authkit/UnauthorizedException auth: app/authkit/test/AuthTesttell(Ljava/lang/String;)VmakeAuth4(Ljava/lang/String;)Lglguerin/authkit/Authorization;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;java/lang/ObjectgetClass()Ljava/lang/Class;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;testAuthH(Lglguerin/authkit/Authorization;Ljava/lang/String;[Ljava/lang/String;)Vjava/lang/Class newInstance()Ljava/lang/Object;explain(Ljava/lang/Throwable;)VEMPTYLglguerin/authkit/Privilege; isAvailable(Lglguerin/authkit/Privilege;)Z tellWhich#(Lglguerin/authkit/Authorization;)V tellPrivilegeQ(Ljava/lang/String;Lglguerin/authkit/Privilege;Lglguerin/authkit/Authorization;)V authorize (Lglguerin/authkit/Privilege;Z)V! !"#$%&* *キ*オア'-A - ()&c7ククLサYキカ +カ カ カ クサ Yキ+*カクア'68 9#;1=6>*+&I*エヌ'*+カ カタオァ :クア*エイカWサY-キ:*+キ**エキア'"MPR V+Y5[=\H],-&U!*+カ*,+カ+,カァ:* ,+カア 'cd hjm n./PK 」 t4app/authkit/tools/PK ^ /qP)N N )app/authkit/tools/AppBundleLockdown.classハコセ-ツ =GH G I =J KL MNO =PQR STU 8VWXYZ [\] =^ M_ M`a =bc =de fg Shi jklmno =pq Sr Ms tu =vw ,Gx ,y ,z ,{| =} =~ M S =()VCodeLineNumberTablemain([Ljava/lang/String;)Vperform SourceFileAppBundleLockdown.java >?#app/authkit/tools/AppBundleLockdown DC   -psn_ os.name Mac OS  os.version10.0java/io/IOExceptionCan't run under Mac OS 10.0 >alerttrue "Choose an application to lock down  Cancelled 。 keep.DS_Store「 」 、・envoy.keep.DS_Storeヲ ァィbin/javaapp.authkit.envoy.Envoyenvoy.-app.authkit.tools.tasks.AppBundleLockdownTask ゥェverbose ォャ ュョッ ーア イウjava/lang/StringBuffer"Envoy process failed: status code エオ エカ キクLockdown Failed ケコ サシ&glguerin/authkit/UnauthorizedExceptionjava/lang/Throwable スセjava/lang/StringLocked down these app-bundles: ソタSuccess \チapp/authkit/envoy/ToolnewAuth"()Lglguerin/authkit/Authorization;glguerin/authkit/PrivilegeEMPTYLglguerin/authkit/Privilege;glguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)Z stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;java/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; startsWith(Ljava/lang/String;)Z(Ljava/lang/String;)VpresupposeProperty'(Ljava/lang/String;Ljava/lang/String;)VmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; preauthorize(Lglguerin/authkit/Privilege;)V chooseTarget((Ljava/lang/String;I)[Ljava/lang/String;mustBeAppBundle&(Ljava/lang/String;)Ljava/lang/String;java/lang/Boolean getBoolean getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;makeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;outLjava/io/PrintStream;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;failed+(Ljava/lang/Throwable;ZLjava/lang/String;)Vdepart(I)Vdetach(Z)V arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V((Ljava/lang/String;[Ljava/lang/Object;)V!=>?@*キアAb BC@$ サYキ*カアAhDC@N n*カM,イカW*+カ L>  ク  カ ク カ サYキソ+セ+*カ,,カカ* カL+ヌ サYキソ6ァ+*+2カS+セ。クク カ!W*"#$%+カ&::'クイ(:,カ):*カ*カ+>サYサ,Yキ-.カ/カ0カ1キソィPァV:*2カ3*カ4ィ:ァ@:*2カ3*カ4ィ$ァ*:*2カ3*カ4ィァ:ィソ: ,カ7ゥ +セ`ス8:9S++セク:*;カ<*カ4ア 5 666Aョ+rs xz&5?DLU^blr~」ォゥョェカォサッテーマウモエキサシス チツテ ヌ+ネ0ノ6ヘGムPメVモ`ヨhリmルEFPK ^ /、Z゚l%app/authkit/tools/PerformAsRoot.classハコセ-^ #$ # % & '( )*+ ,-./ 0 )1 23 45 67 8 9 :; < )=>()VCodeLineNumberTablemain([Ljava/lang/String;)Vperform SourceFilePerformAsRoot.java app/authkit/tools/PerformAsRoot  ?@A BCD EF-psn_ GHbin/javaapp.authkit.envoy.Envoyenvoy. IJ KLM NOP QR ST&glguerin/authkit/UnauthorizedException UV WX YZjava/lang/Throwable W[ \]app/authkit/envoy/ToolnewAuth"()Lglguerin/authkit/Authorization;glguerin/authkit/PrivilegeEMPTYLglguerin/authkit/Privilege;glguerin/authkit/Authorization isAvailable(Lglguerin/authkit/Privilege;)Z stripPrefixed:([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;makeEnvoyCommand(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream;java/lang/SystemoutLjava/io/PrintStream; waitForEnvoy.(Ljava/io/InputStream;Ljava/io/OutputStream;)I getMessage()Ljava/lang/String;explain(Ljava/lang/String;)Vdepart(I)V(Ljava/lang/Throwable;)Vdetach(Z)V!*キア; $ サYキ*カアA *カM,イカW*+カ L+セア>*   +カ :,カ:*カイカ>ィ7ァ=:*カカ*カィ!ァ':*カ*カィァ:ィソ:,カゥ*カアAGA]ppNJK PSTV\,b4cAdGhRiWj]neojpptwx!"PK 」 t4app/authkit/tools/tasks/PK ^ /#'~ワ__3app/authkit/tools/tasks/AppBundleLockdownTask.classハコセ-x ': ;< ;=> ?@A :B C D 'E &FG &H &I &J 'K LM 'NO PQRSTUVWXYZ[\]^_`abREPLACELjava/lang/String; ConstantValueDELETER[Ljava/lang/String;CHMODCHOWN()VCodeLineNumberTableperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)Iexecute:([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I SourceFileAppBundleLockdownTask.java /0c de fgenvoy.keep.DS_Storeh ijjava/lang/StringBufferLocking down: kl mn op +,$ARG 56 -, ., qrs tu 5v: failed with exit code kwjava/lang/String /usr/bin/find-Pdx-name .*DS_Store-typef-exec/bin/rm{}; /bin/chmod-RPu-s,a-w/usr/sbin/chownroot-app/authkit/tools/tasks/AppBundleLockdownTask"app/authkit/tools/tasks/CommonTaskglguerin/authkit/AuthorizationmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/Boolean getBoolean(Ljava/lang/String;)Zappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;explain(Ljava/lang/String;)V substituteL([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;java/lang/SystemerrLjava/io/PrintStream;W([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)I(I)Ljava/lang/StringBuffer;!&'()* +, -, .,/01*キア2N341,カN,-カク666ァh+2:*サYキカ カ カ カ *イ  キ6ァ7*イ キ6ァ"*イ キ6ァ +セ。ャ2N 「・ァ"ェ:ュ?ッLーQアTエaオfカiクvケ{コ~・ス561e=*+,-カ:*イカ6"*サYキ2カ カ カカ カ ャ2ヒ フヘホ:ミ701{ スYSYSY SYSYSYSYSYSYSY SY  Sウ スY!SY"SY#SY SウスY$SY"SY%SY Sウア2_Dj_tz_89PK ^ /ン、PTT(app/authkit/tools/tasks/CommonTask.classハコセ-p - ./ 01 .2 03 45 67 89 :; :<= >? @A B CD >EF >GH >IJKLMN()VCodeLineNumberTableproducesOutput()Zexplain(Ljava/lang/String;)V(Ljava/lang/Throwable;)V substituteL([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;executeW([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)Iperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFileCommonTask.java O PQR S TQ U#V WX YZ[Ljava/lang/String;[ \]^ _` abglguerin/util/Streamerc de fCmd-stdout-schlepper ghi j keCmd-stderr-schlepper lmCmd-stdin-schlepper nojava/io/IOExceptionjava/lang/InterruptedException"app/authkit/tools/tasks/CommonTaskjava/lang/Objectapp/authkit/envoy/Taskjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamflusherrprintlnjava/lang/ThrowableprintStackTrace(Ljava/io/PrintStream;)Vclone()Ljava/lang/Object;java/lang/Stringequals(Ljava/lang/Object;)Zjava/lang/Runtime getRuntime()Ljava/lang/Runtime;exec(([Ljava/lang/String;)Ljava/lang/Process;java/lang/ProcessgetInputStream()Ljava/io/InputStream;3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)V makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread;java/lang/ThreadstartgetErrorStreamgetOutputStream()Ljava/io/OutputStream;waitFor()I!*キア* !ャ6"#8イカイ+カイカア>? @A"$8イカ+イカイカアGH IJ%&[/+カタ:6ァ,2カ -Sセ。ーW XZ[!X,]'(モク +カ :サ Yシカ -キ:カカサ Yシカキ:カカ,ニ%サ Yシ,カキ:カカカャ:ャ:ャzzz~. |  +CNRitz~)*+,PK ^ /uTi、"app/authkit/tools/tasks/None.classハコセ- ()VCodeLineNumberTableproducesOutput()Zperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile None.java app/authkit/tools/tasks/Nonejava/lang/Objectapp/authkit/envoy/Task!*キア" ャ( ャ. PK ^ /Oイネ0レレ$app/authkit/tools/tasks/RunEat.classハコセ-&      ()VCodeLineNumberTableperform6([Ljava/lang/String;Lglguerin/authkit/Authorization;)I SourceFile RunEat.java    !" #" $%app/authkit/tools/tasks/RunEat"app/authkit/tools/tasks/CommonTaskglguerin/authkit/AuthorizationmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege; authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/SystemoutLjava/io/PrintStream;errexecuteW([Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;)I!  *キア "  ;,+2カN,-カ*+イイカャ EFIPK ^ /ワ4畛$app/authkit/tools/tasks/RunOut.classハコセ-   ()VCodeLineNumberTableproducesOutput()Z SourceFile RunOut.java app/authkit/tools/tasks/RunOutapp/authkit/tools/tasks/RunEat!*キア# ャ.  PK 」 t4app/hex/PK ^ /Kモゥゥapp/hex/Dump.classハコセ-P ' () *+, *-. / 0 1 2 3 4 *5 6 7 89 :; <=>?()VCodeLineNumberTabletext(Ljava/lang/String;)VnewLinehexLine.(Ljava/io/PrintStream;Ljava/lang/String;[BII)V(Ljava/lang/String;[BII)VhexBlock(Ljava/lang/String;[B)V(Ljava/lang/String;[BI)V SourceFile Dump.java @ ABC D Ejava/lang/StringBuffer F GF HI JK LM NO E  "$ BLOCK:  !BLOCK END ----- app/hex/Dump app/hex/Hexjava/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintprintln(I)V setLength appendDigits5(Ljava/lang/StringBuffer;JII)Ljava/lang/StringBuffer;reverse()Ljava/lang/StringBuffer;append(C)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!*キア! $イ*カア +, % イカア 56  ゥeサYキ:*+カ6ァIカ,3~ク Wカ W カ W~  カ W*カ カク*カ ア2 C EFHI,J2K:LLNUF`PdQ !# イ*+クア[ "#$*++セクア cd "$Mクク*クク+セ、+セ=>66ァ「6+ク`6d=ククア:mno prsuv$x,y6vD{I|L}%&PK ^ /錐?app/hex/Hex.classハコセ-7   ! " # $ %& %' ()*()VCodeLineNumberTablegetHex(II)Ljava/lang/String;(JI)Ljava/lang/String; appendHex4(Ljava/lang/StringBuffer;JI)Ljava/lang/StringBuffer; appendDigits5(Ljava/lang/StringBuffer;JII)Ljava/lang/StringBuffer; SourceFileHex.java  java/lang/StringBuffer +  ,- ./0 12 34 56 app/hex/Hexjava/lang/Object(I)Vreverse()Ljava/lang/StringBuffer;toString()Ljava/lang/String;java/lang/CharacterforDigit(II)C toUpperCase(C)Cappend(C)Ljava/lang/StringBuffer;!*キア # クー" 2サYキN-クカカ ー + , N&* ク ク カW}@ 爆゚*ー9:;<$= P(*qク ク カWm@ 爆ン*ーJKLM&NPK 」 t4 app/util/PK ^ /症ク[ [ app/util/BasicAlert.classハコセ-ネ 3X YZ 3[\ ] ^_`a b ^c de fgh ij k 2l 2m no ^pq ^rst u 2v wx Yy 2z f{| }~ fc ng f Y f 3 2 f SCROLL_VERTI ConstantValue SCROLL_HORZokLjava/awt/Button;boxLjava/awt/TextArea;=(Ljava/awt/Frame;Ljava/lang/String;ZLjava/lang/String;IIIFF)VCodeLineNumberTable makeTextArea*(Ljava/lang/String;III)Ljava/awt/TextArea; getTextArea()Ljava/awt/TextArea;position%(Ljava/awt/Window;FF)Ljava/awt/Point;goAway()VactionPerformed(Ljava/awt/event/ActionEvent;)V windowClosing(Ljava/awt/event/WindowEvent;)VwindowActivated windowClosedwindowDeactivatedwindowDeiconifiedwindowIconified windowOpened SourceFileBasicAlert.java @ java/awt/BorderLayout @  java/awt/FontDialog @ 。 「」、 ・ヲjava/awt/Panel @Kjava/awt/FlowLayout @ァ DE >?ィ ゥ ェォCenter ェャjava/awt/ButtonOK @ュ <= ョッSouth ーK HI アイjava/awt/TextArea @ウ SansSerif エオカ キク ケコサ シク スセソ タ7 チ7ツ テ7 ト7 ナ ニK JK ヌKapp/util/BasicAlertjava/awt/Dialogjava/awt/event/ActionListenerjava/awt/event/WindowListener&(Ljava/awt/Frame;Ljava/lang/String;Z)Vjava/awt/WindowaddWindowListener"(Ljava/awt/event/WindowListener;)V setResizable(Z)V(II)Vjava/awt/Container setLayout(Ljava/awt/LayoutManager;)V(Ljava/lang/String;II)VsetFont(Ljava/awt/Font;)Vjava/awt/ColorwhiteLjava/awt/Color;java/awt/Component setBackground(Ljava/awt/Color;)V(III)Vjava/awt/TextComponent setEditableadd*(Ljava/awt/Component;)Ljava/awt/Component;<(Ljava/lang/String;Ljava/awt/Component;)Ljava/awt/Component;(Ljava/lang/String;)VaddActionListener"(Ljava/awt/event/ActionListener;)Vpack setLocation(Ljava/awt/Point;)V(Ljava/lang/String;III)V getBounds()Ljava/awt/Rectangle;java/awt/RectanglegetSize()Ljava/awt/Dimension; getToolkit()Ljava/awt/Toolkit;java/awt/Toolkit getScreenSize getLocation()Ljava/awt/Point;java/awt/Dimensionheightwidthjava/awt/Pointyx setVisibledispose requestFocus!23456789:78;<=>? @ABA ユ*+,キ**カ*カ*サYキカ*サY キ カ *イ カ ~6サ Yキ:  サYキカ**カオ*エカ *エカW* カW*サYキオ*エ*カサ Yキ:  サY キカ *エカW* カW*カ*** カカアCZ./ 245.659=;F<W=g>o?y@BCEFーGコHテJヌLヤMDEBN*サ Y+キ!:サY" キ カ#イ カ$ーCVWX'YFGB*エーC_HIB Z+カ%:カ&:+カ'カ(:カ):$エ*エ*dj6%エ+エ+dj6  オ,  オ-ーC. ij lor.s?vDwKyPzW|JKB* *カ.*カ/アC LMB*カ0アCNOB*カ0アCPOB *エカ1アCQOBアCROBアCSOB *エカ1アC・TOBアCェUOB *エカ1アCッVWPK ^ /ィ,ヨヤヤapp/util/FileDialogger.classハコセ-p 789 :;< =>?@ABCDE F G H IJ K LM N O P :Q :RS TU VW TXYLOAD_DIRI ConstantValue LOAD_APP NO_PROPS[Ljava/lang/String; propNamesmakeFileDialog:(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/awt/FileDialog;CodeLineNumberTable runFileDialog3(Ljava/awt/Frame;Ljava/lang/String;I)Ljava/io/File;%(Ljava/awt/FileDialog;)Ljava/io/File;9(Ljava/awt/Frame;Ljava/lang/String;I[Ljava/lang/String;)Vshow()V SourceFileFileDialogger.java &'os.nameZ [\Mac OS ]^java/lang/String"apple.awt.fileDialogForDirectories java.version1.11.3"apple.awt.use-file-dialog-packages(com.apple.macos.use-file-dialog-packagesapp/util/FileDialogger 01 )* -/_ `a bc dc java/io/File 0e 0f (' [g hitruej klm 23 nojava/awt/FileDialogjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; startsWith(Ljava/lang/String;)Zjava/awt/Component setVisible(Z)VgetFile()Ljava/lang/String; getDirectory'(Ljava/lang/String;Ljava/lang/String;)V&(Ljava/awt/Frame;Ljava/lang/String;I)V&(Ljava/lang/String;)Ljava/lang/String; getProperties()Ljava/util/Properties;java/util/Hashtableput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;java/awt/Dialogremove&(Ljava/lang/Object;)Ljava/lang/Object;! !"#$!"%&'(' )*+゙幹N ==クカ,スYSN ク: カ  カ= 2=クカ!スN- S ク カ- SサY*+-キー,B9=@C F*L3MGNIROTQX`\eajbyc~h -.+" *+ククー,r -/+O#*カ*カL*カM+ニ,ヌーサY,+キー,{~ 01+.*+,キ*オア, 23+*エL+ヌイL+セスM>ァ#+2:ニ,クSクカW+セ。ン*キ6ァ3+2:ニ%,2:ヌクカWァクカW+セ。フア,R、・ ヲ ゥャョッ"ア*エ5ャ>ケBシHセNソSチYツ^テjナuシネ43+ スウア,-56PK ^ / glguerin/PK 」 t4glguerin/authkit/PK ^ /[ゥn||$glguerin/authkit/Authorization.classハコセ-ー 'pq p &r &st &u v wxy z {| } ~ & &  p    &    HAS_PROCESS_COUPLED_STREAMSI ConstantValueHAS_PROCESS_INPUTSTREAMHAS_PROCESS_OUTPUTSTREAMHAS_PROCESS_ERRORSTREAMHAS_PROCESS_EXITVALUEHAS_PROCESS_WAITFOR HAS_PROCESS_DESTROY@HAS_PROCESS_ELEVATEDHAS_SYNTHETIC_PREAUTHHAS_SESSION_MULTIPROCESS WHEN_EARLIEST WHEN_LATEST pastGrantedLjava/util/Hashtable;()VCodeLineNumberTablefinalize ExceptionsgetCapabilities()I isCapable(I)Z authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zattach([B)VattachPrivilegeddetach(Z)VreleasegetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date; keysGranted whenGranted addGranted clearGrantedmakeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[BgetPublicIdentifier()Ljava/lang/String;makeFingerprint(Ljava/lang/String;)[BformFingerprint((Ljava/lang/String;[B)Ljava/lang/String; SourceFileAuthorization.java CDjava/util/Hashtable AB VWjava/lang/Throwable IJ Z [Jjava/util/Date C DMD5 jk lm。 「」&java/security/NoSuchAlgorithmException&glguerin/authkit/UnauthorizedExceptionjava/lang/StringBufferMissing MessageDigest imp: 、・ ヲi Cァ fg ィD ゥT ゥェ ォg0123456789ABCDEF 、ャュ ョッglguerin/authkit/Authorizationjava/lang/Objectkeysget&(Ljava/lang/Object;)Ljava/lang/Object;(J)Vjava/lang/SystemcurrentTimeMillis()Jput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;clearjava/security/MessageDigest getInstance1(Ljava/lang/String;)Ljava/security/MessageDigest;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString(Ljava/lang/String;)Vresetupdate(B)Vdigest(C)Ljava/lang/StringBuffer;java/lang/StringcharAt(I)C!&' ()*+,)*-.)*/0)*12)*34)*56)*78)*9:)*;<)*=>)*?@)*+ABCDE0*キ*サYキオアFjklGDE2 *カァLアF~ HIJKLE(*カ~ァャF、MNOPQRSTUDVWXDE*カアFテYZ[\]ZE *エカーF^\EN&#」*エ+カ タ N-ニサ Y-/キ ーーF  $_PEHク A*エ:ツ*エ+カ タ :ヌシ : P*エ+カW Pテァ :テソア ??F* "$ ()+$,)-4091G2`DE *エカアF;abcdeJfghiE*L*+*+カカーF !"jkE +クMァNサYサYキカ+カカキソN:*カN-セ;,カ,-カ-セ6,z存,z存,z存,存,カ :ィァ.:ィソ:-ニ6ァ -T-セ。N,カゥー)qqFZUW$]&^)b.c3i7k<n@oJpTq^retkyq}lmEW,ニ,セ!ー"NサY+キ#:カ$:6ァ),36-z~カ%カ$-~カ%カ$W,セ。ヨカーF& ュ ョ イコサ$ス*セGサQチnoPK ^ /glguerin/authkit/imp/PK 」 t4glguerin/authkit/imp/macosx/PK ^ /9ニァネネ1glguerin/authkit/imp/macosx/AuthProcess$FIn.classハコセ-C % & ' ( )*+ , -./ %0 1 2 3 -458one[BmyFDI(I)VCodeLineNumberTablefinalize()V Exceptions9read()I([BII)Iclose SourceFileAuthProcess.java    " !java/io/IOExceptionClosed :; <java/lang/StringBufferErrno: => =? @A "B+glguerin/authkit/imp/macosx/AuthProcess$FInFIn InnerClassesjava/io/InputStreamjava/lang/Throwable(Ljava/lang/String;)V'glguerin/authkit/imp/macosx/AuthProcess(I[BII)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(I)I!5*キ*シオ*オア *カア A**エカ<*エ3~ャャ。 「」・!}I*エ サYキソ*エ+ク 6ャャサYサ Yキ  カ tカカキソ"アイオカ"キ%ケ*コ,シ"f6*エ1*エ<*オク=サYサ Yキ  カ カカキソアニネ ノヒフヘ5マ#$7 -6 PK ^ /」Vィィ2glguerin/authkit/imp/macosx/AuthProcess$FOut.classハコセ-B $ % & ' ()* + ,-. $/ 0 1 2 ,347one[BmyFDI(I)VCodeLineNumberTablefinalize()V Exceptions8write([BII)Vclose SourceFileAuthProcess.java    !  java/io/IOExceptionClosed 9: ;java/lang/StringBufferErrno: <= <> ?@ !A,glguerin/authkit/imp/macosx/AuthProcess$FOutFOut InnerClassesjava/io/OutputStreamjava/lang/Throwable(Ljava/lang/String;)V'glguerin/authkit/imp/macosx/AuthProcess(I[BII)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(I)I!5*キ*シオ*オア *カア3*エ禅**エカア mA*エ サYキソ*エ+ク 6 サYサ Yキ  カ tカカキソア # @ !f6*エ1*エ<*オク=サYサ Yキ  カ カカキソア 5"#6 ,5 PK ^ /Hシii-glguerin/authkit/imp/macosx/AuthProcess.classハコセ-E 3 45 6 78 6 9:; <=>?@AFOut InnerClassesFInmyNameLjava/lang/String;inLjava/io/InputStream;outLjava/io/OutputStream;(Ljava/lang/String;II)VCodeLineNumberTabletoString()Ljava/lang/String;getOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;getErrorStreamwaitFor()I ExceptionsB exitValuedestroy()Vread(I[BII)Iwriteclose(I)I SourceFileAuthProcess.java + +glguerin/authkit/imp/macosx/AuthProcess$FIn C ,glguerin/authkit/imp/macosx/AuthProcess$FOut "java/lang/IllegalArgumentExceptionNo stderr stream D No waiting No exit value Can't destroy'glguerin/authkit/imp/macosx/AuthProcessjava/lang/Processjava/lang/InterruptedException(I)V(Ljava/lang/String;)V1 J"*キ*+オ*サYキオ*サYキオア9: ;<!=*エーB !*エーJ"#*エーQ$#" サ Y キ ソZ%&" サ Y キ ソe'()&" サ Y キ ソo*+" サ Yキ ソx ,- .- /012  PK ^ /$yO5glguerin/authkit/imp/macosx/MacOSXAuthorization.classハコセ-ミ @ ? ? ? @ ? ? # # # ? ?        @ ? @ @ # #。 *「」、 ・ヲ ?ァィ -ゥ ?ェ ?ォャュョ 2 ?ッ ?ー アイウ アエオカDEFAULTI ConstantValueINTERACTEXTENDDESTROYPREAUTH paramErrors[I mySession()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zclaim (Lglguerin/authkit/Privilege;I)Icheck(I)Vdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged makeSession([I)I killSession(II)Irequest(IILjava/lang/String;[BI)IrootExec,(IILjava/lang/String;[Ljava/lang/String;[I)I externalize(I[B)I internalize([B[I)IinternalizePriv(I[I)I SourceFileMacOSXAuthorization.java PQ OB \] ^_ キY VW pq クケ コl サU tu MN"java/lang/IllegalArgumentExceptionjava/lang/StringBufferAuthorization error: シス シセ ソケ Pタ)glguerin/authkit/UnauthorizedCancellationAuthorization cancelled&glguerin/authkit/UnauthorizedExceptionAuthorization denied: チQ rs ツcDon't know when: テeglguerin/authkit/Privilegesystem.privilege.admin Pト ナニNull or empty String[] ヌUNull or empty commandjava/lang/Stringネ ノハ vw'glguerin/authkit/imp/macosx/AuthProcess Pヒ fg xyNull or insufficient byte[]java/lang/IllegalStateExceptionSession active z{ |}フ ヘホAuthKit マタ/glguerin/authkit/imp/macosx/MacOSXAuthorizationglguerin/authkit/Authorization addGrantedgetName()Ljava/lang/String;getValuegetFlagsappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString(Ljava/lang/String;)V clearGranted keysGranted whenGranted((Ljava/lang/String;Ljava/lang/Object;I)VEMPTYLglguerin/authkit/Privilege;lengthjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V(Ljava/lang/String;II)Vglguerin/util/LibLoader getLoader()Lglguerin/util/LibLoader; loadLibrary1?@ABCDEBCFGBCHIBCJKBCLMNOBPQR* *キ*オアSソタ チTURャSVWRF>>**+キキ*+カアS,./ 134XYR*+カアSHZ[R'*+キァャSP"\]RW/*エシ N*-クキ*-.オ*エ+カ+カ +カ ク ャSac deh^_Rュmア  <=ァ*イ.サYサYキカカカキソイセ。ヤ サYキソサYサYキカカカキソS. vw 7BHR!`aR`(==*エ*カ*エ>*オ*クキアS&  」ィゥア'ウbcR*カ ーSタdeRK+、サYサYキ!カカカキソ*+カ"ーSフ ヘ$マfgR$ サ#Y$+キ%ーShiRチy*イ&キW+ニ+セ サY'キソ+2M,ニ ,カ( サY)キソ+セdス*N+--セク+シ :**エ,-ク,キサ-Y,..キ.:**,カ/カーS6    +5=F$K%[(m,v.jUR ャS:!klRI*エ<シー シM*,ク0キ,ーSOP Q TUW!mnRw?+ニ +セ 「 サY1キソ*エ サ2Y3キ4ソ*カシ M*+,ク5キ*,.オアS& r suv&y*{.|7}>~!oQRZ**エ サ2Y3キ4ソ*カシ L*+ク6キ*+.オアS。"「)」*pq*rs*tu*vw*xy*z{*|}~QRM-シ YOY7OY8OY9OY:OY;Oウク<=カ>アS・$ィ,。PK 」 t4glguerin/authkit/imp/plain/PK ^ /;)ケ  5glguerin/authkit/imp/plain/DenyAllAuthorization.classハコセ-T 789 7: ; < = >? @ ABC DEFG HIJemptyLjava/util/Hashtable;()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged SourceFileDenyAllAuthorization.java &glguerin/authkit/UnauthorizedExceptionjava/lang/StringBufferAuthorization denied: KL KM NO PPreauthorization denied:  Q'glguerin/authkit/Privilegeexec.root.denied RExecution denied: Authorization deniedjava/util/Hashtable S/glguerin/authkit/imp/plain/DenyAllAuthorizationglguerin/authkit/Authorizationappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)Vkeys((Ljava/lang/String;Ljava/lang/Object;I)V(I)V!*キア5ャ;3サYサYキカ+カカキ ソF !3サYサYキ カ+カカキ ソQ"#ャ\$%アf&'イ カ ーp()ーy*+$ サ Y+キー,-5サYサYキカ+2カカキ ソ. ャ/0" サYキ ソョ12" サYキ ソシ3" サYキ ソニ4% サYキウ ア.56PK ^ / ? @ A BCD >E F G H I JKL M NO NP QRS T >UV IWX isAttachedZ()VCodeLineNumberTablegetCapabilities()I authorize (Lglguerin/authkit/Privilege;Z)V preauthorize(Lglguerin/authkit/Privilege;)V isAvailable(Lglguerin/authkit/Privilege;)Zdetach(Z)VgetPastGrantedPrivileges()Ljava/util/Enumeration;getPastGrantedDate/(Lglguerin/authkit/Privilege;I)Ljava/util/Date;makeExecPrivilege0(Ljava/lang/String;)Lglguerin/authkit/Privilege;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;getSecretLengthgetSecretIdentifier()[Battach([B)VattachPrivileged SourceFileGrantAllAuthorization.java !  Y) Z! [/"java/lang/IllegalArgumentExceptionjava/lang/StringBufferIllegal when-code: \] \^ _` a b1glguerin/authkit/Privilegeexec.root.granted cd ef g5 23java/io/IOExceptionExecution failed: 6%java/lang/IllegalStateExceptionSession active0glguerin/authkit/imp/plain/GrantAllAuthorizationglguerin/authkit/Authorization addGranted clearGranted keysGrantedappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)V whenGranted((Ljava/lang/String;Ljava/lang/Object;I)Vjava/lang/Runtime getRuntime()Ljava/lang/Runtime;exec! !"" *キ*オア#H$%"~ャ#R&'"# *オ*+カア#e()"# *オ*+カア#r*+"*オャ#|,-"" *オ*カア#./"*カー#01"K+、サYサYキ カ カ カ キ ソ*+カー# $「23"$ サY+キー#ョ45"h8*オク+カM**+2カカ,ーMサYサYキカ +2カ カ キ ソ#ニハ ヒフマ6%"ャ#レ78"Y)*エ!*カシL=ァ +qT+セ。+ーシー##%9:"O'+ニ +セ*カ「 サYキソ*エ サYキソア#    & ;!"2*エ サYキソア#<=PK ^ /ユョ\マ・・ glguerin/authkit/Privilege.classハコセ-k @ "ABC D EF DG H& "IJ KL "MN OPQR "S TU V W X M Y OZ[ O\] D ^_EMPTYLglguerin/authkit/Privilege;NOVALUE[BnameLjava/lang/String;valueflagsIasStr(Ljava/lang/String;)VCodeLineNumberTable((Ljava/lang/String;Ljava/lang/Object;I)VgetName()Ljava/lang/String;getValue()[BgetFlags()ItoStringhashCodeequals(Ljava/lang/Object;)Z()V SourceFilePrivilege.java -1 -=java/lang/NullPointerExceptionName can't be null -. %&java/lang/StringBuffer: `a bcbyte[ `d] 83UTF8e fg$java/io/UnsupportedEncodingException Unencodeable hij 23 '( )& *+ ,( 97glguerin/authkit/Privilege :; #$java/lang/Objectappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;clone()Ljava/lang/Object;(I)Ljava/lang/StringBuffer;java/lang/StringgetBytes(Ljava/lang/String;)[BgetClass()Ljava/lang/Class;java/lang/Class1"#$%&'()&*+,( -./ *+キア0m-1/ャ*キ+ヌ サYキソイ:サY+キ カ :,ヌァ_,チ %,タ カ タ : カ セカカ Wァ6,カ:カ:カ Wァ:イ:カ ,カカカ W*+オ*オ*オ* カ カカオアVmp0V&*-4@V「\」e、m・pィwゥョッーアォイ23/*エー0ク45/# *エカ タ ー0ス67/*エャ0ツ83/*エー0ネ97/ *エカャ0ム:;/イj*+ヲャ+チ]+タM*エ,エカJ*エ,エ?*エセ,エセ2*エN,エ:6-セ6ァ-33ャ。ャャ06 9>DNZ\fh<=/3シウサYキ ウ!ア0WXU>?PK ^ /$Vゥ/glguerin/authkit/UnauthorizedCancellation.classハコセ-    (Ljava/lang/String;)VCodeLineNumberTable SourceFileUnauthorizedCancellation.java )glguerin/authkit/UnauthorizedCancellation&glguerin/authkit/UnauthorizedException!*+キア& PK ^ /レワ,glguerin/authkit/UnauthorizedException.classハコセ-    (Ljava/lang/String;)VCodeLineNumberTable SourceFileUnauthorizedException.java &glguerin/authkit/UnauthorizedExceptionjava/lang/SecurityException!*+キア# PK 」 t4glguerin/util/PK ^ /ウモ@ァ'glguerin/util/CaptureOutputStream.classハコセ-I &'( )* + , - . / 0 1 23 4 56 5789captured[BputIaroundZ(Ljava/io/OutputStream;I)VCodeLineNumberTable getCaptured()[Bwrite(I)V Exceptions:([BII)V SourceFileCaptureOutputStream.java ;"java/lang/IllegalArgumentExceptionjava/lang/StringBuffer <N must be >= 2: => =? @A B   C DE FGH  #!glguerin/util/CaptureOutputStreamjava/io/FilterOutputStreamjava/io/IOException(Ljava/io/OutputStream;)V()Vappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Ljava/lang/String;)Vjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)VoutLjava/io/OutputStream;java/io/OutputStream!g7*+キ「サYサYキカカカキ ソ*シオ *オ *オ ア() *%,,-1.6/P*エ 5*エ セシL*エ セ*エ d=*エ *エ +ク *エ +*エ ク ァ*エ シL*エ +*エ ク +ー"=?@A(B9F@GNI Y1*エカ*エ *Yエ Z`オ 禅*エ *エ セ。 *オ *オ アSUV&W0X!"#*エ+カ*エ セ。'`*エ セd=+*エ *エ セク *オ *オ ア*エ `*エ セ。2*エ セ*エ d6+*エ *エ ク *オ *オ `=d>+*エ *エ ク *Yエ `オ アB` cef,g6h7oEsQt`ujvowt}x!"$%PK ^ /。オ)H H glguerin/util/LibLoader.classハコセ-ャ S TUV WX YZ &[ &\]^_ ` '` a b c d Wef `g h i j kl Wmn op qrst u vw Wxyz{|} &~  'j    isVerboseZ knownLoaderLglguerin/util/LibLoader; dirFallbackLjava/io/File; getLoader()Lglguerin/util/LibLoader;CodeLineNumberTable makeLoader()Vblab loadLibrary(Ljava/lang/String;)Vload#(Ljava/lang/String;Ljava/io/File;)VmakeFallbackDir()Ljava/io/File;toString()Ljava/lang/String; SourceFileLibLoader.java <= DAglguerin.util.LibLoader.imp  glguerin/util/LibLoaderjava/lang/ThreadDeathjava/lang/Throwable EF LM >? GF :; java/lang/StringBuffer# LibLoader dir: NO I HIjava/lang/UnsatisfiedLinkError JK$Don't know how to load JNI library: EI java/io/Filelib.jnilib E O# LibLoader: trying JIjava/lang/Classjava/lang/Object#com.apple.cocoa.foundation.NSBundle# LibLoader got NSBundle:  mainBundle 。「」 、・ resourcePathJava Eヲ java/lang/ClassNotFoundExceptionjava/lang/NoSuchMethodException java/lang/IllegalAccessException"java/lang/IllegalArgumentException+java/lang/reflect/InvocationTargetExceptionSystem.loadLibrary() ァィglguerin.util.LibLoader.debugゥ ェォjava/lang/System getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;java/lang/Stringlength()IforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object;errLjava/io/PrintStream;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;,(Ljava/lang/Object;)Ljava/lang/StringBuffer;java/io/PrintStreamprintln#(Ljava/io/File;Ljava/lang/String;)VgetAbsolutePath getMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;java/lang/reflect/Methodinvoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;'(Ljava/lang/String;Ljava/lang/String;)V pathSeparatorLjava/lang/String;java/lang/Boolean getBoolean(Ljava/lang/String;)Z! ' :; <=>? )@AB0イヌ クウイーCac f DABf*クK*ニ*カ*クカタ ーL+ソMサ Yキ ー ! Ctv{~!"EFB5*キ **カオ*カアC GFBC#イイサYキカ*エカカカアC"HIB:+クァ M*+*エカアCッアイJKBg,ヌサYサYキカ+カカキソサY,サYキ カ+カ!カカキ"カ#NイイサYキ$カ-カカカ-ク%アCヒフミCメIモbユfヨLMBpス&Lス'M(クNイイサYキ)カ-カカカ-*+カ+,カ,:--+カ+,カ,:サYカ./キ0ーLァMァNァ :ァ:ー[[1[_2[c3[g4[l5C: /=L[_cglnNOB5サYキ6カイ7カ*エカカーCPFB! 8ク9ウアCSQRPK ^ /FYuココ$glguerin/util/SinkOutputStream.classハコセ- ()VCodeLineNumberTablewrite(I)V Exceptions([BII)Vclose SourceFileSinkOutputStream.java glguerin/util/SinkOutputStreamjava/io/OutputStreamjava/io/IOException!*キア! ア*   ア2   ア;  PK ^ /;.glguerin/util/Streamer.classハコセ-N - . / 0 1 2 3 45 67 68 49 69 :;< = > ?@ABbuffer[BinLjava/io/InputStream; closeInputZoutLjava/io/OutputStream; closeOutputflush3([BLjava/io/InputStream;ZLjava/io/OutputStream;ZZ)VCodeLineNumberTablepump()J Exceptionsrun()V makeDaemon=(Ljava/lang/ThreadGroup;Ljava/lang/String;)Ljava/lang/Thread; SourceFile Streamer.java (      C DEF GH ( I( $%java/io/IOExceptionjava/lang/Thread J K LMglguerin/util/Streamerjava/lang/Objectjava/lang/Runnablejava/io/InputStreamread([B)Ijava/io/OutputStreamwrite([BII)Vclose@(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V.(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V setDaemon(Z)V! !"Z&*キ*+オ*,オ*オ*オ*オ*オア#"EF HIKLM%N$%"ワ @ァ=*エ*エカ>ァ1*エニ*エ*エカ *エ *エカ a@*エヌツ*エニ *エカ *エ*エニ *エカ *エ*エニ *エカ ュ#J[`bcdfh,i3j:m?`FqMrTtbuiwwx~z&'("2 *カ XァLア# )*"K#,ニサY+*,キNァ サY+*キN-カ-ー#!+,PK ^ /vIy忍Eglguerin/util/VectorUtil.classハコセ-    ()VCodeLineNumberTableasVector(([Ljava/lang/Object;Z)Ljava/util/Vector; addToVector)(Ljava/util/Vector;[Ljava/lang/Object;Z)V SourceFileVectorUtil.java  java/util/Vector   glguerin/util/VectorUtiljava/lang/Object(I)V addElement(Ljava/lang/Object;)V!  *キア   2サY*セキM,*ク,ー    W'+ニ%>ァ+2:ヌ *カ+セ。豎 +- /01-&4PK ht4gnu/PK ht4gnu/io/PK ht4gnu/io/installer/PK ht45Pヲ仮シgnu/io/installer/installer.pref PK ht41ィ゚zz)gnu/io/installer/InstallInstruction.classハコセ14 #$ # % &' ( ) *+,dirpathsLjava/util/Hashtable;()VCodeLineNumberTableLocalVariableTablethis%Lgnu/io/installer/InstallInstruction; addResource#(Ljava/io/File;Ljava/lang/String;)VpathLjava/io/File;resourceLjava/lang/String;frgetKeys()Ljava/util/Enumeration;getPath"(Ljava/io/File;)Ljava/lang/String;f SourceFileInstallInstruction.java java/util/Hashtable -.java/lang/String /0 12 3#gnu/io/installer/InstallInstructionjava/lang/Objectget&(Ljava/lang/Object;)Ljava/lang/Object;equals(Ljava/lang/Object;)Zput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;keys!  >*キ*サYキオア  -+ニ,ヌア*エ+カタN-ニ -,カア*エ+,カWア  ",*---?*エヌー*エカ ー   Q+ニ *エヌー*エ+カター   !"PK ht4gnu/io/installer/macosx/PK 」 t4ミ祁  1gnu/io/installer/macosx/MACOSXRXTXInstaller.classハコセ1 Cm Bn Bo Bpqr Bstu Bvw mxy z {|} ~ m    B ~ { dlib #z # B # # # B # # # 。「 」 、・ ヲ ァ ィ ゥェ ォャュョッーJavaExtensionsLjava/lang/String; ConstantValue()VCodeLineNumberTableLocalVariableTablethis-Lgnu/io/installer/macosx/MACOSXRXTXInstaller; runPreProcesstLjava/lang/Throwable;pLjava/lang/Process;preinstallPath progArray[Ljava/lang/String;auth Lglguerin/authkit/Authorization;privLglguerin/authkit/Privilege;countIsucceedZrunPostProcesscreateJarFolderlibFileLjava/io/File;createLibFoldercreateTemporaryPreinstallFile()Ljava/lang/String;tempFileabsPathinstallAuthKitusingJWSoriginalClassLoaderLjava/lang/ClassLoader; SourceFileMACOSXRXTXInstaller.java GH _H bH gH RXTXcomm.jar3/gnu/io/installer/resources/macosx/jar/RXTXcomm.dat アイlibrxtxSerial.jnilib;/gnu/io/installer/resources/macosx/lib/librxtxSerial.jnilib ウイ/glguerin/authkit/imp/macosx/MacOSXAuthorizationglguerin/authkit/Privilegesystem.privilege.admin Gエオ カキjava/lang/Throwableク ケコjava/lang/StringBuilder Throwable サシ サス セdソ タエ cdjava/lang/String user.name チツ テトナ ニヌ ネH java/io/Fileノ ハヒJava/Extensions Gフ ヘa ホマ ミマ ムマ メa preinstall モヤ ユH-/gnu/io/installer/resources/macosx/preinstall ヨラ リdル レロchmoda+x ワトン ゙゚  djnlp libAuthKit.jnilib8/gnu/io/installer/resources/macosx/lib/libAuthKit.jnilibinstallAuthKit Throwable +gnu/io/installer/macosx/MACOSXRXTXInstallergnu/io/installer/RXTXInstalleraddJarResource'(Ljava/lang/String;Ljava/lang/String;)VaddLibResource(Ljava/lang/String;)Vglguerin/authkit/Authorization authorize (Lglguerin/authkit/Privilege;Z)Vjava/lang/SystemoutLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln getProperty&(Ljava/lang/String;)Ljava/lang/String;execPrivileged(([Ljava/lang/String;)Ljava/lang/Process;java/lang/Threadsleep(J)VprintStackTrace!gnu/io/installer/util/InstallUtil getFolderPath(SI)Ljava/lang/String;#(Ljava/io/File;Ljava/lang/String;)V jarFoldercanWrite()Zexistsmkdirs libFoldercreateTempFile4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; deleteOnExitcopyResourceToFile#(Ljava/lang/String;Ljava/io/File;)VgetAbsolutePathjava/lang/Runtime getRuntime()Ljava/lang/Runtime;execjava/lang/ProcesswaitFor()I currentThread()Ljava/lang/Thread;getContextClassLoader()Ljava/lang/ClassLoader;java/lang/Object toLowerCaseindexOf(Ljava/lang/String;)I!BCDEF'GHIc!*キ*カ*カ*キ*カ* カ アJ  K !LMNHI椽 Yキ Lサ YキM>6+,カ6ァ':イサYキカカカカ、モT*キ:ヌアスYSYクS:+カ:ク!ァ$:イサYキカカカカカ"ア #ky|JZ !$% &#'%(?*B+G-L.R/X0k2s3y7|4~56:Kf %OPsQR~OPRKSEk2TULMVWXYZ[\]^HI+アJ<K LM_HIゥYサ#Y$ク%キ&L*サ#Y+'キ(オ)*エ)カ*3サ#Y$ク%キ&L*サ#Y+'キ(オ)*エ)カ+ *エ)カ,WアJ"@AB(C8DFEPFXIKYLMI`abHIゥYサ#Y$ク%キ&L*サ#Y+'キ(オ-*エ-カ*3サ#Y$ク%キ&L*サ#Y+'キ(オ-*エ-カ+ *エ-カ,WアJ"LMN(O8PFQPRXUKYLMI`acdIウ9.ク/L+カ01+ク2+カ3Mク4スY5SY6SY,Sカ7N-カ8W,ーLー56J& YZ [\]/^4_6`7aK4/ea fE/QR7OP9LMgHIリV<ク9カ:M,カ;カ<=カ><アサ#Y*エ)?キ(N-カ0@-ク2ァNイサYキAカ-カカカア 8;J. ef gh j.k2l8o;m<nUpK4. ea<OPVLMTh] MijklPK ht4gnu/io/installer/resources/PK L t4"gnu/io/installer/resources/macosx/PK 」 t4ャ/ワワ7gnu/io/installer/resources/macosx/artistic-license.html The Artistic License

Artistic License

The "Artistic License"

Preamble

The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications.

Definitions:

  • "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification.

  • "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder.

  • "Copyright Holder" is whoever is named in the copyright or copyrights for the package.

  • "You" is you, if you're thinking about copying or distributing this Package.

  • "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.)

  • "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it.

1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers.

2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version.

3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following:

a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package.

b) use the modified Package only within your corporation or organization.

c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following:

a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version.

b) accompany the distribution with the machine-readable source of the Package with your modifications.

c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version.

d) make other distribution arrangements with the Copyright Holder.

5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own.

6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package.

7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package.

8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission.

9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The End
PK ht4&gnu/io/installer/resources/macosx/jar/PK ht4マv$9カ9カ2gnu/io/installer/resources/macosx/jar/RXTXcomm.datPK 餤U4 META-INF/ハPK 餤U4RぃWFFMETA-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.4.2_09 (Apple Computer, Inc.) PK 餤U4gnu/PK 餤U4gnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classハコセ.    getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort; initialize()V SourceFileCommDriver.javagnu/io/CommDriverjava/lang/ObjectPK 餤U4G\yアアgnu/io/CommPort.classハコセ.@ 2 34 356 789nameLjava/lang/String;debugZ ConstantValue()VCodeLineNumberTableenableReceiveFraming(I)V Exceptions:disableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByte()IdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeclosegetInputStream()Ljava/io/InputStream;;getOutputStream()Ljava/io/OutputStream;getName()Ljava/lang/String;toString SourceFile CommPort.java < => ?gnu/io/NoSuchPortException  gnu/io/CommPortjava/lang/Object(gnu/io/UnsupportedCommOperationExceptionjava/io/IOExceptiongnu/io/CommPortIdentifiergetPortIdentifier.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;internalClosePort!    !*キア #H !"#$%&'K*クL+ニ +W*クカァLア@B CGEH()*+,*-.*エーP/.*エーU01PK 餤U4Gウ22gnu/io/CommPortEnumerator.classハコセ.(      !"indexLgnu/io/CommPortIdentifier;debugZ ConstantValue()VCodeLineNumberTable nextElement()Ljava/lang/Object;hasMoreElements()Z SourceFileCommPortEnumerator.java # $% & ' gnu/io/CommPortEnumeratorjava/lang/Objectjava/util/Enumerationgnu/io/CommPortIdentifierSyncLjava/lang/Object;next CommPortIndex    !*キア )*f.イYLツ*エニ**エエオァ *イオ*エ+テーM+テ,ソ()),)689":);n2イYLツ*エニ*エエヌァ+テャイヌァ+テャM+テ,ソ-,--0-HJK-Mア&PK 餤U4Vヌ イ、、gnu/io/CommPortIdentifier.classハコセ. 7                      。「 」 、 ・ヲァ $ィ & ゥ 7ェォャ ュ +ョ ッ ー ア 7イ ウ エオ エカキ 5クケコ サ シス セソ タ PORT_SERIALI ConstantValue PORT_PARALLELPORT_I2C PORT_RS485PORT_RAWPortNameLjava/lang/String; AvailableZOwnercommportLgnu/io/CommPort; RXTXDriverLgnu/io/CommDriver; CommPortIndexLgnu/io/CommPortIdentifier;nextPortTypedebugSyncLjava/lang/Object;ownershipListenerLjava/util/Vector;HideOwnerEvents:(Ljava/lang/String;Lgnu/io/CommPort;ILgnu/io/CommDriver;)VCodeLineNumberTable addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)VAddIdentifierToList(Lgnu/io/CommPortIdentifier;)VaddPortOwnershipListener%(Lgnu/io/CommPortOwnershipListener;)VgetCurrentOwner()Ljava/lang/String;getNamegetPortIdentifier/(Ljava/lang/String;)Lgnu/io/CommPortIdentifier; Exceptions.(Lgnu/io/CommPort;)Lgnu/io/CommPortIdentifier;getPortIdentifiers()Ljava/util/Enumeration; getPortType()IisCurrentlyOwned()Zopen+(Ljava/io/FileDescriptor;)Lgnu/io/CommPort;native_psmisc_report_owner&(Ljava/lang/String;)Ljava/lang/String;&(Ljava/lang/String;I)Lgnu/io/CommPort;removePortOwnershipListenerinternalClosePort()VfireOwnershipEvent(I)V SourceFileCommPortIdentifier.java _} MN KL PQ W@ VU RSgnu/io/CommPortIdentifier _` ef Z[ TU \]java/util/Vector チツ テト OLナ ニツgnu/io/NoSuchPortExceptiongnu.io.RXTXCommDriverヌ ネノ ハヒgnu/io/CommDriver フ}java/lang/Throwableヘ ホマjava/lang/StringBuffer ミム thrown while loading ミメ モjヤ ユヨgnu/io/CommPortEnumerator(gnu/io/UnsupportedCommOperationException ~ ラリjava/lang/InterruptedExceptiongnu/io/PortInUseException ij _ヨ ルz xy レツ ロ} ワqン ゙u ゚ヒ gnu/io/CommPortOwnershipListener java/lang/Objectos.name y jlinux  rxtxSerial ヨcontains(Ljava/lang/Object;)Z addElement(Ljava/lang/Object;)Vjava/lang/Stringequalsjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class; newInstance()Ljava/lang/Object; initializejava/lang/SystemerrLjava/io/PrintStream;append,(Ljava/lang/Object;)Ljava/lang/StringBuffer;,(Ljava/lang/String;)Ljava/lang/StringBuffer;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)Vwait(J)V getCommPort removeElement notifyAllelementsjava/util/EnumerationhasMoreElements nextElementownershipChange getProperty toLowerCaseindexOf(Ljava/lang/String;)I loadLibrary!7?@ABC@ADE@AFG@AHI@AJKLMNOLPQRSTUVUW@XNAYZ[\]^N_`aX$*キ*オ*+オ*,オ*オ*オ*オアb"V' WXYZ[#] cda+サY*,キ ク アb lm efa6イ YLツイ ヌ *ウ ァイ M,エニ ,エMァ,*オ+テァN+テ-ソア-0030b. y{ }~#&+5ghaN&*エ ヌ*サYキオ *エ +カ *エ +カアb。」%・ija*エーbアkja*エーbセ lma<イ Lイ YMツ+ニ+エ*カァ +エLァ,テァN,テ-ソ+ニ+ーサYキソ &)),)b"ヒヘ マムメ$ヤ.ユ4レn loaz6イ Lイ YMツ+ニ+エ*・ +エLァ,テァN,テ-ソ+ニ+ーサYキソ ##&#b" (,.n pqax@ウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#サ$Yキ%ーb  8 rsa*エャb!tua% *エァャb%!vwa サ&Yキ'ソb2n&xy!vza*エ%イ YNツ*カ(*カ)ァ:-テァ :-テソ*エサ+Y*カ,キ-ソ*エヌ**エ*エ*エケ.オ*エニ*+オ*オ*カ(*エーサ+Y**エキ/キ-ソ* ""&"bBEG ILNO)Q0S<UCWXY_[d\i]n^sbn+{ha1*エ ニ *エ +カ0Wアbrst |}aE*オ*オ*オ*カ1*カ(アb ~aY-*エ ニ(*エ カ2N-ケ3-ケ4タ5M,ケ6ァ豎b",}aWサ7Yキウ クカタK*ケァ"KイサYキ*カ カ!カ!カ"カ#8ク9K*カ:;カ<=ク>ア b* @ CDIF H>MDNQSVT1K 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classハコセ. PORT_OWNEDI ConstantValue PORT_UNOWNEDPORT_OWNERSHIP_REQUESTEDownershipChange(I)V SourceFileCommPortOwnershipListener.java gnu/io/CommPortOwnershipListenerjava/lang/Objectjava/util/EventListener    PK 餤U4⌒[サキキgnu/io/Configure$1.classハコセ.,     !"this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java # $ %&Save' ()* +gnu/io/Configure$1 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zgnu/io/Configure access$000     " *キ*+オアl:+カM,カ *エクアnopr PK 餤U4@6+ウgnu/io/Configure$2.classハコセ./       #$val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java %  & '() *+, -.gnu/io/Configure$2 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;gnu/io/Configure addCheckBoxes(Ljava/lang/String;)Vjava/awt/Frame setVisible(Z)V      '*キ*+オ*,オア4*エ+カカ*エカア " PK 餤U4lu綬gnu/io/Configure$3.classハコセ.D     ! "# $% &' &( )*+./val$fLjava/awt/Frame; Syntheticthis$0Lgnu/io/Configure;%(Lgnu/io/Configure;Ljava/awt/Frame;)VCodeLineNumberTableactionPerformed(Ljava/awt/event/ActionEvent;)V SourceFileConfigure.java 0  1 234 567 89: ;<= >? @AB CAgnu/io/Configure$3 InnerClassesjava/lang/Objectjava/awt/event/ActionListener()Vjava/awt/event/ActionEventgetActionCommand()Ljava/lang/String;java/lang/String substring(I)Ljava/lang/String;java/lang/IntegerparseInt(Ljava/lang/String;)Ignu/io/Configurecb[Ljava/awt/Checkbox;java/awt/CheckboxgetState()ZsetState(Z)Vjava/awt/Frame setVisible  '*キ*+オ*,オアnB+カカク=>「1*エエ2*エエ2カァカ *エカ ァミア 3;A-  PK 餤U4羣ユgnu/io/Configure$4.classハコセ.   this$0Lgnu/io/Configure; Synthetic(Lgnu/io/Configure;)VCodeLineNumberTable windowClosing(Ljava/awt/event/WindowEvent;)V SourceFileConfigure.java   gnu/io/Configure$4 InnerClassesjava/awt/event/WindowAdapter()Vjava/lang/Systemexit(I)V   " *キ*+オア ヲ  !クア ィゥ PK 餤U4W$ュュgnu/io/Configure.classハコセ. [xyz {| }~ { [   {  } [ # #    [ 5 #} 5 + [。「 +} 」、・ +ヲァ 2 +ィゥ 5ェ 7ォ 5ィャ :ッ [ーア =イ =ウ =エオカ A} 5キク Eケコ Gサ Eシスセソ K}タ Nサ Kシチツテ +トナニ Wッ +ヌ +ネノ [cb[Ljava/awt/Checkbox;p1Ljava/awt/Panel; PORT_SERIALI ConstantValue PORT_PARALLELPortType EnumMessageLjava/lang/String;saveSpecifiedPorts()VCodeLineNumberTable addCheckBoxes(Ljava/lang/String;)Vmain([Ljava/lang/String;)V access$000(Lgnu/io/Configure;)V Synthetic SourceFileConfigure.java jkjava/lang/String java.homeハ ヒフ popath.separator: ヒヘfile.separator/line.separator gbjava/lang/StringBuffer pk ホマlibgnu.io.rxtx.SerialPorts ミムgnu.io.rxtx.ParallelPorts メモBad Port Type!ヤ ユojava/io/FileOutputStream ]^ ヨラ リム ルレ ロワ ンkjava/io/IOException IOException! _` ゙゚java/awt/Checkbox ホNORTH +gnu.io.rxtx.properties has not been detected. There is no consistant means of detecting ports on this operating System. It is necessary to indicate which ports are valid on this system before proper port enumeration can happen. Please check the ports that are valid on this system and select Save hijava/awt/Frame Configure gnu.io.rxtx.properties COM/dev/ java/awt/BorderLayout java/awt/Paneljava/awt/GridLayout pgnu/io/Configure$1 InnerClasses pt nojava/awt/TextArea p java/awt/Label Port Name: java/awt/TextField pgnu/io/Configure$2 p  Keep Portsjava/awt/Button1-gnu/io/Configure$3MoreSaveSouthCenterNorthgnu/io/Configure$4 gnu/io/Configurejava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;append,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintlngetState()ZgetLabelgetBytes()[Bwrite([B)Vcloseremove(Ljava/awt/Component;)V(I)Ljava/lang/StringBuffer;add<(Ljava/lang/String;Ljava/awt/Component;)Ljava/awt/Component; compareTo(Ljava/lang/String;)I setBounds(IIII)V setLayout(Ljava/awt/LayoutManager;)V(II)V(Ljava/lang/String;III)VsetSize setEditable(Z)V*(Ljava/awt/Component;)Ljava/awt/Component;(Ljava/lang/String;I)V%(Lgnu/io/Configure;Ljava/awt/Frame;)VaddActionListener"(Ljava/awt/event/ActionListener;)VaddWindowListener"(Ljava/awt/event/WindowListener;)V setVisible [+]^_`abcdebcfgbhijkl{ サYクキMクN  ク: ク:*エ 0サYサ Yキ,カカカカカカキLァ2*エ !サYサ Yキ,カカカキLァ イカアイ+カサY+キ:6「D*エ2カ1サYサ Yキ*エ2カカ-カカキ:カカァコカカカァ :イ カアm^$ %&'%*-+Z.b/3469;・=イ?ヨA;DEJGIKnolh=「*エ2ニ*エ!*エ2カ"ァ=△<*エdサ#Yサ Yキ+カカ$カキ%S*エ!&*エd2カ'Wァテアm& O PQO%R.TOUaRgWpklセ*キ(*オ *サY)キオ*<=*ス#オサ+Y,キ-N  ク: カ. /:ァ0:-d2カ1-サ2Yキ3カ4*サ5Yキ6オ!*エ!サ7Yキ8カ9サ:Y*キ;:*カ<サ=Y*エ*2キ>:2カ?カ@サ5Yキ6:サAYBキCカDWサEYキF:  サGY*-キHカI カDWサ#YJキ%:  カDWスK: 6 6  △K  サKYサ YキLカ カ$カキMS  2サNY*-キOカP  2カDW h6 ァウサKYQキM: サKYRキM:  カP カP カDW カDW-SカTW-U*エ!カTW-VカTW-サWY*キXカY-カZアmカ-Z イ[\](^2`;bEcLePgZheipjkuv「xェyー{ケ|ネ}ユ~3DO[fqx。「」」ャ、クャスュ qrl% サ[Yキ\Wアm ーアstl*キアmuvwョ":GNWPK 餤U4HGムhhgnu/io/I2C$I2CInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileI2C.java 0 1 23 45  657 89 :5  ;< =5gnu/io/I2C$I2CInputStreamI2CInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/I2C access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 " *キ*+オアu-*エクW*エクャ w x! *++セカャ|゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ: '=DLT`ft| *エク ャ-  ,PK 餤U4mリ gnu/io/I2C$I2COutputStream.classハコセ.*     "this$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileI2C.java   $ %& '( ) gnu/io/I2C$I2COutputStreamI2COutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/I2C access$1000(Lgnu/io/I2C;I)V access$1100(Lgnu/io/I2C;[BII)V access$1200     " *キ*+オアe % *エクア gh ( *エ++セクア j k ' *エ+クア m n $*エクア pq!  PK 餤U4ノト&&gnu/io/I2C$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/I2C; Synthetic(Lgnu/io/I2C;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileI2C.java           # N O#gnu/io/I2C$MonitorThreadjava/lang/Thread gnu/io/I2C eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ー ヲァィゥェ"ォ'ャ,ュ1ョ6ッ;ー"# $*エ カ ア! イウ$' *エ ャ!「(' *エ ャ!「)' *エャ!「*' *エャ!「+' *エャ!「,' *エャ!「-' *エャ!「.' *エャ!「/' *エャ!「0' *エャ!「12 *Zオ ャ!「32 *Zオ ャ!「42 *Zオャ!「52 *Zオャ!「62 *Zオャ!「72 *Zオャ!「82 *Zオャ!「92 *Zオャ!「:2 *Zオャ!「;2 *Zオャ!「<=& J%PK 餤U4ホ9gnu/io/I2C.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesI2CInputStreamI2COutputStreamfdIdsrFlagZoutLgnu/io/I2C$I2COutputStream;inLgnu/io/I2C$I2CInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/I2CPortEventListener; monThreadLgnu/io/I2C$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setI2CPortParams(IIII)VnativeSetI2CPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/I2CPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/I2C;I)V Synthetic access$1100(Lgnu/io/I2C;[BII)V access$1200(Lgnu/io/I2C;)V access$1302(Lgnu/io/I2C;I)I access$1400(Lgnu/io/I2C;)I access$1500 access$1600 access$1700(Lgnu/io/I2C;[BII)I access$1800 SourceFileI2C.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/I2C$I2COutputStream wミ cdgnu/io/I2C$I2CInputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/I2CPortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/I2C$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネvrxtxI2C ]x uv ab gnu/io/I2Cgnu/io/I2CPortgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/I2C$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/I2CPort;IZZ)Vgnu/io/I2CPortEventListenerI2CEvent(Lgnu/io/I2CPortEvent;)Vstart interrupt access$002(Lgnu/io/I2C$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>3@E[#_)c.g3l8=、BツGテLQ4Z5{|}~{|y*エ ーzAy*エーzFyK*キ*オ*オ*オ*オアzO PQRST{{y*エャz\y*エャz`y*エャzdy*エャzhyL*カァ M,カア*オアznro p qsty*エャzu{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アzァゥ ェョ$ーvy"*カ)アz イウy*エャzオy% *エァャzクy"*オアz ニヌ。y*エャzハ「y"*オアz ホマ」y*エャzメ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu !#ャ$ュ&コ'サ)ネ*ノ,-/01コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz789 :';{@シvyA*オ>*エ*ニ*エ*カE*オ*アz>? @ACスヲy" *エ*クFWアzEセヲy" *エ*クGWアzGソヲy" *エ*クHWアzIタヲy" *エ*クIWアzJチヲy" *エ*クJWアzKツヲy" *エ*クKWアzLテヲy" *エ*クLWアzMトヲy" *エ*クMWアzNナヲy" *エ*クNWアzOニヲy" *エ*クOWアzPヌvネvyD*カP*キQ*キR*キS*オアzVW XYZ[ノvy( *エ*カTアz ` aハヒy*キ アz"{フヘホy *+キアz"{フマミy*キアz"{フムメy*Zオャz"フモヤy*キャz"{フユヤy*エャz"フヨヤy*エャz"フラリy *+キャz"{フルヤy*キャz"{フレvy- UクVクWウXアz&'=ロワ\BY[Y] Y^PK 餤U43クgnu/io/I2CPort.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetI2CPortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener (Lgnu/io/I2CPortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFile I2CPort.java !gnu/io/I2CPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4|、ンiignu/io/I2CPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/I2CPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileI2CPortEvent.java !2   gnu/io/I2CPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U42レエヘヘ!gnu/io/I2CPortEventListener.classハコセ.   I2CEvent(Lgnu/io/I2CPortEvent;)V SourceFileI2CPortEventListener.javagnu/io/I2CPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4m pp"gnu/io/LPRPort$MonitorThread.classハコセ.+   ! " #$ %&'monErrorZ monBufferthis$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses!(Lgnu/io/LPRPort$MonitorThread;)Z access$100 access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 SourceFile LPRPort.java  ( ) *gnu/io/LPRPort$MonitorThreadjava/lang/Threadgnu/io/LPRPort eventLoopyield    8*キ*+オ*オ*オアJ HIJ+ *エカクアMN O*エャF*エャF*ZオャF*ZオャF #PK 餤U4b:[(gnu/io/LPRPort$ParallelInputStream.classハコセ.-       !"%this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I available SourceFile LPRPort.java & ' ()java/io/IOException * + ,"gnu/io/LPRPort$ParallelInputStreamParallelInputStream InnerClassesjava/io/InputStream()Vgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)IreadByte readArraynativeavailable   " *キ*+オア.6*エク サYキソ*エカャ 23:*エク サYキソ*エ++セカャ 789*エク サYキソ*エ+カャ =>6*エク サYキソ*エカャ BC$  #PK 餤U4} 腎t)gnu/io/LPRPort$ParallelOutputStream.classハコセ.*       !$this$0Lgnu/io/LPRPort; Synthetic(Lgnu/io/LPRPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile LPRPort.java  % &'java/io/IOException ( )#gnu/io/LPRPort$ParallelOutputStreamParallelOutputStream InnerClassesjava/io/OutputStreamgnu/io/LPRPort access$200(Lgnu/io/LPRPort;)I writeByte writeArray     " *キ*+オア!;*エク サYキソ*エカア!>*エク サYキソ*エ++セカア!=*エク サYキソ*エ+カア#$%!/*エク サYキソア (*# "PK 餤U4pケョョgnu/io/LPRPort.classハコセ. = > 。 =「」 。 =、 =・ =ヲ =ァ =ィ =ゥ =ェォ ャ ュョッ ーアイ =ウ >エ =オ カキ カクケ コ =サ 1シ =ス 1セ 1ソ ュタチ "ツ "テ "ト "ナニ (ヌ ネノ2 ハヒフヘ /ホ 1。 1マ 1ミム 1メモ 1ヤ =エユ ュヨ =ラリル MonitorThread InnerClassesParallelInputStreamParallelOutputStreamdebugZ ConstantValuefdIout%Lgnu/io/LPRPort$ParallelOutputStream;in$Lgnu/io/LPRPort$ParallelInputStream;lprmodetimeout thresholdPPEventListener"Lgnu/io/ParallelPortEventListener; monThreadLgnu/io/LPRPort$MonitorThread; Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsレopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;getMode()IsetMode(I)Irestartsuspend setLPRMode(I)Z isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOut nativeClosecloseenableReceiveFraming(I)VdisableReceiveFramingisReceiveFramingEnabledgetReceiveFramingByteenableReceiveTimeoutdisableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizegetOutputBufferFree writeByteロ writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener%(Lgnu/io/ParallelPortEventListener;)VremoveEventListener notifyOnError(Z)VnotifyOnBufferfinalize access$200(Lgnu/io/LPRPort;)I Synthetic SourceFile LPRPort.java GH VU#gnu/io/LPRPort$ParallelOutputStream Vワ IJ"gnu/io/LPRPort$ParallelInputStream KL MH NH OH \] ン゙ hi(gnu/io/UnsupportedCommOperationException ゚U Irestart() is not implemented Wsuspend() is not implemented pU qU U U Not supported VW RS k PQ java/lang/StringBufferunknown event: gnu/io/ParallelPortEvent V  java/lang/Exception#java/util/TooManyListenersExceptiongnu/io/LPRPort$MonitorThread U U$notifyOnError is not implemented yet %notifyOnBuffer is not implemented yet  rxtxParallel W TUgnu/io/LPRPortgnu/io/ParallelPortgnu/io/PortInUseExceptionjava/io/IOException(Lgnu/io/LPRPort;)VnameLjava/lang/String;printStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintlnjava/lang/Runtime getRuntime()Ljava/lang/Runtime;gc isInterrupted access$000!(Lgnu/io/LPRPort$MonitorThread;)Z access$100errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/ParallelPort;IZZ)V gnu/io/ParallelPortEventListener parallelEvent(Lgnu/io/ParallelPortEvent;)Vjava/lang/Threadsleep(J)Vstart interrupt access$102"(Lgnu/io/LPRPort$MonitorThread;Z)Z access$002 loadLibrary0=> CDEFGHIJKLMHNHOHPQRS2 TUVWXr:*キ*サY*キオ*サY*キオ*オ *オ *オ **+キ オ*+オ アY& -IMR!&+;4<9AZ["\]Z[^_X*エーYJ`aX*エーYNbcX*エ ャYSdeXO*カWァ M,カャ*オ ャ YW[ X YZ\]ZfUX% イカアY abgUX% イカアY efhiZjklkmknkokpU!qUXP *エア*キ*キ*カ*オクカアYtu vwyz{rsX" サYキソYZtUXアYukXャYvcXャYwsX2 *オ ァ*オ アY xUX*オ アYykX% *エ ァャYzcX*エ ャY{sX3、 *オ ァ*オ アY |UX*オ アY}cX*エ ャY~kX&*エ 、ァャYscsccsZZUZcZcZZUkX1*エニ *エカャャYセソタ!Xカ*エ*エニ *エヌャォ:+*エクァ/ャ*エク ァ ャイ!サ"Yキ#$カ%カ&カ'カャサ(Y*ァキ)N*エニ *エ-ケ**エ*エニ *エヌャ+ク-ァ:ャゥッイ.YBヌノフ4マAミCメPモRユkヨmリレロワァ゙ゥエ!XT(*エニ サ/Yキ0ソ*+オ*サ1Y*キ2オ*エカ3アY 'Z/!UXA*オ*エニ*エカ4*オアY !X2イ5カ*エク6WアY!X2イ7カ*エク8WアY  UX( *エ*カ9アY  X*エャYUX) :ク;ク<アY#$%@1=?=A=BPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classハコセ.   (Ljava/lang/String;)VCodeLineNumberTable()V SourceFileNoSuchPortException.java   gnu/io/NoSuchPortExceptionjava/lang/Exception!"*+キア !" !*キア %&  PK 餤U4ェテテgnu/io/ParallelPort.classハコセ.3 ./0 LPT_MODE_ANYI ConstantValue LPT_MODE_SPP LPT_MODE_PS2 LPT_MODE_EPP LPT_MODE_ECPLPT_MODE_NIBBLE()VCodeLineNumberTablegetMode()IsetMode(I)I Exceptions1restartsuspend isPaperOut()Z isPrinterBusyisPrinterErrorisPrinterSelectedisPrinterTimedOutgetOutputBufferFreeaddEventListener%(Lgnu/io/ParallelPortEventListener;)V2removeEventListener notifyOnError(Z)VnotifyOnBuffer SourceFileParallelPort.java gnu/io/ParallelPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException!     *キア !"#$%&'()*+*,-PK 餤U4Pン`|gnu/io/ParallelPortEvent.classハコセ.#     ! PAR_EV_ERRORI ConstantValue PAR_EV_BUFFEROldValueZNewValue eventType(Lgnu/io/ParallelPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileParallelPortEvent.java "   gnu/io/ParallelPortEventjava/util/EventObject(Ljava/lang/Object;)V!      >*+キ*オ*オ*オア*+ ,-.*エャ1*エャ5*エャ9PK 餤U478」&gnu/io/ParallelPortEventListener.classハコセ.    parallelEvent(Lgnu/io/ParallelPortEvent;)V SourceFileParallelPortEventListener.java gnu/io/ParallelPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4咎Gqqgnu/io/PortInUseException.classハコセ.    currentOwnerLjava/lang/String;(Ljava/lang/String;)VCodeLineNumberTable()V SourceFilePortInUseException.java    gnu/io/PortInUseExceptionjava/lang/Exception!  + *+キ*+オア +, -  !*キア 01 PK 餤U4^狛&&gnu/io/Raw$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFileRaw.java           # N O#gnu/io/Raw$MonitorThreadjava/lang/Thread gnu/io/Raw eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ョ 、・ヲァィ"ゥ'ェ,ォ1ャ6ュ;ョ"# $*エ カ ア! ーア$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4ナサヤhhgnu/io/Raw$RawInputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFileRaw.java 0 1 23 45  657 89 :5  ;< =5gnu/io/Raw$RawInputStreamRawInputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/Raw access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 " *キ*+オアs-*エクW*エクャ u v! *++セカャz゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:~ '=DLT`ft| *エク ャ-  ,PK 餤U4ク聒 gnu/io/Raw$RawOutputStream.classハコセ.*     "this$0 Lgnu/io/Raw; Synthetic(Lgnu/io/Raw;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFileRaw.java   $ %& '( ) gnu/io/Raw$RawOutputStreamRawOutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/Raw access$1000(Lgnu/io/Raw;I)V access$1100(Lgnu/io/Raw;[BII)V access$1200     " *キ*+オアc % *エクア ef ( *エ++セクア h i ' *エ+クア k l $*エクア no!  PK 餤U4vウ蟋ァgnu/io/Raw.classハコセ.g [ [ [ [ [ [ [ [ [ \ [  [ [ [ [ [ [ [ [ [ [ [ [   [ [   [ [  [ [ C C C C C C C C C C  7 7 7 7 = [ !"# A$ C C% C& C' C( C) C* C+ C, C- C. C/ C0 [1 [2 [3 \4 [456 7 [8 [9:; MonitorThread InnerClassesRawInputStreamRawOutputStream ciAddressIdsrFlagZoutLgnu/io/Raw$RawOutputStream;inLgnu/io/Raw$RawInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RawPortEventListener; monThreadLgnu/io/Raw$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions<open(I)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRawPortParams(IIII)VnativeSetRawPortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener (Lgnu/io/RawPortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize getVersion()Ljava/lang/String; access$1000(Lgnu/io/Raw;I)V Synthetic access$1100(Lgnu/io/Raw;[BII)V access$1200(Lgnu/io/Raw;)V access$1302(Lgnu/io/Raw;I)I access$1400(Lgnu/io/Raw;)I access$1500 access$1600 access$1700(Lgnu/io/Raw;[BII)I access$1800 SourceFileRaw.java オ キク ob pb カ vb エx イウ ア yxgnu/io/Raw$RawOutputStream yヤ efgnu/io/Raw$RawInputStream gh ib jb kb lb mb nb qb= >? ab  java/io/IOException @x(gnu/io/UnsupportedCommOperationException Not supported yz A eBInvalid timeoutC Dz Invalid Threshold tu EF GF HF IF JF KF LF MF NF OF PBjava/lang/StringBufferunknown event: QR QS Tヘgnu/io/RawPortEvent yU rsV WX#java/util/TooManyListenersExceptiongnu/io/Raw$MonitorThread Yx Zx [\ ]\ ^\ _\ `\ a\ b\ c\ d\ e\ ァィ ェィ ノ ハx8$Id: Raw.java,v 1.1.2.13 2004/10/12 08:59:27 jarvi Exp $rxtxRaw fz wx cd gnu/io/Rawgnu/io/RawPortgnu/io/PortInUseExceptionjava/lang/IntegerparseInt(Ljava/lang/String;)IprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/Raw$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString(Lgnu/io/RawPort;IZZ)Vgnu/io/RawPortEventListenerRawEvent(Lgnu/io/RawPortEvent;)Vstart interrupt access$002(Lgnu/io/Raw$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0[\abcdefghibjbkblbmbnbobpbqbrstuvbM wxyz{キc*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*+クオ**エキWア|B0>CY#])a.e3j8=「BタGチLQ1Y2b3}~}~{*エ ー|?{*エー|D{K*キ*オ*オ*オ*オア|M NOPQR}}{*エャ|Z{*エャ|^{*エャ|b{*エャ|f{L*カァ M,カア*オア|lpm n oqr{*エャ|s}{" サY キ!ソ|}x{ア|{ャ|{ャ|x{"*カ"ア| {J"*オ**エ*エカ#ァ イ$%カ&ア| !{*カ'ャ|{*カ(ャ|{M%*オ**エ*エ*エカ#ァ イ$)カ&ア|・ァ ィャ$ョx{"*カ*ア| ーア{*エャ|ウ。{% *エァャ|カ「{"*オア| トナ」{*エャ|ネ、{"*オア| フヘ・{*エャ|ミヲァィゥィェィォャュョッーア}イウ}エx}オ}カ}キク}ケxコサ{ ェネ 7JXftャコ*オ*エ+ク,ァ愕*エ+ク-ァ竺*エ+ク.ァア*エ+ク/ァrア*エ+ク0ァdア*エ+ク1ァVア*エ+ク2ァHア*エ+ク3ァ:ア*エ+ク4ァ,ア*エ+ク5ァアイ6サ7Yキ89カ:カ;カ<カ&アサ=Y*ァキ>N*エ?ニ *エ?-ケ@ア|n8=JKXYfgtu!ャ"ュ$コ%サ'ネ(ノ*+-./シス{P(*エ?ニ サAYキBソ*+オ?*サCY*キDオ+*エ+カEア|567 8'9}Aセx{A*オ?*エ+ニ*エ+カF*オ+ア|<= >?Aソィ{" *エ+クGWア|Cタィ{" *エ+クHWア|Eチィ{" *エ+クIWア|Gツィ{" *エ+クJWア|Hティ{" *エ+クKWア|Iトィ{" *エ+クLWア|Jナィ{" *エ+クMWア|Kニィ{" *エ+クNWア|Lヌィ{" *エ+クOWア|Mネィ{" *エ+クPWア|Nノハx{E*カQ*キR*キSW*キT*オア|TU VWXYヒx{!*カUア| ^_フヘ{!VL+ー| オカホマ{*キ ア|}ミムメ{ *+キア|}ミモヤ{*キア|}ミユヨ{*Zオャ|ミラリ{*キャ|}ミルリ{*エャ|ミレリ{*エャ|ミロワ{ *+キャ|}ミンリ{*キャ|}ミ゙x{- WクXクYウZア|#$;゚^C[][_ [`PK 餤U4ア#ミbbgnu/io/RawPort.classハコセ.6 123 DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT WRITE_SIZEIO_PORTx()VCodeLineNumberTablesetRawPortParams(IIII)V Exceptions4addEventListener (Lgnu/io/RawPortEventListener;)V5removeEventListener SourceFile RawPort.java #$gnu/io/RawPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException         !"#$%*キア&'()*+,)-.$/0PK 餤U41Fノiignu/io/RawPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RawPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRawPortEvent.java !2   gnu/io/RawPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$23 456%&#*エャ$9'(#*エャ$=)(#*エャ$A*+PK 餤U4訪Rヘヘ!gnu/io/RawPortEventListener.classハコセ.   RawEvent(Lgnu/io/RawPortEvent;)V SourceFileRawPortEventListener.javagnu/io/RawPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4?D1,44 gnu/io/RS485$MonitorThread.classハコセ.P > ? @ A B C D E F G H I JKLMCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablerun()V access$000 MonitorThread InnerClasses(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RS485.java           # N O#gnu/io/RS485$MonitorThreadjava/lang/Thread gnu/io/RS485 eventLoop   <*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア!2 ュ 」、・ヲァ"ィ'ゥ,ェ1ォ6ャ;ュ"# $*エ カ ア! ッー$' *エ ャ!(' *エ ャ!)' *エャ!*' *エャ!+' *エャ!,' *エャ!-' *エャ!.' *エャ!/' *エャ!0' *エャ!12 *Zオ ャ!32 *Zオ ャ!42 *Zオャ!52 *Zオャ!62 *Zオャ!72 *Zオャ!82 *Zオャ!92 *Zオャ!:2 *Zオャ!;2 *Zオャ!<=& J%PK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classハコセ.>   ! " # $ %& ' ( ) *+.this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTableread()I Exceptions/([B)I([BII)I available SourceFile RS485.java 0 1 23 45  657 89 :5  ;< =5gnu/io/RS485$RS485InputStreamRS485InputStream InnerClassesjava/io/InputStreamjava/io/IOException()V gnu/io/RS485 access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500java/lang/Mathmin(II)I access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 " *キ*+オアr-*エクW*エクャ t u! *++セカャy゙ *エクW66シ Y+セOY*エクOYO:.セ「 ァ.6セ「..ク6ァ*エクク66*カ 6*エ+ク 6ャ:} ~'=DLT`ft| *エク ャ-  ,PK 餤U4い]--$gnu/io/RS485$RS485OutputStream.classハコセ.*     "this$0Lgnu/io/RS485; Synthetic(Lgnu/io/RS485;)VCodeLineNumberTablewrite(I)V Exceptions#([B)V([BII)Vflush()V SourceFile RS485.java   $ %& '( ) gnu/io/RS485$RS485OutputStreamRS485OutputStream InnerClassesjava/io/OutputStreamjava/io/IOException gnu/io/RS485 access$1000(Lgnu/io/RS485;I)V access$1100(Lgnu/io/RS485;[BII)V access$1200     " *キ*+オアb % *エクア de ( *エ++セクア g h ' *エ+クア j k $*エクア mn!  PK 餤U4播>メ//gnu/io/RS485.classハコセ.^ Yン Y゙ Y゚ Y Y Y Y Y Y Z Y  Y Y Y Y Y Y Y Y Y Y Y Y   Y Y   Y Y Y Y B B B B B B B B B B  6 6 6 6 < Y  @ B B B B! B" B# B$ B% B& B' B( B) B* Y+ Y, Y- Z. Y./ 0 Y1 Y234 MonitorThread InnerClassesRS485InputStreamRS485OutputStreamfdIdsrFlagZout Lgnu/io/RS485$RS485OutputStream;inLgnu/io/RS485$RS485InputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListenerLgnu/io/RS485PortEventListener; monThreadLgnu/io/RS485$MonitorThread; dataAvailable Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptions5open(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;setRS485PortParams(IIII)VnativeSetRS485PortParams getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte writeArray([BII)VdrainnativeavailablereadByte readArray([BII)I eventLoop sendEvent(IZ)VaddEventListener"(Lgnu/io/RS485PortEventListener;)VremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalize access$1000(Lgnu/io/RS485;I)V Synthetic access$1100(Lgnu/io/RS485;[BII)V access$1200(Lgnu/io/RS485;)V access$1302(Lgnu/io/RS485;I)I access$1400(Lgnu/io/RS485;)I access$1500 access$1600 access$1700(Lgnu/io/RS485;[BII)I access$1800 SourceFile RS485.java ウ オカ m` n` エ t` イv ーア ッ wvgnu/io/RS485$RS485OutputStream wミ cdgnu/io/RS485$RS485InputStream ef g` h` i` j` k` l` o` }~ _` java/io/IOException 6v(gnu/io/UnsupportedCommOperationException Not supported wx 7 c8Invalid timeout9 :x Invalid Threshold rs ;< =< >< ?< @< A< B< C< D< E< F8java/lang/StringBufferunknown event: GH GI JKgnu/io/RS485PortEvent wL pqM NO#java/util/TooManyListenersExceptiongnu/io/RS485$MonitorThread Pv Qv RS TS US VS WS XS YS ZS [S \S ・ヲ ィヲ ヌv ネv rxtxRS485 ]x uv ab gnu/io/RS485gnu/io/RS485Portgnu/io/PortInUseExceptionprintStackTracejava/lang/SystemLjava/io/PrintStream;java/io/PrintStreamprintln access$000(Lgnu/io/RS485$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900errappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toString()Ljava/lang/String;(Lgnu/io/RS485Port;IZZ)Vgnu/io/RS485PortEventListener RS485Event(Lgnu/io/RS485PortEvent;)Vstart interrupt access$002 (Lgnu/io/RS485$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary0YZ_`abcdefg`h`i`j`k`l`m`n`o`pqrst`L uvwxyォ[*キ *サ Y*キ オ *サY*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオアz>0=BX#\)`.d3i8=。BソGタLQ1Z2{|}~{|y*エ ーz>y*エーzCyK*キ*オ*オ*オ*オアzL MNOPQ{{y*エャzYy*エャz]y*エャzay*エャzeyL*カァ M,カア*オアzkol m npqy*エャzr{y" サYキ ソz{vyアzyャzyャzvy"*カ!アz yJ"*オ**エ*エカ"ァ イ#$カ%アz !y*カ&ャzy*カ'ャzyM%*オ**エ*エ*エカ"ァ イ#(カ%アz、ヲ ァォ$ュvy"*カ)アz ッーy*エャzイy% *エァャzオy"*オアz テト。y*エャzヌ「y"*オアz ヒフ」y*エャzマ、・ヲァヲィヲゥェォャュョッ{ーア{イv{ウ{エ{オカ{キvクケy ェネ 7JXftャコ*オ*エ*ク+ァ愕*エ*ク,ァ竺*エ*ク-ァア*エ*ク.ァrア*エ*ク/ァdア*エ*ク0ァVア*エ*ク1ァHア*エ*ク2ァ:ア*エ*ク3ァ,ア*エ*ク4ァアイ5サ6Yキ78カ9カ:カ;カ%アサニ *エ>-ケ?アzn8=JKXYfgtu ャ!ュ#コ$サ&ネ'ノ)*,-.コサyP(*エ>ニ サ@YキAソ*+オ>*サBY*キCオ**エ*カDアz456 7'8{@シvyA*オ>*エ*ニ*エ*カE*オ*アz;< =>@スヲy" *エ*クFWアzBセヲy" *エ*クGWアzDソヲy" *エ*クHWアzFタヲy" *エ*クIWアzGチヲy" *エ*クJWアzHツヲy" *エ*クKWアzIテヲy" *エ*クLWアzJトヲy" *エ*クMWアzKナヲy" *エ*クNWアzLニヲy" *エ*クOWアzMヌvネvyD*カP*キQ*キR*キS*オアzST UVWXノvy( *エ*カTアz ] ^ハヒy*キ アz{フヘホy *+キアz{フマミy*キアz{フムメy*Zオャzフモヤy*キャz{フユヤy*エャzフヨヤy*エャzフラリy *+キャz{フルヤy*キャz{フレvy- UクVクWウXアz#$:ロワ\BY[Y] Y^PK 餤U4コ1茉gnu/io/RS485Port.classハコセ.P KLM DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_1_5 STOPBITS_2FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetRS485PortParams(IIII)V ExceptionsN getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener"(Lgnu/io/RS485PortEventListener;)VOremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt SourceFileRS485Port.java !gnu/io/RS485Portgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersException        !"*キア#"$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJPK 餤U4Tユ蚩ognu/io/RS485PortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/RS485Port;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileRS485PortEvent.java !2   gnu/io/RS485PortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$34 567%&#*エャ$:'(#*エャ$>)(#*エャ$B*+PK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classハコセ.    RS485Event(Lgnu/io/RS485PortEvent;)V SourceFileRS485PortEventListener.javagnu/io/RS485PortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classハコセ. ミ マ    マ        マ     マ   マ  マ マ マ マ  $ $ $!"#$% *& - -' ( -) *+ ,- ,. - /01234 マ56789:;<=>? @ABC I IDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~。「」、・ヲァィゥェォャュョッーアイ マウエ シオ セカ キ クケコ サ シス シセソ マセタチツテトナニヌネdebugZ ConstantValuedeveldeviceDirectoryLjava/lang/String;osName()VCodeLineNumberTableregisterKnownPorts(I)ZisPortPrefixValid(Ljava/lang/String;)ZtestRead(Ljava/lang/String;I)ZgetDeviceDirectory()Ljava/lang/String;nativeGetVersiongetValidPortPrefixes(([Ljava/lang/String;)[Ljava/lang/String; checkSolaris(Ljava/lang/String;I)VregisterValidPorts*([Ljava/lang/String;[Ljava/lang/String;I)V initializeaddSpecifiedPortsregisterSpecifiedPortsregisterScannedPorts(I)V getCommPort&(Ljava/lang/String;I)Lgnu/io/CommPort;Report(Ljava/lang/String;)V SourceFileRXTXCommDriver.java ロワjava/lang/String ロノ ハヒ ロフ ヘホ マ ミム メモ ヤユ ヨ ラ リル レロ レルwindows ワンjava/lang/StringBuffer リル ゙゚ SolarisSunOS os.name ホ ゚ path.separator: java/util/StringTokenizer ロ   java.ext.dirsfile.separatorjava/io/FileInputStreamgnu.io.rxtx.propertiesjava/util/Properties       java/lang/Exceptiongnu.io.rxtx.SerialPortsgnu.io.SerialPortsgnu.io.rxtx.ParallelPortsgnu.io.ParallelPorts  Windows CECOM1:COM2:COM3:COM4:COM5:COM6:COM7:COM8:COM ゙LPT java/io/File /dev/term term/LinuxttySttySAttyUSBLinux-all-portscomxholtermodemrfcomm ttyircomm ttycosa0c ttycosa1cttyCttyCHttyDttyEttyFttyHttyIttyLttyMttyMXttyPttyRttySIttySRttyTttyVttyWttyXqnxserIrixttycttydttyfttymttyqtty4dtty4fmidiusFreeBSDcuaattyAcuaAcuaDcuaEcuaFcuaRstlNetBSDtty0cua/HP-UXtty0ptty1pUnixWareOpenUNIXtty00stty01stty02stty03s OpenServertty1Atty2Atty3Atty4Atty5Atty6Atty7Atty8Atty9Atty10Atty11Atty12Atty13Atty14Atty15Atty16Attyu1Attyu2Attyu3Attyu4Attyu5Attyu6Attyu7Attyu8Attyu9Attyu10Attyu11Attyu12Attyu13Attyu14Attyu15Attyu16ACompaq's Digital UNIXOSF1BeOSserialMac OS Xcu.KeyUSA28X191.tty.KeyUSA28X191.cu.KeyUSA28X181.tty.KeyUSA28X181.cu.KeyUSA19181.tty.KeyUSA19181.lplpt gnu/io/RXTXPortgnu/io/LPRPortgnu/io/PortInUseException   rxtxSerial   java/lang/ErrorStable Library)=========================================Native lib Version = Java lib Version = /WARNING: RXTX Version mismatch Jar version =  native lib Version = gnu/io/RXTXCommDriverjava/lang/Objectgnu/io/CommDriverjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V([C)Vconcat&(Ljava/lang/String;)Ljava/lang/String;gnu/io/CommPortIdentifier addPortName)(Ljava/lang/String;ILgnu/io/CommDriver;)Vlength()I substring(I)Ljava/lang/String; toUpperCase toLowerCase regionMatches(ILjava/lang/String;II)Zequals(Ljava/lang/Object;)ZindexOf(Ljava/lang/String;)Iappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString getProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'(Ljava/lang/String;Ljava/lang/String;)VhasMoreElements()Z nextTokenload(Ljava/io/InputStream;)V setProperties(Ljava/util/Properties;)VkeySet()Ljava/util/Set; java/util/Setiterator()Ljava/util/Iterator;java/util/IteratorhasNextnext()Ljava/lang/Object; setProperty(I)Ljava/lang/StringBuffer;list()[Ljava/lang/String;outLjava/io/PrintStream;java/io/PrintStreamprintln loadLibrarygnu/io/RXTXVersion getVersion!マミムメモヤユヨモヤラリルレルロワン*キア゙$゚ ンQスM+ヌ>6+セ「%*+2キ,サY+2キSァレス:,ク,2ヌー゙. lo t uv"w3u9{?|H}NンsGシY[UN-aU-4{「3*+サY-キカキ+サY-キカ*ク -\4`旦ァヒア゙ *;Fァンb 66+ニ,ニ6+セ「ワ6,セ「フ,2:カ 6+2:カ 「ァヲカ カ : カ カ : カ  カァs*エカ カ%サYサYキ*エカカカキ: ァサYキ: *エカ*エカ * キァ* キ  *ク ァ3ァ#ア゙^ュョノヒフ"ワ(ン/゙5゚BNZruァイハヤ゙フヒ ワンh4*クオ**キオ<」*キ*キ*キ ァ羈゙"- .45 6(7-43;ンg7!"ク#Nサ$Y+-キ%:カ&カ':*キ*ク ァ牾゙?@DF"H,I6Lン@ヤMサYキ(クカ)クカカNサ*YサYキ-カ+カカキ,:サ-Yキ.:カ/ク0カ1ケ2:ケ3ケ4タ:カ5ク6WァンァNォA.8クYMヌ9クMァ:クYMヌ ;クMァ,ニ *,キ<ャャ7゙Rafg9hBiIjNkdlpmto{}ェ~ウスニハミメン*エ=カ8スY>SY?SY@SYASYBSYCSYDSYESN-Mァ*エカ カsスN6」*-dサYサYキFカカGカキSァヤ6」,-`サYサYキHカカGカキSァヤ-Mァ*エカ*エカVスN6:サIYJキK:カLセ-サYMキSス:-2SァMァサIY*エキKN-カL:M,ヌアスNォ@ル*エNカスYOSYPSYQS:Nァ*エRカャスYSSYTSYUSYVSYWSYXSYYSYZSY[SY \SY ]SY ^SY _SY `SYaSYbSYcSYdSYeSYOSYfSYgSYhSYQSYiSYjSYkS:NァK*エカ lカスYmS:Nァ**エnカ@ スYoSYpSYqSYrSYsSYtSYuSYvSYwS:Nァ*エxカX スYpSYySYzSY{SY\SY|SY]SY}SY^SY ~SY eSY SY S:Nァ*エカスY4:Nァc*エカ*エカスYMSYゴ:Nァ5*エ┯スYSYS:Nァ*エカ*エ宛#スY唄Y慨Y鬼Y郡:Nァロ*エ左ハ スY惨Y輯Y心Y全Y担Y鉄Y粘Y百Y亡Y 祐Y 牢Y 儡Y 售Y 婀Y彜Y抓Y朶Y欖YSY。SY「SY」SY、SY・SYヲSYァSYィSYゥSYェSYォSYャSYュS:Nァ*エョカ*エッカスY4:Nァ゚*エーカスYアS:Nァツ*エイカ.スYウSYエSYオSYカSYキSYクS:Nァ*エカ カ{スYFS:Nァj*エNカスYケS:NァM*エxカスYコS:Nァ0*エカ カスYHS:Nァス:Nァ*,-キサア゙^W <A「Q、X・cァ・ゥォカゥシュチッルヤ゙ユヨリルレ &,8>AEFKht >4D6T8_;e=q?ィJョLコN ]_a&d,fDiTmZofqvu|x{ョエタィェャェッーイシエヌキヘケルサノヒヘム%1<BNY_oz  ンュaォZQ*エカ カ サシY+キスーサシYサYキ*エカ+カカキスーサセY+キソーァNー4^タ5Q^タRZ^ダ" ,#5'R*[3^/_4ン$イチ+カツア゙ :;ワンメテクトクナKクニLァMクネLイチノカツイチハカツイチサYキヒカ+カカカツイチサYキフカ*カカカツ*+カ%イチサYキヘカ*カホカ+カカカツア ヌ゙6 -9 < A=@DE%F>GWJ_LRPK 餤U4ムb=pレレ#gnu/io/RXTXPort$MonitorThread.classハコセ.W B C D E F G H I J K L M NO NPQRCTSZDSRRICDOEPEFEBIDataOutputthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablerun()Vfinalize ExceptionsS access$000 MonitorThread InnerClasses"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900 access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 SourceFile RXTXPort.java           $ T U V$gnu/io/RXTXPort$MonitorThreadjava/lang/Threadjava/lang/Throwablegnu/io/RXTXPortmonThreadisInterrupted eventLoop  BBBBBBBBBB !<*キ *+オ *オ*オ*オ*オ*オ*オ*オ*オ*オ *オ ア"2  "',16;#$!0*エ オ *エ カア"&'*%$!ア"/&'(+!*エ ャ" ,+!*エ ャ" -+!*エャ" .+!*エャ" /+!*エャ" 0+!*エャ" 1+!*エャ" 2+!*エャ" 3+!*エャ" 4+!*エャ" 56!*Zオ ャ" 76!*Zオ ャ" 86!*Zオャ" 96!*Zオャ" :6!*Zオャ" ;6!*Zオャ" <6!*Zオャ" =6!*Zオャ" >6!*Zオャ" ?6!*Zオャ" @A* N)PK 餤U44 'gnu/io/RXTXPort$SerialInputStream.classハコセ._ , - ./0 , .1 .23 45 .6 .7 .8 9:;< ,=> , .? .@ AB .C .DEHthis$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTableread()I Exceptions([B)I([BII)I ([BII[B)I available SourceFile RXTXPort.java I J KLjava/io/IOException MN OP'+++++++++ read() monThreadisInterruptedQ RS TU VI W$ #'+++++++ IOException() +++++++ NullPointerException() java/lang/NullPointerException$+++++++ IndexOutOfBoundsException() #java/lang/IndexOutOfBoundsException XL Y$Z [\ ]' ^(!gnu/io/RXTXPort$SerialInputStreamSerialInputStream InnerClassesjava/io/InputStream()Vgnu/io/RXTXPort access$1100(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZ access$1200()Lgnu/io/Zystem; gnu/io/Zystemreportln(Ljava/lang/String;)ZIOLockedIwaitForTheNativeCodeSillyreadByte access$1300nativeavailablejava/lang/Mathmin(II)I readArrayreadTerminatedArray  !" *キ*+オア"タ!#$!ヲb*エク サYキソ*エエ クカ W*エYエ `オ *エカ *エカ <=*エYエ dオ ャN*エYエ dオ -ソ9CRRSR""ユヨリ%レ2ン9AC%!#&!M*エエャ*エYエ `オ *エカ *++セカ =>*エYエ dオ ャ:*エYエ dオ ソ!,;;=;"  !* ,%!#'!n*エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウトヤヤヨヤ"f. 2368(;0>@@ICQIUMWRZTd]m^r_xajlprャsウvタyト}%!#(!p *エククカ WサYキソ+ヌクカ WサYキソ `+セ、クカ WサYキソャ6*エク#*エカ6 6ァク6ァ*エクク6*エエャ*エYエ `オ *エカ *エ+カ66*エYエ dオ ャ:*エYエ dオ ソウニヨヨリヨ"f 」・(ィ0ォ@ュIーQカUコWソZチdハmヒrフxホラルン゚ャウツニ%!)$!C*エエャ*エYエ `オ *エカ<=*エYエ dオ ャN*エYエ dオ -ソ$3343"  "$%*+G .FPK 餤U4。t5(gnu/io/RXTXPort$SerialOutputStream.classハコセ.O $ % &' &( &) &* &+, $ &- &./0 1 23 &4 &569this$0Lgnu/io/RXTXPort; Synthetic(Lgnu/io/RXTXPort;)VCodeLineNumberTablewrite(I)V Exceptions([B)V([BII)Vflush()V SourceFile RXTXPort.java ! : ;< => ?@ A! B<java/io/IOException CD EF#java/lang/IndexOutOfBoundsException$Invalid offset/length passed to read GH IJ KL MN"gnu/io/RXTXPort$SerialOutputStreamSerialOutputStream InnerClassesjava/io/OutputStreamgnu/io/RXTXPort access$1000(Lgnu/io/RXTXPort;)ImonThreadisInterruptedZIOLockedIwaitForTheNativeCodeSilly access$1100 writeByte(IZ)V writeArray([BIIZ)V(Ljava/lang/String;)Vjava/lang/System arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)V nativeDrain(Z)Z sendEvent(IZ)Z " *キ*+オア-メz*エクア*エエア*エYエ`オ*エカ*エク*エYエdオサYキ ソ*エ*エエカ ァM*エYエdオ,ソ*エYエdオアJY\>7 8:<$=+>5@BAJEYM\I]KjLlNyOタp*エクア*エエア*エク サYキ ソ*エYエ`オ*エカ*エ++セ*エエカ ァM*エYエdオ,ソ*エYエdオア=OR6 Z []_)`6a=dOlRhSj`kbmoo*エクア`+セ、 サ Y キソシ:+ク*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ ァ:*エYエdオソ*エYエdオア]orFy z|"+=HIV]ort !ヘy*エクア*エク サYキ ソ*エエア*エYエ`オ*エカ*エ*エエカ *エカWァL*エYエdオ+ソ*エYエdオア=X[:。 「」(ァ)ゥ6ェ=アNイXコ[カ\クiケkサxシ"#8 &7PK 餤U4K批55gnu/io/RXTXPort.classハコセ.' n o p q r s t u vw x yz x { | } ~         x      " %r % % %   /  3  。 「」 、 ・ ヲ ァ ィ ゥ ェ ォ ャ ュ ョ ッーア イウエ Iオ カキク Lrケ コ サ シス T セソタ チ ツ テ ト ナ ニ ヌ ネ ノ ハ ヒフ ヘ ホ マ ミ ム ム メ モ ヤ ユ ヨ ラ リ ル レ ロ ワ ン ゙ ゚                 r ッ   MonitorThread InnerClassesSerialInputStreamSerialOutputStreamdebugZ ConstantValue debug_readdebug_read_results debug_write debug_events debug_verbosezLgnu/io/Zystem;MonitorThreadAliveIOLockedIfdeisJpiddsrFlagout$Lgnu/io/RXTXPort$SerialOutputStream;in#Lgnu/io/RXTXPort$SerialInputStream;speeddataBitsstopBitsparityflowmodetimeout threshold InputBuffer OutputBufferSPEventListener Lgnu/io/SerialPortEventListener; monThreadLgnu/io/RXTXPort$MonitorThread;monThreadisInterruptedMonitorThreadLock closeLock Initialize()V(Ljava/lang/String;)VCodeLineNumberTable Exceptionsopen(Ljava/lang/String;)IgetOutputStream()Ljava/io/OutputStream;getInputStream()Ljava/io/InputStream;nativeGetParity(I)InativeGetFlowControlModesetSerialPortParams(IIII)VnativeSetSerialPortParams(IIII)Z getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModesetflowcontrolenableReceiveFramingdisableReceiveFramingisReceiveFramingEnabled()ZgetReceiveFramingByteNativegetReceiveTimeoutNativeisReceiveTimeoutEnabled#NativeEnableReceiveTimeoutThreshold(III)VdisableReceiveTimeoutenableReceiveTimeoutisReceiveTimeoutEnabledgetReceiveTimeoutenableReceiveThresholddisableReceiveThresholdgetReceiveThresholdisReceiveThresholdEnabledsetInputBufferSizegetInputBufferSizesetOutputBufferSizegetOutputBufferSizeisDTRsetDTR(Z)VsetRTSsetDSRisCTSisDSRisCDisRIisRTS sendBreak writeByte(IZ)V writeArray([BIIZ)V nativeDrain(Z)ZnativeavailablereadByte readArray([BII)IreadTerminatedArray ([BII[B)I eventLoopinterruptEventLoopcheckMonitorThread sendEvent(IZ)ZaddEventListener#(Lgnu/io/SerialPortEventListener;)VremoveEventListenerwaitForTheNativeCodeSillynativeSetEventFlag(IIZ)VnotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterrupt nativeCloseclosefinalizesetRcvFifoTrigger DeprecatednativeStaticSetSerialPortParams(Ljava/lang/String;IIII)VnativeStaticSetDSR(Ljava/lang/String;Z)ZnativeStaticSetDTRnativeStaticSetRTSnativeStaticIsDSR(Ljava/lang/String;)ZnativeStaticIsDTRnativeStaticIsRTSnativeStaticIsCTSnativeStaticIsCDnativeStaticIsRInativeStaticGetBaudRatenativeStaticGetDataBitsnativeStaticGetParitynativeStaticGetStopBitsnativeGetParityErrorChar()BnativeSetParityErrorChar(B)ZnativeGetEndOfInputCharnativeSetEndOfInputCharnativeSetUartTypenativeGetUartType()Ljava/lang/String;nativeSetBaudBase(I)ZnativeGetBaudBasenativeSetDivisornativeGetDivisornativeSetLowLatencynativeGetLowLatencynativeSetCallOutHangupnativeGetCallOutHangupnativeClearCommInputstaticGetBaudRatestaticGetDataBitsstaticGetParitystaticGetStopBitsstaticSetSerialPortParams staticSetDSR staticSetDTR staticSetRTS staticIsRTS staticIsCD staticIsCTS staticIsDSR staticIsDTR staticIsRIgetParityErrorCharsetParityErrorChargetEndOfInputCharsetEndOfInputChar setUARTType getUARTType setBaudBase getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangupgetCallOutHangupclearCommInput access$1000(Lgnu/io/RXTXPort;)I Synthetic access$1100 access$1200()Lgnu/io/Zystem; access$1300 SourceFile RXTXPort.java オ・ 。「 ヲ・ ッ・ チタ 」 、・ ァィ ゥ・"gnu/io/RXTXPort$SerialOutputStream チ ォャ!gnu/io/RXTXPort$SerialInputStream ュョ ー・ ア・ イ・ ウ・ カ・ キ・ シ ス セ ヌネ gnu/io/RXTXPort$MonitorThread コサ タ タ エ・ メモ(gnu/io/UnsupportedCommOperationExceptionInvalid Parameter チツjava/lang/StringBufferRXTXPort:setSerialPortParams(    ) returning < * ワレjava/io/IOException タ Not supported "java/lang/IllegalArgumentException!Unexpected negative timeout value ユ#Unexpected negative threshold value レ%Unexpected negative buffer size value クケ               unknown event:  ツgnu/io/SerialPortEvent チ #java/util/TooManyListenersException3 RXTXPort:removeEventListener() already interrupted   タ java/lang/Exception (RXTXPort:removeEventListener() returning        ! " # $ %+RXTXPort:close detected bad File Descriptor タ ツ タ  タ 0ネ 1ネ 2ネ 3ネ #$ %& '& (& ,* .* -* )* +* /* 45 67 85 97 :& ;< => ?ユ @> Aユ B C D E F gnu/io/Zystem rxtxSerial &ツ ソタ ェgnu/io/RXTXPortgnu/io/SerialPortgnu/io/PortInUseException(Lgnu/io/RXTXPort;)VnameLjava/lang/String;startappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;toStringreportlnprintStackTrace access$000"(Lgnu/io/RXTXPort$MonitorThread;)Z access$100 access$200 access$300 access$400 access$500 access$600 access$700 access$800 access$900java/lang/SystemerrLjava/io/PrintStream;java/io/PrintStreamprintln(Lgnu/io/SerialPort;IZZ)Vgnu/io/SerialPortEventListener serialEvent(Lgnu/io/SerialPortEvent;)VisAlivejoin(J)Vjava/lang/Threadsleep access$002#(Lgnu/io/RXTXPort$MonitorThread;Z)Z access$102 access$202 access$302 access$402 access$502 access$602 access$702 access$802 access$902 loadLibrary1 。「」、・ヲ・ァィゥ・ェォャュョッ・ー・ア・イ・ウ・エ・オ・カ・キ・クケコサシスセ ソタチツテ(、*キ*オ*オ*オ* オ*オ *サ Y*キ オ *サ Y*キオ*%オ*オ*オ*オ*オ*オ*オ*オ*オ*オ*オ**+キオ*+オ*オ*サY*キオ*エカ*カ*オ*オ アトrE< gjrtz)5チ<ホBレGLQVノ[ハ`IejoTxU}WXYZ[]」aナニ"ヌネナニノハテ*エ ートヒフテ*エートヘホマホ!ミムテャt*キ! サ"Y#キ$ソ*オ *オァ*オ*オ*オイサ%Yキ&'カ(カ)*カ(カ)*カ(カ)*カ(カ)+カ(カ,カ-Wアト& ェ ォュョ(ッ-ー2ア8イsオナ"メモナ"ヤユテ*エャトハヨユテ*エャトヨラユテ*エャトリユテ*エャトルレテ\*エア*カ.ァ M,カ0ア*オア /ト&     ロユテ*エャトワレナ/ンレテ" サ"Y1キ$ソト(ナ"゙タテアト0゚テャト8ユテャトAユタテ6*オ **エ *エ*エキ2アト]^aレテL$*オ **エ*エキ2ァ サ3Y4キ5ソアトik lq#xテ*キ6ャトユテ*カ7ャトレテO'*オ**エ *エ*エキ2ァ サ3Y8キ5ソアト &ヲタテ"*カ9アト ュョユテ*エャトカテ% *エァャトソレテ8 サ3Y:キ5ソ*オアトモヤリワユテ*エャトレテ8 サ3Y:キ5ソ*オアトユテ*エャトレナ/ナ/ナ/ユナ/ユナ/ナ/ナ/ タ タ テ.*エニ*エャャトOU Y  テ`*エ*エ;ニ *エヌャェV 8;>ADGJMPSァァァァァァァ ァ ァァェヒ 5DSbqュシ*エク<ァァャ*エク=ァャ*エク>ァャ*エク?ァzャ*エク@ァkャ*エクAァ\ャ*エクBァMャ*エクCァ>ャ*エクDァ/ャ*エクEァ ャイFサ%Yキ&Gカ(カ)カ,カHャサIY*ァキJN*エャ*エ;ニ *エ;-ケK*エ*エ;ニ *エヌャャトイ,gilPrSxV}Y\_behknェ、ュアョウータアツウマエムガキケコシスソ タ ツテナ)ニ+ネ8ノ:ヒSフUミiヤpリrレyワテy=*エ;ニ サLYキMソ*+オ;*エ$*オ*サY*キオ*エカ*カ*オアト*  ,37< ナLタテ*カ*エイNカ-W*オ*オ;ア*エニI*エカO?*オ*キP*エQカSァL+カU*エカO*エQカSQクVァ覘ァ*オ*オ;*オ*オ*オイWカ-Wア:DGTVfiTトb  1!6):.D2G/H1L5V:`;f<mCrDwE|FGHIタテA*エXクVァLァア TトUX Y[テN"*カ*オ**エキZ*エク[W*オアトgi jlm!nテN"*カ*オ**エキZ*エク\W*オアトxy z|}!~テN"*カ*オ**エキZ*エク]W*オアト !テN"*カ*オ**エキZ*エク^W*オアト !テN"*カ*オ**エキZ*エク_W*オアト、・ ヲァィ!ゥテO#*カ*オ**エキZ*エク`W*オアトイウ エオカ"キテO#*カ*オ**エキZ*エクaW*オアトタチ ツテト"ナテO#*カ*オ**エキZ*エクbW*オアトホマ ミムメ"モテO#*カ*オ**エ キZ*エクcW*オアトワン ゙゚"テO#*カ*オ**エ キZ*エクdW*オアト "ツ!タテセ^*エア*オ*エeクVァLァ*エ イgカ-Wア*カh*キi*エ*カj**エキk*キl*オ*オアTトF !(12 7 < CGOSX] タテ6*エ*カmイカnアト#' )*!レテアト5" #$ナ" %&ナ" '&ナ" (&ナ" )*ナ" +*ナ" ,*ナ" -*ナ" .*ナ" /*ナ" 0ネナ" 1ネナ" 2ネナ" 3ネナ"45ナ"67ナ"85ナ"97ナ":&ナ";<ナ"=>ナ"?ユナ"@>ナ"Aユナ"Bナ"Cナ"Dナ"Eナ"Fナ" Gネテ*クoャトナ" Hネテ*クpャト。ナ" Iネテ*クqャトエナ" Jネテ*クrャトヌナ" K$テ& *クsアト  ナ" L&テ*クtャトナ" M&テ*クuャトナ" N&テ*クvャト(ナ" O*テ*クwャト=ナ" P*テ*クxャトQナ" Q*テ*クyャトeナ" R*テ*クzャトyナ" S*テ*ク{ャトナ" T*テ*ク|ャト。ナ"U5テ#*キ}<ャト オケナ"V7テ*キ~ャトフナ"W5テ#*キ<ャト ゚ナ"X7テ*キャトナ"Y&テ*+キ〓トナ"Z<テ*カげトナ"[>テ*キΞト&ナ"/\ユテ*キ┏ト4ナ"/]>テ*キャトCナ"/^ユテ*キャトQナ"/_テ*キャト^ナ"`テ*キ握トkナ"aテ*キ荻トyナ"bテ*キ堪トナ"cテ*キ峡トナ"deテ*エャトfgeテ*エャトfhiテイートfjeテ*エャトfkタテKサ刑キ叉ァK失昇ウ続 Tト1 267wlm PK 餤U4カ擢ンgnu/io/RXTXVersion.classハコセ.   VersionLjava/lang/String;()VCodeLineNumberTable getVersion()Ljava/lang/String;nativeGetVersion SourceFileRXTXVersion.java   rxtxSerial  RXTX-2.1-7gnu/io/RXTXVersionjava/lang/Objectjava/lang/System loadLibrary(Ljava/lang/String;)V!    *キア   イー 1   + クウア '( )PK 餤U4"ヒ空gnu/io/SerialPort.classハコセ.f `ab DATABITS_5I ConstantValue DATABITS_6 DATABITS_7 DATABITS_8 PARITY_NONE PARITY_ODD PARITY_EVEN PARITY_MARK PARITY_SPACE STOPBITS_1 STOPBITS_2 STOPBITS_1_5FLOWCONTROL_NONEFLOWCONTROL_RTSCTS_INFLOWCONTROL_RTSCTS_OUTFLOWCONTROL_XONXOFF_INFLOWCONTROL_XONXOFF_OUT()VCodeLineNumberTablesetSerialPortParams(IIII)V Exceptionsc getBaudRate()I getDataBits getStopBits getParitysetFlowControlMode(I)VgetFlowControlModeisDTR()ZsetDTR(Z)VsetRTSisCTSisDSRisCDisRIisRTS sendBreakaddEventListener#(Lgnu/io/SerialPortEventListener;)VdremoveEventListenernotifyOnDataAvailablenotifyOnOutputEmpty notifyOnCTS notifyOnDSRnotifyOnRingIndicatornotifyOnCarrierDetectnotifyOnOverrunErrornotifyOnParityErrornotifyOnFramingErrornotifyOnBreakInterruptgetParityErrorChar()BsetParityErrorChar(B)ZgetEndOfInputCharsetEndOfInputChar setUARTType(Ljava/lang/String;Z)Z getUARTType()Ljava/lang/String; setBaudBase(I)Ze getBaudBase setDivisor getDivisor setLowLatency getLowLatencysetCallOutHangup(Z)ZgetCallOutHangup SourceFileSerialPort.java !gnu/io/SerialPortgnu/io/CommPort(gnu/io/UnsupportedCommOperationException#java/util/TooManyListenersExceptionjava/io/IOException!      + !"*キア#$%&'()*)+),)-.&'/)0123435161718191:.;<&=>!?3@3A3B3C3D3E3F3G3H3IJ&'KL&'MJ&'NL&'OP&'QR&'ST&'UV)&'UWT&'UX)&'UY1&'Z1&'[\&']1&'^_PK 餤U4"qarrgnu/io/SerialPortEvent.classハコセ.3 , - . /01DATA_AVAILABLEI ConstantValueOUTPUT_BUFFER_EMPTYCTSDSRRICDOEPEFE BI OldValueZNewValue eventType(Lgnu/io/SerialPort;IZZ)VCodeLineNumberTable getEventType()I getNewValue()Z getOldValue SourceFileSerialPortEvent.java !2   gnu/io/SerialPortEventjava/util/EventObject(Ljava/lang/Object;)V!                !"#>*+キ*オ*オ*オア$01 234%&#*エャ$7'(#*エャ$;)(#*エャ$?*+PK 餤U4ンルル$gnu/io/SerialPortEventListener.classハコセ.    serialEvent(Lgnu/io/SerialPortEvent;)V SourceFileSerialPortEventListener.javagnu/io/SerialPortEventListenerjava/lang/Objectjava/util/EventListenerPK 餤U42L{ォPP.gnu/io/UnsupportedCommOperationException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFile&UnsupportedCommOperationException.java   (gnu/io/UnsupportedCommOperationExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4か゚BB'gnu/io/UnSupportedLoggerException.classハコセ.   ()VCodeLineNumberTable(Ljava/lang/String;)V SourceFileUnSupportedLoggerException.java   !gnu/io/UnSupportedLoggerExceptionjava/lang/Exception!!*キア %& "*+キア ./  PK 餤U4\キq q gnu/io/Zystem.classハコセ. +P *QR *ST UV, WX02468: YZ[\] ^ *_`a b c d e fg Uhi jk *lm no np jqrs &P &t &uvw SILENT_MODEI ConstantValue FILE_MODENET_MODEMEX_MODE PRINT_MODE J2EE_MSG_MODE J2SE_LOG_MODEmodetargetLjava/lang/String;(I)VCodeLineNumberTable Exceptions()V startLogger(Ljava/lang/String;)Vfinalize filewritereport(Ljava/lang/String;)Zreportln()Z SourceFile Zystem.java ?D <-asdf EFgnu.io.log.modex yz{ |}~ java/lang/NumberFormatException!gnu/io/UnSupportedLoggerExceptionTarget Not Allowed ?F =>java/io/RandomAccessFilerw ? F Djava/lang/Exception Debug output file write failed F HFgnu.io F D java/lang/StringBuffer  gnu/io/Zystemjava/lang/Objectjava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;java/lang/Stringequals(Ljava/lang/Object;)Zjava/lang/IntegerparseInt(Ljava/lang/String;)I'(Ljava/lang/String;Ljava/lang/String;)Vlength()Jseek(J)V writeBytescloseoutLjava/io/PrintStream;java/io/PrintStreamprintlnjava/util/logging/Logger getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;fineappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String;!*+ ,-./0-.12-.34-.56-.78-.9:-.;<- => ?@A3*キウ*カアB4567C?DA*キクL+ニ+カ ウァz +カ ウァj +カ ウァZ +カ ウァJ +カ ウァ: +カ ウァ*+カ ウァ+クウァMウァウ*カアBfEF GIKM'O.Q7S>UGWNYW[^]g_nawcinkmnsuvCEDA8イ イアサYキソB{ ~CEFA!+ウアB CGDA) ウウアB。HFAg+サYイキM,,カカ,+カ,カァ Mイカア!B"ヲ ィゥェュ!ォ"ャ*ョIJAアYイァPイ イ+カャイァ6イャイ *+カ ァイャイ!ク"+カ#ャャBFイウ カクケサ!シ$ソ*チ,テ3ナ;ヌBノDヒLヘUホWミKLAFイァ=イ イカ$ャイァ$イャイ *%カ ァ イャャB:ヨラ ロン゙ #)+2;BDKJAカbイァYイ イ+カャイァ?イャイ*サ&Yキ'+カ(%カ(カ)カ ァイャイャャBB !$*, 3 MTV^`MDA!ウアB ./NOPK 餤U4 META-INF/ハPK 餤U4RぃWFF+META-INF/MANIFEST.MFPK 餤U4」gnu/PK 餤U4ナgnu/io/PK 餤U4ウJニニgnu/io/CommDriver.classPK 餤U4G\yアアgnu/io/CommPort.classPK 餤U4Gウ22ノgnu/io/CommPortEnumerator.classPK 餤U4Vヌ イ、、8 gnu/io/CommPortIdentifier.classPK 餤U4ネサTT&gnu/io/CommPortOwnershipListener.classPK 餤U4⌒[サキキアgnu/io/Configure$1.classPK 餤U4@6+ウ"gnu/io/Configure$2.classPK 餤U4lu綬マ%gnu/io/Configure$3.classPK 餤U4羣ユ)gnu/io/Configure$4.classPK 餤U4W$ュュ,gnu/io/Configure.classPK 餤U4HGムhh<gnu/io/I2C$I2CInputStream.classPK 餤U4mリ 暸gnu/io/I2C$I2COutputStream.classPK 餤U4ノト&&Dgnu/io/I2C$MonitorThread.classPK 餤U4ホ9YMgnu/io/I2C.classPK 餤U43クtkgnu/io/I2CPort.classPK 餤U4|、ンii;rgnu/io/I2CPortEvent.classPK 餤U42レエヘヘ!ロugnu/io/I2CPortEventListener.classPK 餤U4m pp"轅gnu/io/LPRPort$MonitorThread.classPK 餤U4b:[(陽gnu/io/LPRPort$ParallelInputStream.classPK 餤U4} 腎t)d~gnu/io/LPRPort$ParallelOutputStream.classPK 餤U4pケョョgnu/io/LPRPort.classPK 餤U4チゥレX44 gnu/io/NoSuchPortException.classPK 餤U4ェテテqgnu/io/ParallelPort.classPK 餤U4Pン`|kgnu/io/ParallelPortEvent.classPK 餤U478」&Egnu/io/ParallelPortEventListener.classPK 餤U4咎Gqqj。gnu/io/PortInUseException.classPK 餤U4^狛&&」gnu/io/Raw$MonitorThread.classPK 餤U4ナサヤhhzォgnu/io/Raw$RawInputStream.classPK 餤U4ク聒 ーgnu/io/Raw$RawOutputStream.classPK 餤U4vウ蟋ァxウgnu/io/Raw.classPK 餤U4ア#ミbbMメgnu/io/RawPort.classPK 餤U41Fノii瞶gnu/io/RawPortEvent.classPK 餤U4訪Rヘヘ!∠gnu/io/RawPortEventListener.classPK 餤U4?D1,44 際gnu/io/RS485$MonitorThread.classPK 餤U4セヌ撞||#gnu/io/RS485$RS485InputStream.classPK 餤U4い]--$シgnu/io/RS485$RS485OutputStream.classPK 餤U4播>メ//+gnu/io/RS485.classPK 餤U4コ1茉 gnu/io/RS485Port.classPK 餤U4Tユ蚩o[gnu/io/RS485PortEvent.classPK 餤U4&,ユユ#gnu/io/RS485PortEventListener.classPK 餤U4 ズ懺gnu/io/RXTXCommDriver.classPK 餤U4ムb=pレレ#B6gnu/io/RXTXPort$MonitorThread.classPK 餤U44 ']?gnu/io/RXTXPort$SerialInputStream.classPK 餤U4。t5(0Ignu/io/RXTXPort$SerialOutputStream.classPK 餤U4K批55Pgnu/io/RXTXPort.classPK 餤U4カ擢ン gnu/io/RXTXVersion.classPK 餤U4"ヒ空Ngnu/io/SerialPort.classPK 餤U4"qarrvgnu/io/SerialPortEvent.classPK 餤U4ンルル$"gnu/io/SerialPortEventListener.classPK 餤U42L{ォPP.=gnu/io/UnsupportedCommOperationException.classPK 餤U4か゚BB'ルgnu/io/UnSupportedLoggerException.classPK 餤U4\キq q `gnu/io/Zystem.classPK88!ヲPK ht4&gnu/io/installer/resources/macosx/lib/PK ht4 、ケ&&7gnu/io/installer/resources/macosx/lib/libAuthKit.jnilibホ タ__TEXT__text__TEXT(シ(__picsymbol_stub__TEXT  $__DATA__data__DATA__dyld__DATA__la_symbol_ptr__DATA < 8__LINKEDIT   X>]%1/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM \>ムユ6/System/Library/Frameworks/Security.framework/Versions/A/Security 4=ス?/usr/lib/libSystem.B.dylib !" P "  ー((|ヲB}ヲ|ヲ}cx=′ ヤ}ヲ| x=′ ミN |ヲB}hヲ|ヲ=k〔 ィ}iヲN |ヲソ8!|}x|シ+x8`88チ@H ュ|~yA 8@=」x繆8@♂ミ88タ}ヲN!h8!`テx|ヲサN |」+y|ト3xA「H ,<``c朦 セチリ|ヲ|ク+y<!`|ヨ3x|;x}Cx}7Kx|~x`暸「#|;x8。@♂(}ヲN!8||yA>テx$ヒx;`♂0}ヲN!|}y@L>テx$ヒx8♂d}ヲN!|{y@「(>テxDモx繆♂,}ヲN!8H8藤T`~ニウx8P8`88dテx低\刀P殿XH>|}xDモx繆♂,テx}ヲN!,A$>テx$ヒxeロx♂8タ}ヲN!x|xィ8!|ヲコチリN |ヲソ。|}x!ー|~x~;゙,A HMKX」x8!P|ヲサ。H0|ヲセチリ|#x!酢|x#♂0}ヲN!8|yx8cHユ8|zyAHCモxKm8Hリ;|ネ@ネ[モx<テx~トウx繆♂8}ヲN!<|}x繆♂$、x}ヲN!|wx8cH=,須|~x;{A「戟<、x繆;♂}ヲN!8<|fxヌx、x♂繆}ヲN!繆<8|ケョ、x♂烋ヲN!|ネAD@モx|xx8!p|ヲコチリN |ヲソ熕|サ+y!8|ル3x|;xD}Cx<}8Kx|}x`暸「焉#|;x8。@♂(}ヲN!8|~yAシ繆」xKU||y@「(=」xDモxナx♂,}ヲN!8H繆8D%ヒxcロxトxHムDモx=|{xナx」x♂,}ヲN!繆K。,@「8‖D」x=テxィ 88タ8HHL♂ミ}ヲN!`ロx|xx8!p|ヲサ潘 ソ|ヲ|ス+y<!酢ワ3x|~x`暸「t#|ト3x♂0}ヲN!<(`廖。P」x8@Hユ|}y@「(>テx繆8♂ト8タ 8@}ヲN!8a@88 Hux|xx8!p|ヲサN |ヲソ|、+x!|~x|ス+x|ワ3x#♂0}ヲN!<, `廖「t>、xテx8♂、8タ 8@}ヲN!8a@8`Hナ|}y@「(>テx繆8♂ミ8タ8`}ヲN!8a@88 Hュx|x8!|ヲサN |ヲソ|、+x!8||x|ン3x8a@@H|~y@「(<繆、x8♂ミ8タ8@}ヲN!hテx8!`|ヲサN |ヲソ!苣|ト3x!|ケ+x}Cx8#||x|レ3x|;x♂d}ヲN!8黥}yA`H8ナx|旡#ヒxHI・x<|~x8タDモx♂繆}ヲN!,@H=|ミHタx|xh8!`|ヲサ!膀 |ヲソ!苣|ト3x!|ケ+x|;x8#||x|レ3x}Cx♂d}ヲN!8黥}yA`Hノ8|暈eロx#ヒxHi・x<|~x8タDモx♂繆}ヲN!|リAH÷|ミHタx|xh8!`|ヲサ!膀 ソチ|ヲ|セ+y!ー8`A0H98テxHス,A「HcH8`X8!Pサチ|ヲN |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N |ヲB}hヲ=k|ヲ°@}ヲ9k@N |ヲB}hヲ=k|ヲ° }ヲ9k N |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°烋ヲ9k潘 |ヲB}hヲ=k|ヲ°タ}ヲ9kタN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°}ヲ9kN |ヲB}hヲ=k|ヲ°`}ヲ9k`N (((((((((((((((@4@0@,@(@$@ @@@@@ @D@@@<@8@ウリX(lエ0 / b フC ( リヌ  Ox マ4Mbォセンヲャ  __dyld_func_lookupdyld_stub_binding_helper__mh_bundle_header_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_externalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalize_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_internalizePriv_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_killSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_makeSession_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_request_Java_glguerin_authkit_imp_macosx_MacOSXAuthorization_rootExec_AuthorizationCopyPrivilegedReference_AuthorizationCopyRights_AuthorizationCreate_AuthorizationCreateFromExternalForm_AuthorizationExecuteWithPrivileges_AuthorizationFree_AuthorizationMakeExternalForm_calloc_free_malloc_memset_Java_glguerin_authkit_imp_macosx_AuthProcess_close_Java_glguerin_authkit_imp_macosx_AuthProcess_read_Java_glguerin_authkit_imp_macosx_AuthProcess_write___error_close_read_writedyld_lazy_symbol_binding_entry_pointdyld__mh_bundle_headerdyld_func_lookup_pointer_freeArgs_getArgsPK ht4リа@  :gnu/io/installer/resources/macosx/lib/librxtxSerial.jnilibハコセ● [ ホ L契_TEXTタタ__text__TEXTh<h__picsymbol_stub__TEXT洟洟$__picsymbolstub1__TEXT淆淆 __cstring__TEXTァ@ァ@__literal8__TEXTソソX__DATAタタ__data__DATAタタ__dyld__DATAタタ__nl_symbol_ptr__DATAタ0タ<__la_symbol_ptr__DATAタHタHH__cfstring__DATAチ8 チ8__const__DATAチXDチX__bss__DATAチ`__common__DATAテ 8__LINKEDITミタミア <C4-/usr/local/lib/librxtxSerial.jnilib hCケヒSp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation TCケヒS/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit XCケヒS/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 4CF-)/usr/lib/libgcc_s.1.dylib 4CケヒSX/usr/lib/libSystem.B.dylibメp蜚 P>>zク? z會$ケミN?|ヲB}ヲ|ヲ}cx=′ア}ヲ| x=′ア侵 }議xKフ|ヲB}hヲ|ヲ=k〔アl}iヲN |ヲ乍!Bヲ<8c詫88Kス=8/A<cアD}ヲN!8!`|ヲN |ヲB}ヲ=|ヲ9}ヲN `````|ヲソ。!`|> xBヲ|}x裾シ誓タ窃トト8^89 L|Cx|x}%KxH鵬シヤ^シB"^タ~シ|x},Kx}ヲN!|`xワタリ^タ~シ|x<_8「 <_8ツHwヘ|`x8^シB"ワ~シ|x<_8「<_8ツ },Kx}ヲN!|`xx8^89 L|x|Dx}%KxH附」x!|ヲサ。N `````|ヲソチ!酢> x厨裾8`88セ8H酋8/@88P8D8LPH8D8`|x8H!|ヲサチN `````|ヲソチ!|> xBヲ厨x<_Bッ88/@8HH8|xxH5|`x/@リ^8(<^80/AP^8,/A@^8"0^8, ,^8",^80 0~8H赦<HH^80/A^8B08,Kフ^8,/A^8B,80Kィ~8H子<_Bッ8<HH,^8,/A^8,8K8HH|x!|ヲサチN `````|ヲソチ!|> x厨/Aミ~88H痕|`x/Aク888D8<8`@8X8Y8~88%H挫|`x/Al8~88%H馴|`x/AT~88セ8H章|`x/A8H|`x~8|xH)~88@H8hH 8hh|x!|ヲサチN `````ソチ!ミ|> x厨HH^/A/Aク^/Aー/AP^/2At/2A^/AP8Hp^/KAP/nAPKワ^/,Ap/,A ^/泡@/ネA@Kィ^/XAH/ーAHK劇^/KA/KAH^/タAD/タA^/ `A KL/%A(^/8@A(K08`^AL8`^A(/pA8`^AK<`ツ^A<`^AKク8H$8@2真H8KH 8@n真H8H8@鱒^H8ネHワ8@,真Hミ8XHト8@ー真Hク8Hャ8@ `真H8タH8@%真H88@H|8@K真Hp8pHd8@真`HL8@真`H4<@真`ツH<@真`H|x!サチN `````|ヲソ。!P|> xBヲ厨ネ裾フ誓ミ8X8T8P^ネB~ネフ| x}ヲN!|`xH^ネB~ネH<_8「据<_8ツ逗| x}ヲN!|`xD^ネB~ネH<_8「摺<_8ツ逗| x}ヲN!|`x@^ネB~ネH<_8「成<_8ツ逗| x}ヲN!|`x<^ネB~ネH<_8「精<_8ツ逗| x}ヲN!|`x8^ネB烙~ネH| x}ヲN!8\~ミ|xH1|`x/@4<_8b逝Hs)^ネB烙~ネH| x}ヲN!HミdTョ真逗/AH^+A/A$HL^/A,/A,H08XH$8XH8XH 8XdTヲ真劇/A,^/0A,/AH$8TH8TH 8TdTj真/A^/AH8PH 8P8\|xH|`xL^ネBΔ8~LK|`x~ネフセD|xャx}ヲN!^ネB8~ネフセ@゙X| x}ヲN!^ネB8~ネフセ<゙P| x}ヲN!^ネB8~ネフセ8゙T| x}ヲN!!|ヲサ。N `````|ヲソチ!@|> xBヲ厨リ裾ワ誓8D^リB~リワ| x}ヲN!|`x<^リB~リ<<_8「<<_8ツ鈷| x}ヲN!|`x88/@h^リBト~リ| x}ヲN!^リBネ~リ| x}ヲN!^リB烙~リ<| x}ヲN!8ィH@H胃|`xD^リB8~リワセ8゙D| x}ヲN!^リB烙~リ<| x}ヲN!^リB(~リ8| x}ヲN!|`x@~@DHq掟`x/A8L|x<_8m@セ@HQ8L|xHoU^リB,~リ烙セ@| x}ヲN!H茅|bx|xH燕|`x~リ<_8m<_8「詐|xHl8ィH 8L|x<_8mdセ@Hノ8L|xHnヘ~@K9|`xHH/AD~リワセHKル^リB,~リ烙セ@| x}ヲN!HィH~@8Hu|`xHH/@H何|bx/Aミ~HK9|`x/@リ^リB,~リ烙セ@| x}ヲN!8L|x<_8mоセHHン8L|xHm痼HィHィ|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗~<_8「栄<_8ツ瑛Hi掃`x@^B(~8| x}ヲN!|`x<^B~芸 x}ヲN!|`x8~<_8「禍<_8ツ瑛Hi|`xD<_8b街HlユD/@l^Bト~| x}ヲN!^Bネ~| x}ヲN!^B烙~8| x}ヲN!<_8b獲HleHエ<_8b釜HlU@/@@~@Hq|`xHH/@H處bx/Aヤ~<DHr<_8b堪Hl^B烙~8| x}ヲN!<_8b簡Hkユ^B,~逗セ<| x}ヲN!!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ窃、ィャ8d~88H1|`x/@<_8b偉Hk)8hHィ8@~|xセ、H痞`x/A<_8bHj8hHp8@~|xセィHケ|`x/A<_8b0Hjケ8hH88@~|xセャH -|`x/A<_8b荏Hj8hH/@@8d~<@`дj|xH÷dTd8d~<`дm|xH]8~8Hq|`x/A8~8H處`x/@L8~8HA|`x/A8~8Hi|`x/@<_8b煙Hiチ8hH@~88セ8H5|`x/@<_8b仮Hi8hH 8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю劇~x|<_8「 <_8ツHe)|`x<~xH怖`x88/@<_8bHhナ8HHL~x<セ8゙о桑|`x/A<_8bエHh8HH 8HH|x!|ヲサチN `````ソチ!ミ|> x厨H裾LL^/A/Aシ^/Aエ/AT^/2Ax/2A ^/ATL/AHp/KAP^/nAPKリ/,Ap^/,A /泡@^/ネA@K、/XAH^/ーAHK/KA^/KAH/タAD^/タA/ `A KH^/%A(/8@A(K,8`^AL8`^A(/pA8`^AK<`ツ^A<`^AKエ8H88@2真H,8KH 8@n真H8H8@鱒^H8ネH8@,真H8XHリ8@ー真Hフ8Hタ8@ `真Hエ8タHィ8@%真H88@H8@K真H8pHx8@真`H`8@真`HH<@真`ツH0<@真`H^L真H 8|x!サチN `````ソチ!タ|> x厨X裾\誓`^\T*`,,/A\,/A,/A,8(H劇,/AH,/AXKワ^\8(HX`^\8(H<`^\8(H `^\8(H(|x!サチN `````|ヲソチ!ー|> x厨h裾l誓pp< x厨裾恊セ888<~|xHwナDT/A8`8 xBヲ厨裾恊セ~88Hw|`x/@<_8bフHa8hHh@T」>Th/@(@T宀Th/@8hH,@T」>T/A8hH 8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pp< xBヲ厨xx x厨H^H8H!サチN `````|ヲソチ!`|> xBヲ厨ク8~8<_8~`セクHwノ!|ヲサチN `````|ヲソチ!|> xBヲ厨<_8b~ H^8< xBヲ厨ネ裾フ誓ミ|タ3xヤ<_B銑@ミT>D~ネフ<_8「x<_8ツx粂X鋼`x<DT>| x8E|x<_8|タ}%KxHu!8E|xH\%8D~<|x8HvA|`x88/@Hwi|bx/A8/AャヤT>/@l<_B銑@@/@H4^@ー@^@B<A^@ー/@ヤ^@8D<_8b|ミH[e8E|x<_8|セ8Ht=8E|xH[A8/@8Hv。|bx|xHu掃`x~ネ<_8}<_8「}|xHX騾!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏}Cx<_B汁H8@8<~<_8「v<_8ツvHV怖`xD^Bd~8| x}ヲN!|`x8^8<|B媒"^<|P~D}$Kx|xHt1|`x@@/@<^@|<<_8b{/@\H/@H4^HーH^HBDA^Hー/@ヤ^H8D<_8b{LHY@/@8Hte|bx|xHsU|`x~<_8{<_8「{l|xHVュ!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||+x|~x|x<_8「t`<_8ツtdHT−`xD|~x|x<_8「x`<_8ツxdHTY|`x@88<_8by/A8@Hィ@/A,^@D/A^@8D^@8H@/A`^@ /AP88^||xx|Ex゙@Kレ88^9 L|x|Dx}%KxHq 8|x88HQE8@@|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓~x|<_8「r4<_8ツr8HR]|`x8><b`Mモ| 翻&p} p|P~8|xHn-!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「q<_8ツq廩Qナ|`x88<~8|xHjm|`x/A]T>dhH@Hpノ|bx|xHoケ|`x~<_8W<_8「vタ|xHS8hh|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「pエ<_8ツpクHP痞`x88<~8|xHi榎`x/A]T>|ミThH@Ho痞bx|xHnム|`x~<_8V4<_8「u|xHR)8hh|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「oフ<_8ツoミHO|`x88<~8<@`дj|xHnムT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツn腥O|`x88<~8<@`дj|xHm蛟 xBヲ厨ネ裾フ8<~ネフ<_8「n<_8ツnHN%|`x88<~8<@`дj|xHm xBヲ厨ネ裾フ8<~ネフ<_8「m<_8ツmHM9|`x88<~8<@`дj|xHl xBヲ厨ネ裾フ8<~ネフ<_8「l(<_8ツl,HLM|`x88<~8<@`дj|xHk- xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「k<<_8ツk@HKY|`x88<~8<@`дj|xHj9ミT>/@<`8@|x<_8R}%KxHg8@|xHN凰!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「j4<_8ツj8HJQ|`x88<~8<@`дj|xHi1ミT >8@|x<_8Q$}%KxHfムミT>/@<`8@|x<_8Q$}%KxHfm8@|xHMq!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8<~ネフ<_8「i <_8ツiHI1|`x88<~8<@`дj|xHh xBヲ厨ネ裾フ|+xミ8<~ネフ<_8「h <_8ツh$HH=|`x88<~8<@`дj|xHgミT>/@<`8@|x<_8O8}%KxHdy8@|xHK}!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_Bリ88`4H`ノ|`x<<|xxHd^<|(8/@0^<8,^<80<_Bリ<Ht8|xxHcス|`x/AX^8,/A^8,8Kネ^<8,^<80^8<,<_Bリ8!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHei|bx|xHdY|`x~h<_8M<_8「l4|xHGア8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHd痞bx|xHcム|`x~h<_8L<_8「kシ|xHG)8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓pHdU|bx|xHcE|`x~h<_8K<_8「kH|xHF8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾lHcヘ|bx|xHbス|`x~h<_8Kp<_8「jミ|xHF8|x!|ヲサチN `````|ヲソチ!|> x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H`m|`x<~8/@D`DHDT,D8D~@<`дm|xHa痼~8 x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8H^}|`x<~8/@D`DHDTクD8D~@<`дm|xH_~8 xBヲ厨x裾|誓窃ю倦>8@^xB(~x8| x}ヲN!|`x<~xКロU|`x8H\i|`x@~<@HE掟`x/@~ x厨x裾|誓|タ3x8<^xB(~x8| x}ヲN!|`x8HYオ|`x<~8/@D`DHDTD8D~@<`дm|xH[)~8 xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~項@TセT/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~T/A8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ネ裾フ誓ミ8@^ネB(~ネミ8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x@~@Kスュ|`x<^ィB,~ィーセ@| x}ヲN! xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ xBヲ厨ィ裾ャ誓ー^ィB(~ィー8| x}ヲN!|`x<~ x厨X裾\88|t|x!サチN `````|ヲソチ!|> xBヲ厨裾怙~<_8「Np<_8ツNtH.掟`x88<~8|xHGE|`x/ALT>|thH<_8bWH2)8hh|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l|+xpHM1|bx|xHL!|`x~h<_84ワ<_8「V|xH/y8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾忿+x~<_8「M$<_8ツM(H-I|`x88<~8|xHE|`x/A<T>L8<~88|xHHe|`x/A8hHLHL)|bx|xHK|`x~<_82、<_8「V|xH.q<_8bV H0}8hh|x!|ヲサチN `````|ヲソチ!酢> xBヲ8~88HI<_8bU$H/÷8<@C0=?ノゥdxlL真HネHh(><<b`Mモ| 翻6p} p|P<@C0=?ノゥdxlT真PネPh( *リX\|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾誓 窃$(,8T8L8H8<^~|x<_8「O4<_8ツO8H+)|`x8^8@^88(X,/A葱m|`xHHо,/A@KQ|`xL^LH|@P,A^8@TH8h8@|x8|ExHDE Tル~| xT:88|B8B0" T8|0})xUb:88|B8B0",/Aо^LH|@P,|PP>P<b`Mモ| 翻6p} p|P`^P<b`Mモ|翻 6p|@p} HP>閨> 閖@P真閠^關d8`DH 8D^ 88^h|x|Dx88タDHD%|`x\^\8@(<_8bT`H-1^8@8H4\/@リT|x$|^X~ |x|ExHDル|`x\\/@hHHA|bx/A xBヲ厨ィ裾ャ誓ー窃エク~ィャ<_8「G|<_8ツGH'掟`x<ー/@88H$ー/@88H ー88@~<|xH@ |`x/AP8`>8<Q`| 翻.p} p|PT>a8@~<8|xHBa|`x/@8HF1|bx|xHE!|`x~ィ<_8K<_8「P|xH(y!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾||~x|x<_8「F,<_8ツF0H&U|`x<|~x|x<_8「Oク<_8ツF0H&-|`x88|8^D~x|xセ<|Fx88KQ|`x@@/@DHE)|bx|xHD|`x~x<_8Jャ<_8「Oタ|xH'q8LH0@/ADT>HH 8HHLL|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃ю|~x|x<_8「D<_8ツD鍠%|`x<|~x|x<_8「Np<_8ツD鍠$ル|`x8/@<<_8bNЗ(園~x<_8Nャ<_8「Nリ<_8ツN腥&Q8HH^xBd~x8| x}ヲN!|`x@лx@||x8|~x|xセ<|Fx8K}|`xD^xBо~xセ@8タ| x}ヲN!D/@P<_8bNH'オHC!|bx|xHB|`x~x<_8Id<_8「Nリ|xH%i8HH DHH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「C<_8ツCH#-|`x8~88HAル|`x/A8HH 8HH|x!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ瑞゙柏8H劇~|x<_8「B\<_8ツB`H"m|`x<劇~|x<_8「K<_8ツB`H"E|`x8/@<<_8bKH%~<_8L$<_8「LP<_8ツL\H#ス8XHフ^Bd~8| x}ヲN!|`xD^Bd~8| x}ヲN!|`x@培xD|BH||x8劇~|xセ<|Fx88Kオ|`xL^HL|HL/@P<_8bLlH%H@q|bx|xH?a|`x~<_8Fワ<_8「LP|xH"ケ8XHネH/@p^@8B| t^HD|B8B|t@@^@| t^HD|B8B|t@<_8bL粂$QH L/@H^Aト^Bо~逗セD8タ| x}ヲN!LXX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|~x|<_8「?<_8ツ?路チ|`x88<~8<@`f|xH>。|`x/A <8@A<HHL<_8bIリH#=H>ゥ|bx|xH=處`x~x<_8D<_8「J|xH <HH|x!|ヲサチN `````|ヲソチ!|> xBヲ厨裾恊セ~<_8「><_8ツ>路ス|`x88<~8|xH7e|`x/@シTセ/ADdDHDTD<_8ツIHy!|ヲサチN `````|ヲソ。!|> xBヲ厨x^x恊@^xB<^@BΔ^@B~@<| x}ヲN!|`x~@|x<_8「Gフ<_8ツGャx}ヲN!|`x8^@B(~@<セ88タ| x}ヲN!!|ヲサ。N `````|ヲソチ!ー|> xBヲ厨hh/AL^hH/@<^h /A,<_8bFH凰~h88Hオ^h8H8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_8bF路ア8|x!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!P|> xBヲ厨ネ^ネ8^<|x<@`f|ExH:A|`x8><^ネ|48@|x<_8FT}%Kx}f[xH7ム><8@|x<_8F}%KxH7オ8@|xH) xBヲ厨x8<x/A、^x88<_8bEフH項^x8^<|x<@`дj|ExH9-|`x/A <_8bEH<_8bFHルHD x!サチN `````ソチ!ミ|> x厨H8|x!サチN `````|ヲソチ!ー|> xBヲ厨h~hKQ|`x/@、h/A^h/A ~hK!~hK1h/Al~hK5|`x/AX^h/@$<_8bD4Hン8`N H658`N H6-H(<_8bDdHM~h88Hル8`N H6!|ヲサチN `````|ヲソチ!|> xBヲ厨x^xB@^x恊<<_BO楳8^x0/A艢8/@T<_BO楳x<_BO楳B8ー<_BO楳B8エ8DHp^8ー8^8ー/@閠^8xー^x8エ^x8ーKエD^xT:|@8B8^D8DD/ @ミ^x8H^x8D^x8^x8@~<@<_8「6ミ<_8ツ6ヤHヘ|`x^x^x|xK怖`x^x逗~xK|`x^x楳^x^x8B<|x<@`дj|ExH4m|`x/@<_8bC路%^ xBヲ厨h^h、/A8^hB怙B|烙^h"怙^h、}#Kx|x}l[x}ヲN!^hー/A@^hエ/A0^h"エ^hー ー^h"ー^hエ エHp^hー/A,^hBー8エ^hー<_BLpH8^hエ/A^hBエ8ーH<_BLp8!|ヲサチN `````|ヲソチ!`|> xBヲ厨ク裾シ^クBBシ~ク|x|Lx}ヲN!|`xワクヤ8シリ8h8~8K|`x/Aタ8~8Kキa|`x/Aャ8~8K菱x/A$<_8b?H8~8Kカ8~8K飃t^888^9>p|x|Dx88タ}'KxH,|`xll/@H1 |bx/Al/A 8~8Ka8~8KUKh!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_8>\| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!@|> xBヲ厨リ裾ワ誓熕゙艢^リB(~リ8| x}ヲN!|`xD8@8HY8@H,8|8^L9 ,|x|Dx}%KxH-÷~H88H)1|`x/@<_8b>,H 8@Hワ8L|xH'A8mmT>l8L~H8|xH*Y|`x/@0<_8b>PHア8@8|~H8|xH*%Hp8x~H|x8H*m|`x/@,H-ン|bx/#A<_8b>pHQ8@8|~H8|xH)ナ~H8セ8H(5~Dィィ|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x8@8`|xH'Q|`x< xBヲ厨x裾|<_BE8<_BE|x|8H*驂ix<_BE~x}$Kx|x8タH&・|`x88/A(8|x<_E88タH$~8H&M<_E|x!|ヲサチN `````|ヲソ。!酢> xBヲ厨裾倹セ8D8L|xKュ|`x/A<_8b: H#薊^B怙~<_8:,| x}ヲN!|`x@@/@<_8b:HH DXHー^BH~@<_8「:x<_8ツ:л x}ヲN!|`x< xBヲ厨ネ裾フ誓ミ88ミ+A48@ミ|B0真^狼@コ/@d^狼@シ/@,89|x<_88|セミH%89|xH 菱,~ネフ8Kノ|`x/@88H8T>|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓^xB(~x8| x}ヲN!|`x88T&/ @H8E|x8H%−`x@@/@~@H$8DH08DH 8D^<8<T&/ @88E|x8H$ヘ|`x@@/@~@H#ム8D^xB,~xセ8| x}ヲN!DT>|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l^hB ~h<_85| x}ヲN!|`x|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5禰 斧!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b5`H =8|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p<_8b5(Hル!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b4H8|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|<_B<リ@~x|<_8「$<_8ツ$H1|`x<88H<_B<リ@@/@,<_8b4シHナ8/AlHT^@ー@^@B<A^@ー/@ヤ^@B<@ー88K、<_8b4タHY8`鍠"!8/@\^@8<_8b4トH-!|ヲサチN `````|ヲソチ!|> x厨x^x恊8^8Bネ~8| x}ヲN!^8B|^xB"^xャ~8}$Kx|x}l[x}ヲN!|`x<|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃л;x<_B:リ88/@ <_8b2鍠菱x^8ー8^8BA^8ー/@ヤ^8BA<_8b3HAH$>цT >^8U :|@8B礎!|ヲサチN `````|ヲソチ!酢> xBヲ厨裾倹セ逗/A0^恊8/A$^/@,H8XH<_8b2 Hン8XH<_8b28H5^、/@8XHシ<_8b2\H ^8Bネ~8| x}ヲN!<_8b2pH蛟^8BB真T^BB真P^Bィ真L8H/A 8H~8PセL゙劇H◇T}ヲN!|`x<<_8b2Hi<XX|x!|ヲサチN `````|ヲソチ!|> xBヲ厨x裾|誓窃8@^xB~x|| x}ヲN!|`x<^xB~x<ゼл x}ヲN!|`x88/@h^xBト~x| x}ヲN!^xBネ~x| x}ヲN!^xB烙~x<| x}ヲN!@HH逗^xB~x|セ8| x}ヲN!|`x@^xB烙~x<| x}ヲN!<_8bо8H|`x/@@/@<_8b1H痼@HH|x!|ヲサチN `````|ヲソチ!p|> xBヲ厨ィ裾ャ誓ー窃エ^ィB怙~ィャ| x}ヲN!|`x88/@@^ィBト~ィ| x}ヲN!^ィBネ~ィ| x}ヲN!Hh8<|x<_8/xセエ゙ーHA^ィBBシ8<~ィ8|x|Lx}ヲN!^ィB烙~ィ8| x}ヲN!!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h<_B5\8ー|xhHY!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!ー|> xBヲ厨h<_B4フ8ー|xhHノ!|ヲサチN `````ソチ!ミ|> x厨H!サチN `````|ヲソチ!|> xBヲ厨(裾,~(H|`x<<|x(|8H^888^88B|t//A^<8<|x<_8-p}%Kx}f[xH}8P|xK!8HpHA|ix8D|x<_8-、}%KxHE8P9>D|x<_8-ャ}%KxH)8P|xK-8D~@|x8 HI~@HA8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ8|x<_8+閠セネH8|xK操~ネH!|`x/A<_8b+Kq8路88<_8b+`|xH|`x/A<_8b, K98路ィ88~ネ|xHヘ|`x/AD<_8b,TK89>閖x<_8,}%KxHル8|xKン8路L8TF>T >LTF>T >LT >8<|x<_8,<_8「+`}&Kx}g[x}HSxHyHU|ix8芸x<_8+シ}%KxHY8<8^8|x|DxH|`x/@D89><|x<_8,エ}%KxH8|xK!8|xKオ8路8<|x8 8$H|`x88/@889><|x<_8,ヤ}%KxHオ8|xKY8路(8劇~8|x8 Hノ~8Hチ8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ<_8b(88Hル|`x/A<_8b*К8路`Hu|`x/A<_8b*クK8路8~ネH!|`x/A<_8b+,Kス8路 8|x!|ヲサチN `````|ヲソチ!P|> xBヲ厨ネ裾フ~ネH=|`x88|xネ| xBヲ厨h裾l8閖x<_8)シセhH8閖xK~h88Hチ|`x/A<_8b)ミKH8TF>T >LTF>T >LT >8|x<_8)}ESx}&Kx}g[xH・8|x88HU|`x/A<_8b* K工8|xlH|`x/@<89>|x<_8*,}%KxHA8閖xKE8|xHノH,89>|x<_8*H}%KxH 8閖xK !|ヲサチN `````|ヲソ。!@|> xBヲ厨リ裾ワ~リ8Hナ|`x<@|x<_8(}%Kxヲx}g[xワHス8L|xKチ8ィH 8ィィ|x!|ヲサ。N `````|ヲソ。!酢> xBヲ<_8B$"B@>Dー^H<_8B(t"BJ>Nー^R8@|xH |`x|x8J|xH |`x|]8|x8H |`x88/@<_8b'シKi8XH8@~8|xH }~8<_8'腥 m8J~8|xH ]~8H オ|`x/@$~8H <_8b'鍖8XH~8<_8(,H ル|`x< xBヲ厨<_)48^L9 4|Cx|x}%KxHオ<_B)"|B >я~真8D~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8<_8b",|xH mHネDT:88|B8B8^ィ|x|DxH A|`x/@ャ^ AxDT:88|B8BΔDT:88|B8B|xH -|`x<_」x8",|xH ユ|`x/A~路 |`x@@|x|HH^H8H^H8B|t//A^@8@@/@ネ8酢x<_8't}%KxH 8|xK!8hHミ8H~|xH ・DT:88|B8B|T>\TF>T>\T >8酢x<_8'ト}e[x}FSx}CxィxH q88^H|x|DxH |`x/@889>酢x<_8't}%KxH 58|xKI8hH^<8<T >\TF>T >\T >8酢x<_8#h<_8「",}&Kx}g[x}HSxH I88^H|x|DxH|`x/@8酢x8H 9|`x88烙~8|x8 H~8H 589>D|x<_8(}%KxH YD|x8Hゥ|`x/A食 9|bx/@|89>酢x<_8( }%KxH8|xK。8酢xH |`x/A<89>酢x8P<_8「(<}&KxHノ8|xK]8hH 8hh|x!|ヲサ。N `````ソチ!ミ|> x厨H裾L8|x!サチN `````ソチ!ミ|> x厨H裾L!サチN `````ソチ!ミ|> x厨H裾L!サチN `````|ヲソチ!|> x厨x裾|8<x/@^<HHヤ^|8^xB(~x<<`・| x}ヲN!|`x8^88@8HH|88@@T^xB ~x<8| x}ヲN!^</A^|8^<HH8/A8HHH|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_B!楳h<_8b Hu<`|x!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l<_8b 、H!|ヲサチN `````|ヲソチ!ー|> xBヲ厨h裾l誓p^hB ~h<_8 t| x}ヲN!|`x|x!|ヲサチN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ d}ヲN |ヲB}hヲ=k|ヲ H}ヲN |ヲB}hヲ=k|ヲ ,}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲリ}ヲN |ヲB}hヲ=k|ヲシ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲмヲN |ヲB}hヲ=k|ヲh}ヲN |ヲB}hヲ=k|ヲL}ヲN |ヲB}hヲ=k|ヲ0}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲワ}ヲN |ヲB}hヲ=k|ヲタ}ヲN |ヲB}hヲ=k|ヲ、}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲl}ヲN |ヲB}hヲ=k|ヲP}ヲN |ヲB}hヲ=k|ヲ4}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ烋ヲN |ヲB}hヲ=k|ヲト}ヲN |ヲB}hヲ=k|ヲィ}ヲN |ヲB}hヲ=k|ヲ迎ヲN |ヲB}hヲ=k|ヲp}ヲN |ヲB}hヲ=k|ヲT}ヲN |ヲB}hヲ=k|ヲ8}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ艟ヲN |ヲB}hヲ=k|ヲネ}ヲN |ヲB}hヲ=k|ヲャ}ヲN |ヲB}hヲ=k|ヲ図ヲN |ヲB}hヲ=k|ヲt}ヲN |ヲB}hヲ=k|ヲX}ヲN |ヲB}hヲ=k|ヲ<}ヲN |ヲB}hヲ=k|ヲ }ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ閘ヲN |ヲB}hヲ=k|ヲフ}ヲN |ヲB}hヲ=k|ヲー}ヲN |ヲB}hヲ=k|ヲ媒ヲN |ヲB}hヲ=k|ヲx}ヲN |ヲB}hヲ=k|ヲ\}ヲN |ヲB}hヲ=k|ヲ@}ヲN |ヲB}hヲ=k|ヲ$}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲミ}ヲN |ヲB}hヲ=k|ヲエ}ヲN |ヲB}hヲ=k|ヲ}ヲN |ヲB}hヲ=k|ヲ|}ヲN |ヲB}hヲ=k|ヲ`}ヲN |ヲB}hヲ=k|ヲD}ヲN |ヲB}hヲ=k|ヲ(}ヲN |ヲB}hヲ=k|ヲ }ヲN __dyld_call_module_initializers_for_dylibfdIsendEvent(IZ)ZspeeddataBitsstopBitsparityCannot Get Serial Port Settings pidopen: locking has failed for %s open: locking worked for %s open: fd returned is %i gnu/io/PortInUseExceptionopen>nativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i java/io/IOExceptionwriteBytewriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) UnsupportedCommOperationExceptionnativeSetBaudBasenativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXjava/lang/ArrayIndexOutOfBoundsExceptionreadArrayInvalid lengthRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedMonitorThreadLockZcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialBSDClientTypeIOSerialStreamIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier addPortName(Ljava/lang/String;ILgnu/io/CommDriver;)VgetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. %s%s%i/dev/%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s%s/LCK..%s/var/lockfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXXLCK..lk..LK./etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucp%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown ApplicationC0鐘鐘タチXチタタ ,tチh+ツhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhネオシネオヤスースクスタストスミススセセケ4セ0セ@セPセdケ4タ@チP@チ@@チ@チ@チ@チ@チ@チ@チ|@チx@チt@チp@チl@チh@チ`@チ\@チX@チ4@チ0@チ,@チ(@チ$@チ @チ@チ@チ@チ@チ @チ@チ@チ@タ@タ@タ@タ@タ@タ@タ@タ@タワ@タリ@タヤ@タミ@タフ@タネ@タト@タタ@タシ@タク@タエ@ター@タャ@タィ@タ、@タ@タ@タ@タ@タ@タ@タ@タ@タ@タ|@タx@タt@タp@タl@タh@タd@タ`@タ\@タX@タT@タP@タL@タH@Dタiタタ賄タアdタヨ<.タDタDリDDD DD8$タ8 タタ 8 *9$xN8:d8タ/Gh;d8wd8ネ<.8Dム8DメxDヤDユDヨフDラヤDリD゙<D゚Xラ$ム8,X楳セレ"2AWk|斧・サル )Ae沃ウノレ(8Q8c88楳8ヲ8ク8ハ8ワ8999$969H9Z9l9~9逗9「9エ9ニ9リ9黴9:: :2:D:V:h:z:劇:梳:ー:ツ:ヤ:諤:; ;;.;@;R;d;v;;噫;ャ;セ;ミ;窶;<<<*<<>>.>A>T>g>z>項>>ウ>ニ>ル>>??%?8?K?^?q?о?沃?ェ?ス?ミ?縲?@ @@/@B@U@h@{@死@。@エ@ヌ@レ@AAA&A9ALA_ArAAAォAセAムA艢AB BB0BCBVBiB|B準B「BオBネBロBCCC'C:CMC`CsCC凰CャCソCメC蛟CD DD1DDDWDjD}D逗D」DカDノDワDEEE(E;ENEaEtEE噫EュEタEモE諤EF FF2FEFXFkF~F操F、FキFハFンFGGG)G<GOGbGuGG它GョGチGヤG轢GH H H2HEHVHgHyH劇H捩HョHチHメH蛟HI II1IDIUIhI{I劇I捩IョIソIミI縲IJJJ(J;JNJaJtJJ噫JュJタJモJ諤JK KK2KEKXKkK~K操K、KキKハKンKLLL)L:LKL\LoLL斧LィLサLホL痼LMMM-M@MSMfMyM劇M麾MイMナMリMMNN$N7NJN]NpN÷N楳NァNコNヘN烙NOOO,O?OROeOxO朽O梳OアOトOラO黴OPP#P6PIP\PoPP斧PィPサPホP痼PQQQ-Q@QSQfQyQ劇Q麾QイQナQヨQ騾QRR"R5RHR[RnR÷R楳RァRコRヘR烙RSSS,S?SRSeSxS朽S梳SアSトSユS閠STT!T4TGTZTmTT凍TヲTケTフT゚TUUU+U>UQUdUwU橿U捩UーUテUヨU騾UVV"V5VHV[VnV÷V楳VァVコVヘV烙VWWW,W?WRWdWwW橿W捩WーWチWモW諤WXX/XIX`XwX準XヲXセXラXYYY+YIYhYоYYスYリYZZ/ZBZUZhZ{Z死Z。ZエZヌZワZ[[F[y[ィ[\\4\G\Y\o\ヘシ\蔵ホタ\擒ミト\ゥメ8\オタ8\カp\キ$8Np.pDpDDーDシDトDフD ヤD ワD+\ク$p\癶\\8] ]k]シ]゚]^ ^^9^L^_タp^`D^sP^。^仟シ^吭^壟^$N.D<D>8D@HDBTDF`DH|DIDKィDLシD\ミD]リDNDPDRDTDX,DY4DZDD_PDa`DepDh|^$<^ク;x^ハ=<^モ^゙>8^閠_O_b_タ_も_$N.DvDyタD{フD|D}D~DDDDD0DHDdD|DDD、_$v_國u_、w8_ウ`e`凰`ウ`モ`aaタaシa$(Nシ.シD「シD」D<D」HD・DヲDァDィャDゥクDェトDォミDャワDュDョDッDー DアDイ$Dエ0Dカ<DクHDコTDサlDセDトDエDクa$「シa+。Ha?$ Nネ.ネDネDD DDDDD|D エD D $D DD`DlDDDDDDD D @D!LD"XD(`D)D*D?DAーDCDD DE4DF\a@$ネaWネabフanミax\aXa摩Ta、PaエLaテHaミDa烙@a<b 8bタネbpb$ィNp.pDXpDZャD]エD^ワDaDb Dc<DdXDexDiDlDmクDoリDzD|D~4D@DdDD、DシDネDリDDDD$D8DXDlDDィDエDタD。トb$Xpb=TリbHUワbTWbbYHbkZDbu[Lbム\@b楳b。]<bョ^8bサタpbシワbス$lNワ.ワDュワDッDー<DアhDウDオエDケタDコフDサDシDス$Dセ0Dタ4Dヒ@DホLDマ\Dミ|DメDモDヤエDユタDルbセ$ュワb陟ォbャbャc ョHcョDc$ッ@c-ー<c>ア8cKタワcLcM$N.DD @D HD `D lD xD D 、D ーD ミD ワD D!D!D! D!,D!DD!PD!hD4!D8!ネD9!ヤDE!DG!DH"DJ"DK" cN$cecpczc唖、c丐ィcィャcカ8cナdcメタcモ"8cヤ$@N"8."8DX"8DY"DZ"、D_"クDa"トDh"ミDl"ワDn#Dv#D{#D|#(cユ$X"8d VxdV|d$Vd3VdEVdWWdgY<dpZ8d}タ"8d~#@d$N#@.#@D#@D#hDリ#トD#ヤD%D% D%,D%8D%DD%PD%\D%hD%tD%D%D%D%、D%ーD%シD%ネD%ヤD「%D」%Dヲ&Dャ&(Dリ&@Dワ&LD゙&Xd$#@d裏Hd「Ldア$(N&h.&hD&hD&D&、D&ミD&ワD&D'D'D' D',D'<D'HD'XD'dD'hdイ$&hdヘXdリ\d遐`deeタ&he'xe$N'x.'xD'xD'ャD*'リD'D'D(D( D(,D(8D (LD*(XD+(\e$'xe5he@leOpea$N(t.(tD-(tD/(ィD1(ーD3(タD5(ミD7(ワD9(D;(D=)D?)D@) eb$-(te劬,e、,eー,eシ.<eヒ/8eユタ(teヨ)8eラ$トN)8.)8DB)8DE)tDG)DH)DW)、DZ)ヤD\)D^)Db*Dd* eリ$B)8fAfAfAf)C8f8タ)8f9*$f:$N*$.*$Dq*$Dv*`D*D*Dy*ィD{*エD}*ネD*ヤD*D*D*f;$q*$fSphf^plfmppf}$N+.+D、+D・+DDィ+LDェ+\Dャ+dDア+pDカ+|Dコ+Dシ+ィDツ+トDテ+ミDェ+ワDモ+Dヌ+Dヒ+Dミ,Dム,Dユ,Dヨ,$Dラ,0f~$、+f蔵」xf捩・<fィァ8fータ+fア,8fイ$(N,8.,8D,8D,\D,hfウ$,8fヘHfル$<N,tfレ,t.,tD,tD,ィD,シf$,tgクg8gタ,tg,ミg$\N,ミ.,ミD,ミD-D-D-D-$D-0D -8D#-@D$-XD%-pD&-D3-D5-クD6-トD7-D9-D:-D;.DD<.PD=.D?.D@.、g$,ミg0g<8gI<gY@giDg{Pg項\g凰hh'hBhUhuhhiiタ,ミi.シi$N.シ..シDM.シDO/DQ/DR/D\/@D]/dD^/pD_/D`/ャDo/クDq/ネDr/リDu/Dt/Dw0Dx0$D{00D|0HD~0TD0`D0i$M.シiCKネiNLフiZLミifLヤi{O@iQDi斧iャR<iオS8iツTEiフタ.シiヘ0ィiホ$N0ィ.0ィD0ィD0D1Dゥ1Dェ18Dク1dDケ1Dコ1ィDシ1クDス1トDセ1Dフ2Dホ2(Dミ28Dモ2HDメ2TDユ2xDヨ2D2D2ミiマ$0ィijjj j0j?jTHjaDjj@jw<jム8j逗j淆0ィj2j。$<N2.2D2D3$D3LD3tD3|D3D3D3、D 3ミD 3D3D44D4PD4lD4xD4D4D4リD"4D#4j「$2jフxjラ|j罌jDk@k <k8k%Hk3タ2k4k@タ4kA4kB5kC$,N5.5D/5D05LD35pD65kD$/5kl-xkw.|kΒ.k斧08k楝5k游5ャk$N5ャ.5ャDD5ャDE5DI6DK6$DN68DP6lDQ6xk。$D5ャkラAk笄CkE8kF<lタ5ャl6l$N6.6D_6D`6ネDc6De7Dh7 Dj7TDk7`l $_6lE\lP^l\`8lea<ltタ6lu7xlv$N7x.7xDy7xDz7ーD{7クD7ワD7D8D8 D8@D8Llw$y7xl屏wネlヲxフlイz<lソlモ{8lワ|@lタ7xl8dl$N8d.8dD8dD8D8、D8ネD8D9D。9 D「9,l$8dmネmフm'<m48m=@mKタ8dmL9DmM$N9D.9DDー9DDア9|Dイ9Dカ9ィDキ9タDク9Dコ9Dサ: Dシ:mN$ー9Dmrョネm}ッフm園ア<m摩イ8m麾ウ@mュタ9Dmョ:0mッ$N:0.:0Dハ:0Dヒ:hDフ:pDミ:Dム:ャDメ:フDヤ:リDユ:Dヨ;mー$ハ:0mモネネm゙ノフm黴ヒ<mフ8nヘ@nタ:0n;n$N;.;D;D;TD;\D;D;D;クD;トD;D;n$;n5ネn@フnL<nY8nb@npタ;nq<nr$N<.<D<DD,>$n$=o ネoフo!ミo0<o=8oF@oTタ=oU>8oV$(N>8.>8D:>8D;>pD<>xD@>DA>エDB>ヤDD>DE?DF? oW$:>8o{8ネo9フo逐;<o麾<8oィ=@oカタ>8oキ?$oク$N?$.?$DT?$DU?dDV?lDZ?D[?ィD\?ネD]?ヤD^?D_@ Db@oケ$T?$o゙Rネo鬆SフoSミpU<pV8pW@p(タ?$p)@,p*$N@,.@,Dv@,Dw@dDy@tDz@D{@D}@D@ャD@クD@トD@ヤD@リD@DADADA DA,DA8DAHp+$v@,pHuxpZu|pdw<pqw8p{タ@,p|A\p}$0NA\.A\DォA\DトADニAフDネAミp~$ォA\pョァhpケィlpナェppラ$NA.ADルADB DBTDBXpリ$ルAqヨhqリlq$NBp.BpDBpDBャDBDBq $BpqOhqZlqfpqw$NB.BD-BD?C4DAChDCClqx$-Bqァ*hqイ,lqセ$NC.CDWCDYCタD[CネD_CDdDDfDDgD(DjD4DkDHDlDhDnD|DrDDsDDtDタDuDフDyDD{DD~DDE DE,DEPDE\qソ$WCqUxqV|r VrVr%X@r.Y<r8ZDrE[8rVタCrWEtrX$NEt.EtDEtDEーDEクD。EDヲEDィFDゥFDャF$DュF8DョFXDーFlDエFxDオFDカFーDキFシDサFヤDスFDタFDツGDトGDニG@DヌGLrY$Etr刈xr腹|r」rアrソ@rネ<rメDr゚8rタEtrGdr$NGd.GdDロGdDンGーD゙GクD゚GDGDHDHDH,DH8DHLDHlDHDHDHーDHDHDHDID I<D I@D IhD ID IタD IトD IミD IワD JD JD J(r$ロGds1ルxs<レ|sJレsXレsjレs|レs滋レs梳ワDsァン@sア゙<sツ゚8sマタGdsミJ<sム$リNJ<.J<D /J<D 1JxD 2JD 7JャD <JクD >JミD ?JD BJD CKD DK D FK4D JK@D KKXD LKxD MKD QKD SKィD VKエD XKリD ZKD \LD ]Lsメ$ /J<t -xt .|t .t* .t8 0@tA 1<tK 28t\ 3DtiタJ<tjL,tk$NL,.L,D lL,D mLhD nLpD oLD sLャD vLクD xLトD yLワD zLD |MD }M(D ~M4tl$ lL,t悛 jネtァ kフtウ kミtチ m@tホ n<t゚ o8t閠 pDtタL,tMLt$ NML.MLD MLD MD MD MシD MフD MリD MD MD ND N(D NHD NTt$ MLu) ネu4 フu@ ミuN @u[ <ul 8uu DuβMLuNlu$ NNl.NlD ャNlD ュNィD ョNーD ッNワD ウND カND クOD ケOD コO<D シOHD スOhD セOtu$ ャNluカ ェネuチ ォフuヘ ォミuロ ュ@u閠 ョ<u ッ8v ーDvタNlvOv$ NO.OD フOD ヘOネD ホOミD マOD モP D ヨPD リP$D ルP<D レP\D ワPhD ンPD ゙Pv$ フOvB ハネvM ヒフvY ヒミvg ヘ@vt ホ<v マ8v死 ミDv愨Ov杳Pャv$ NPャ.PャD PャD PD PD QD Q,D Q8D QDD Q\D Q|D QD QィD Qエv$ Pャvマ ネvレ フv譬 ミv @w <w 8w Dw)タPャw*Qフw+$ NQフ.QフD QフD RD RD R<D RLD RXD RdD R|D RD RィD RネD Rヤw,$ Qフw[ ネwf フwr ミw @w項 <w梳 8wァ DwオタQフwカRwキ$ NR.RD *RD +S(D ,STD /SdD 2SD 5SD 7SD 9SシD :SネD OSヤD PTD RTD ST0wク$ *Rw )ィw )ャx )ーx +@x$ ,<x- -Dx< .8xKタRxLTHxM$\NTH.THD ^THD _TD `TーD bTタD eTD hTD jTD lUD mU$D oU0D tU`D oUlD pUD qUD rUD sUャD tUクD vUシxN$ ^THx│ ]ィx匠 ]ャx屏 ]ーxゥ _<xコ `8xテ a@xメタTHxモUヤxヤ$NUヤ.UヤD UヤD VD V<D VLD VpD V|D VD V、D VーD VシD VD VD WD WD WD W xユ$ Uヤy ィy ャy ーy. <y? 8yH @yWタUヤyXW8yY$dNW8.W8D ォW8D ャWtD ュWD ッWーD イWヤD オWD キWD ケXD コXD シX D ソXDD スXPD セX\D ソXhD チXlyZ$ ォW8y摺 ェィy屏 ェャyァ ェーyオ ャ<yニ ュ8yマ ョ@y゙タW8y゚Xy$LNX.XD モXD ヤXャD ゚XエD XシD Xトy$ モXz ムXz# メ\z/ ヤz<タXz=Xヤz>$PNXヤ.XヤD XヤD Y D Y0D YLD Y`D YlD Yxz?$ Xヤzu z z劇 8z斧 <z、タXヤz・Yzヲ$シNY.YD YD YミD "ZD $Zzァ$ Yz゙ hz鬆 lz p{$NZ .Z D 7Z D 8Z`D <ZD =ZD >ZャD @ZフD BZリD D[ D F[D G[${$ 7Z {; 5{F 6{R 6{a 88{j 9<{yタZ {z[<{{$N[<.[<D L[<D P[lD Q[xD V[D X[{|$ L[<{操 N8{愨[<{杳\{$ヤN\.\D u\D v\XD w\`D |\pD ~\xD \、D \ーD \シD \トD \ミD \D \D \D ]D ]D ](D ]@D ]D ]D ]ャD ]フD ^D ^D 、^D ィ^HD ゥ^XD ォ^dD ャ^pD ョ^|D ー^D ア^タD イ^D エ^D オ_D キ_ D ク_D コ_$D サ_0D シ_@D ハ_TD _`D ロ_D ワ_、D ン_ー{$ u\{カ o{チ p{ヘ q {ラ r${遐 s({ t,| v\||! vX|, vT|8 wP|H|Y wL|d wH|q y`|{ yD||凰 zh|・ |@|ー |<|シ }8|ヌタ\|ネ_ネ|ノ$クN_ネ._ネD f_ネD g` D k`0D l`<D n`HD o`TD r``D v`hD x`D y`D z`ーD `ミD a|ハ$ f_ネ} eィ} eャ}# eー}2 eエ}E eク}U g<}^ h@}m i8}{タ_ネ}|a}}$PNa.aD aD aPD axD aD aフD aリD b D %bD &bH}~$ a}・ x}ー |}シ @}ネ D}ラ <}烙} 8~ タa~b`~$HNb`.b`D 6b`D :b、D ;bフD AbD BcD Dc D Fc,D Hc8D IcdD JcD KcネD LcヤD NcD PdD Xd D Yd,~$ 6b`~8 4x~C 5|~O 5~` 5~p 5~ 7D~劇 8@~凰 :<~「 ;8~ータb`~アdD~イ$NdD.dDD fdDD gd|D hdD idクD jdトD kdミ~ウ$ fdD~譬 dx~ e|~ g8タdDd$、Nd.dD dD e0D e8D e`D eD eD eD eタD eフD eD f$D fhD fxD fD fD fトD fミD 「g8D 」gDD ヲgHD ァgdD ョgD ッg $ d; |F }R }c }s }Β ~ L、 Hー Dス @ミ <ル 8鄲d鞨gー$ネNgー.gーD シgーD スgD ホh D モh0D h@D hLD hXD hD h$ シgー コx# サ|/ ス88 セ<EタgーFhーG$Nhー.hーD hーDhDiDi,Di<D iLD iXD idDixDiDiDiィDiクDiトDiD"jH$ hーu 権 梳 <ュ8カタhーキjク$hNj.jD/jD0jLD1jXD3jhD4jトD5jケ$/jリ.x艢0@1<38タjk$Nk.kDAkD_k4Dbk`DcklDgk|DjkDkk $Ak+@h7$、Nk、.k、Dyk、DkリDkDk8$yk、\xh($\Nl.lDlDオl$)$l<H¥$0Nl0.l0Dチl0DナldDニlDムlエDメlミDモlワDヤlDヨlDラm$$チl0アタネ⊃ツ<¬ツ8モテ@≪タl0≫m√$Nm.mDmDmLDmTDm`DmlDmxDm、DmーDmシDmタDmワDnDn Dn8DnDDnTDnpDnDnエDnワDnDnDo∽$mx<8*タm+o,$No.oDoD'o4-$oB$,No@.o@D5o@DBodDDohC$5o@B4HN$8Nox.oxDPoxDSoャDVoタDWoワD[oD\oD^p D`pDdp(Dgp0Dip8Dkp<DlpHDtpXDvp`O$PoxlOhx$Npt.ptDptDpィDpクDpトDpヤDpDpDqDqDq(Dq4Dq@DqPDq\DqhDqxD「qャD」qクD・qトDヲqミDィqワDゥrDェr Dャr4DュrdDーrpDイrエDオrトDカrDキs0Dクs<DケsHDコsTDシs`DスslDセstDソsy$ptたxにDび@ま<よ8タpts$$Ns.sDヒsDフsフDホsワDミtDメt0DモtDDミtXDユt\DラtlDリt|DレtDロt、DワtクDンtネ$ヒsハh&$DNtワ.tワDtワDuDu@DuHDuPDuXDulDuDuDuDu、DuャDuエDuクDuD vD"vD$vD%v$D(v('$tワグクセシデ8パタtワヒv<ビ$`Nv<.v<D9v<D:vtD;vピ$9v<Η7hΣ8lセ$xNvエ.vエDOvエDVvDWw DXw(D[w0Dw<DwTDwxDwDwDwクDwトDwミDwリDwワDwDxDx DxD「x0D」x<D、xDDァxHDゥxdDォxDャxDュxDーxDアx、DウxクDオxリDカxDキxDクyDyDy$Dy8DyDDyLDy`DypD y|D!yD#yィD$yクα$OvエJリKワLN(PL7QxАUHИVDХW@ЯX<jタvエk8м|涜w扉yp歩yミ$Nyミ.yミD4yミD8zD:z(D;z8D=zDD?zdD@zpDBz|DCzDDzクDFzトDHzヤDIz$4yミ┠3xヘ5<烙A/Li準コワ6@t78.Vrタyミszt$(Nzu チ.zDXzD[{0D\{@D_{Da{Db{ーDd{クDe{タ$Xz。WxッW|チ( YチヤZ8騾.I\タz]{リ^$N{リ.{リDq{リDt|Du|Dw|4D{|DD||pD}||D~|D|D|フD|リD|D}$D}TD}tD}D}シD}D~ D~D~8D~D_$q{リp刈p蔓pィrLツルsHtDタ{リy@z<%タ|D&8:タ|;~<~8=~\>$N~\.~\D・~\Dォ~Dョ~Dシ~ワDチ~DアDウ Dテ,Dト4?$・~\v」ネ□、フ頃、ミ亜(3>迂ォ8厩'泳ャ9悦タ~\謁L越$NL閲 ツ.LDムLDヨDルエDタDDDD,D8D@DHDLDXDル`DxDDャDネDDDDD D (演$ムL価マx果ミ|茄ミ芽メD悔( モツ恐具%窪圭迎剣験弧語!8更腔穀混済碕 ;ヤE晒ユ@燦ユ<酸ヨ8四タL士 始$N . D D』D□姉$ 示h竺l漆$xN∈.∈D)∈D*♪D+疾$)∈趣'h囚(l(p$\N.D8D9LD:9D;\$8洲6h讐7l従$`NU.UDHUDIげDJぞ戎$HU署Fh鋤Gl奨Gp招$\Nひ.ひDWひDXDYDZ掌$Wひ剰Uh状Vl$`N0.0Dj0DkドDlベDmDpΖDrΚDsクDzζD{σDvDuDwD}0D~<DpДDПDЫDh$j01hx<i|食k@振l<真m8刃タ0塵л壬$LNл.лDлD┴D「╋D」ミDュDョ尋$л翠x枢<世8成タл政0整$エN0.0Dセ0DソxDチDテDトDネ、DニーDハヤDフDヘDマDヤ星$セ0説ケx尖コ|煎サシス ソ8-タ0.,/$N,.,D,DhDDDャDクDトDミDDDD DDDィ0$,腺゚鮮゚曾゚蘇<爽8タ,操タ早$Nタ.タD タDDD0D`DlDD愛D案D威D蔭DD 羽D$欝D%荏曹$ タ遭 x促 |賊 遜 陀@替濁<8(タタ)悦*$クN悦.悦D4悦D6穏D8霞D9餓D:D<$DA(DC灰DE獲DG褐+$4悦棚3ィ探3ャ誕3ー地3エ畜5<仲68駐調タ悦諜刈超$(N刈.刈DS刈DU間DY喜跳$S刈掴Rh嬬$`N.DeDm$紬$e汀dH$0N0.0Dx0Dz掬D~弓$x0wh$$`N巨.巨D巨D橋%$巨5H釘$0N饗.饗D<饗DH串DIDNDS DN,DU圭DV芸DX倹DY懸D[肩D\呼D^糊DaDbDd De后Df構Dg紘Dh鋼Di剛Dj告鼎$<饗鉄;(兎;,菟D@土D<刀ED湯EP蕩F騰F8瞳屯タ饗惇昏敦$N昏.昏D昏D財D鮭DD「D」$D・0Dァ傘Dィ蚕Dェ刺Dャ私Dュ諮Dョ汐Dッ失Dア柴Dキ Dク,Dコ臭Dシ宿Dス春Dセ準Dタ曙Dチ妾Dテ抄Dニ紹Dヌ賞Dノ剰Dハ飾DヒDフ沌$昏楢ネ日フ<)7韮8葱8埜タ昏嚢(悩$N(.(Dリ(Dワ申D゙靭D゚推D瑞D摺D成D精D昔D切D蝉D栓濃$リ(敗ラネ賠ル8泊タ(白箔$N.DD繊D善D租D 側D 惰D 隊D卓D只D粕$畑ネ伴フ繁@番<彼8疲タ皮碑$N.D D%探D&値D(遅D+註D,凋D.帳D3亭D6逓D7D9 D;(D<泥D=撤DA伝DB倒DD嶋秘$ hl!8+"6"疋タ髭糖彦$N糖.糖DP糖DU屯DV楢DX迩DZD\ D](D_4D`<Da妊Dc嚢De柏Dg畔Dh番Dj扉Dk肥膝$P糖評Oリ斌Oワ布Q<父Q8舞R@弗SL粉タ糖糞紛$hN.DD4D謬D付D紛D並D蔑D娩D戊D抱DDD$D」0D・<Dヲ傍Dィ冒Dェ僕Dォ膜Dャ又Dッ蔓Dー蜜Dア眠Dエ椋D牝雰$箆<補@J83芳謀魔迄>w橿捩于佚俟偖 /傳儡冓タ冕勿冖$リN勿冤 チX凉 チh.勿D勿D"D#0D%郵D(輿D)用D*淀D,瞭D.鱗D8涙D<|D=DB丐DG丶DB于DI倨DJ倩DM們DO<DQ兔DS凅DT刋DX剞DY劬D`Db4Dd啀De喀Dg喇DJ嗾Dj囈D.國D埖D壘D夊D奐D<D媾D孚D寤D寳D岻D巖D廁DD。D・<Dヲ廩Dェ弋Dォ彖刎$勿辨匏L卮#叺$H吝$$/$咤$啀%D唸嗹%@%<嚊%8嚼%D囹&H圜&ィ垉&堙タ勿堝忸塲$N忸.忸Dク忸Dケ悛Dコ悧堡$ク忸壺キH奐キL$<N惷.惷Dニ惷Dネ憔$ニ惷 ナH2ナL妁$4N懆.懆Dユ懆D妝$ユ懆婢ヤH嫺ヤL孛寤$4N.DD扠D抖D挾D掟D擣D敲D旙D暼DD(D曄D曠實$屶x峺|嵶<巉幎(;拜捫搗擘攅斂昊晰8タ杤$@N杤.杤D杤D梍D椄D棆D楮$杤)h:l朏$tN榧.榧D'榧D)D*朖$'榧枌&h柤&l$XN(梳 檮 椢 棠 楮 s槓 v樅 サ樸d(樢d(2d(氓<.(D(D 歸D 沍汨$(湫h游l滔p滾 />Rfuоタ沃タゥタノタロタタチチ#チ5チGチYチkチ}チ準チ。チウチナチラチ騾チツ ツツ1ツCツUツgツyツ朽ツ捩ツッツチツモツ蛟ツテ テテ-テ?テQテcテuテテ凰テォテステマテ痼テトトト)ト;トMト_トqトムト斧トァトケトヒトントナナナ%ナ7ナIナ[ナmナナ操ナ」ナオナヌナルナナニニ!ニ3ニEニWニiニ{ニ項ニ麾ニアニテニユニ轢ニヌ ヌヌ2ヌEヌXヌkヌ~ヌ操ヌ、ヌキヌハヌンヌネネネ)ネ<ネOネbネuネネ它ネョネチネヤネ轢ネノ ノ ノ3ノFノYノlノノ逐ノ・ノクノヒノ゙ノハハハ*ハ=ハPハcハvハ園ハ怙ハッハツハユハ閠ハヒヒ!ヒ4ヒGヒZヒmヒヒ凍ヒヲヒケヒフピヒフフフ+フ>フQフdフwフ橿フ捩フーフテフヨフ騾フヘヘ"ヘ5ヘHヘ[ヘnヘ÷ヘ楳ヘァヘコヘヘヘ烙ヘホホホ,ホ?ホRホeホxホ朽ホ梳ホアホトホラホ黴ホママ#マ6マIマ\マoママ斧マィマサマホマ痼マミミミ-ミ@ミSミeミ凰ミャミソミメミ蛟ミム ムム/ム@ムSムfムyム劇ム麾ムイムテムヨム騾ムメ メメ-メ@メSメfメwメメ凰メャメソメメメ蛟メモ モモ1モDモWモjモ}モ逗モ」モカモノモワモヤヤヤ(ヤ;ヤNヤaヤtヤヤ噫ヤォヤシヤヘヤ烙ヤユユユ,ユ?ユRユeユxユ朽ユ梳ユアユトユラユ黴ユヨヨ#ヨ6ヨIヨ\ヨoヨヨ斧ヨィヨサヨホヨ痼ヨラララ+ラ>ラQラdラwラ橿ラ捩ラーラテラヨラ騾ラリリ"リ5リHリ[リnリ÷リ楳リァリコリヘリ烙リルルル,ル?ルRルeルxル朽ル梳ルアルトルラル黴ルレレ#レ6レGレZレmレレ凍レヲレケレフレ゚レロロロ+ロ>ロQロdロwロ橿ロ它ロョロチロヤロ蛟ロワ ワワ1ワBワUワhワ{ワ死ワ。ワエワヌワレワンンン&ン9ンLン_ンrンンンォンセンムン艢ン゙ ゙゙0゙C゙V゙i゙|゙準゙「゙オ゙ネ゙ロ゙゚゚゚'゚:゚M゚`゚s゚゚凰゚ャ゚ソ゚ム゚艢゚ .漾澳瀛燠犇猥琲.瓲畩疱瘢癶盖瞋碣 (礒秡窩笙箙簗籖糅)<絨綸纓罨羶肛腮舸萢蒻,蕋藥蚋蜿$|N洟蜷d洟` テ& テ テ: テノL~\&vエKpl_ネヲ5ャヤ6tワ(Qひ{0、8dソ9Dロ7x>8:0.;JdDuワ2ケABXヤ6(te)8XコA\Bp Z 70`Y"8ソRTHUヤGW8uOPャトMLNlQフ;L,cCJ<オEt゙Gdgー:pUb`uadセ5゙=?$ ∈ AU k< hー ュ0ィ ホ.シ v< 8 .l ? Qk m糖 }( m ィ クyミ ホ+ レo@ 懆 饗  s 2,8 D Zz mシ  タ 、k、 ナ,ミ モpt 勿 лr[< タ )l0 Dタ T\ e{リ 巨 0 ox ォ サ刈 ヒ, ラネ  @, 忸 "惷 :o G悦 ]&h r*$ #@ 'x ェj チ昏 フ タ杤榧 ( ル  )9Ghサトハミリ ,4;BSYajx「ェイコタミ "-@Rcsy」ャオセノヨ nシHKヒ4klmno、opアクニfgヨ}ヤヨ ー " $ & R U g ァ ア ウ カ ケ テ ネ ユチHチPチ8チPサネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハウユテ噫サネワミレノホラスルヘナ゙ケセニソンヨヌ゚フタムヒシトマモロリコメヤクツハエオキカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~>?ウ。「」@、・ヲAァィゥェォャュョッーアイ6>zケ>エオカBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ウ。「」、・ヲァィゥェォャュョッーアイクケコサシスセソタチツテトナニヌネノハヒ>?フヘホマミムメモヤユヨラリルレロワン゙゚@Aキ___initialize_Cplusplus__dyld_func_lookupcfm_stub_binding_helperdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf$LDBL128_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf$LDBL128_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf$LDBL128_sprintf$LDBL128_sscanf$LDBL128_stat_strcat_strcmp_strcpy_strerror_strlen_strncmp_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld_lazy_symbol_binding_entry_pointdyld__mh_dylib_headerdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled.__initialize_Cplusplus:F(0,1)p:(0,2):t(0,1)=(0,1):t(0,2)=*(0,3):t(0,3)=f(0,1)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s1828reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;cfm_vectors:(0,31),128,7200;GetVersion:(0,32),7328,32;DefineClass:(0,33),7360,32;FindClass:(0,34),7392,32;FromReflectedMethod:(0,35),7424,32;FromReflectedField:(0,36),7456,32;ToReflectedMethod:(0,37),7488,32;GetSuperclass:(0,38),7520,32;IsAssignableFrom:(0,39),7552,32;ToReflectedField:(0,40),7584,32;Throw:(0,41),7616,32;ThrowNew:(0,42),7648,32;ExceptionOccurred:(0,43),7680,32;ExceptionDescribe:(0,44),7712,32;ExceptionClear:(0,44),7744,32;FatalError:(0,45),7776,32;PushLocalFrame:(0,46),7808,32;PopLocalFrame:(0,47),7840,32;NewGlobalRef:(0,47),7872,32;DeleteGlobalRef:(0,48),7904,32;DeleteLocalRef:(0,48),7936,32;IsSameObject:(0,49),7968,32;NewLocalRef:(0,47),8000,32;EnsureLocalCapacity:(0,46),8032,32;AllocObject:(0,50),8064,32;NewObject:(0,51),8096,32;NewObjectV:(0,52),8128,32;NewObjectA:(0,53),8160,32;GetObjectClass:(0,54),8192,32;IsInstanceOf:(0,55),8224,32;GetMethodID:(0,56),8256,32;CallObjectMethod:(0,57),8288,32;CallObjectMethodV:(0,58),8320,32;CallObjectMethodA:(0,59),8352,32;CallBooleanMethod:(0,60),8384,32;CallBooleanMethodV:(0,61),8416,32;CallBooleanMethodA:(0,62),8448,32;CallByteMethod:(0,63),8480,32;CallByteMethodV:(0,64),8512,32;CallByteMethodA:(0,65),8544,32;CallCharMethod:(0,66),8576,32;CallCharMethodV:(0,67),8608,32;CallCharMethodA:(0,68),8640,32;CallShortMethod:(0,69),8672,32;CallShortMethodV:(0,70),8704,32;CallShortMethodA:(0,71),8736,32;CallIntMethod:(0,72),8768,32;CallIntMethodV:(0,73),8800,32;CallIntMethodA:(0,74),8832,32;CallLongMethod:(0,75),8864,32;CallLongMethodV:(0,76),8896,32;CallLongMethodA:(0,77),8928,32;CallFloatMethod:(0,78),8960,32;CallFloatMethodV:(0,79),8992,32;CallFloatMethodA:(0,80),9024,32;CallDoubleMethod:(0,81),9056,32;CallDoubleMethodV:(0,82),9088,32;CallDoubleMethodA:(0,83),9120,32;CallVoidMethod:(0,84),9152,32;CallVoidMethodV:(0,85),9184,32;CallVoidMethodA:(0,86),9216,32;CallNonvirtualObjectMethod:(0,87),9248,32;CallNonvirtualObjectMethodV:(0,88),9280,32;CallNonvirtualObjectMethodA:(0,89),9312,32;CallNonvirtualBooleanMethod:(0,90),9344,32;CallNonvirtualBooleanMethodV:(0,91),9376,32;CallNonvirtualBooleanMethodA:(0,92),9408,32;CallNonvirtualByteMethod:(0,93),9440,32;CallNonvirtualByteMethodV:(0,94),9472,32;CallNonvirtualByteMethodA:(0,95),9504,32;CallNonvirtualCharMethod:(0,96),9536,32;CallNonvirtualCharMethodV:(0,97),9568,32;CallNonvirtualCharMethodA:(0,98),9600,32;CallNonvirtualShortMethod:(0,99),9632,32;CallNonvirtualShortMethodV:(0,100),9664,32;CallNonvirtualShortMethodA:(0,101),9696,32;CallNonvirtualIntMethod:(0,102),9728,32;CallNonvirtualIntMethodV:(0,103),9760,32;CallNonvirtualIntMethodA:(0,104),9792,32;CallNonvirtualLongMethod:(0,105),9824,32;CallNonvirtualLongMethodV:(0,106),9856,32;CallNonvirtualLongMethodA:(0,107),9888,32;CallNonvirtualFloatMethod:(0,108),9920,32;CallNonvirtualFloatMethodV:(0,109),9952,32;CallNonvirtualFloatMethodA:(0,110),9984,32;CallNonvirtualDoubleMethod:(0,111),10016,32;CallNonvirtualDoubleMethodV:(0,112),10048,32;CallNonvirtualDoubleMethodA:(0,113),10080,32;CallNonvirtualVoidMethod:(0,114),10112,32;CallNonvirtualVoidMethodV:(0,115),10144,32;CallNonvirtualVoidMethodA:(0,116),10176,32;GetFieldID:(0,117),10208,32;GetObjectField:(0,118),10240,32;GetBooleanField:(0,119),10272,32;GetByteField:(0,120),10304,32;GetCharField:(0,121),10336,32;GetShortField:(0,122),10368,32;GetIntField:(0,123),10400,32;GetLongField:(0,124),10432,32;GetFloatField:(0,125),10464,32;GetDoubleField:(0,126),10496,32;SetObjectField:(0,127),10528,32;SetBooleanField:(0,128),10560,32;SetByteField:(0,129),10592,32;SetCharField:(0,130),10624,32;SetShortField:(0,131),10656,32;SetIntField:(0,132),10688,32;SetLongField:(0,133),10720,32;SetFloatField:(0,134),10752,32;SetDoubleField:(0,135),10784,32;GetStaticMethodID:(0,56),10816,32;CallStaticObjectMethod:(0,51),10848,32;CallStaticObjectMethodV:(0,52),10880,32;CallStaticObjectMethodA:(0,53),10912,32;CallStaticBooleanMethod:(0,136),10944,32;CallStaticBooleanMethodV:(0,137),10976,32;CallStaticBooleanMethodA:(0,138),11008,32;CallStaticByteMethod:(0,139),11040,32;CallStaticByteMethodV:(0,140),11072,32;CallStaticByteMethodA:(0,141),11104,32;CallStaticCharMethod:(0,142),11136,32;CallStaticCharMethodV:(0,143),11168,32;CallStaticCharMethodA:(0,144),11200,32;CallStaticShortMethod:(0,145),11232,32;CallStaticShortMethodV:(0,146),11264,32;CallStaticShortMethodA:(0,147),11296,32;CallStaticIntMethod:(0,148),11328,32;CallStaticIntMethodV:(0,149),11360,32;CallStaticIntMethodA:(0,150),11392,32;CallStaticLongMethod:(0,151),11424,32;CallStaticLongMethodV:(0,152),11456,32;CallStaticLongMethodA:(0,153),11488,32;CallStaticFloatMethod:(0,154),11520,32;CallStaticFloatMethodV:(0,155),11552,32;CallStaticFloatMethodA:(0,156),11584,32;CallStaticDoubleMethod:(0,157),11616,32;CallStaticDoubleMethodV:(0,158),11648,32;CallStaticDoubleMethodA:(0,159),11680,32;CallStaticVoidMethod:(0,160),11712,32;CallStaticVoidMethodV:(0,161),11744,32;CallStaticVoidMethodA:(0,162),11776,32;GetStaticFieldID:(0,117),11808,32;GetStaticObjectField:(0,163),11840,32;GetStaticBooleanField:(0,164),11872,32;GetStaticByteField:(0,165),11904,32;GetStaticCharField:(0,166),11936,32;GetStaticShortField:(0,167),11968,32;GetStaticIntField:(0,168),12000,32;GetStaticLongField:(0,169),12032,32;GetStaticFloatField:(0,170),12064,32;GetStaticDoubleField:(0,171),12096,32;SetStaticObjectField:(0,172),12128,32;SetStaticBooleanField:(0,173),12160,32;SetStaticByteField:(0,174),12192,32;SetStaticCharField:(0,175),12224,32;SetStaticShortField:(0,176),12256,32;SetStaticIntField:(0,177),12288,32;SetStaticLongField:(0,178),12320,32;SetStaticFloatField:(0,179),12352,32;SetStaticDoubleField:(0,180),12384,32;NewString:(0,181),12416,32;GetStringLength:(0,182),12448,32;GetStringChars:(0,183),12480,32;ReleaseStringChars:(0,184),12512,32;NewStringUTF:(0,185),12544,32;GetStringUTFLength:(0,182),12576,32;GetStringUTFChars:(0,186),12608,32;ReleaseStringUTFChars:(0,187),12640,32;GetArrayLength:(0,188),12672,32;NewObjectArray:(0,189),12704,32;GetObjectArrayElement:(0,190),12736,32;SetObjectArrayElement:(0,191),12768,32;NewBooleanArray:(0,192),12800,32;NewByteArray:(0,193),12832,32;NewCharArray:(0,194),12864,32;NewShortArray:(0,195),12896,32;NewIntArray:(0,196),12928,32;NewLongArray:(0,197),12960,32;NewFloatArray:(0,198),12992,32;NewDoubleArray:(0,199),13024,32;GetBooleanArrayElements:(0,200),13056,32;GetByteArrayElements:(0,201),13088,32;GetCharArrayElements:(0,202),13120,32;GetShortArrayElements:(0,203),13152,32;GetIntArrayElements:(0,204),13184,32;GetLongArrayElements:(0,205),13216,32;GetFloatArrayElements:(0,206),13248,32;GetDoubleArrayElements:(0,207),13280,32;ReleaseBooleanArrayElements:(0,208),13312,32;ReleaseByteArrayElements:(0,209),13344,32;ReleaseCharArrayElements:(0,210),13376,32;ReleaseShortArrayElements:(0,211),13408,32;ReleaseIntArrayElements:(0,212),13440,32;ReleaseLongArrayElements:(0,213),13472,32;ReleaseFloatArrayElements:(0,214),13504,32;ReleaseDoubleArrayElements:(0,215),13536,32;GetBooleanArrayRegion:(0,216),13568,32;GetByteArrayRegion:(0,217),13600,32;GetCharArrayRegion:(0,218),13632,32;GetShortArrayRegion:(0,219),13664,32;GetIntArrayRegion:(0,220),13696,32;GetLongArrayRegion:(0,221),13728,32;GetFloatArrayRegion:(0,222),13760,32;GetDoubleArrayRegion:(0,223),13792,32;SetBooleanArrayRegion:(0,224),13824,32;SetByteArrayRegion:(0,225),13856,32;SetCharArrayRegion:(0,226),13888,32;SetShortArrayRegion:(0,227),13920,32;SetIntArrayRegion:(0,228),13952,32;SetLongArrayRegion:(0,229),13984,32;SetFloatArrayRegion:(0,230),14016,32;SetDoubleArrayRegion:(0,231),14048,32;RegisterNatives:(0,232),14080,32;UnregisterNatives:(0,233),14112,32;MonitorEnter:(0,234),14144,32;MonitorExit:(0,234),14176,32;GetJavaVM:(0,235),14208,32;GetStringRegion:(0,236),14240,32;GetStringUTFRegion:(0,237),14272,32;GetPrimitiveArrayCritical:(0,238),14304,32;ReleasePrimitiveArrayCritical:(0,239),14336,32;GetStringCritical:(0,183),14368,32;ReleaseStringCritical:(0,184),14400,32;NewWeakGlobalRef:(0,240),14432,32;DeleteWeakGlobalRef:(0,241),14464,32;ExceptionCheck:(0,242),14496,32;NewDirectByteBuffer:(0,243),14528,32;GetDirectBufferAddress:(0,244),14560,32;GetDirectBufferCapacity:(0,245),14592,32;;:t(0,30)=*(0,246):t(0,31)=ar(0,21);0;224;(0,30):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=*(0,460):t(0,246)=(0,246):t(0,247)=f(0,461):t(0,248)=f(0,8):t(0,249)=f(0,8):t(0,250)=f(0,10):t(0,251)=f(0,462):t(0,252)=f(0,9):t(0,253)=f(0,8):t(0,254)=f(0,463):t(0,255)=f(0,9):t(0,256)=f(0,461):t(0,257)=f(0,461):t(0,258)=f(0,464):t(0,259)=f(0,246):t(0,260)=f(0,246):t(0,261)=f(0,461):t(0,262)=f(0,9):t(0,263)=f(0,246):t(0,264)=f(0,463):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,9):t(0,269)=f(0,8):t(0,270)=f(0,463):t(0,271)=f(0,10):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,9):t(0,275)=f(0,463):t(0,276)=f(0,463):t(0,277)=f(0,463):t(0,278)=f(0,465):t(0,279)=f(0,465):t(0,280)=f(0,465):t(0,281)=f(0,466):t(0,282)=f(0,466):t(0,283)=f(0,466):t(0,284)=f(0,467):t(0,285)=f(0,467):t(0,286)=f(0,467):t(0,287)=f(0,461):t(0,288)=f(0,461):t(0,289)=f(0,461):t(0,290)=f(0,468):t(0,291)=f(0,468):t(0,292)=f(0,468):t(0,293)=f(0,469):t(0,294)=f(0,469):t(0,295)=f(0,469):t(0,296)=f(0,470):t(0,297)=f(0,470):t(0,298)=f(0,470):t(0,299)=f(0,246):t(0,300)=f(0,246):t(0,301)=f(0,246):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,9):t(0,305)=f(0,463):t(0,306)=f(0,463):t(0,307)=f(0,463):t(0,308)=f(0,465):t(0,309)=f(0,465):t(0,310)=f(0,465):t(0,311)=f(0,466):t(0,312)=f(0,466):t(0,313)=f(0,466):t(0,314)=f(0,467):t(0,315)=f(0,467):t(0,316)=f(0,467):t(0,317)=f(0,461):t(0,318)=f(0,461):t(0,319)=f(0,461):t(0,320)=f(0,468):t(0,321)=f(0,468):t(0,322)=f(0,468):t(0,323)=f(0,469):t(0,324)=f(0,469):t(0,325)=f(0,469):t(0,326)=f(0,470):t(0,327)=f(0,470):t(0,328)=f(0,470):t(0,329)=f(0,246):t(0,330)=f(0,246):t(0,331)=f(0,246):t(0,332)=f(0,462):t(0,333)=f(0,9):t(0,334)=f(0,463):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,467):t(0,338)=f(0,461):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,470):t(0,342)=f(0,246):t(0,343)=f(0,246):t(0,344)=f(0,246):t(0,345)=f(0,246):t(0,346)=f(0,246):t(0,347)=f(0,246):t(0,348)=f(0,246):t(0,349)=f(0,246):t(0,350)=f(0,246):t(0,351)=f(0,463):t(0,352)=f(0,463):t(0,353)=f(0,463):t(0,354)=f(0,465):t(0,355)=f(0,465):t(0,356)=f(0,465):t(0,357)=f(0,466):t(0,358)=f(0,466):t(0,359)=f(0,466):t(0,360)=f(0,467):t(0,361)=f(0,467):t(0,362)=f(0,467):t(0,363)=f(0,461):t(0,364)=f(0,461):t(0,365)=f(0,461):t(0,366)=f(0,468):t(0,367)=f(0,468):t(0,368)=f(0,468):t(0,369)=f(0,469):t(0,370)=f(0,469):t(0,371)=f(0,469):t(0,372)=f(0,470):t(0,373)=f(0,470):t(0,374)=f(0,470):t(0,375)=f(0,246):t(0,376)=f(0,246):t(0,377)=f(0,246):t(0,378)=f(0,9):t(0,379)=f(0,463):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,467):t(0,383)=f(0,461):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,470):t(0,387)=f(0,246):t(0,388)=f(0,246):t(0,389)=f(0,246):t(0,390)=f(0,246):t(0,391)=f(0,246):t(0,392)=f(0,246):t(0,393)=f(0,246):t(0,394)=f(0,246):t(0,395)=f(0,246):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,473):t(0,399)=f(0,246):t(0,400)=f(0,471):t(0,401)=f(0,474):t(0,402)=f(0,246):t(0,403)=f(0,472):t(0,404)=f(0,475):t(0,405)=f(0,9):t(0,406)=f(0,246):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,491):t(0,423)=f(0,246):t(0,424)=f(0,246):t(0,425)=f(0,246):t(0,426)=f(0,246):t(0,427)=f(0,246):t(0,428)=f(0,246):t(0,429)=f(0,246):t(0,430)=f(0,246):t(0,431)=f(0,246):t(0,432)=f(0,246):t(0,433)=f(0,246):t(0,434)=f(0,246):t(0,435)=f(0,246):t(0,436)=f(0,246):t(0,437)=f(0,246):t(0,438)=f(0,246):t(0,439)=f(0,246):t(0,440)=f(0,246):t(0,441)=f(0,246):t(0,442)=f(0,246):t(0,443)=f(0,246):t(0,444)=f(0,246):t(0,445)=f(0,246):t(0,446)=f(0,246):t(0,447)=f(0,461):t(0,448)=f(0,461):t(0,449)=f(0,461):t(0,450)=f(0,461):t(0,451)=f(0,246):t(0,452)=f(0,246):t(0,453)=f(0,30):t(0,454)=f(0,246):t(0,455)=f(0,492):t(0,456)=f(0,246):t(0,457)=f(0,463):t(0,458)=f(0,9):t(0,459)=f(0,30):t(0,460)=f(0,468)jint:t(0,461)=(0,18)jfieldID:t(0,462)=(0,493)jboolean:t(0,463)=(0,494)jthrowable:t(0,464)=(0,9)jbyte:t(0,465)=(0,495)jchar:t(0,466)=(0,496)jshort:t(0,467)=(0,497)jlong:t(0,468)=(0,498)jfloat:t(0,469)=(0,499)jdouble:t(0,470)=(0,500)jstring:t(0,471)=(0,9)jsize:t(0,472)=(0,461):t(0,473)=*(0,501):t(0,474)=*(0,502)jobjectArray:t(0,475)=(0,503)jbooleanArray:t(0,476)=(0,503)jbyteArray:t(0,477)=(0,503)jcharArray:t(0,478)=(0,503)jshortArray:t(0,479)=(0,503)jintArray:t(0,480)=(0,503)jlongArray:t(0,481)=(0,503)jfloatArray:t(0,482)=(0,503)jdoubleArray:t(0,483)=(0,503):t(0,484)=*(0,463):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,467):t(0,488)=*(0,461):t(0,489)=*(0,468):t(0,490)=*(0,469):t(0,491)=*(0,470)jweak:t(0,492)=(0,9):t(0,493)=*(0,504)unsigned char:t(0,494)=@s8;r(0,494);0;255;signed char:t(0,495)=@s8;r(0,495);-128;127;short unsigned int:t(0,496)=@s16;r(0,496);0;65535;short int:t(0,497)=@s16;r(0,497);-32768;32767;long long int:t(0,498)=@s64;r(0,498);01000000000000000000000;0777777777777777777777;float:t(0,499)=r(0,2);4;0;double:t(0,500)=r(0,2);8;0;:t(0,501)=k(0,466):t(0,502)=k(0,22)jarray:t(0,503)=(0,9):t(0,504)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,246)env:p(0,6)jclazz:p(0,8)old_action:(0,505)sigaction:T(0,505)=s12__sigaction_u:(0,506),0,32;sa_mask:(0,507),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,506)=u4__sa_handler:(0,509),0,32;__sa_sigaction:(0,510),0,32;;__darwin_sigset_t:t(0,508)=(0,511)sigset_t:t(0,507)=(0,508):t(0,509)=*(0,512):t(0,510)=*(0,513)__uint32_t:t(0,511)=(0,4):t(0,512)=f(0,246):t(0,513)=f(0,246)new_action:(0,505)block_mask:(0,507)sigset_t:t(0,507)find_preopened_ports:F(0,2)filename:p(0,474)fd:(0,2)int:t(0,2)p:(0,514)preopened:T(0,515)=s52filename:(0,516),0,320;fd:(0,2),320,32;next:(0,514),352,32;prev:(0,514),384,32;;:t(0,514)=*(0,515):t(0,516)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,517)termios:T(0,517)=s44c_iflag:(0,518),0,32;c_oflag:(0,518),32,32;c_cflag:(0,518),64,32;c_lflag:(0,518),96,32;c_cc:(0,520),128,160;c_ispeed:(0,521),288,32;c_ospeed:(0,521),320,32;;long unsigned int:t(0,519)=r(0,519);0;037777777777;tcflag_t:t(0,518)=(0,519):t(0,520)=ar(0,21);0;19;(0,522)speed_t:t(0,521)=(0,18)cc_t:t(0,522)=(0,494)void:t(0,246)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,517)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,462)jfdataBits:(0,462)jfstopBits:(0,462)jfparity:(0,462)Java_gnu_io_RXTXPort_open:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,474)char:t(0,22)jclazz:(0,8)jfid:(0,462)Java_gnu_io_RXTXPort_nativeClose:F(0,246)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,474)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,517)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,463)env:p(0,6)jobj:p(0,9)speed:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,461)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,523)dataBits:p(0,461)temp:(0,2):t(0,523)=*(0,518)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,523)stopBits:p(0,461)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,461)env:p(0,6)jobj:p(0,9)fd:p(0,461)ttyset:(0,517)translate_parity:F(0,2)env:p(0,6)cflag:p(0,523)parity:p(0,461)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,246)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,246)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,462)newmask:(0,507)oldmask:(0,507)newaction:(0,505)oldaction:(0,505)tid:(0,524)_opaque_pthread_t:T(0,526)=s604__sig:(0,18),0,32;__cleanup_stack:(0,527),32,32;__opaque:(0,528),64,4768;;__darwin_pthread_t:t(0,525)=(0,529)pthread_t:t(0,524)=(0,525):t(0,527)=*(0,530):t(0,528)=ar(0,21);0;595;(0,22):t(0,529)=*(0,526)__darwin_pthread_handler_rec:T(0,530)=s12__routine:(0,531),0,32;__arg:(0,30),32,32;__next:(0,527),64,32;;:t(0,531)=*(0,532):t(0,532)=f(0,246)Java_gnu_io_RXTXPort_writeByte:F(0,246)env:p(0,6)jobj:p(0,9)ji:p(0,461)interrupted:p(0,463)index:(0,12)byte:(0,494)unsigned char:t(0,494)fd:(0,2)result:(0,2)msg:(0,5)Java_gnu_io_RXTXPort_writeArray:F(0,246)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)count:p(0,461)interrupted:p(0,463)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,485)jbyte:t(0,465)Java_gnu_io_RXTXPort_nativeDrain:F(0,463)env:p(0,6)jobj:p(0,9)interrupted:p(0,463)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,246)env:p(0,6)jobj:p(0,9)duration:p(0,461)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_isDSR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDSR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isDTR:F(0,463)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,246)env:p(0,6)jobj:p(0,9)state:p(0,463)result:(0,4)fd:(0,2)message:(0,5)static_add_filename:F(0,246)filename:p(0,474)fd:p(0,2)newp:(0,514)p:(0,514)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,463)env:p(0,6)jobj:p(0,9)BaudBase:p(0,461)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,463)env:p(0,6)jobj:p(0,9)Divisor:p(0,461)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,474)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,246)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)baudrate:p(0,461)dataBits:p(0,461)stopBits:p(0,461)parity:p(0,461)fd:(0,2)pid:(0,2)filename:(0,474)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,463)env:p(0,6)jclazz:p(0,8)jstr:p(0,471)flag:p(0,463)fd:(0,2)pid:(0,2)filename:(0,474)result:(0,2)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,463)env:p(0,6)jobj:p(0,9)jstr:p(0,471)result:(0,4)filename:(0,474)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,461)env:p(0,6)jobj:p(0,9)jstr:p(0,471)filename:(0,474)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,465)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,465)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,517)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,463)env:p(0,6)jobj:p(0,9)value:p(0,465)fd:(0,2)ttyset:(0,517)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,533)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,533)=*(0,494)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,534):t(0,534)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,246)env:p(0,6)jobj:p(0,9)vtime:p(0,461)threshold:p(0,461)buffer:p(0,461)fd:(0,2)ttyset:(0,517)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,461)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,535)fd:(0,2):t(0,535)=ar(0,21);0;0;(0,494)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)bytes:(0,2)body:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,463)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,461)env:p(0,6)jobj:p(0,9)jbarray:p(0,477)offset:p(0,461)length:p(0,461)jterminator:p(0,477)bytes:(0,2)total:(0,2)body:(0,485)terminator:(0,485)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,461)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,246)env:p(0,6)jobj:p(0,9)flowmode:p(0,461)ttyset:(0,517)fd:(0,2)unlock_monitor_thread:F(0,246)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,462)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,246)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,246)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,246)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,246)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,246)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,246)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,471)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)port_type:p(0,461)ttyset:(0,517)c:(0,22)fd:(0,2)name:(0,474)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,517)createSerialIterator:F(0,536)serialIterator:p(0,537)kernResult:(0,536)kern_return_t:t(0,536)=(0,2):t(0,537)=*(0,538)io_iterator_t:t(0,538)=(0,539)io_object_t:t(0,539)=(0,540)mach_port_t:t(0,540)=(0,541)__darwin_mach_port_t:t(0,541)=(0,542)__darwin_mach_port_name_t:t(0,542)=(0,543)__darwin_natural_t:t(0,543)=(0,4)masterPort:(0,540)mach_port_t:t(0,540)classesToMatch:(0,544):t(0,545)=*(0,546)CFMutableDictionaryRef:t(0,544)=(0,545):t(0,546)=xs__CFDictionary:_resultStr.13368getRegistryString:F(0,547)sObj:p(0,539)propName:p(0,547)resultStr:V(0,548)nameCFstring:(0,549):t(0,547)=*(0,22):t(0,548)=ar(0,21);0;255;(0,22):t(0,550)=*(0,551)CFTypeRef:t(0,549)=(0,550):t(0,551)=k(0,246)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,461)theSerialIterator:(0,538)io_iterator_t:t(0,538)theObject:(0,539)io_object_t:t(0,539)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,471)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,463)env:p(0,6)jobj:p(0,9)portType:p(0,461) :T(0,552)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552) :T(0,552)result:(0,463)jboolean:t(0,463)message:(0,5)_mystat.13460Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,463)env:p(0,6)jobj:p(0,9)tty_name:p(0,471)result:(0,463)mystat:V(0,553)stat:T(0,553)=s96st_dev:(0,554),0,32;st_ino:(0,556),32,32;st_mode:(0,558),64,16;st_nlink:(0,560),80,16;st_uid:(0,562),96,32;st_gid:(0,564),128,32;st_rdev:(0,554),160,32;st_atimespec:(0,566),192,64;st_mtimespec:(0,566),256,64;st_ctimespec:(0,566),320,64;st_size:(0,567),384,64;st_blocks:(0,569),448,64;st_blksize:(0,571),512,32;st_flags:(0,511),544,32;st_gen:(0,511),576,32;st_lspare:(0,20),608,32;st_qspare:(0,573),640,128;;timespec:T(0,566)=s8tv_sec:(0,574),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,555)=(0,20)dev_t:t(0,554)=(0,555)__darwin_ino_t:t(0,557)=(0,511)ino_t:t(0,556)=(0,557)__darwin_mode_t:t(0,559)=(0,561)mode_t:t(0,558)=(0,559)__uint16_t:t(0,561)=(0,496)nlink_t:t(0,560)=(0,561)__darwin_uid_t:t(0,563)=(0,511)uid_t:t(0,562)=(0,563)__darwin_gid_t:t(0,565)=(0,511)gid_t:t(0,564)=(0,565)__darwin_off_t:t(0,568)=(0,575)off_t:t(0,567)=(0,568)__darwin_blkcnt_t:t(0,570)=(0,575)blkcnt_t:t(0,569)=(0,570)__darwin_blksize_t:t(0,572)=(0,20)blksize_t:t(0,571)=(0,572):t(0,573)=ar(0,21);0;1;(0,575)time_t:t(0,574)=(0,17)__int64_t:t(0,575)=(0,498)teststring:(0,548)fd:(0,2)i:(0,2)name:(0,474)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,471)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,246)env:p(0,6)jobj:p(0,9)size:p(0,461)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,461)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,246)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,463)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,246)env:p(0,6)jobj:p(0,9)fd:p(0,461)event:p(0,461)flag:p(0,463)index:(0,12)send_event:F(0,2)eis:p(0,12)type:p(0,461)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,576)env:p(0,6)jobj:p(0,9)id:p(0,547)type:p(0,547)result:(0,2)__darwin_size_t:t(0,577)=(0,519)size_t:t(0,576)=(0,577)jclazz:(0,8)jfd:(0,462)throw_java_exception:F(0,246)env:p(0,6)exc:p(0,547)foo:p(0,547)msg:p(0,547)buf:(0,578)clazz:(0,8):t(0,578)=ar(0,21);0;59;(0,22)report_warning:F(0,246)msg:p(0,547)report_verbose:F(0,246)msg:p(0,547)report_error:F(0,246)msg:p(0,547)report:F(0,246)msg:p(0,547)fhs_lock:F(0,2)filename:p(0,474)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,579)message:(0,5)file:(0,5)p:(0,547):t(0,579)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,474)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,579)message:(0,5)name:(0,5)fd:(0,2)buf:(0,553)check_lock_status:F(0,2)filename:p(0,474)buf:(0,553)fhs_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)file:(0,5)p:(0,547)i:(0,2)uucp_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)buf:(0,553)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,474)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,579)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,580)testLockFileDirName:(0,581)testLockFileName:(0,582)testLockAbsFileName:(0,547):t(0,580)=*(0,583):t(0,581)=ar(0,21);0;9;(0,22):t(0,582)=ar(0,21);0;9;(0,22)FILE:t(0,583)=(0,584)__sFILE:T(0,584)=s88_p:(0,533),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,497),96,16;_file:(0,497),112,16;_bf:(0,585),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,586),256,32;_read:(0,587),288,32;_seek:(0,588),320,32;_write:(0,589),352,32;_ub:(0,585),384,64;_extra:(0,590),448,32;_ur:(0,2),480,32;_ubuf:(0,591),512,24;_nbuf:(0,535),536,8;_lb:(0,585),544,64;_blksize:(0,2),608,32;_offset:(0,592),640,64;;__sbuf:T(0,585)=s8_base:(0,533),0,32;_size:(0,2),32,32;;:t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=*(0,597):t(0,591)=ar(0,21);0;2;(0,494)fpos_t:t(0,592)=(0,568):t(0,593)=f(0,2):t(0,594)=f(0,2):t(0,595)=f(0,592):t(0,596)=f(0,2):t(0,597)=xs__sFILEX:_C.128.13902_C.127.13901is_device_locked:F(0,2)port_filename:p(0,474)lockdirs:(0,598)lockprefixes:(0,599)p:(0,547):t(0,598)=ar(0,21);0;12;(0,474):t(0,599)=ar(0,21);0;3;(0,474)file:(0,5)pid_buffer:(0,600)message:(0,5)i:(0,2):t(0,600)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,553)buf2:(0,553)lockbuf:(0,553)system_does_not_lock:F(0,2)filename:p(0,474)pid:p(0,2)system_does_not_unlock:F(0,246)filename:p(0,474)openpid:p(0,2)dump_termios:F(0,246)foo:p(0,547)ttyset:p(0,601):t(0,601)=*(0,517)get_java_environment:F(0,6)java_vm:p(0,602)was_attached:p(0,484)env:(0,603):t(0,602)=*(0,604):t(0,603)=*(0,30)JavaVM:t(0,604)=(0,605):t(0,605)=*(0,606):t(0,606)=k(0,607)JNIInvokeInterface_:T(0,607)=s48reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;cfm_vectors:(0,608),96,128;DestroyJavaVM:(0,609),224,32;AttachCurrentThread:(0,610),256,32;DetachCurrentThread:(0,609),288,32;GetEnv:(0,611),320,32;AttachCurrentThreadAsDaemon:(0,610),352,32;;:t(0,608)=ar(0,21);0;3;(0,30):t(0,609)=*(0,612):t(0,610)=*(0,613):t(0,611)=*(0,614):t(0,612)=f(0,461):t(0,613)=f(0,461):t(0,614)=f(0,461)err_get_env:(0,461)jint:t(0,461)JNI_OnLoad:F(0,461)java_vm:p(0,602)reserved:p(0,30)JNI_OnUnload:F(0,246)vm:p(0,602)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,602)preopened_port:G(0,514)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s1828reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;cfm_vectors:(0,11),128,7200;GetVersion:(0,12),7328,32;DefineClass:(0,13),7360,32;FindClass:(0,14),7392,32;FromReflectedMethod:(0,15),7424,32;FromReflectedField:(0,16),7456,32;ToReflectedMethod:(0,17),7488,32;GetSuperclass:(0,18),7520,32;IsAssignableFrom:(0,19),7552,32;ToReflectedField:(0,20),7584,32;Throw:(0,21),7616,32;ThrowNew:(0,22),7648,32;ExceptionOccurred:(0,23),7680,32;ExceptionDescribe:(0,24),7712,32;ExceptionClear:(0,24),7744,32;FatalError:(0,25),7776,32;PushLocalFrame:(0,26),7808,32;PopLocalFrame:(0,27),7840,32;NewGlobalRef:(0,27),7872,32;DeleteGlobalRef:(0,28),7904,32;DeleteLocalRef:(0,28),7936,32;IsSameObject:(0,29),7968,32;NewLocalRef:(0,27),8000,32;EnsureLocalCapacity:(0,26),8032,32;AllocObject:(0,30),8064,32;NewObject:(0,31),8096,32;NewObjectV:(0,32),8128,32;NewObjectA:(0,33),8160,32;GetObjectClass:(0,34),8192,32;IsInstanceOf:(0,35),8224,32;GetMethodID:(0,36),8256,32;CallObjectMethod:(0,37),8288,32;CallObjectMethodV:(0,38),8320,32;CallObjectMethodA:(0,39),8352,32;CallBooleanMethod:(0,40),8384,32;CallBooleanMethodV:(0,41),8416,32;CallBooleanMethodA:(0,42),8448,32;CallByteMethod:(0,43),8480,32;CallByteMethodV:(0,44),8512,32;CallByteMethodA:(0,45),8544,32;CallCharMethod:(0,46),8576,32;CallCharMethodV:(0,47),8608,32;CallCharMethodA:(0,48),8640,32;CallShortMethod:(0,49),8672,32;CallShortMethodV:(0,50),8704,32;CallShortMethodA:(0,51),8736,32;CallIntMethod:(0,52),8768,32;CallIntMethodV:(0,53),8800,32;CallIntMethodA:(0,54),8832,32;CallLongMethod:(0,55),8864,32;CallLongMethodV:(0,56),8896,32;CallLongMethodA:(0,57),8928,32;CallFloatMethod:(0,58),8960,32;CallFloatMethodV:(0,59),8992,32;CallFloatMethodA:(0,60),9024,32;CallDoubleMethod:(0,61),9056,32;CallDoubleMethodV:(0,62),9088,32;CallDoubleMethodA:(0,63),9120,32;CallVoidMethod:(0,64),9152,32;CallVoidMethodV:(0,65),9184,32;CallVoidMethodA:(0,66),9216,32;CallNonvirtualObjectMethod:(0,67),9248,32;CallNonvirtualObjectMethodV:(0,68),9280,32;CallNonvirtualObjectMethodA:(0,69),9312,32;CallNonvirtualBooleanMethod:(0,70),9344,32;CallNonvirtualBooleanMethodV:(0,71),9376,32;CallNonvirtualBooleanMethodA:(0,72),9408,32;CallNonvirtualByteMethod:(0,73),9440,32;CallNonvirtualByteMethodV:(0,74),9472,32;CallNonvirtualByteMethodA:(0,75),9504,32;CallNonvirtualCharMethod:(0,76),9536,32;CallNonvirtualCharMethodV:(0,77),9568,32;CallNonvirtualCharMethodA:(0,78),9600,32;CallNonvirtualShortMethod:(0,79),9632,32;CallNonvirtualShortMethodV:(0,80),9664,32;CallNonvirtualShortMethodA:(0,81),9696,32;CallNonvirtualIntMethod:(0,82),9728,32;CallNonvirtualIntMethodV:(0,83),9760,32;CallNonvirtualIntMethodA:(0,84),9792,32;CallNonvirtualLongMethod:(0,85),9824,32;CallNonvirtualLongMethodV:(0,86),9856,32;CallNonvirtualLongMethodA:(0,87),9888,32;CallNonvirtualFloatMethod:(0,88),9920,32;CallNonvirtualFloatMethodV:(0,89),9952,32;CallNonvirtualFloatMethodA:(0,90),9984,32;CallNonvirtualDoubleMethod:(0,91),10016,32;CallNonvirtualDoubleMethodV:(0,92),10048,32;CallNonvirtualDoubleMethodA:(0,93),10080,32;CallNonvirtualVoidMethod:(0,94),10112,32;CallNonvirtualVoidMethodV:(0,95),10144,32;CallNonvirtualVoidMethodA:(0,96),10176,32;GetFieldID:(0,97),10208,32;GetObjectField:(0,98),10240,32;GetBooleanField:(0,99),10272,32;GetByteField:(0,100),10304,32;GetCharField:(0,101),10336,32;GetShortField:(0,102),10368,32;GetIntField:(0,103),10400,32;GetLongField:(0,104),10432,32;GetFloatField:(0,105),10464,32;GetDoubleField:(0,106),10496,32;SetObjectField:(0,107),10528,32;SetBooleanField:(0,108),10560,32;SetByteField:(0,109),10592,32;SetCharField:(0,110),10624,32;SetShortField:(0,111),10656,32;SetIntField:(0,112),10688,32;SetLongField:(0,113),10720,32;SetFloatField:(0,114),10752,32;SetDoubleField:(0,115),10784,32;GetStaticMethodID:(0,36),10816,32;CallStaticObjectMethod:(0,31),10848,32;CallStaticObjectMethodV:(0,32),10880,32;CallStaticObjectMethodA:(0,33),10912,32;CallStaticBooleanMethod:(0,116),10944,32;CallStaticBooleanMethodV:(0,117),10976,32;CallStaticBooleanMethodA:(0,118),11008,32;CallStaticByteMethod:(0,119),11040,32;CallStaticByteMethodV:(0,120),11072,32;CallStaticByteMethodA:(0,121),11104,32;CallStaticCharMethod:(0,122),11136,32;CallStaticCharMethodV:(0,123),11168,32;CallStaticCharMethodA:(0,124),11200,32;CallStaticShortMethod:(0,125),11232,32;CallStaticShortMethodV:(0,126),11264,32;CallStaticShortMethodA:(0,127),11296,32;CallStaticIntMethod:(0,128),11328,32;CallStaticIntMethodV:(0,129),11360,32;CallStaticIntMethodA:(0,130),11392,32;CallStaticLongMethod:(0,131),11424,32;CallStaticLongMethodV:(0,132),11456,32;CallStaticLongMethodA:(0,133),11488,32;CallStaticFloatMethod:(0,134),11520,32;CallStaticFloatMethodV:(0,135),11552,32;CallStaticFloatMethodA:(0,136),11584,32;CallStaticDoubleMethod:(0,137),11616,32;CallStaticDoubleMethodV:(0,138),11648,32;CallStaticDoubleMethodA:(0,139),11680,32;CallStaticVoidMethod:(0,140),11712,32;CallStaticVoidMethodV:(0,141),11744,32;CallStaticVoidMethodA:(0,142),11776,32;GetStaticFieldID:(0,97),11808,32;GetStaticObjectField:(0,143),11840,32;GetStaticBooleanField:(0,144),11872,32;GetStaticByteField:(0,145),11904,32;GetStaticCharField:(0,146),11936,32;GetStaticShortField:(0,147),11968,32;GetStaticIntField:(0,148),12000,32;GetStaticLongField:(0,149),12032,32;GetStaticFloatField:(0,150),12064,32;GetStaticDoubleField:(0,151),12096,32;SetStaticObjectField:(0,152),12128,32;SetStaticBooleanField:(0,153),12160,32;SetStaticByteField:(0,154),12192,32;SetStaticCharField:(0,155),12224,32;SetStaticShortField:(0,156),12256,32;SetStaticIntField:(0,157),12288,32;SetStaticLongField:(0,158),12320,32;SetStaticFloatField:(0,159),12352,32;SetStaticDoubleField:(0,160),12384,32;NewString:(0,161),12416,32;GetStringLength:(0,162),12448,32;GetStringChars:(0,163),12480,32;ReleaseStringChars:(0,164),12512,32;NewStringUTF:(0,165),12544,32;GetStringUTFLength:(0,162),12576,32;GetStringUTFChars:(0,166),12608,32;ReleaseStringUTFChars:(0,167),12640,32;GetArrayLength:(0,168),12672,32;NewObjectArray:(0,169),12704,32;GetObjectArrayElement:(0,170),12736,32;SetObjectArrayElement:(0,171),12768,32;NewBooleanArray:(0,172),12800,32;NewByteArray:(0,173),12832,32;NewCharArray:(0,174),12864,32;NewShortArray:(0,175),12896,32;NewIntArray:(0,176),12928,32;NewLongArray:(0,177),12960,32;NewFloatArray:(0,178),12992,32;NewDoubleArray:(0,179),13024,32;GetBooleanArrayElements:(0,180),13056,32;GetByteArrayElements:(0,181),13088,32;GetCharArrayElements:(0,182),13120,32;GetShortArrayElements:(0,183),13152,32;GetIntArrayElements:(0,184),13184,32;GetLongArrayElements:(0,185),13216,32;GetFloatArrayElements:(0,186),13248,32;GetDoubleArrayElements:(0,187),13280,32;ReleaseBooleanArrayElements:(0,188),13312,32;ReleaseByteArrayElements:(0,189),13344,32;ReleaseCharArrayElements:(0,190),13376,32;ReleaseShortArrayElements:(0,191),13408,32;ReleaseIntArrayElements:(0,192),13440,32;ReleaseLongArrayElements:(0,193),13472,32;ReleaseFloatArrayElements:(0,194),13504,32;ReleaseDoubleArrayElements:(0,195),13536,32;GetBooleanArrayRegion:(0,196),13568,32;GetByteArrayRegion:(0,197),13600,32;GetCharArrayRegion:(0,198),13632,32;GetShortArrayRegion:(0,199),13664,32;GetIntArrayRegion:(0,200),13696,32;GetLongArrayRegion:(0,201),13728,32;GetFloatArrayRegion:(0,202),13760,32;GetDoubleArrayRegion:(0,203),13792,32;SetBooleanArrayRegion:(0,204),13824,32;SetByteArrayRegion:(0,205),13856,32;SetCharArrayRegion:(0,206),13888,32;SetShortArrayRegion:(0,207),13920,32;SetIntArrayRegion:(0,208),13952,32;SetLongArrayRegion:(0,209),13984,32;SetFloatArrayRegion:(0,210),14016,32;SetDoubleArrayRegion:(0,211),14048,32;RegisterNatives:(0,212),14080,32;UnregisterNatives:(0,213),14112,32;MonitorEnter:(0,214),14144,32;MonitorExit:(0,214),14176,32;GetJavaVM:(0,215),14208,32;GetStringRegion:(0,216),14240,32;GetStringUTFRegion:(0,217),14272,32;GetPrimitiveArrayCritical:(0,218),14304,32;ReleasePrimitiveArrayCritical:(0,219),14336,32;GetStringCritical:(0,163),14368,32;ReleaseStringCritical:(0,164),14400,32;NewWeakGlobalRef:(0,220),14432,32;DeleteWeakGlobalRef:(0,221),14464,32;ExceptionCheck:(0,222),14496,32;NewDirectByteBuffer:(0,223),14528,32;GetDirectBufferAddress:(0,224),14560,32;GetDirectBufferCapacity:(0,225),14592,32;;:t(0,10)=*(0,226):t(0,11)=ar(0,227);0;224;(0,10):t(0,12)=*(0,228):t(0,13)=*(0,229):t(0,14)=*(0,230):t(0,15)=*(0,231):t(0,16)=*(0,232):t(0,17)=*(0,233):t(0,18)=*(0,234):t(0,19)=*(0,235):t(0,20)=*(0,236):t(0,21)=*(0,237):t(0,22)=*(0,238):t(0,23)=*(0,239):t(0,24)=*(0,240):t(0,25)=*(0,241):t(0,26)=*(0,242):t(0,27)=*(0,243):t(0,28)=*(0,244):t(0,29)=*(0,245):t(0,30)=*(0,246):t(0,31)=*(0,247):t(0,32)=*(0,248):t(0,33)=*(0,249):t(0,34)=*(0,250):t(0,35)=*(0,251):t(0,36)=*(0,252):t(0,37)=*(0,253):t(0,38)=*(0,254):t(0,39)=*(0,255):t(0,40)=*(0,256):t(0,41)=*(0,257):t(0,42)=*(0,258):t(0,43)=*(0,259):t(0,44)=*(0,260):t(0,45)=*(0,261):t(0,46)=*(0,262):t(0,47)=*(0,263):t(0,48)=*(0,264):t(0,49)=*(0,265):t(0,50)=*(0,266):t(0,51)=*(0,267):t(0,52)=*(0,268):t(0,53)=*(0,269):t(0,54)=*(0,270):t(0,55)=*(0,271):t(0,56)=*(0,272):t(0,57)=*(0,273):t(0,58)=*(0,274):t(0,59)=*(0,275):t(0,60)=*(0,276):t(0,61)=*(0,277):t(0,62)=*(0,278):t(0,63)=*(0,279):t(0,64)=*(0,280):t(0,65)=*(0,281):t(0,66)=*(0,282):t(0,67)=*(0,283):t(0,68)=*(0,284):t(0,69)=*(0,285):t(0,70)=*(0,286):t(0,71)=*(0,287):t(0,72)=*(0,288):t(0,73)=*(0,289):t(0,74)=*(0,290):t(0,75)=*(0,291):t(0,76)=*(0,292):t(0,77)=*(0,293):t(0,78)=*(0,294):t(0,79)=*(0,295):t(0,80)=*(0,296):t(0,81)=*(0,297):t(0,82)=*(0,298):t(0,83)=*(0,299):t(0,84)=*(0,300):t(0,85)=*(0,301):t(0,86)=*(0,302):t(0,87)=*(0,303):t(0,88)=*(0,304):t(0,89)=*(0,305):t(0,90)=*(0,306):t(0,91)=*(0,307):t(0,92)=*(0,308):t(0,93)=*(0,309):t(0,94)=*(0,310):t(0,95)=*(0,311):t(0,96)=*(0,312):t(0,97)=*(0,313):t(0,98)=*(0,314):t(0,99)=*(0,315):t(0,100)=*(0,316):t(0,101)=*(0,317):t(0,102)=*(0,318):t(0,103)=*(0,319):t(0,104)=*(0,320):t(0,105)=*(0,321):t(0,106)=*(0,322):t(0,107)=*(0,323):t(0,108)=*(0,324):t(0,109)=*(0,325):t(0,110)=*(0,326):t(0,111)=*(0,327):t(0,112)=*(0,328):t(0,113)=*(0,329):t(0,114)=*(0,330):t(0,115)=*(0,331):t(0,116)=*(0,332):t(0,117)=*(0,333):t(0,118)=*(0,334):t(0,119)=*(0,335):t(0,120)=*(0,336):t(0,121)=*(0,337):t(0,122)=*(0,338):t(0,123)=*(0,339):t(0,124)=*(0,340):t(0,125)=*(0,341):t(0,126)=*(0,342):t(0,127)=*(0,343):t(0,128)=*(0,344):t(0,129)=*(0,345):t(0,130)=*(0,346):t(0,131)=*(0,347):t(0,132)=*(0,348):t(0,133)=*(0,349):t(0,134)=*(0,350):t(0,135)=*(0,351):t(0,136)=*(0,352):t(0,137)=*(0,353):t(0,138)=*(0,354):t(0,139)=*(0,355):t(0,140)=*(0,356):t(0,141)=*(0,357):t(0,142)=*(0,358):t(0,143)=*(0,359):t(0,144)=*(0,360):t(0,145)=*(0,361):t(0,146)=*(0,362):t(0,147)=*(0,363):t(0,148)=*(0,364):t(0,149)=*(0,365):t(0,150)=*(0,366):t(0,151)=*(0,367):t(0,152)=*(0,368):t(0,153)=*(0,369):t(0,154)=*(0,370):t(0,155)=*(0,371):t(0,156)=*(0,372):t(0,157)=*(0,373):t(0,158)=*(0,374):t(0,159)=*(0,375):t(0,160)=*(0,376):t(0,161)=*(0,377):t(0,162)=*(0,378):t(0,163)=*(0,379):t(0,164)=*(0,380):t(0,165)=*(0,381):t(0,166)=*(0,382):t(0,167)=*(0,383):t(0,168)=*(0,384):t(0,169)=*(0,385):t(0,170)=*(0,386):t(0,171)=*(0,387):t(0,172)=*(0,388):t(0,173)=*(0,389):t(0,174)=*(0,390):t(0,175)=*(0,391):t(0,176)=*(0,392):t(0,177)=*(0,393):t(0,178)=*(0,394):t(0,179)=*(0,395):t(0,180)=*(0,396):t(0,181)=*(0,397):t(0,182)=*(0,398):t(0,183)=*(0,399):t(0,184)=*(0,400):t(0,185)=*(0,401):t(0,186)=*(0,402):t(0,187)=*(0,403):t(0,188)=*(0,404):t(0,189)=*(0,405):t(0,190)=*(0,406):t(0,191)=*(0,407):t(0,192)=*(0,408):t(0,193)=*(0,409):t(0,194)=*(0,410):t(0,195)=*(0,411):t(0,196)=*(0,412):t(0,197)=*(0,413):t(0,198)=*(0,414):t(0,199)=*(0,415):t(0,200)=*(0,416):t(0,201)=*(0,417):t(0,202)=*(0,418):t(0,203)=*(0,419):t(0,204)=*(0,420):t(0,205)=*(0,421):t(0,206)=*(0,422):t(0,207)=*(0,423):t(0,208)=*(0,424):t(0,209)=*(0,425):t(0,210)=*(0,426):t(0,211)=*(0,427):t(0,212)=*(0,428):t(0,213)=*(0,429):t(0,214)=*(0,430):t(0,215)=*(0,431):t(0,216)=*(0,432):t(0,217)=*(0,433):t(0,218)=*(0,434):t(0,219)=*(0,435):t(0,220)=*(0,436):t(0,221)=*(0,437):t(0,222)=*(0,438):t(0,223)=*(0,439):t(0,224)=*(0,440):t(0,225)=*(0,441):t(0,226)=(0,226)long unsigned int:t(0,227)=r(0,227);0;037777777777;:t(0,228)=f(0,442):t(0,229)=f(0,443):t(0,230)=f(0,443):t(0,231)=f(0,444):t(0,232)=f(0,445):t(0,233)=f(0,2):t(0,234)=f(0,443):t(0,235)=f(0,446):t(0,236)=f(0,2):t(0,237)=f(0,442):t(0,238)=f(0,442):t(0,239)=f(0,447):t(0,240)=f(0,226):t(0,241)=f(0,226):t(0,242)=f(0,442):t(0,243)=f(0,2):t(0,244)=f(0,226):t(0,245)=f(0,446):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,2):t(0,249)=f(0,2):t(0,250)=f(0,443):t(0,251)=f(0,446):t(0,252)=f(0,444):t(0,253)=f(0,2):t(0,254)=f(0,2):t(0,255)=f(0,2):t(0,256)=f(0,446):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,448):t(0,260)=f(0,448):t(0,261)=f(0,448):t(0,262)=f(0,449):t(0,263)=f(0,449):t(0,264)=f(0,449):t(0,265)=f(0,450):t(0,266)=f(0,450):t(0,267)=f(0,450):t(0,268)=f(0,442):t(0,269)=f(0,442):t(0,270)=f(0,442):t(0,271)=f(0,451):t(0,272)=f(0,451):t(0,273)=f(0,451):t(0,274)=f(0,452):t(0,275)=f(0,452):t(0,276)=f(0,452):t(0,277)=f(0,453):t(0,278)=f(0,453):t(0,279)=f(0,453):t(0,280)=f(0,226):t(0,281)=f(0,226):t(0,282)=f(0,226):t(0,283)=f(0,2):t(0,284)=f(0,2):t(0,285)=f(0,2):t(0,286)=f(0,446):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,448):t(0,290)=f(0,448):t(0,291)=f(0,448):t(0,292)=f(0,449):t(0,293)=f(0,449):t(0,294)=f(0,449):t(0,295)=f(0,450):t(0,296)=f(0,450):t(0,297)=f(0,450):t(0,298)=f(0,442):t(0,299)=f(0,442):t(0,300)=f(0,442):t(0,301)=f(0,451):t(0,302)=f(0,451):t(0,303)=f(0,451):t(0,304)=f(0,452):t(0,305)=f(0,452):t(0,306)=f(0,452):t(0,307)=f(0,453):t(0,308)=f(0,453):t(0,309)=f(0,453):t(0,310)=f(0,226):t(0,311)=f(0,226):t(0,312)=f(0,226):t(0,313)=f(0,445):t(0,314)=f(0,2):t(0,315)=f(0,446):t(0,316)=f(0,448):t(0,317)=f(0,449):t(0,318)=f(0,450):t(0,319)=f(0,442):t(0,320)=f(0,451):t(0,321)=f(0,452):t(0,322)=f(0,453):t(0,323)=f(0,226):t(0,324)=f(0,226):t(0,325)=f(0,226):t(0,326)=f(0,226):t(0,327)=f(0,226):t(0,328)=f(0,226):t(0,329)=f(0,226):t(0,330)=f(0,226):t(0,331)=f(0,226):t(0,332)=f(0,446):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,448):t(0,336)=f(0,448):t(0,337)=f(0,448):t(0,338)=f(0,449):t(0,339)=f(0,449):t(0,340)=f(0,449):t(0,341)=f(0,450):t(0,342)=f(0,450):t(0,343)=f(0,450):t(0,344)=f(0,442):t(0,345)=f(0,442):t(0,346)=f(0,442):t(0,347)=f(0,451):t(0,348)=f(0,451):t(0,349)=f(0,451):t(0,350)=f(0,452):t(0,351)=f(0,452):t(0,352)=f(0,452):t(0,353)=f(0,453):t(0,354)=f(0,453):t(0,355)=f(0,453):t(0,356)=f(0,226):t(0,357)=f(0,226):t(0,358)=f(0,226):t(0,359)=f(0,2):t(0,360)=f(0,446):t(0,361)=f(0,448):t(0,362)=f(0,449):t(0,363)=f(0,450):t(0,364)=f(0,442):t(0,365)=f(0,451):t(0,366)=f(0,452):t(0,367)=f(0,453):t(0,368)=f(0,226):t(0,369)=f(0,226):t(0,370)=f(0,226):t(0,371)=f(0,226):t(0,372)=f(0,226):t(0,373)=f(0,226):t(0,374)=f(0,226):t(0,375)=f(0,226):t(0,376)=f(0,226):t(0,377)=f(0,1):t(0,378)=f(0,454):t(0,379)=f(0,455):t(0,380)=f(0,226):t(0,381)=f(0,1):t(0,382)=f(0,456):t(0,383)=f(0,226):t(0,384)=f(0,454):t(0,385)=f(0,457):t(0,386)=f(0,2):t(0,387)=f(0,226):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,472):t(0,403)=f(0,473):t(0,404)=f(0,226):t(0,405)=f(0,226):t(0,406)=f(0,226):t(0,407)=f(0,226):t(0,408)=f(0,226):t(0,409)=f(0,226):t(0,410)=f(0,226):t(0,411)=f(0,226):t(0,412)=f(0,226):t(0,413)=f(0,226):t(0,414)=f(0,226):t(0,415)=f(0,226):t(0,416)=f(0,226):t(0,417)=f(0,226):t(0,418)=f(0,226):t(0,419)=f(0,226):t(0,420)=f(0,226):t(0,421)=f(0,226):t(0,422)=f(0,226):t(0,423)=f(0,226):t(0,424)=f(0,226):t(0,425)=f(0,226):t(0,426)=f(0,226):t(0,427)=f(0,226):t(0,428)=f(0,442):t(0,429)=f(0,442):t(0,430)=f(0,442):t(0,431)=f(0,442):t(0,432)=f(0,226):t(0,433)=f(0,226):t(0,434)=f(0,10):t(0,435)=f(0,226):t(0,436)=f(0,474):t(0,437)=f(0,226):t(0,438)=f(0,446):t(0,439)=f(0,2):t(0,440)=f(0,10):t(0,441)=f(0,451)jint:t(0,442)=(0,475)jclass:t(0,443)=(0,2)jmethodID:t(0,444)=(0,476)jfieldID:t(0,445)=(0,477)jboolean:t(0,446)=(0,478)jthrowable:t(0,447)=(0,2)jbyte:t(0,448)=(0,479)jchar:t(0,449)=(0,480)jshort:t(0,450)=(0,481)jlong:t(0,451)=(0,482)jfloat:t(0,452)=(0,483)jdouble:t(0,453)=(0,484)jsize:t(0,454)=(0,442):t(0,455)=*(0,485):t(0,456)=*(0,486)jobjectArray:t(0,457)=(0,487)jbooleanArray:t(0,458)=(0,487)jbyteArray:t(0,459)=(0,487)jcharArray:t(0,460)=(0,487)jshortArray:t(0,461)=(0,487)jintArray:t(0,462)=(0,487)jlongArray:t(0,463)=(0,487)jfloatArray:t(0,464)=(0,487)jdoubleArray:t(0,465)=(0,487):t(0,466)=*(0,446):t(0,467)=*(0,448):t(0,468)=*(0,449):t(0,469)=*(0,450):t(0,470)=*(0,442):t(0,471)=*(0,451):t(0,472)=*(0,452):t(0,473)=*(0,453)jweak:t(0,474)=(0,2)long int:t(0,475)=r(0,475);-2147483648;2147483647;:t(0,476)=*(0,488):t(0,477)=*(0,489)unsigned char:t(0,478)=@s8;r(0,478);0;255;signed char:t(0,479)=@s8;r(0,479);-128;127;short unsigned int:t(0,480)=@s16;r(0,480);0;65535;short int:t(0,481)=@s16;r(0,481);-32768;32767;long long int:t(0,482)=@s64;r(0,482);01000000000000000000000;0777777777777777777777;float:t(0,483)=r(0,490);4;0;double:t(0,484)=r(0,490);8;0;:t(0,485)=k(0,449):t(0,486)=k(0,491)jarray:t(0,487)=(0,2):t(0,488)=xs_jmethodID::t(0,489)=xs_jfieldID:char:t(0,491)=r(0,491);0;127;ホ H__TEXT__text__TEXTエ ヨmエ __picsymbol_stub__TEXT学学__cstring__TEXT詣p詣__textcoal_nt__TEXT __DATA__data__DATA__dyld__DATA__cfstring__DATA __bss__DATA@`__common__DATA@タ__IMPORT__jump_table__IMPORT"__pointers__IMPORT"。$"。:8__LINKEDITーーー ォ </4C/usr/local/lib/librxtxSerial.jnilib h"ヒケCp/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation T"ヒケC/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit X"ヒケC/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 45FC/usr/lib/libgcc_s.1.dylib 4"ヒケCX/usr/lib/libSystem.B.dylibーw, P22zャ=qz舩uキpCoーo=XーG朽W琲X朽G熕瑞瑞振牙VS`丘畿麹ャ可クL吋$欝$ $鞅畿 怨H畿 輝|畿吋$畿 $メ怨P畿怨L畿鴻m吋$ 鴻、m吋$欝$畿 $雍Y怨ャ畿 笈虚P鴻ィm吋$ 鴻ーm吋$欝$畿 $ム怨T回黒ャクL吋$欝$ $$解ト`[^]ツ瑞瑞瑞U牙8孔吋$ヌD$ヌ$畿タu6ヌEワヌEヌE畿ワ右萇D$孔煢D$ヌ$靹ノテ瑞瑞瑞U牙S4雍鴻齦右マu ヌE鰛偽畿吋$$錵タ。畿機(右畿機0タt;畿機,タt1畿輝0畿機,隠,畿輝,畿機0隠0畿$鐶畿右蓁r畿機0タt畿機0ヌ@,ヤ畿機,タt畿機,ヌ@0サ畿$鴻齦ヌ畿右蓁畿機,タt畿機,右-ヌE畿艫ト4[]テ瑞瑞瑞U牙Xマ位孔フ吋$畿$雎タ芦ヌEフヌEリヌEミヌEヤニEニEヌD$%孔フ$閨タxuヌD$%孔フ$鎹タx^孔フ吋$ヌD$畿$)タx@靆吋$ヌD$畿$錵ヌD$@ヌD$畿$*ヌEトヌEト畿トノテ瑞瑞瑞U牙畿右±ハ±匠±д±<マ2=マ2マ!ヌE鱠マK#マn%゙±,Г±,±±ネャ±X±ー吹}K=±KG±タ ±タ±` 餝±%±@83±±±pモ±マ±ツマ±ヒ鱇ヌE鯏ヌE2鮃ヌEK鬮ヌEn髻ヌE體ヌE驥ヌEネ~ヌE,uヌEXlヌEーcヌEZヌE` QヌEタHヌE%?ヌE@86ヌEK-ヌEp$ヌEヌEヌEツ ヌE畿ノテ瑞瑞瑞U牙VSp鐫ヌEヤヌEリヌEワ畿輝|畿 吋$畿$メ右芫E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右闍E巨x鴻g吋$ 鴻h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻"h吋$畿芍D$畿$メ右畿巨x鴻g吋$ 鴻.h吋$畿芍D$畿$メ右畿輝\畿芍D$畿$メ孔ィ吋$畿$鑪タy*鴻6h$霓U畿輝\畿芍D$畿$メ驗畿ー可≫蔚怐}t.±wマt6±t±t"ヌEヤヌEヤヌEヤヌEヤ畿ー可≫0蔚±t±0tマtヌEリヌEリヌEリ畿ー可≫蔚、マ、t ±、t ヌEワヌEワ孔ィ$雜右煖E恐エ畿煢$鐐吋$ 畿濶D$畿 吋$畿$ヨ畿巨エ畿ヤ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿ワ吋$ 畿吋$畿 吋$畿$メ畿巨エ畿リ吋$ 畿吋$畿 吋$畿$メζp[^]テ瑞瑞瑞U牙S閂}ヌE畿輝|畿 吋$畿$メ右畿巨x鴻e吋$ 鴻pe吋$畿吋$畿$メ右マuC畿輝@畿$メ畿輝D畿$メ畿輝\畿吋$畿$メヌE阨右闍E巨エ畿濶D$ 畿吋$畿 吋$畿$メ畿輝\畿吋$畿$メ畿巨、ヌD$畿吋$畿$メ右畿濶D$畿$隘Tタф畿吋$鴻xe吋$孔秤$孔秤$雹R畿巨ィ畿吋$畿吋$畿$メ$韵吋$ 鴻リe吋$鴻瀑吋$畿$右ヌE鴻啗$A畿濶$鐓{右孔マt隴{uマ~ニ畿吋$鴻コW吋$孔$鍠{孔$隴@マt2鈩{$錢{吋$ 鴻レW吋$鴻JW吋$畿$闔?スDtヌ蕈鬯マt'畿朽Dタt畿ヌD畿ヌHマto畿機 タte黒顰畿吋$ 孔 吋$畿吋$$闡麹L黒顰クL吋$欝$ $閘zヌD$ヌD$劫L$鑿<ヌ蕈球蕈犠ノテ瑞瑞瑞U牙S4鎭i鴻゙P吋$ 鴻祓吋$畿 吋$畿$鍠=右貴ヌE萼Mb畿蔔鮹科チ禾)チ科吋$畿$陜yζ4[]テ瑞瑞瑞U牙ST鞦h鴻qP吋$ 鴻uP吋$畿 吋$畿$鞆<右孔ネ吋$畿$靉xタxカEカミ禍チミミチ右ト9關y$鐵y吋$ 鴻拔吋$鴻U吋$畿$隹=ヌEト畿トζT[]テ瑞瑞瑞U牙ST/h鴻ソO吋$ 鴻テO吋$畿 吋$畿$)<右孔ネ吋$畿$xタxカE驗タ並カタ右ト9韲x$霑x吋$ 鴻T吋$鴻OT吋$畿$ =ヌEト畿トζT[]テ瑞瑞瑞U牙S闊gヌE鴻O吋$ 鴻O吋$畿 吋$畿$閔;右孔吋$ヌD$jt@畿$錻x畿%吋$鴻pT吋$孔$頤w孔$陋=畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S靫fヌE鴻dN吋$ 鴻hN吋$畿 吋$畿$霽:右孔吋$ヌD$jt@畿$闥w畿漾吋$鴻リS吋$孔$錢w畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S-fヌE鴻スM吋$ 鴻チM吋$畿 吋$畿$ :右孔吋$ヌD$jt@畿$齏v畿 吋$鴻MS吋$孔$陏v孔$錚<畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S閔eヌE鴻 M吋$ 鴻M吋$畿 吋$畿$鈩9右孔吋$ヌD$jt@畿$9v畿%吋$鴻キR吋$孔$韆u孔$闔;畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霽dヌE鴻WL吋$ 鴻[L吋$畿 吋$畿$霄8右孔吋$ヌD$jt@畿$閻u畿吋$鴻R吋$孔$4u孔$鞋:畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙Sd畿E班E鴻・K吋$ 鴻ゥK吋$畿 吋$畿$8右孔吋$ヌD$jt@畿$靉t}u 畿κ右 畿瓔右孔吋$ヌD$mt畿$陌tカE秤D$鴻渦吋$孔$鍮t孔$頸9ト[]テ瑞瑞瑞U牙S鍖c畿E班E鴻ロJ吋$ 鴻゚J吋$畿 吋$畿$87右孔吋$ヌD$jt@畿$tカE秤D$鴻マP吋$孔$雍s}u 畿フ右 畿右孔吋$ヌD$mt畿$雋sカE秤D$鴻マP吋$孔$鐵s孔$ 9ト[]テ瑞瑞瑞U牙S鐡bヌE鴻I吋$ 鴻I吋$畿 吋$畿$鏝6右孔吋$ヌD$jt@畿$"s畿吋$鴻O吋$孔$靦r孔$閇8畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S雉a畿E班E鴻CI吋$ 鴻GI吋$畿 吋$畿$陟5右孔吋$ヌD$jt@畿$鑢r}u 畿κ右 畿右孔吋$ヌD$mt畿$7rカE秤D$鴻_O吋$孔$韋q孔$關7ト[]テ瑞瑞瑞U牙S$韲`鴻"r右ヌ$4q右偽畿吋$$陞q偽畿 隠(マu#畿ヌ@,畿ヌ@0鴻"r偽T偽畿吋$$畿機,タt 畿機,右ユ畿ヌ@,偽畿隠0偽畿隠,鴻"r偽ζ$[]テ瑞瑞瑞U牙S `-q$q吋$ 鴻ワM吋$鴻M吋$畿$鎬5クζ[]テ瑞瑞瑞U牙S靦_鞐p$雎p吋$ 鴻ナM吋$鴻。M吋$畿$4クζ[]テ瑞瑞瑞U牙S閧_闖p$鐫p吋$ 鴻凱吋$鴻RM吋$畿$隸4クζ[]テ瑞瑞瑞U牙S3_錙p$p吋$ 鴻OM吋$鴻M吋$畿$鐐4クζ[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右鑵o右畿吋$畿$鞴6タ畿$霰ル右マu;ヌD$畿$鏥o右マy 鑚otリ畿$陜レタヲマ孔濶D$ヌD$jt@畿$+o}u 畿閠フ右齏 畿閠右闕E濶D$ヌD$mt畿$顆n畿吋$畿$:畿吋$畿$靉畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右韶m右畿吋$畿$鐫5タ畿$錣リ右マu;ヌD$畿$靨m右マy 頌mtリ畿$ルタヲマ孔濶D$ヌD$jt@畿$隧m}u 畿閭ネ右齏 畿閭瓔右闕E濶D$ヌD$mt畿$鑾m畿吋$畿$閼8畿吋$畿$鍖畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S4鞨[ヌE畿巨、ヌD$畿吋$畿$メ右畿吋$畿$=右鏝l右畿吋$畿$靈3タミ畿$隰ヨ右閭}u;ヌD$畿$;l右閭}y 鏤ltリ畿濶$閼ラタマyX畿巨ィ畿吋$畿吋$畿$メl$韈k吋$ 鴻J吋$鴻ーI吋$畿$40颯マuO畿巨ィ畿吋$畿吋$畿$メ鴻0J吋$ 鴻ワC吋$鴻ーI吋$畿$鞜/鴆畿 吋$畿吋$畿吋$ 畿吋$畿濶D$畿$4タtU畿巨ィ畿吋$畿吋$畿$メ5k$k吋$ 鴻J吋$鴻ーI吋$畿$鏘/h畿吋$畿$ 6畿濶D$畿$靨畿巨ィ畿吋$畿吋$畿$メ!畿巨ィ畿吋$畿吋$畿$メζ4[]テ瑞瑞瑞U牙8畿E萇E畿巨、ヌD$畿吋$畿$メ右j右畿吋$畿$鑼1タ畿$鏘ヤ右マu;ヌD$畿$鞴i右マy jtリ畿$-ユタヲマ孔濶D$ヌD$jt@畿$霆i}u 畿閭ネ右齏 畿閭右闕E濶D$ヌD$mt畿$閾i畿吋$畿$阮4畿吋$畿$鐓畿巨ィ畿吋$畿吋$畿$メヌE(畿巨ィ畿吋$畿吋$畿$メヌE畿猖テ瑞瑞瑞U牙S韵WヌE畿巨、ヌD$畿吋$畿$メ右畿$頸メ右マu ヌEa孔吋$ヌD$jt@畿$阡h畿吋$鴻sF吋$孔怏$錣h孔怏$齏-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$WヌE畿巨、ヌD$畿吋$畿$メ右畿$'メ右マu ヌEc孔吋$ヌD$jt@畿$靄g畿%吋$鴻フE吋$孔怏$钁g孔怏$-畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S鏝VヌE畿巨、ヌD$畿吋$畿$メ右畿$鏤ム右マu ヌE`孔吋$ヌD$jt@畿$顰f畿吋$鴻#E吋$孔怏$隲f孔怏$鏨,畿ム閭タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S闕UヌE畿巨、ヌD$畿吋$畿$メ右畿$關ミ右マu ヌEa孔吋$ヌD$jt@畿$2f畿漾吋$鴻}D吋$孔怏$鞦e孔怏$濶+畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S霙TヌE畿巨、ヌD$畿吋$畿$メ右畿$霰マ右マu ヌEa孔吋$ヌD$jt@畿$鑒e畿 吋$鴻メC吋$孔怏$e孔怏$霎*畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S顆SヌE畿巨、ヌD$畿吋$畿$メ右畿$顫ホ右マu ヌEc孔吋$ヌD$jt@畿$陷d畿%吋$鴻+C吋$孔怏$鍼d孔怏$頌)畿チタt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙VS`,S畿巨、ヌD$畿吋$畿$メ右畿$6ホ右畿巨ィ畿吋$畿吋$畿$メマu ヌEエn孔タ吋$畿$鞐bタy鴻B$.)ヌEエA孔タ$c家孔タ$#c9ニt ヌEエ孔タ$鞳b右畿$陂マ右エ畿エζ`[^]テ瑞瑞瑞U牙Sd?R畿巨、ヌD$畿吋$畿$メ右畿$鍼ヘ右畿巨ィ畿吋$畿吋$畿$メマu ヌEー髞孔ト吋$畿$韶aタy鴻マA$>(ヌEーg畿フ可≫蔚エ±エt5±エwマエtヌEー8±エt±エt翩EーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd*Q畿巨、ヌD$畿吋$畿$メ右畿$4フ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーw孔ト吋$畿$鞋`タy鴻@$,'ヌEーJ畿フ可≫0蔚エ±エt!±エ0t!マエt ヌEーヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙Sd5P畿巨、ヌD$畿吋$畿$メ右畿$?ヒ右畿巨ィ畿吋$畿吋$畿$メマu ヌEーe孔ト吋$畿$韈_タy鴻9@$7&ヌEー8畿フ可≫蔚エマエt±エtヌEーヌEー ヌEー畿ーζd[]テ瑞瑞瑞U牙ヌEヌE畿セタノテ瑞瑞瑞U牙ST0O鴻タ6吋$ 鴻ト6吋$畿 吋$畿$*#右孔ネ吋$畿$_タx カEリセタ右ト鴻p?$鐐%ヌEト畿トζT[]テ瑞瑞瑞U牙S$襍N畿E霈_$闖_吋$ 鴻?吋$鴻<吋$畿$鞋#クζ$[]テ瑞瑞瑞U牙ST鐐N畿Eト鴻5吋$ 鴻5吋$畿 吋$畿$鏥"右孔ネ吋$畿$錻^タx.カEトEリ孔ネ吋$ヌD$畿$ ^タx ヌEタG顫^$靉^吋$ 鴻リ>吋$鴻:吋$畿$#鴻>$6$ヌEタ畿タζT[]テ瑞瑞瑞U牙S4闍MヌD$孔$鏨^鴻;>$隹#偽禍チミミミチ*ネ貴ヌE萼Mb畿蔔鮹科チ禾)チ科*タXチ,タζ4[]テ瑞瑞瑞U牙VSMヌEリヌEヌEヌE畿 鴻8吋$ 鴻8吋$欝$畿$鞐 右畿機右畿ヌ@畿右ヤマW頽右蓚Jマx,鞳右煖U芫E)ミ;E|偽畿隠畿リ怨@飄劫H可ク吋$ヌD$$閧\畿チ家渠H貴クモ ミ延オHマ粟偽芫E煢チ)ム果畿)ミ右ワ貴ワヌ4モMb球4鮹科チ禾)チ科右ネ貴ワヌ4モMb球4鮹科チ茄)ニ卸D球DチDミミチ果)ツ鴛D球DチDミミチ右フ孔ネ右齏ヌE偽δ畿濶D$ヌD$ ヌD$劫H吋$$閧[右ミマミu&鴻ツ=$閾!偽畿隠ヌ@鰆マミ児偽ヤ畿リE欝$吋$畿$鏤[右ミマミyP霪[t/雕[#t#鴻=$!偽畿隠ヌ@j偽畿隠ヌ@Uマミt偽ミ孔リ偽ミ孔ヤ) ヌ$<[畿リ;E}マ楪孔メ偽畿隠貴リ燕@球@ト[^]テ瑞瑞瑞U牙Sd頏I鴻1吋$ 鴻1吋$畿 吋$畿$韭右マy ヌEマu ヌE畿右孔ト吋$畿$雕YタxBニE貴ヌEエQ畿エ鮹科チ禾)チ科E蜊Eト吋$ヌD$畿$鐫Yタy2鏐Z$+Z吋$ 鴻:吋$鴻6吋$畿$閂ζd[]テ瑞瑞瑞U牙SDI偽 鴻0吋$ 鴻0吋$欝$畿$顯右偽 鴻0吋$ 鴻!:吋$欝$畿$靨右畿吋$ヌD$孔吋$ 畿吋$孔 吋$畿$鑄右マy;閼Y$鏝Y吋$ 鴻):吋$鴻!5吋$畿$隍ヌEマt カEカタ右蓁ヌE畿芍E煖E焜トD[]テ瑞瑞瑞U牙SDH偽 鴻/吋$ 鴻/吋$欝$畿$顰右偽 鴻/吋$ 鴻"9吋$欝$畿$勒右マyC鴻69$%鴻^9吋$ 鴻n9吋$鴻z9吋$畿$靨ヌE鰮畿巨ヌD$畿吋$畿$メ右畿E可畿吋$畿吋$欝$ 畿吋$孔 吋$畿$顆右闍E巨ヌD$ 畿吋$畿吋$畿$メマyI鴻ヲ9$鏐鞋W$隸W吋$ 鴻n9吋$鴻"4吋$畿$顰ヌE畿濶E芫E艫トD[]テ瑞瑞瑞U牙S4鑚F鴻.吋$ 鴻.吋$畿 吋$畿$鑪右ヌD$畿$5Wタt ヌEヌE畿艫ト4[]テ瑞瑞瑞U牙STFヌE偽 鴻-吋$ 鴻-吋$欝$畿$顯右偽 鴻-吋$ 鴻(7吋$欝$畿$靨右マyC鴻<7$$鴻d7吋$ 鴻t7吋$鴻7吋$畿$靦ヌEヤ駟畿巨ヌD$畿吋$畿$メ右闍E巨ヌD$畿吋$畿$メ右畿可U闍E芻可畿吋$ヌD$欝$ 畿吋$孔 吋$畿$霾右煖U熏EマyL鴻ャ7$鍮靜U$陦U吋$ 鴻t7吋$鴻(2吋$畿$韶ヌEヤ驢マ~?畿βカ畿E閭カ8ツu&畿カ畿E閭カ8ツu鴻フ7$靄マ~ 畿;E畿巨ヌD$ 畿濶D$畿吋$畿$メ畿煢Eヤ畿ヤζT[]テ瑞瑞瑞U牙S4鞣C鴻r+吋$ 鴻v+吋$畿 吋$畿$鞋右孔吋$ヌD$f@畿$隗Tタx畿t畿右蓁F鴻コ5$闃T$鐓T吋$ 鴻5吋$鴻0吋$畿$隱畿右芫E艫ト4[]テ瑞瑞瑞U牙SD*C鴻コ*吋$ 鴻セ*吋$畿 吋$畿$$右孔ネ吋$畿$Sタ畿タt 畿ミ 右ミ 畿ミ%右ミ畿ネ蔔右ネ畿チタt 畿ネフ右ネ 畿ネ蕘右ネ畿チタt 畿ネフ右ネ 畿ネ右ネ孔ネ吋$ヌD$畿$鑚Rタt)鴻>5吋$ 鴻&+吋$鴻0吋$畿$闥ζD[]テ瑞瑞瑞U牙VS B畿朽右畿朽右畿恐x畿輝|畿吋$畿$メ可鴻N4吋$ 鴻R4吋$欝$畿$ヨ右畿巨、ヌD$ 畿吋$畿吋$畿$メζ [^]テ瑞瑞瑞U牙S鑿AマtN畿朽Hu@畿機 タt6鴻テ3$闡ヌD$ヌD$畿$2畿ヌHクζ[]テ瑞瑞瑞U牙SA鴻3$閨クζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S靆@畿孔吋$ヌD$f@$雜Q右畿機4偽吋$ 欝$鴻3吋$孔$鐚Q畿吋$鴻メ3吋$孔$?Q孔$隍畿タt ヌEヌE畿煤ト[]テ瑞瑞瑞U牙S$)@ヌEマы畿機8右鴻]3$鍜畿孔吋$ヌD$jt@$竟Pタt!鴻3$鐔鴻ュ3$鎭5畿可 畿機< 禾)チ科右マt マt畿吋$ヌD$畿$閧畿可≫畿機<%禾)チ科右マt.マt(鴻ル3$靤畿吋$ヌD$畿$/畿可≫畿機<%禾)チ科右マt マt畿吋$ヌD$畿$韭畿可磧畿機<漾禾)チ科右マt マt畿吋$ヌD$畿$隱マt 偽畿臼<鴻4$靦ζ$[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙クノテ瑞瑞瑞U牙S鏗>畿$霎タ・マt畿朽タt 畿$4畿$鞆マtv畿$&タtg畿機タu(鴻N2$/ヌ$ N靹Nヌ$ N靆N5鴻~2$鍮ヌD$ヌD$畿$險ヌ$ N闢Nζ[]テ瑞瑞瑞U牙VS0閨=畿朽右畿朽右鴻サN右畿機0┛マuJ鴻サN偽鴻サNヌー鴻サNヌエヌET畿朽ー右畿朽ータu迢U畿奄ー偽畿奄エ畿ヌーキ偽闍EヌD孔閭マ ~諡EヌH畿ヌD畿ヌ畿ヌ@鴻%吋$ 鴻%吋$畿吋$畿$鑚可畿畿$'可畿艶畿$雋可畿艶偽δ<畿欝$ヌD$jt@$Mタy鴻ン1$钁畿笈畿巨、鴻%吋$ 鴻!%吋$欝$畿$ム可畿艶ィ畿朽ィタс畿ク可ク吋$ヌD$$霪K畿チ家可畿渠精畿加クモ ツ畿鉛ーク畿ヌ8畿ヌ<畿ヌ@0ヌE 鴻2$鐐畿$ヌE畿艫ト0[^]テ瑞瑞瑞U牙S鞐:畿朽、タt)畿朽稀\畿巨、畿朽欝$$ム畿朽ータt?畿朽エタt2畿巨エ畿朽ー奄ー畿巨ー畿朽エ奄エe畿朽ータt(畿朽ーヌエ畿巨ー鴻L0畿朽エタt畿朽エヌー鴻Lヌζ[]テ瑞瑞瑞U牙St鞋9畿輝|畿 吋$畿$メ怨P畿怨H孔 怨Lヌワ劫ャ$タ劫ャ$鐐ノタミ劫ャ$<畿タt/鴻ィ.$鞆劫ャ$靹ネ劫ャ$錻驫球ャ恒劫ャ8吋$ヌD$ ヌD$劫ャク吋$$鐇I怨球タy韵Ik球タx劫ャ$鏃劫ャ$顱トt[]テ瑞瑞瑞U牙S闌8畿巨鴻t-吋$畿$メζ[]テ瑞瑞瑞U牙S鏥8畿巨、ヌD$畿吋$畿$メ右霽EヌE鞁H右畿吋$畿濶$鎬タt-畿巨ィ畿濶D$畿吋$畿$メヌE飃ヌD$畿濶$險H右艫}y 霽Htリマy鴻H-$鞨 ヌE鮖マッ孔ク吋$畿芍$陌Gタy ヌE骰ヌD$畿芍$陞G右マy鴻`-$霖 ヌE餮庚攻ク毅陰毅陰毅 陰 毅陰毅陰毅陰毅陰毅 陰 毅$陰$毅(陰(ヌD$ヌD$畿芍$Gタy鴻-$錚 ヌE鰄孔ク$隲FニEルカEルEリ孔ク吋$ヌD$畿芍$關Fタy1鴻ィ-$頡 ヌE孔吋$ヌD$畿芍$鐓FsヌD$孔キ吋$畿芍$霾Fタy!7G#t鴻ネ-$陌 ヌE孔吋$ヌD$畿芍$F畿吋$ヌD$畿芍$$F畿吋$畿濶$韲畿巨ィ畿濶D$畿吋$畿$メ畿芍$鐃F畿カタ右щEпト[]テ瑞瑞瑞U牙S4鑵5孔吋$ヌ$陲E右マt 畿吋$鴻*$鐐F畿右蓚鴻+$鞐E右マu鴻,+$0F畿右蓁\鴻5酷5吋$欝$畿$頷E偽畿吋$畿吋$$鎹E右マt畿吋$鴻x+$靨E畿右芫E艫ト4[]テ瑞瑞瑞U牙VS 闖4鴻ユEニ鴻ケE0鴻ケEヌD$畿 吋$$鑵EヌD$ 液$吋$畿$隕D右マt2偽ヌD$ ヌD$鴻ユE吋$$D畿$鑁D鴻ユEζ [^]テ瑞瑞瑞U牙VSP鞦3ヌE孔煢$鎬タt鴻*$鞐D鬥畿輝鴻5*吋$畿$メ右マu鴻Q*$ 畿濶Eヤ駱畿巨ト鴻*吋$ 鴻ュ*吋$畿吋$畿$メ右マ鴻ケ*$鏥D畿恐鴻*吋$畿芍$鑞吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿恐鴻*吋$畿芍$韭吋$畿$ヨ右畿巨4畿 吋$畿吋$畿吋$ 畿吋$畿吋$畿$メ畿輝\畿吋$畿$メ孔閭畿煢$齏B右艫}畿濶Eヤ畿ヤζP[^]テ瑞瑞瑞U牙S竟1ニEマw#貴ク可モ竕U萩E買<タuW畿買タu)畿吋$鴻)吋$孔ァ$閊B孔ァ$"$ヌD$畿 吋$畿$濶タ~ニEカEト[]テ瑞瑞瑞U牙S4鏖1畿巨、ヌD$畿吋$畿$メ右ヌE鬣畿吋$畿吋$ 鴻ユ(吋$鴻ン(吋$劫$霹A鴻ィ吋$劫$鑁A鴻ィキ@キタ%= u6ヌD$劫$闃A右マ~畿$鏐AニEニEニE孔マ?参畿吋$ 鴻ユ(吋$鴻(吋$劫$A鴻ィ吋$劫$霎@鴻ィキ@キタ%= u.ヌD$劫$鞣@右マ~畿$隹@ニE畿巨ィ畿吋$畿吋$畿$メカEト4[]テ瑞瑞瑞U牙S隘/畿巨鴻)'吋$畿$メζ[]テ瑞瑞瑞U牙S鑵/鴻 '$齏ζ[]テ瑞瑞瑞U牙S鍮/鴻'$霰クζ[]テ瑞瑞瑞U牙S/鴻 '$陏ζ[]テ瑞瑞瑞U牙S顋.鴻 '$鑼クζ[]テ瑞瑞瑞U牙S$靜.鴻@右鴻^吋$ 鴻b吋$畿 吋$畿$霆右ヌEy鴻@右マu"鴻 '$顆マtR6畿朽ー右畿;Et 畿朽ータuン畿;EuヒヌEツ鴻'$隲ヌ$?マu°Eヌ鴻'$閙ζ$[]テ瑞瑞瑞U牙(畿朽右畿輝D畿$メ畿笈畿巨ャ畿朽欝$吋$畿$ムカタ右畿カタノテ瑞瑞瑞U牙S4閂-畿E芻Υ>右マu鴻%$隘K畿朽ー右畿;Et 畿朽ータuン畿;Et鴻%$鑄貴カU芫E欝ζ4[]テ瑞瑞瑞U牙WVSL韭,マt"畿朽右艫}t畿朽~( ヌEヤ鰺鴻%$1ヌEヤ魍鴻%$靫畿朽、タu ヌEヤ驫鴻ツ%$隴畿芫輝D畿芍$メ鴻ヨ%$闖畿芫矯マ淆カネ畿恐ィ畿朽鵜$畿 吋$ 液$欝$畿芍$ラカタ右熏%$7畿煢Eヤ畿ヤζL[^_]テ瑞瑞瑞U牙WVS<靂+ヌEワ畿輝|畿 吋$畿$メ右煖E巨x畿吋$ 畿吋$畿煢D$畿$メ右艫}uB畿輝@畿$メ畿輝D畿$メ畿輝\畿煢D$畿$メ畿ワ右ヤ骭畿巨畿芍D$畿 吋$畿$メ右ワ畿輝\畿煢D$畿$メ鴻`偽右ミ蔚フヌEネ丘ミ急フ貴ネヲクt カFカO)ネタuマワu鴻$$畿ワ右ヤ畿ヤζ<[^_]テ瑞瑞瑞U牙ST闖*畿輝畿 吋$畿$メ右マu"畿輝@畿$メ畿輝D畿$メX畿吋$ 畿吋$鴻マ#吋$孔ク$;畿輝8孔ク吋$畿吋$畿$メ畿輝\畿吋$畿$メζT[]テ瑞瑞瑞U牙S鞏)鴻 ;項ー偽欝$$2:ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙S陏)鴻ネ:項ー偽欝$$韵9ζ[]テ瑞瑞瑞U牙ノテ瑞瑞瑞U牙WS鏨)畿ケ怨0ク郷0ョ科ミ右畿E右孔(畿カnativeClose pid nativeClose: Close not detecting thread pid> writeByte: index->writing = 1RXTXPort:writeByte %i writeBytejava/io/IOExceptionwriteArray() writeArray: index->writing = 1writeArraynativeDrain: trying tcdrain RXTXPort:drain() returns: %i nativeDraingetReceiveTimeoutisReceiveTimeoutEnabledRXTXPort:isDSR returns %i RXTXPort:isCD returns %i RXTXPort:isCTS returns %i RXTXPort:isRI returns %i RXTXPort:isRTS returns %i setRTS( %i ) setDSR( %i ) isDTR( ) returns %i setDTR( %i ) nativeSetBaudBaseUnsupportedCommOperationExceptionnativeGetBaudBasenativeSetDivisornativeGetDivisornativeStaticSetSerialPortParamsBaudRate could not be set to the specified valuenativeStaticIsRTS( ) returns %i nativeStaticIsDSR( ) returns %i nativeStaticIsDTR( ) returns %i nativeStaticIsCD( ) returns %i nativeStaticIsCTS( ) returns %i nativeStaticRI( ) returns %i nativeStaticGetBaudRate: Cannot Get Serial Port Settings nativeStaticGetDataBits: Cannot Get Serial Port Settings nativeStaticGetParity: Cannot Get Serial Port Settings nativeStaticGetStopBits: Cannot Get Serial Port Settings nativeGetEndOfInputChar failed Not implemented... yetnativeSetEndOfInputCharnativeSetEndOfInputChar failed gettimeofday read_byte_array: select returned -1 read_byte_array: read returned -1 TimeoutThresholdtimeoutreadByteRXTXPort:readArray length > SSIZE_MAXInvalid lengthreadArrayjava/lang/ArrayIndexOutOfBoundsExceptionRXTXPort:readArray bytes < 0Got terminator! RXTXPort:nativeavailable: ioctl() failed nativeavailableflow control type not supportedZMonitorThreadLockcheck_line_status_register: sending SPE_OUTPUT_BUFFER_EMPTY has_line_status_register_acess: Port does not support TIOCSERGETLSR port_has_changed_fionread: change is %i ret is %i port_has_changed_fionread: change is %i entering check_tiocmget_changes ======================================= check_tiocmget_changes: ioctl(TIOCMGET) sending DSR =========================== leaving check_tiocmget_changes report_serial_events: ignoring DATA_AVAILABLE report_serial_events: sending DATA_AVAILABLE initialise_event_info_struct: Port does not support events initialise_event_info_struct: initialise failed! eventLoop: got interrupt RXTX-2.1-7testRead() open failed testRead() fcntl(F_GETFL) failed testRead() fcntl(F_SETFL) failed testRead() tcsetattr failed testRead() read failed IOMasterPort returned %d IOSerialBSDClientIOServiceMatching returned NULL IOSerialStreamIOSerialBSDClientTypeIOServiceGetMatchingServices returned %d createSerialIterator failed gnu/io/CommPortIdentifiercan't find class of gnu/io/CommPortIdentifier (Ljava/lang/String;ILgnu/io/CommDriver;)VaddPortNamegetMethodID of CommDriver.addPortName failed IODialinDeviceIOCalloutDeviceunknown portType %d handed to native RXTXCommDriver.registerKnownPorts() method. /dev/%s%s%i%s%ssetInputBufferSize is not implemented getInputBufferSize is not implemented setOutputBufferSize is not implemented getOutputBufferSize is not implemented x@interruptEventLoop: interrupted nativeSetEventFlag !index nativeSetEventFlag !fd event loop interrupted send_event: !eventloop_interupted send_event: jclazz send_event: calling send_event: called get_java_var: invalid file descriptor %s in %s/var/lock%s/LCK..%sfhs_lock() lockstatus fail RXTX fhs_lock() Error: creating lock file: %s: %s %10d fhs_lock: creating lockfile: %s uucp_lock( %s ); RXTX uucp check_lock_status true RXTX uucp_lock() could not find lock directory. RXTX uucp_lock() could not find device. uucp_lock: device was %s %s/LK.%03d.%03d.%03dRXTX uucp_lock() %s is there RXTX uucp_lock() Error: creating lock file: %s check_lock_status: could not find lock directory. check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL check_lock_status: device is locked by another application fhs_unlock: Removing LockFile fhs_unlock: Unable to remove LockFile uucp_unlock( %s ); uucp_unlock() no such device /var/lock/LK.%03d.%03d.%03duucp_unlock no such lockfile uucp_unlock: unlinking %s uucp_unlock: unlinking failed %s check_lock_pid: lock = %s pid = %i gpid=%i openpid=%i check_group_uucp(): Insufficient memory/check_group_uucp(): mktemp malformed string - should not happenw+check_group_uucp(): error testing lock file creation Error details:tmpXXXXXX/etc/locks/usr/spool/kermit/usr/spool/locks/usr/spool/uucp/usr/spool/uucp//usr/spool/uucp/LCK/var/lock/modem/var/spool/lock/var/spool/locks/var/spool/uucpLCK..lk..LK.%s/%s%sRXTX Error: Unexpected lock file: %s Please report to the RXTX developers %s/%s%03d.%03d.%03dRXTX is_device_locked() could not find device. %dRXTX Warning: Removing stale lock file. %s RXTX Error: Unable to remove stale lock file: %s Experimental: JNI_OnLoad called. Experimental: JNI_OnUnload called. Unknown Application$テ熄熄ネワネ@ ゥィ@0  .Gdエ `dエ <dエ ネ エ dヨ ムdヨ "<.ヨ Dムヨ Dメ Dヤ Dユ Dヨ7 Dラ@ Dリn D゙・ D゚ツ 1$ムヨ Mイ4_|アナヨ3dソ #4K\q6677)7;7M7_7q777ァ7ケ7ヒ7ン7788%878I8[8m888」8オ8ヌ8ル8889!939E9W9i9{999ア9テ9ユ999 ::/:A:S:e:w:::ュ:ソ:ム:::;;+;=;O;a;s;;;ゥ;サ;ヘ;;;<<,<?<R<e<x<<<ア<ト<ラ<<<=#=6=I=\=o===ィ=サ=ホ===>>->@>S>f>y>>>イ>ナ>リ>>>?$?7?J?]?p???ゥ?シ?マ???@@.@A@T@g@z@后@ウ@ニ@ル@@@A%A8AKA^AqAБ輸ェAスAミA紜A BB/BBBUBhB{B撮。BエBヌBレBBCC&C9CLC_CrCC呂ォCセCムC腓C DD0DCDVDiD|D愁「DオDネDロDDEE'E:EME`EsEE僞ャEソEメE薤E FF1FDFWFjF}F色「FオFニFラF颶F GG1GBGUGhG{G雑。GエGナGリGGG HH/H@HSHeHvHH路ォHセHムH腥H II0ICIVIiI|I終「IオIネIロIIJJ'J:JMJ`JsJJ價ェJサJフJ゚JJKK+K>KQKdKwK階扛ーKテKヨK飫KL"L5LHL[LnL´猫ァLコLヘL澂LMM*M=MPMcMvM窺廴ッMツMユM鎬MN!N4NGNZNmNN哲ヲNケNフN゚NNOO+O>OQOdOwO外抂ーOテOヨO餔OP"P5PFPYPlPP単・PクPヒP゙PPQQ*Q=QPQcQvQ渦弉ッQツQユQ鏖QR!R4RERXRkR~R然、RキRハRンRRSS)SH D@U DB[ DFg DH DI DK DLュ D\シ D]ヌ DNマ DPル DR DT DX DY DZ D_" Da, De: DhD ]$<6 (];:]=C]N]>X]ソ]メ]]タ6 ]J ]$NJ .J DvJ DyV D{` D|z D} D~ D D D D Dオ Dフ D D D! D* D4 ]$vJ ^u^wフ#^ユ^ _#_C_[_q__タJ _6 \$N6 .6 D「6 D」B D D」 D・ウDヲソDァヒDィラDゥDェDォDャDュ DョDッDー(Dア1Dイ:DエCDカLDクUDコ^DサgDセpDトyDD_$「6 媽。ッ_$QN.DDD。DィDッDノDD +D \D D 、DコDネD゚DD D)D2D;DBD jD!sD"|D(D)「D*ォD?イDAタDCDDDE@DFhー_$ヌ_メ_ ゙_鐇ィ_ヤ`リ`ワ$`3`@`P`c`v` `タ`o荏$No.oDXoDZD]D^・DaヨDbワDcDdDeDiDl'DmODofDzD|・D~チDフDDD+DGDRD`DfDDDォDチDモDDD#D.D6D。9柿$Xoュ`Tク`U ト`Wメ`Yロ`Z藾[`\aa]a^+aタo,aB-a$モNB.BDュBDッTDー}Dア「DウシDオDケDコDサ DシDス0Dセ>DタCDヒQDホWDマeDミwDメDモDヤョDユシDルン.a$ュBXaォcaャ oaャ}aョ蛎ョ蚤ッ拌ーョaアサaタBシaスa$。N.DDDDD D,DLDZDfDDDDタDホDレDDDDD4ID8uD9DEDGェDHクDJチDKヒセa$ユa濛 鸞abb&bフ5bネBbタCbムDb$Nム.ムDXムDYDZ D_!Da'Dh5Dl>DnpDv~D{D|Eb$Xム}bVbV 巴V」bVオbVヌbWラbY瀉Zbタムbb$ニN.DD」DリDDD#D/D;DGDSD_DkDwDDDDD、DュDカDソD「ネD」ムDヲレDャDリDワD゙b$cc !c$iN.DD DD/D8DFDNDWDdDmDzDDDD"c$=cHc Wcictccタc営$N.DDェD*ツDヒDレDDD DD "D*+D+.劃$・cーc ソcムc$N0.0D-0D/<D1CD3UD5aD7gD9tD;zD=D?D@メc$-0 d,d, d,,d.ネ;d/Edタ0FdGd$bN.DBDE、DGコDHネDWムDZD\D^DbDdHd$BvdA‥A 硬A囘Cフィdタゥdェd$N.DqDv0DHD]DyfD{oD}~DDDD「ォd$qテdpホdp ンdpd$Nィ.ィD、ィD・コDィタDェヘDャヤDアDカDコDシ DツDテ,Dェ9Dモ?DヌADヒGDミWDムeDユgDヨuDラd$、ィe」 e・eァ eタィ!e"e$N.DDDァ#e$=eIe$NゥJeゥ.ゥDゥDサDラZe$ゥreeィ影タゥ各ン菊$4Nン.ンDンDDD D D D # D#* D$D D%^ D&x D3 D5ャ D6コ D7 D9 D: D;mIm Umbmomxmm芭タメ+瀕,卜$ハN,.,D,Dキ,Dセ,D",D$-D%-D&/-D'8-D(R-D)o-D,z-洋$,シmヌm モm瀘mmnnタ,n-n$N-.-D:-D;-D<-D@ネ-DA-DB.DD .DE!.DF+.n$:-9n8Dn9 Pn;]n<fn=tnタ-un4.vn$アN4..4.DT4.DUO.DVV.DZ.D[.D\ェ.D]ウ.D^ヘ.D_.Db.wn$T4.從RァnS ウnSタnUヘnVヨnW舅Snタ4.n.n$ハN...Dv.Dw/Dy/Dz,/D{>/D}G/DM/DW/Da/Dn/Dp/D/D/D/D・/Dョ/Dキ/Dト/n$v.ou$ou .ow;owEoタ.Foハ/Go$フNハ/.ハ/Dォハ/Dトワ/Dニ0Dネ0Ho$ォハ/xoァバィ 出ェ。o$ON0.0Dル0D+0D]0Db0「o$ル0メoヨンoリ 駮$ONh0.h0Dh0Dz0Dャ0Dア0麸$h0p$p 0pAp$ONキ0.キ0D-キ0D?ノ0DA0DC1Bp$-キ0qp*|p, p$ON1.1DW1DY1D[1D_D1DdL1Dff1Dgt1Djz1Dk1Dl「1Dnオ1Drソ1Dsル1Dt1Du1Dy 2D{2D~12DR2D[2D|2D2英$W1コpUナpV モpV疳VpXpYqZ q[qV+qタ1,q2-q$N2.2D2D2D。2D。ニ2Dヲホ2Dィ2Dゥ2Dャ2Dュ3Dョ$3Dー73DエA3Dオ[3Dカl3Dキu3Dサ3Dス。3Dタウ3Dツヤ3Dトン3Dニ3Dヌ4.q$2_qjq xqq智孀・qイqテqミqタ2ムq 4メq$N 4. 4Dロ 4Dン4D゙#4D゚H4D]4De4D4D4D4Dゥ4Dサ4Dホ4Dヤ4D4D'5D,5D25DS5D |5D 5D ウ5D ヤ5D 6D 6D 6D ,6D M6D O6D p6モq$ロ 4rルrレ *rレ8rレJrレ\rレnrレ ~rワrン喪゙「r゚ッrタ 4ーrv6アr$lNv6.v6D/ v6D1 6D2 6D7 エ6D< シ6D> ヨ6D? 6DB 6DC 7DD 7DF %7DJ /7DK I7DL Z7DM c7DQ }7DS 7DV 。7DX ツ7DZ ヒ7D\ 7D] 7イr$/ v6縒- r. r.  s. s0 s1 )s2 :s3 Gs. Tsタv6Us7Vs$N7.7Dl 7Dm 8Dn 8Do 98Ds G8Dv M8Dx V8Dy p8Dz 8D| 8D} ー8D~ コ8Ws$l 7sj 痴k 枹k ャsm ケsn ハso モsp 疽タ7龝テ8縱$ヒNテ8.テ8D テ8D リ8D ゚8D 9D 9D 9D !9D ;9D \9D g9D }9D 9舖$ テ8t t +t 9t Ft Wt `t ntタテ8ot9pt$ヘN9.9Dャ 9Dュ ・9Dョ ャ9Dッ ム9Dウ ゚9Dカ 9Dク 9Dケ :Dコ ':Dシ 2:Dス G:Dセ Q:qt$ャ 9。tェ ャtォ クtォ ニtュ モtョ 舩ッ tー tタ9tZ:t$ハNZ:.Z:Dフ Z:Dヘ o:Dホ v:Dマ :Dモ ゥ:Dヨ ッ:Dリ ク:Dル メ:Dレ :Dワ :Dン ;D゙ ;t$フ Z:-uハ 8uヒ Duヒ Ruヘ _uホ puマ yuミ uタZ:u%;疫$ヒN%;.%;D %;D :;D A;D f;D t;D z;D ;D ;D シ;D ヌ;D ン;D ;隔$ %;コu ナu ムu ゚u u u v vタ%;v;v$ヒN;.;D ;D <D <D 1<D ?<D E<D N<D h<D <D <D ェ<D エ<v$ ;Fv Qv ]v kv xv 益 致 vタ;。vス<「v$ヘNス<.ス<D* ス<D+ ミ<D, <D/ =D2 $=D5 *=D7 3=D9 I=D: W=DO `=DP =DR =DS 、=」v$* ス<ルv) 舸) v) v+ w, w- タ'w. 6wタス<7wォ=8w$Nォ=.ォ=D^ ォ=D_ ス=D` =Db =De >Dh >Dj #>Dl 9>Dm G>Do P>Dt v>Do >Dp >Dq >Dr ・>Ds ョ>Dt キ>Dv コ>9w$^ ォ=ow] zw] w] 背_ ・w` ョwa トスwタォ=セwタ>ソw$Nタ>.タ>D タ>D メ>D >D ?D &?D ,?D 5?D K?D Y?D b?D ?D ?D ?D 」?D ャ?D ッ?タw$ タ>w w x x *x 3x トBxタタ>Cxオ?Dx$Nオ?.オ?Dォ オ?Dャ ヌ?Dュ ?Dッ ?Dイ @Dオ !@Dキ *@Dケ @@Dコ N@Dシ W@Dソ t@Dス }@Dセ @Dソ 宗Dチ 叩Ex$ォ オ?{xェ xェ 遅ェ xャ アxュ コxョ トノxタオ?ハx蓮ヒx$N蓮.蓮Dモ 蓮Dヤ 、@D゚ ォ@D イ@D ク@フx$モ 蓮yム yメ yヤ 'yタ蓮(yコ@)y$"Nコ@.コ@D コ@D フ@D @D AD AD %AD /A*y$ コ@`y ky wy y ネ准タコ@笥5A惣${N5A.5AD 5AD MAD" AD$ Б馳$ 5Aノy ヤy 炸 y y$UN晦.晦D7 晦D8 「AD< ヒAD= 瓣D> 錢D@ BDB BDD ABDF OBDG YBy$7 晦2z5 =z6 Iz6 Vz8 _z9 ネnz6 ト|zタ晦}z_B~z$ユN_B._BDL _BDP qBDQ ВDV 達DX ゙Bz$L _B配N 毟タ_Bz脾。z$N脾.脾Du 脾Dv BDw CD| CD~ CD ACD JCD TCD ZCD dCD qCD wCD CD 靴D 匹D 」CD トCD 颪D CD DD -DD ゥDD アDD、 クDDィ 鵐Dゥ DDォ DDャ EDョ EDー EDア EEDイ ]EDエ kEDオ tEDキ EDク 右Dコ 髭Dサ 妣Dシ 」EDハ ュED サEDロ リEDワ 瓲Dン E「z$u 脾ケzo トzp ミzq レzr 黝s zt {v ミ{${v ヤ/{v リ;{w ワK{\{w g{w t{y ネ~{y 顎悳z Hィ{| ウ{| ソ{} ハ{タ脾ヒ{Eフ{$NE.EDf EDg FDk 5FDl ;FDn DFDo JFDr SFDv YFDx oFDy sFDz 擢D アFD 紮ヘ{$f E|e |e &|e 5|e H|e X|g a|h トp|i ~|タE|颶|$N颶.颶D 颶D FD $GD MGD GD GD キGD% タGD& 礙−$ 颶ィ| ウ| ソ| ヒ| レ| 縹} }タ颶}鍜}$N鍜.鍜D6 鍜D: GD; #HDA LHDB RHDD `HDF 羽DH 菱DI コHDJ HDK IDL IDN -IDP _IDX hIDY qI}$6 鍜;}4 F}5 R}5 c}5 s}5 マ7 殉8 怡: ・}; ウ}タ鍜エ}wIオ}$NwI.wIDf wIDg 迂Dh イIDi ノIDj メIDk ワIカ}$f wI驀d }e ~g ~タwI ~礫 ~$kN礫.礫D 礫D ID ID $JD MJD SJD aJD 開D 褒D サJD 濳D KD 'KD -KD ;KD mKD yKD「 ョKD」 シKDヲ セKDァ ミKDョ KDッ L ~$ 礫>~| I~} U~} f~} v~} ~~ 宀 ァ~ ウ~ タ~ モ~ ワ~ 黯タ礫~L~$&NL.LDシ LDス LDホ CLDモ aLD iLD qLD LD アLD コL~$シ Lコ &サ 2ス ;セ HタLIタLJ$クNタL.タLD タLDメLDLDMDMD ,MD 7MD @MDMMDXMDaMDnMDyMDMDMD"ノMK$ タLx   。 ネーケタタLコマMサ$NマM.マMD/マMD0祟D1MD3MD4CND5lNシ$/マMロ.013 タマM sN $、NsN.sNDAsND_NDb」NDcアNDgフNDjルNDk゙N $AsN.@:$qN膀.膀Dy膀DNDOD O;$y膀bxl$+NO.ODODオOm$O逐$NO.ODチODナ2ODニQODムwODメ徹Dモ朧Dヤ・ODヨョODラクO凍$チOエタタツヘツヨテ艢タO蛟チO諤$、NチO.チODチODモODレOD膂DODODPD)PD7PDメ]?鷯@]A$N].]D・]Dォ^Dョ^Dシ<^DチX^Dアe^DウタDテ運Dト洪B$・]y」х、 睡、「  +6ALォ['mャァ{タ]|某}$N某~@.某Dム某Dヨォ^Dルミ^Dワ^D _D&_DA_DZ_D`_Dk_Do_Dq_Dw_Dル{_D祇Dエ_Dホ_D饑D`D`D`D`D8`D <`決$ム某ツマヘミ ルミメ(モ@ ウ(H_エヘ$;[r阜ッメ #>ヤQユZユbヨoタ某pE`q$ッNE`.E`DE`DW`Dt`r$E`ゥエ タ$5Nz`.z`D)z`D*形D+啻チ$)z`'( ($&N`.`D8`D9イ`D:タ`D;ナ`$8`I6T7 `$+Nヒ`.ヒ`DHヒ`DIン`DJ`a$Hヒ`梼F梹G ェGク$&N`.`DW`DXaDYaDZaケ$W`UV $+Na.aDjaDk.aDl;aDmdaDpkaDrmaDszaDzaD{斬Dv紡Du「aDwケaD}フaD~レaDp訛DaDaDb$ja4h?i KkXlamqタar bs$N b. bD bDbD「%bD」5bDュjbDョpbt$ b件・ッタ bーrbア$eNrb.rbDセrbDソ鈎Dチ傭Dテ拊DトォbDネュbDニケbDハミbDフレbDヘ鐫Dマ鹵Dヤbイ$セrb繽ケコ サシス!ソ.ス;タrb<b=$Nb.bDbDcD$cD:cDFcDTcD`cDncDcD苗D・cDウcDcD dDd>$bP゚\゚ j゚vヰ告タb諮d署$Nd.dD dD0dD7dDQdD|dDED壇D「dDケdDトdD鐡DdD セ卆ォセスセマセ眄セソソ)ソ;ソMソ_ソqソα柄ァソケソヒソンソソタタ%タ7タIタ[タmタタ詑」タオタヌタルタタタチ!チ3チEチWチiチ{チ挫淬アチテチユチ鄰チ ツツ/ツAツSツeツwツ可崢ュツソツムツ翊ツテテ+テ=テOテaテsテテ療ゥテサテヘテ゚テテトト'ト9トKト]トoトト篤・トキトノトロトトナナ'ナ:ナMナ`ナsナナ卩ャナソナメナ蠻ナ ニニ1ニDニWニjニ}ニ脆」ニカニノニワニニヌヌ(ヌ;ヌNヌaヌtヌヌ塢ュヌタヌモヌ貮ヌ ネネ2ネEネXネkネ~ネ楕、ネキネハネンネネノノ)ノ<ノOノbノuノ伊嵋ョノチノヤノ酲ノ ハ ハ3ハFハYハlハハ通・ハクハヒバハハヒヒ*ヒ=ヒPヒcヒvヒ架慷ッヒツヒユヒ靈ヒフ!フ4フGフZフmフフ椴ヲフケフフプフフヘヘ+ヘ>ヘQヘdヘwヘ艦斛ーヘテヘヨヘ鯱ヘホ"ホ4ホGホZホmホホ鳶、ホキホハホロホホママ'マ:マMマ^マqママ変ヲマキマネマロママミミ#ミ4ミGミZミmミミ寅ヲミケミフミ゚ミミムム+ム>ムQムdムwム貫旃ームテムヨム鰉ムメ"メ5メFメWメhメ{メ者。メエメヌメレメメモモ&モ9モLモ_モrモモ侖ォモセモムモ萼モ ヤヤ0ヤCヤVヤiヤ|ヤ砦ヤウヤニヤルヤヤヤユ%ユ8ユKユ^ユqユユ臨ェユスユミユ耻ユ ヨヨ/ヨBヨUヨhヨ{ヨ蛇。ヨエヨヌヨレヨヨララ&ラ9ラLラ_ラrララ俎ォラセラムラ籏ラリリ.リAリTリgリzリ菜リウリニリルリリリル%ル6ルIル\ルoルル遁ヲルケルフルンルルレレ)レ<レOレbレuレ移巓ョレチレヤレ釟レ ロ ロ3ロFロYロlロロ紬・ロクロヒロ゙ロロワワ*ワ=ワPワcワvワ嘩憔ッワツワユワ鞋ワン!ン4ンGンZンlンン吊・ンクンノンロンン゙゙5゙O゙i゙゙壜ア゙ノ゙玻゙゚(゚;゚N゚l゚近ァ゚テ゚珀゚4Rex金樅アトラ2EXッ粃f。エヌン *$5N学+d学0  ー タ ミ某ヌ]展ミ <Ev '、サ'リ V`!`Kat)コ)ォ_(ヌ-l* +wIEBgス$0アキ0リコ@05[蓮ハ/イh0ル晦rb05A_ムス<スォ=タ>オ?EZ:l%;テ8シ9; 731\v62ョ 4L o%鍜E颶d礫&ョ,ヒ4.z` ヒ`; メ+X タL} # 」!セ ^W ヨ  O' 柤9 sNU 僧e セjx チO J zZカ ィツ Qレ :v 吐 \k  U , 6 B Z[U 6 h Hv~ d 膀ュ ンサ hRル Ip  bB_B   O, < 脾M \g fo Pf} 浪 Bf」  fウ bソ ホ ゚ . v ,v" wQ/ [eE Z l }  マMゥ Bhエ %l Pv\/wjE`ァUwチ ラ   !/Pn」ャイクタヘレ#*39AJX_tzィクネヨ"+39AIQ[dmx nシH@ソツM#)5ノハrヨ゙ム = W Y [ カ  y ァ イ シ ニ ネ ヒ ホ (オ オ ッシラルリントホスツヒアヘチケメロュイヨテコヤウムワハユサモタエナ゙ソークレヌ゚マフニネャカョセミァノキ|ィゥォェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~23ァ45。「」、・ヲ2zキ2ィゥェ6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ァ。「」、・ヲャュョッーアイウエオカキクケコサシスセソ23タチツテトナニヌネノハヒフヘホマミムメモヤユヨ4ラリ5ルレロワン゙゚ォ__dyld_func_lookupdyld_stub_binding_helper__mh_dylib_header_GetTickCount_JNI_OnLoad_JNI_OnUnload_Java_gnu_io_RXTXCommDriver_getDeviceDirectory_Java_gnu_io_RXTXCommDriver_isPortPrefixValid_Java_gnu_io_RXTXCommDriver_registerKnownPorts_Java_gnu_io_RXTXCommDriver_testRead_Java_gnu_io_RXTXPort_Initialize_Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold_Java_gnu_io_RXTXPort_NativegetReceiveTimeout_Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled_Java_gnu_io_RXTXPort_eventLoop_Java_gnu_io_RXTXPort_getInputBufferSize_Java_gnu_io_RXTXPort_getOutputBufferSize_Java_gnu_io_RXTXPort_interruptEventLoop_Java_gnu_io_RXTXPort_isCD_Java_gnu_io_RXTXPort_isCTS_Java_gnu_io_RXTXPort_isDSR_Java_gnu_io_RXTXPort_isDTR_Java_gnu_io_RXTXPort_isRI_Java_gnu_io_RXTXPort_isRTS_Java_gnu_io_RXTXPort_nativeClearCommInput_Java_gnu_io_RXTXPort_nativeClose_Java_gnu_io_RXTXPort_nativeDrain_Java_gnu_io_RXTXPort_nativeGetBaudBase_Java_gnu_io_RXTXPort_nativeGetDivisor_Java_gnu_io_RXTXPort_nativeGetEndOfInputChar_Java_gnu_io_RXTXPort_nativeGetFlowControlMode_Java_gnu_io_RXTXPort_nativeGetParity_Java_gnu_io_RXTXPort_nativeGetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetBaudBase_Java_gnu_io_RXTXPort_nativeSetDivisor_Java_gnu_io_RXTXPort_nativeSetEndOfInputChar_Java_gnu_io_RXTXPort_nativeSetEventFlag_Java_gnu_io_RXTXPort_nativeSetParityErrorChar_Java_gnu_io_RXTXPort_nativeSetSerialPortParams_Java_gnu_io_RXTXPort_nativeStaticGetBaudRate_Java_gnu_io_RXTXPort_nativeStaticGetDataBits_Java_gnu_io_RXTXPort_nativeStaticGetParity_Java_gnu_io_RXTXPort_nativeStaticGetStopBits_Java_gnu_io_RXTXPort_nativeStaticIsCD_Java_gnu_io_RXTXPort_nativeStaticIsCTS_Java_gnu_io_RXTXPort_nativeStaticIsDSR_Java_gnu_io_RXTXPort_nativeStaticIsDTR_Java_gnu_io_RXTXPort_nativeStaticIsRI_Java_gnu_io_RXTXPort_nativeStaticIsRTS_Java_gnu_io_RXTXPort_nativeStaticSetDSR_Java_gnu_io_RXTXPort_nativeStaticSetDTR_Java_gnu_io_RXTXPort_nativeStaticSetRTS_Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams_Java_gnu_io_RXTXPort_nativeavailable_Java_gnu_io_RXTXPort_open_Java_gnu_io_RXTXPort_readArray_Java_gnu_io_RXTXPort_readByte_Java_gnu_io_RXTXPort_readTerminatedArray_Java_gnu_io_RXTXPort_sendBreak_Java_gnu_io_RXTXPort_setDSR_Java_gnu_io_RXTXPort_setDTR_Java_gnu_io_RXTXPort_setInputBufferSize_Java_gnu_io_RXTXPort_setOutputBufferSize_Java_gnu_io_RXTXPort_setRTS_Java_gnu_io_RXTXPort_setflowcontrol_Java_gnu_io_RXTXPort_writeArray_Java_gnu_io_RXTXPort_writeByte_Java_gnu_io_RXTXVersion_nativeGetVersion___i686.get_pc_thunk.bx_build_threadsafe_eis_check_cgi_count_check_group_uucp_check_line_status_register_check_lock_pid_check_lock_status_check_tiocmget_changes_configure_port_createSerialIterator_drain_loop_driver_has_tiocgicount_dump_termios_fhs_lock_fhs_unlock_finalize_event_info_struct_finalize_threads_find_preopened_ports_getRegistryString_get_java_baudrate_get_java_environment_get_java_var_has_line_status_register_access_init_threads_initialise_event_info_struct_is_device_locked_is_interrupted_javaVM_master_index_port_has_changed_fionread_preopened_port_read_byte_array_registerKnownSerialPorts_report_report_error_report_serial_events_report_verbose_report_warning_send_event_set_java_vars_set_port_params_static_add_filename_system_does_not_lock_system_does_not_unlock_system_wait_throw_java_exception_translate_data_bits_translate_parity_translate_speed_translate_stop_bits_unlock_monitor_thread_uucp_lock_uucp_unlock_CFDictionarySetValue_CFRelease_CFStringCreateWithCString_CFStringGetCString_IOIteratorNext_IOMasterPort_IORegistryEntryCreateCFProperty_IOServiceGetMatchingServices_IOServiceMatching___CFConstantStringClassReference___error___sF_atol_calloc_cfgetispeed_cfgetospeed_cfmakeraw_cfsetispeed_cfsetospeed_close_eeloop_enow_fclose_fcntl_fopen_fprintf_free_getpid_getppid_gettimeofday_ioctl_kCFAllocatorDefault_kill_malloc_memcpy_memset_mktemp_open_printf_pthread_create_pthread_detach_pthread_exit_pthread_self_read_select_seloop_sigaction_sigprocmask_snow_snprintf_sprintf_sscanf_stat_strcat_strcmp_strcpy_strerror_tcdrain_tcflush_tcgetattr_tcsendbreak_tcsetattr_unlink_usleep_write_Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1ownersingle moduledyld__mh_dylib_headerdyld_lazy_symbol_binding_entry_pointdyld_func_lookup_pointer/SourceCache/Csu/Csu-58//SourceCache/Csu/Csu-58/icplusplus.cgcc2_compiled./Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/SerialImp.cgcc2_compiled.build_threadsafe_eis:F(0,1)event_info_struct:T(0,1)=s332fd:(0,2),0,32;eventflags:(0,3),32,352;initialised:(0,2),384,32;ret:(0,2),416,32;change:(0,2),448,32;omflags:(0,4),480,32;message:(0,5),512,640;has_tiocsergetlsr:(0,2),1152,32;has_tiocgicount:(0,2),1184,32;eventloop_interrupted:(0,2),1216,32;env:(0,6),1248,32;jobj:(0,7),1280,32;jclazz:(0,8),1312,32;send_event:(0,10),1344,32;checkMonitorThread:(0,10),1376,32;next:(0,12),1408,32;prev:(0,12),1440,32;rfds:(0,13)=xsfd_set:,1472,1024;tv_sleep:(0,15),2496,64;closing:(0,2),2560,32;writing:(0,2),2592,32;output_buffer_empty_flag:(0,2),2624,32;;fd_set:T(0,14)=s128fds_bits:(0,16),0,1024;;timeval:T(0,15)=s8tv_sec:(0,17),0,32;tv_usec:(0,19),32,32;;int:t(0,2)=r(0,2);-2147483648;2147483647;:t(0,3)=ar(0,21);0;10;(0,2)unsigned int:t(0,4)=r(0,4);0;037777777777;:t(0,5)=ar(0,21);0;79;(0,22):t(0,6)=*(0,23):t(0,7)=*(0,9)jobject:t(0,9)=(0,24)jclass:t(0,8)=(0,9):t(0,11)=*(0,25)jmethodID:t(0,10)=(0,11):t(0,12)=*(0,1)fd_set:t(0,13)=(0,14):t(0,16)=ar(0,21);0;31;(0,20)long int:t(0,18)=r(0,18);-2147483648;2147483647;__darwin_time_t:t(0,17)=(0,18)__int32_t:t(0,20)=(0,2)__darwin_suseconds_t:t(0,19)=(0,20)long unsigned int:t(0,21)=r(0,21);0;037777777777;char:t(0,22)=r(0,22);0;127;JNIEnv:t(0,23)=(0,26):t(0,24)=*(0,27):t(0,25)=xs_jmethodID::t(0,26)=*(0,28):t(0,27)=xs_jobject::t(0,28)=k(0,29)JNINativeInterface_:T(0,29)=s928reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;reserved3:(0,30),96,32;GetVersion:(0,31),128,32;DefineClass:(0,32),160,32;FindClass:(0,33),192,32;FromReflectedMethod:(0,34),224,32;FromReflectedField:(0,35),256,32;ToReflectedMethod:(0,36),288,32;GetSuperclass:(0,37),320,32;IsAssignableFrom:(0,38),352,32;ToReflectedField:(0,39),384,32;Throw:(0,40),416,32;ThrowNew:(0,41),448,32;ExceptionOccurred:(0,42),480,32;ExceptionDescribe:(0,43),512,32;ExceptionClear:(0,43),544,32;FatalError:(0,44),576,32;PushLocalFrame:(0,45),608,32;PopLocalFrame:(0,46),640,32;NewGlobalRef:(0,46),672,32;DeleteGlobalRef:(0,47),704,32;DeleteLocalRef:(0,47),736,32;IsSameObject:(0,48),768,32;NewLocalRef:(0,46),800,32;EnsureLocalCapacity:(0,45),832,32;AllocObject:(0,49),864,32;NewObject:(0,50),896,32;NewObjectV:(0,51),928,32;NewObjectA:(0,52),960,32;GetObjectClass:(0,53),992,32;IsInstanceOf:(0,54),1024,32;GetMethodID:(0,55),1056,32;CallObjectMethod:(0,56),1088,32;CallObjectMethodV:(0,57),1120,32;CallObjectMethodA:(0,58),1152,32;CallBooleanMethod:(0,59),1184,32;CallBooleanMethodV:(0,60),1216,32;CallBooleanMethodA:(0,61),1248,32;CallByteMethod:(0,62),1280,32;CallByteMethodV:(0,63),1312,32;CallByteMethodA:(0,64),1344,32;CallCharMethod:(0,65),1376,32;CallCharMethodV:(0,66),1408,32;CallCharMethodA:(0,67),1440,32;CallShortMethod:(0,68),1472,32;CallShortMethodV:(0,69),1504,32;CallShortMethodA:(0,70),1536,32;CallIntMethod:(0,71),1568,32;CallIntMethodV:(0,72),1600,32;CallIntMethodA:(0,73),1632,32;CallLongMethod:(0,74),1664,32;CallLongMethodV:(0,75),1696,32;CallLongMethodA:(0,76),1728,32;CallFloatMethod:(0,77),1760,32;CallFloatMethodV:(0,78),1792,32;CallFloatMethodA:(0,79),1824,32;CallDoubleMethod:(0,80),1856,32;CallDoubleMethodV:(0,81),1888,32;CallDoubleMethodA:(0,82),1920,32;CallVoidMethod:(0,83),1952,32;CallVoidMethodV:(0,84),1984,32;CallVoidMethodA:(0,85),2016,32;CallNonvirtualObjectMethod:(0,86),2048,32;CallNonvirtualObjectMethodV:(0,87),2080,32;CallNonvirtualObjectMethodA:(0,88),2112,32;CallNonvirtualBooleanMethod:(0,89),2144,32;CallNonvirtualBooleanMethodV:(0,90),2176,32;CallNonvirtualBooleanMethodA:(0,91),2208,32;CallNonvirtualByteMethod:(0,92),2240,32;CallNonvirtualByteMethodV:(0,93),2272,32;CallNonvirtualByteMethodA:(0,94),2304,32;CallNonvirtualCharMethod:(0,95),2336,32;CallNonvirtualCharMethodV:(0,96),2368,32;CallNonvirtualCharMethodA:(0,97),2400,32;CallNonvirtualShortMethod:(0,98),2432,32;CallNonvirtualShortMethodV:(0,99),2464,32;CallNonvirtualShortMethodA:(0,100),2496,32;CallNonvirtualIntMethod:(0,101),2528,32;CallNonvirtualIntMethodV:(0,102),2560,32;CallNonvirtualIntMethodA:(0,103),2592,32;CallNonvirtualLongMethod:(0,104),2624,32;CallNonvirtualLongMethodV:(0,105),2656,32;CallNonvirtualLongMethodA:(0,106),2688,32;CallNonvirtualFloatMethod:(0,107),2720,32;CallNonvirtualFloatMethodV:(0,108),2752,32;CallNonvirtualFloatMethodA:(0,109),2784,32;CallNonvirtualDoubleMethod:(0,110),2816,32;CallNonvirtualDoubleMethodV:(0,111),2848,32;CallNonvirtualDoubleMethodA:(0,112),2880,32;CallNonvirtualVoidMethod:(0,113),2912,32;CallNonvirtualVoidMethodV:(0,114),2944,32;CallNonvirtualVoidMethodA:(0,115),2976,32;GetFieldID:(0,116),3008,32;GetObjectField:(0,117),3040,32;GetBooleanField:(0,118),3072,32;GetByteField:(0,119),3104,32;GetCharField:(0,120),3136,32;GetShortField:(0,121),3168,32;GetIntField:(0,122),3200,32;GetLongField:(0,123),3232,32;GetFloatField:(0,124),3264,32;GetDoubleField:(0,125),3296,32;SetObjectField:(0,126),3328,32;SetBooleanField:(0,127),3360,32;SetByteField:(0,128),3392,32;SetCharField:(0,129),3424,32;SetShortField:(0,130),3456,32;SetIntField:(0,131),3488,32;SetLongField:(0,132),3520,32;SetFloatField:(0,133),3552,32;SetDoubleField:(0,134),3584,32;GetStaticMethodID:(0,55),3616,32;CallStaticObjectMethod:(0,50),3648,32;CallStaticObjectMethodV:(0,51),3680,32;CallStaticObjectMethodA:(0,52),3712,32;CallStaticBooleanMethod:(0,135),3744,32;CallStaticBooleanMethodV:(0,136),3776,32;CallStaticBooleanMethodA:(0,137),3808,32;CallStaticByteMethod:(0,138),3840,32;CallStaticByteMethodV:(0,139),3872,32;CallStaticByteMethodA:(0,140),3904,32;CallStaticCharMethod:(0,141),3936,32;CallStaticCharMethodV:(0,142),3968,32;CallStaticCharMethodA:(0,143),4000,32;CallStaticShortMethod:(0,144),4032,32;CallStaticShortMethodV:(0,145),4064,32;CallStaticShortMethodA:(0,146),4096,32;CallStaticIntMethod:(0,147),4128,32;CallStaticIntMethodV:(0,148),4160,32;CallStaticIntMethodA:(0,149),4192,32;CallStaticLongMethod:(0,150),4224,32;CallStaticLongMethodV:(0,151),4256,32;CallStaticLongMethodA:(0,152),4288,32;CallStaticFloatMethod:(0,153),4320,32;CallStaticFloatMethodV:(0,154),4352,32;CallStaticFloatMethodA:(0,155),4384,32;CallStaticDoubleMethod:(0,156),4416,32;CallStaticDoubleMethodV:(0,157),4448,32;CallStaticDoubleMethodA:(0,158),4480,32;CallStaticVoidMethod:(0,159),4512,32;CallStaticVoidMethodV:(0,160),4544,32;CallStaticVoidMethodA:(0,161),4576,32;GetStaticFieldID:(0,116),4608,32;GetStaticObjectField:(0,162),4640,32;GetStaticBooleanField:(0,163),4672,32;GetStaticByteField:(0,164),4704,32;GetStaticCharField:(0,165),4736,32;GetStaticShortField:(0,166),4768,32;GetStaticIntField:(0,167),4800,32;GetStaticLongField:(0,168),4832,32;GetStaticFloatField:(0,169),4864,32;GetStaticDoubleField:(0,170),4896,32;SetStaticObjectField:(0,171),4928,32;SetStaticBooleanField:(0,172),4960,32;SetStaticByteField:(0,173),4992,32;SetStaticCharField:(0,174),5024,32;SetStaticShortField:(0,175),5056,32;SetStaticIntField:(0,176),5088,32;SetStaticLongField:(0,177),5120,32;SetStaticFloatField:(0,178),5152,32;SetStaticDoubleField:(0,179),5184,32;NewString:(0,180),5216,32;GetStringLength:(0,181),5248,32;GetStringChars:(0,182),5280,32;ReleaseStringChars:(0,183),5312,32;NewStringUTF:(0,184),5344,32;GetStringUTFLength:(0,181),5376,32;GetStringUTFChars:(0,185),5408,32;ReleaseStringUTFChars:(0,186),5440,32;GetArrayLength:(0,187),5472,32;NewObjectArray:(0,188),5504,32;GetObjectArrayElement:(0,189),5536,32;SetObjectArrayElement:(0,190),5568,32;NewBooleanArray:(0,191),5600,32;NewByteArray:(0,192),5632,32;NewCharArray:(0,193),5664,32;NewShortArray:(0,194),5696,32;NewIntArray:(0,195),5728,32;NewLongArray:(0,196),5760,32;NewFloatArray:(0,197),5792,32;NewDoubleArray:(0,198),5824,32;GetBooleanArrayElements:(0,199),5856,32;GetByteArrayElements:(0,200),5888,32;GetCharArrayElements:(0,201),5920,32;GetShortArrayElements:(0,202),5952,32;GetIntArrayElements:(0,203),5984,32;GetLongArrayElements:(0,204),6016,32;GetFloatArrayElements:(0,205),6048,32;GetDoubleArrayElements:(0,206),6080,32;ReleaseBooleanArrayElements:(0,207),6112,32;ReleaseByteArrayElements:(0,208),6144,32;ReleaseCharArrayElements:(0,209),6176,32;ReleaseShortArrayElements:(0,210),6208,32;ReleaseIntArrayElements:(0,211),6240,32;ReleaseLongArrayElements:(0,212),6272,32;ReleaseFloatArrayElements:(0,213),6304,32;ReleaseDoubleArrayElements:(0,214),6336,32;GetBooleanArrayRegion:(0,215),6368,32;GetByteArrayRegion:(0,216),6400,32;GetCharArrayRegion:(0,217),6432,32;GetShortArrayRegion:(0,218),6464,32;GetIntArrayRegion:(0,219),6496,32;GetLongArrayRegion:(0,220),6528,32;GetFloatArrayRegion:(0,221),6560,32;GetDoubleArrayRegion:(0,222),6592,32;SetBooleanArrayRegion:(0,223),6624,32;SetByteArrayRegion:(0,224),6656,32;SetCharArrayRegion:(0,225),6688,32;SetShortArrayRegion:(0,226),6720,32;SetIntArrayRegion:(0,227),6752,32;SetLongArrayRegion:(0,228),6784,32;SetFloatArrayRegion:(0,229),6816,32;SetDoubleArrayRegion:(0,230),6848,32;RegisterNatives:(0,231),6880,32;UnregisterNatives:(0,232),6912,32;MonitorEnter:(0,233),6944,32;MonitorExit:(0,233),6976,32;GetJavaVM:(0,234),7008,32;GetStringRegion:(0,235),7040,32;GetStringUTFRegion:(0,236),7072,32;GetPrimitiveArrayCritical:(0,237),7104,32;ReleasePrimitiveArrayCritical:(0,238),7136,32;GetStringCritical:(0,182),7168,32;ReleaseStringCritical:(0,183),7200,32;NewWeakGlobalRef:(0,239),7232,32;DeleteWeakGlobalRef:(0,240),7264,32;ExceptionCheck:(0,241),7296,32;NewDirectByteBuffer:(0,242),7328,32;GetDirectBufferAddress:(0,243),7360,32;GetDirectBufferCapacity:(0,244),7392,32;;:t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=*(0,440):t(0,226)=*(0,441):t(0,227)=*(0,442):t(0,228)=*(0,443):t(0,229)=*(0,444):t(0,230)=*(0,445):t(0,231)=*(0,446):t(0,232)=*(0,447):t(0,233)=*(0,448):t(0,234)=*(0,449):t(0,235)=*(0,450):t(0,236)=*(0,451):t(0,237)=*(0,452):t(0,238)=*(0,453):t(0,239)=*(0,454):t(0,240)=*(0,455):t(0,241)=*(0,456):t(0,242)=*(0,457):t(0,243)=*(0,458):t(0,244)=*(0,459):t(0,245)=(0,245):t(0,246)=f(0,460):t(0,247)=f(0,8):t(0,248)=f(0,8):t(0,249)=f(0,10):t(0,250)=f(0,461):t(0,251)=f(0,9):t(0,252)=f(0,8):t(0,253)=f(0,462):t(0,254)=f(0,9):t(0,255)=f(0,460):t(0,256)=f(0,460):t(0,257)=f(0,463):t(0,258)=f(0,245):t(0,259)=f(0,245):t(0,260)=f(0,460):t(0,261)=f(0,9):t(0,262)=f(0,245):t(0,263)=f(0,462):t(0,264)=f(0,9):t(0,265)=f(0,9):t(0,266)=f(0,9):t(0,267)=f(0,9):t(0,268)=f(0,8):t(0,269)=f(0,462):t(0,270)=f(0,10):t(0,271)=f(0,9):t(0,272)=f(0,9):t(0,273)=f(0,9):t(0,274)=f(0,462):t(0,275)=f(0,462):t(0,276)=f(0,462):t(0,277)=f(0,464):t(0,278)=f(0,464):t(0,279)=f(0,464):t(0,280)=f(0,465):t(0,281)=f(0,465):t(0,282)=f(0,465):t(0,283)=f(0,466):t(0,284)=f(0,466):t(0,285)=f(0,466):t(0,286)=f(0,460):t(0,287)=f(0,460):t(0,288)=f(0,460):t(0,289)=f(0,467):t(0,290)=f(0,467):t(0,291)=f(0,467):t(0,292)=f(0,468):t(0,293)=f(0,468):t(0,294)=f(0,468):t(0,295)=f(0,469):t(0,296)=f(0,469):t(0,297)=f(0,469):t(0,298)=f(0,245):t(0,299)=f(0,245):t(0,300)=f(0,245):t(0,301)=f(0,9):t(0,302)=f(0,9):t(0,303)=f(0,9):t(0,304)=f(0,462):t(0,305)=f(0,462):t(0,306)=f(0,462):t(0,307)=f(0,464):t(0,308)=f(0,464):t(0,309)=f(0,464):t(0,310)=f(0,465):t(0,311)=f(0,465):t(0,312)=f(0,465):t(0,313)=f(0,466):t(0,314)=f(0,466):t(0,315)=f(0,466):t(0,316)=f(0,460):t(0,317)=f(0,460):t(0,318)=f(0,460):t(0,319)=f(0,467):t(0,320)=f(0,467):t(0,321)=f(0,467):t(0,322)=f(0,468):t(0,323)=f(0,468):t(0,324)=f(0,468):t(0,325)=f(0,469):t(0,326)=f(0,469):t(0,327)=f(0,469):t(0,328)=f(0,245):t(0,329)=f(0,245):t(0,330)=f(0,245):t(0,331)=f(0,461):t(0,332)=f(0,9):t(0,333)=f(0,462):t(0,334)=f(0,464):t(0,335)=f(0,465):t(0,336)=f(0,466):t(0,337)=f(0,460):t(0,338)=f(0,467):t(0,339)=f(0,468):t(0,340)=f(0,469):t(0,341)=f(0,245):t(0,342)=f(0,245):t(0,343)=f(0,245):t(0,344)=f(0,245):t(0,345)=f(0,245):t(0,346)=f(0,245):t(0,347)=f(0,245):t(0,348)=f(0,245):t(0,349)=f(0,245):t(0,350)=f(0,462):t(0,351)=f(0,462):t(0,352)=f(0,462):t(0,353)=f(0,464):t(0,354)=f(0,464):t(0,355)=f(0,464):t(0,356)=f(0,465):t(0,357)=f(0,465):t(0,358)=f(0,465):t(0,359)=f(0,466):t(0,360)=f(0,466):t(0,361)=f(0,466):t(0,362)=f(0,460):t(0,363)=f(0,460):t(0,364)=f(0,460):t(0,365)=f(0,467):t(0,366)=f(0,467):t(0,367)=f(0,467):t(0,368)=f(0,468):t(0,369)=f(0,468):t(0,370)=f(0,468):t(0,371)=f(0,469):t(0,372)=f(0,469):t(0,373)=f(0,469):t(0,374)=f(0,245):t(0,375)=f(0,245):t(0,376)=f(0,245):t(0,377)=f(0,9):t(0,378)=f(0,462):t(0,379)=f(0,464):t(0,380)=f(0,465):t(0,381)=f(0,466):t(0,382)=f(0,460):t(0,383)=f(0,467):t(0,384)=f(0,468):t(0,385)=f(0,469):t(0,386)=f(0,245):t(0,387)=f(0,245):t(0,388)=f(0,245):t(0,389)=f(0,245):t(0,390)=f(0,245):t(0,391)=f(0,245):t(0,392)=f(0,245):t(0,393)=f(0,245):t(0,394)=f(0,245):t(0,395)=f(0,470):t(0,396)=f(0,471):t(0,397)=f(0,472):t(0,398)=f(0,245):t(0,399)=f(0,470):t(0,400)=f(0,473):t(0,401)=f(0,245):t(0,402)=f(0,471):t(0,403)=f(0,474):t(0,404)=f(0,9):t(0,405)=f(0,245):t(0,406)=f(0,475):t(0,407)=f(0,476):t(0,408)=f(0,477):t(0,409)=f(0,478):t(0,410)=f(0,479):t(0,411)=f(0,480):t(0,412)=f(0,481):t(0,413)=f(0,482):t(0,414)=f(0,483):t(0,415)=f(0,484):t(0,416)=f(0,485):t(0,417)=f(0,486):t(0,418)=f(0,487):t(0,419)=f(0,488):t(0,420)=f(0,489):t(0,421)=f(0,490):t(0,422)=f(0,245):t(0,423)=f(0,245):t(0,424)=f(0,245):t(0,425)=f(0,245):t(0,426)=f(0,245):t(0,427)=f(0,245):t(0,428)=f(0,245):t(0,429)=f(0,245):t(0,430)=f(0,245):t(0,431)=f(0,245):t(0,432)=f(0,245):t(0,433)=f(0,245):t(0,434)=f(0,245):t(0,435)=f(0,245):t(0,436)=f(0,245):t(0,437)=f(0,245):t(0,438)=f(0,245):t(0,439)=f(0,245):t(0,440)=f(0,245):t(0,441)=f(0,245):t(0,442)=f(0,245):t(0,443)=f(0,245):t(0,444)=f(0,245):t(0,445)=f(0,245):t(0,446)=f(0,460):t(0,447)=f(0,460):t(0,448)=f(0,460):t(0,449)=f(0,460):t(0,450)=f(0,245):t(0,451)=f(0,245):t(0,452)=f(0,30):t(0,453)=f(0,245):t(0,454)=f(0,491):t(0,455)=f(0,245):t(0,456)=f(0,462):t(0,457)=f(0,9):t(0,458)=f(0,30):t(0,459)=f(0,467)jint:t(0,460)=(0,18)jfieldID:t(0,461)=(0,492)jboolean:t(0,462)=(0,493)jthrowable:t(0,463)=(0,9)jbyte:t(0,464)=(0,494)jchar:t(0,465)=(0,495)jshort:t(0,466)=(0,496)jlong:t(0,467)=(0,497)jfloat:t(0,468)=(0,498)jdouble:t(0,469)=(0,499)jstring:t(0,470)=(0,9)jsize:t(0,471)=(0,460):t(0,472)=*(0,500):t(0,473)=*(0,501)jobjectArray:t(0,474)=(0,502)jbooleanArray:t(0,475)=(0,502)jbyteArray:t(0,476)=(0,502)jcharArray:t(0,477)=(0,502)jshortArray:t(0,478)=(0,502)jintArray:t(0,479)=(0,502)jlongArray:t(0,480)=(0,502)jfloatArray:t(0,481)=(0,502)jdoubleArray:t(0,482)=(0,502):t(0,483)=*(0,462):t(0,484)=*(0,464):t(0,485)=*(0,465):t(0,486)=*(0,466):t(0,487)=*(0,460):t(0,488)=*(0,467):t(0,489)=*(0,468):t(0,490)=*(0,469)jweak:t(0,491)=(0,9):t(0,492)=*(0,503)unsigned char:t(0,493)=@s8;r(0,493);0;255;signed char:t(0,494)=@s8;r(0,494);-128;127;short unsigned int:t(0,495)=@s16;r(0,495);0;65535;short int:t(0,496)=@s16;r(0,496);-32768;32767;long long int:t(0,497)=@s64;r(0,497);01000000000000000000000;0777777777777777777777;float:t(0,498)=r(0,2);4;0;double:t(0,499)=r(0,2);8;0;:t(0,500)=k(0,465):t(0,501)=k(0,22)jarray:t(0,502)=(0,9):t(0,503)=xs_jfieldID:env:p(0,6)jobj:p(0,7)eis:p(0,12)myeis:(0,1)Java_gnu_io_RXTXPort_Initialize:F(0,245)env:p(0,6)jclazz:p(0,8)old_action:(0,504)sigaction:T(0,504)=s12__sigaction_u:(0,505),0,32;sa_mask:(0,506),32,32;sa_flags:(0,2),64,32;;__sigaction_u:T(0,505)=u4__sa_handler:(0,508),0,32;__sa_sigaction:(0,509),0,32;;__darwin_sigset_t:t(0,507)=(0,510)sigset_t:t(0,506)=(0,507):t(0,508)=*(0,511):t(0,509)=*(0,512)__uint32_t:t(0,510)=(0,4):t(0,511)=f(0,245):t(0,512)=f(0,245)new_action:(0,504)block_mask:(0,506)sigset_t:t(0,506)find_preopened_ports:F(0,2)filename:p(0,473)fd:(0,2)int:t(0,2)p:(0,513)preopened:T(0,514)=s52filename:(0,515),0,320;fd:(0,2),320,32;next:(0,513),352,32;prev:(0,513),384,32;;:t(0,513)=*(0,514):t(0,515)=ar(0,21);0;39;(0,22)configure_port:F(0,2)fd:p(0,2)ttyset:(0,516)termios:T(0,516)=s44c_iflag:(0,517),0,32;c_oflag:(0,517),32,32;c_cflag:(0,517),64,32;c_lflag:(0,517),96,32;c_cc:(0,519),128,160;c_ispeed:(0,520),288,32;c_ospeed:(0,520),320,32;;long unsigned int:t(0,518)=r(0,518);0;037777777777;tcflag_t:t(0,517)=(0,518):t(0,519)=ar(0,21);0;19;(0,521)speed_t:t(0,520)=(0,18)cc_t:t(0,521)=(0,493)void:t(0,245)get_java_baudrate:F(0,2)native_speed:p(0,2)set_java_vars:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,2)ttyset:(0,516)databits:(0,2)jparity:(0,2)stop_bits:(0,2)baudrate:(0,2)jclazz:(0,8)jfspeed:(0,461)jfdataBits:(0,461)jfstopBits:(0,461)jfparity:(0,461)Java_gnu_io_RXTXPort_open:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)fd:(0,2)pid:(0,2)message:(0,5)filename:(0,473)char:t(0,22)jclazz:(0,8)jfid:(0,461)Java_gnu_io_RXTXPort_nativeClose:F(0,245)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,2)pid:(0,2)fd:(0,2)filename:(0,473)jclazz:(0,8)set_port_params:F(0,2)env:p(0,6)fd:p(0,2)cspeed:p(0,2)dataBits:p(0,2)stopBits:p(0,2)parity:p(0,2)ttyset:(0,516)result:(0,2)Java_gnu_io_RXTXPort_nativeSetSerialPortParams:F(0,462)env:p(0,6)jobj:p(0,9)speed:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)cspeed:(0,2)translate_speed:F(0,2)env:p(0,6)speed:p(0,460)translate_data_bits:F(0,2)env:p(0,6)cflag:p(0,522)dataBits:p(0,460)temp:(0,2):t(0,522)=*(0,517)translate_stop_bits:F(0,2)env:p(0,6)cflag:p(0,522)stopBits:p(0,460)Java_gnu_io_RXTXPort_nativeGetFlowControlMode:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)ret:(0,2)Java_gnu_io_RXTXPort_nativeGetParity:F(0,460)env:p(0,6)jobj:p(0,9)fd:p(0,460)ttyset:(0,516)translate_parity:F(0,2)env:p(0,6)cflag:p(0,522)parity:p(0,460)drain_loop:F(0,30)arg:p(0,30)eis:(0,12)i:(0,2)finalize_threads:F(0,245)eis:p(0,12)_warn_sig_abortwarn_sig_abort:f(0,245)signo:p(0,2)msg:(0,5)init_threads:F(0,2)eis:p(0,12)jeis:(0,461)newmask:(0,506)oldmask:(0,506)newaction:(0,504)oldaction:(0,504)tid:(0,523)_opaque_pthread_t:T(0,525)=s604__sig:(0,18),0,32;__cleanup_stack:(0,526),32,32;__opaque:(0,527),64,4768;;__darwin_pthread_t:t(0,524)=(0,528)pthread_t:t(0,523)=(0,524):t(0,526)=*(0,529):t(0,527)=ar(0,21);0;595;(0,22):t(0,528)=*(0,525)__darwin_pthread_handler_rec:T(0,529)=s12__routine:(0,530),0,32;__arg:(0,30),32,32;__next:(0,526),64,32;;:t(0,530)=*(0,531):t(0,531)=f(0,245)Java_gnu_io_RXTXPort_writeByte:F(0,245)env:p(0,6)jobj:p(0,9)ji:p(0,460)interrupted:p(0,2)index:(0,12)byte:(0,493)unsigned char:t(0,493)fd:(0,2)result:(0,2)msg:(0,5)interrupted:(0,462)Java_gnu_io_RXTXPort_writeArray:F(0,245)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)count:p(0,460)interrupted:p(0,2)index:(0,12)fd:(0,2)result:(0,2)total:(0,2)body:(0,484)jbyte:t(0,464)interrupted:(0,462)Java_gnu_io_RXTXPort_nativeDrain:F(0,462)env:p(0,6)jobj:p(0,9)interrupted:p(0,2)fd:(0,2)eis:(0,12)result:(0,2)count:(0,2)message:(0,5)interrupted:(0,462)myeis:(0,1)Java_gnu_io_RXTXPort_sendBreak:F(0,245)env:p(0,6)jobj:p(0,9)duration:p(0,460)fd:(0,2)Java_gnu_io_RXTXPort_NativegetReceiveTimeout:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_isDSR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)unsigned int:t(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCD:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isCTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRI:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_isRTS:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setRTS:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_setDSR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)Java_gnu_io_RXTXPort_isDTR:F(0,462)env:p(0,6)jobj:p(0,9)result:(0,4)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_setDTR:F(0,245)env:p(0,6)jobj:p(0,9)state:p(0,2)result:(0,4)fd:(0,2)message:(0,5)state:(0,462)static_add_filename:F(0,245)filename:p(0,473)fd:p(0,2)newp:(0,513)p:(0,513)Java_gnu_io_RXTXPort_nativeSetBaudBase:F(0,462)env:p(0,6)jobj:p(0,9)BaudBase:p(0,460)Java_gnu_io_RXTXPort_nativeGetBaudBase:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeSetDivisor:F(0,462)env:p(0,6)jobj:p(0,9)Divisor:p(0,460)Java_gnu_io_RXTXPort_nativeGetDivisor:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_nativeStaticSetDSR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetRTS:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)result:(0,2)filename:(0,473)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams:F(0,245)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)baudrate:p(0,460)dataBits:p(0,460)stopBits:p(0,460)parity:p(0,460)fd:(0,2)pid:(0,2)filename:(0,473)cspeed:(0,2)Java_gnu_io_RXTXPort_nativeStaticSetDTR:F(0,462)env:p(0,6)jclazz:p(0,8)jstr:p(0,470)flag:p(0,2)fd:(0,2)pid:(0,2)filename:(0,473)result:(0,2)flag:(0,462)Java_gnu_io_RXTXPort_nativeStaticIsRTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDSR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsDTR:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCD:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsCTS:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticIsRI:F(0,462)env:p(0,6)jobj:p(0,9)jstr:p(0,470)result:(0,4)filename:(0,473)fd:(0,2)message:(0,5)Java_gnu_io_RXTXPort_nativeStaticGetBaudRate:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)baudrate:(0,2)Java_gnu_io_RXTXPort_nativeStaticGetDataBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetParity:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeStaticGetStopBits:F(0,460)env:p(0,6)jobj:p(0,9)jstr:p(0,470)filename:(0,473)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeGetParityErrorChar:F(0,464)env:p(0,6)jobj:p(0,9)result:(0,4)Java_gnu_io_RXTXPort_nativeGetEndOfInputChar:F(0,464)env:p(0,6)jobj:p(0,9)fd:(0,2)ttyset:(0,516)Java_gnu_io_RXTXPort_nativeSetParityErrorChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)value:(0,464)Java_gnu_io_RXTXPort_nativeSetEndOfInputChar:F(0,462)env:p(0,6)jobj:p(0,9)value:p(0,2)fd:(0,2)ttyset:(0,516)value:(0,464)GetTickCount:F(0,18)now:(0,15)read_byte_array:F(0,2)env:p(0,6)jobj:p(0,7)fd:p(0,2)buffer:p(0,532)length:p(0,2)timeout:p(0,2)ret:(0,2):t(0,532)=*(0,493)left:(0,2)bytes:(0,2)timeLeft:(0,18)long int:t(0,18)now:(0,18)start:(0,18)tv:(0,15)tvP:(0,533):t(0,533)=*(0,15)rset:(0,13)flag:(0,2)count:(0,2)eis:(0,12)Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold:F(0,245)env:p(0,6)jobj:p(0,9)vtime:p(0,460)threshold:p(0,460)buffer:p(0,460)fd:(0,2)ttyset:(0,516)timeout:(0,2)Java_gnu_io_RXTXPort_readByte:F(0,460)env:p(0,6)jobj:p(0,9)bytes:(0,2)buffer:(0,534)fd:(0,2):t(0,534)=ar(0,21);0;0;(0,493)timeout:(0,2)Java_gnu_io_RXTXPort_readArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)bytes:(0,2)body:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeClearCommInput:F(0,462)env:p(0,6)jobj:p(0,9)fd:(0,2)Java_gnu_io_RXTXPort_readTerminatedArray:F(0,460)env:p(0,6)jobj:p(0,9)jbarray:p(0,476)offset:p(0,460)length:p(0,460)jterminator:p(0,476)bytes:(0,2)total:(0,2)body:(0,484)terminator:(0,484)fd:(0,2)timeout:(0,2)Java_gnu_io_RXTXPort_nativeavailable:F(0,460)env:p(0,6)jobj:p(0,9)fd:(0,2)result:(0,2)Java_gnu_io_RXTXPort_setflowcontrol:F(0,245)env:p(0,6)jobj:p(0,9)flowmode:p(0,460)ttyset:(0,516)fd:(0,2)unlock_monitor_thread:F(0,245)eis:p(0,12)env:(0,6)jobj:(0,9)jfid:(0,461)check_line_status_register:F(0,2)eis:p(0,12)has_line_status_register_access:F(0,2)fd:p(0,2)check_cgi_count:F(0,245)eis:p(0,12)port_has_changed_fionread:F(0,2)eis:p(0,12)change:(0,2)rc:(0,2)message:(0,5)check_tiocmget_changes:F(0,245)eis:p(0,12)mflags:(0,4)change:(0,2)system_wait:F(0,245)driver_has_tiocgicount:F(0,2)eis:p(0,12)report_serial_events:F(0,245)eis:p(0,12)initialise_event_info_struct:F(0,2)eis:p(0,12)i:(0,2)jobj:(0,9)env:(0,6)index:(0,12)finalize_event_info_struct:F(0,245)eis:p(0,12)Java_gnu_io_RXTXPort_eventLoop:F(0,245)env:p(0,6)jobj:p(0,9)eis:(0,1)Java_gnu_io_RXTXVersion_nativeGetVersion:F(0,470)env:p(0,6)jclazz:p(0,8)Java_gnu_io_RXTXCommDriver_testRead:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)port_type:p(0,460)ttyset:(0,516)c:(0,22)fd:(0,2)name:(0,473)ret:(0,2)pid:(0,2)saved_flags:(0,2)saved_termios:(0,516)createSerialIterator:F(0,535)serialIterator:p(0,536)kernResult:(0,535)kern_return_t:t(0,535)=(0,2):t(0,536)=*(0,537)io_iterator_t:t(0,537)=(0,538)io_object_t:t(0,538)=(0,539)mach_port_t:t(0,539)=(0,540)__darwin_mach_port_t:t(0,540)=(0,541)__darwin_mach_port_name_t:t(0,541)=(0,542)__darwin_natural_t:t(0,542)=(0,4)masterPort:(0,539)mach_port_t:t(0,539)classesToMatch:(0,543):t(0,544)=*(0,545)CFMutableDictionaryRef:t(0,543)=(0,544):t(0,545)=xs__CFDictionary:_resultStr.13700getRegistryString:F(0,546)sObj:p(0,538)propName:p(0,546)resultStr:V(0,547)nameCFstring:(0,548):t(0,546)=*(0,22):t(0,547)=ar(0,21);0;255;(0,22):t(0,549)=*(0,550)CFTypeRef:t(0,548)=(0,549):t(0,550)=k(0,245)registerKnownSerialPorts:F(0,2)env:p(0,6)jobj:p(0,9)portType:p(0,460)theSerialIterator:(0,537)io_iterator_t:t(0,537)theObject:(0,538)io_object_t:t(0,538)numPorts:(0,2)cls:(0,8)mid:(0,10)tempJstring:(0,470)Java_gnu_io_RXTXCommDriver_registerKnownPorts:F(0,462)env:p(0,6)jobj:p(0,9)portType:p(0,460) :T(0,551)=ePORT_TYPE_SERIAL:1,PORT_TYPE_PARALLEL:2,PORT_TYPE_I2C:3,PORT_TYPE_RS485:4,PORT_TYPE_RAW:5,; :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551) :T(0,551)result:(0,462)jboolean:t(0,462)message:(0,5)_mystat.13792Java_gnu_io_RXTXCommDriver_isPortPrefixValid:F(0,462)env:p(0,6)jobj:p(0,9)tty_name:p(0,470)result:(0,462)mystat:V(0,552)stat:T(0,552)=s96st_dev:(0,553),0,32;st_ino:(0,555),32,32;st_mode:(0,557),64,16;st_nlink:(0,559),80,16;st_uid:(0,561),96,32;st_gid:(0,563),128,32;st_rdev:(0,553),160,32;st_atimespec:(0,565),192,64;st_mtimespec:(0,565),256,64;st_ctimespec:(0,565),320,64;st_size:(0,566),384,64;st_blocks:(0,568),448,64;st_blksize:(0,570),512,32;st_flags:(0,510),544,32;st_gen:(0,510),576,32;st_lspare:(0,20),608,32;st_qspare:(0,572),640,128;;timespec:T(0,565)=s8tv_sec:(0,573),0,32;tv_nsec:(0,18),32,32;;__darwin_dev_t:t(0,554)=(0,20)dev_t:t(0,553)=(0,554)__darwin_ino_t:t(0,556)=(0,510)ino_t:t(0,555)=(0,556)__darwin_mode_t:t(0,558)=(0,560)mode_t:t(0,557)=(0,558)__uint16_t:t(0,560)=(0,495)nlink_t:t(0,559)=(0,560)__darwin_uid_t:t(0,562)=(0,510)uid_t:t(0,561)=(0,562)__darwin_gid_t:t(0,564)=(0,510)gid_t:t(0,563)=(0,564)__darwin_off_t:t(0,567)=(0,574)off_t:t(0,566)=(0,567)__darwin_blkcnt_t:t(0,569)=(0,574)blkcnt_t:t(0,568)=(0,569)__darwin_blksize_t:t(0,571)=(0,20)blksize_t:t(0,570)=(0,571):t(0,572)=ar(0,21);0;1;(0,574)time_t:t(0,573)=(0,17)__int64_t:t(0,574)=(0,497)teststring:(0,547)fd:(0,2)i:(0,2)name:(0,473)Java_gnu_io_RXTXCommDriver_getDeviceDirectory:F(0,470)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setInputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getInputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_setOutputBufferSize:F(0,245)env:p(0,6)jobj:p(0,9)size:p(0,460)Java_gnu_io_RXTXPort_getOutputBufferSize:F(0,460)env:p(0,6)jobj:p(0,9)Java_gnu_io_RXTXPort_interruptEventLoop:F(0,245)env:p(0,6)jobj:p(0,9)index:(0,12)fd:(0,2)searching:(0,2)is_interrupted:F(0,462)eis:p(0,12)result:(0,2)env:(0,6)Java_gnu_io_RXTXPort_nativeSetEventFlag:F(0,245)env:p(0,6)jobj:p(0,9)fd:p(0,460)event:p(0,460)flag:p(0,2)index:(0,12)flag:(0,462)send_event:F(0,2)eis:p(0,12)type:p(0,460)flag:p(0,2)result:(0,2)env:(0,6)get_java_var:F(0,575)env:p(0,6)jobj:p(0,9)id:p(0,546)type:p(0,546)result:(0,2)__darwin_size_t:t(0,576)=(0,518)size_t:t(0,575)=(0,576)jclazz:(0,8)jfd:(0,461)throw_java_exception:F(0,245)env:p(0,6)exc:p(0,546)foo:p(0,546)msg:p(0,546)buf:(0,577)clazz:(0,8):t(0,577)=ar(0,21);0;59;(0,22)report_warning:F(0,245)msg:p(0,546)report_verbose:F(0,245)msg:p(0,546)report_error:F(0,245)msg:p(0,546)report:F(0,245)msg:p(0,546)fhs_lock:F(0,2)filename:p(0,473)pid:p(0,2)fd:(0,2)j:(0,2)lockinfo:(0,578)message:(0,5)file:(0,5)p:(0,546):t(0,578)=ar(0,21);0;11;(0,22)uucp_lock:F(0,2)filename:p(0,473)pid:p(0,2)lockfilename:(0,5)lockinfo:(0,578)message:(0,5)name:(0,5)fd:(0,2)buf:(0,552)check_lock_status:F(0,2)filename:p(0,473)buf:(0,552)fhs_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)file:(0,5)p:(0,546)i:(0,2)uucp_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)buf:(0,552)file:(0,5)message:(0,5)check_lock_pid:F(0,2)file:p(0,473)openpid:p(0,2)fd:(0,2)lockpid:(0,2)pid_buffer:(0,578)message:(0,5)check_group_uucp:F(0,2)testLockFile:(0,579)testLockFileDirName:(0,580)testLockFileName:(0,581)testLockAbsFileName:(0,546):t(0,579)=*(0,582):t(0,580)=ar(0,21);0;9;(0,22):t(0,581)=ar(0,21);0;9;(0,22)FILE:t(0,582)=(0,583)__sFILE:T(0,583)=s88_p:(0,532),0,32;_r:(0,2),32,32;_w:(0,2),64,32;_flags:(0,496),96,16;_file:(0,496),112,16;_bf:(0,584),128,64;_lbfsize:(0,2),192,32;_cookie:(0,30),224,32;_close:(0,585),256,32;_read:(0,586),288,32;_seek:(0,587),320,32;_write:(0,588),352,32;_ub:(0,584),384,64;_extra:(0,589),448,32;_ur:(0,2),480,32;_ubuf:(0,590),512,24;_nbuf:(0,534),536,8;_lb:(0,584),544,64;_blksize:(0,2),608,32;_offset:(0,591),640,64;;__sbuf:T(0,584)=s8_base:(0,532),0,32;_size:(0,2),32,32;;:t(0,585)=*(0,592):t(0,586)=*(0,593):t(0,587)=*(0,594):t(0,588)=*(0,595):t(0,589)=*(0,596):t(0,590)=ar(0,21);0;2;(0,493)fpos_t:t(0,591)=(0,567):t(0,592)=f(0,2):t(0,593)=f(0,2):t(0,594)=f(0,591):t(0,595)=f(0,2):t(0,596)=xs__sFILEX:is_device_locked:F(0,2)port_filename:p(0,473)lockdirs:(0,597)lockprefixes:(0,598)p:(0,546):t(0,597)=ar(0,21);0;12;(0,473):t(0,598)=ar(0,21);0;3;(0,473)file:(0,5)pid_buffer:(0,599)message:(0,5)i:(0,2):t(0,599)=ar(0,21);0;19;(0,22)j:(0,2)k:(0,2)fd:(0,2)pid:(0,2)buf:(0,552)buf2:(0,552)lockbuf:(0,552)system_does_not_lock:F(0,2)filename:p(0,473)pid:p(0,2)system_does_not_unlock:F(0,245)filename:p(0,473)openpid:p(0,2)dump_termios:F(0,245)foo:p(0,546)ttyset:p(0,600):t(0,600)=*(0,516)get_java_environment:F(0,6)java_vm:p(0,601)was_attached:p(0,483)env:(0,602):t(0,601)=*(0,603):t(0,602)=*(0,30)JavaVM:t(0,603)=(0,604):t(0,604)=*(0,605):t(0,605)=k(0,606)JNIInvokeInterface_:T(0,606)=s32reserved0:(0,30),0,32;reserved1:(0,30),32,32;reserved2:(0,30),64,32;DestroyJavaVM:(0,607),96,32;AttachCurrentThread:(0,608),128,32;DetachCurrentThread:(0,607),160,32;GetEnv:(0,609),192,32;AttachCurrentThreadAsDaemon:(0,608),224,32;;:t(0,607)=*(0,610):t(0,608)=*(0,611):t(0,609)=*(0,612):t(0,610)=f(0,460):t(0,611)=f(0,460):t(0,612)=f(0,460)err_get_env:(0,460)jint:t(0,460)JNI_OnLoad:F(0,460)java_vm:p(0,601)reserved:p(0,30)JNI_OnUnload:F(0,245)vm:p(0,601)reserved:p(0,30)snow:G(0,15)enow:G(0,15)seloop:G(0,15)eeloop:G(0,15)javaVM:G(0,601)preopened_port:G(0,513)master_index:G(0,12)/Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB//Users/dima/Public/RXTX/latest2.1/rxtx-devel/MACOSX_IDE/PB/../../src/fuserImp.cgcc2_compiled.Java_gnu_io_CommPortIdentifier_native_1psmisc_1report_1owner:F(0,1)env:p(0,3)obj:p(0,2)arg:p(0,1)jobject:t(0,2)=(0,4)jstring:t(0,1)=(0,2):t(0,3)=*(0,5):t(0,4)=*(0,6)JNIEnv:t(0,5)=(0,7):t(0,6)=xs_jobject::t(0,7)=*(0,8):t(0,8)=k(0,9)JNINativeInterface_:T(0,9)=s928reserved0:(0,10),0,32;reserved1:(0,10),32,32;reserved2:(0,10),64,32;reserved3:(0,10),96,32;GetVersion:(0,11),128,32;DefineClass:(0,12),160,32;FindClass:(0,13),192,32;FromReflectedMethod:(0,14),224,32;FromReflectedField:(0,15),256,32;ToReflectedMethod:(0,16),288,32;GetSuperclass:(0,17),320,32;IsAssignableFrom:(0,18),352,32;ToReflectedField:(0,19),384,32;Throw:(0,20),416,32;ThrowNew:(0,21),448,32;ExceptionOccurred:(0,22),480,32;ExceptionDescribe:(0,23),512,32;ExceptionClear:(0,23),544,32;FatalError:(0,24),576,32;PushLocalFrame:(0,25),608,32;PopLocalFrame:(0,26),640,32;NewGlobalRef:(0,26),672,32;DeleteGlobalRef:(0,27),704,32;DeleteLocalRef:(0,27),736,32;IsSameObject:(0,28),768,32;NewLocalRef:(0,26),800,32;EnsureLocalCapacity:(0,25),832,32;AllocObject:(0,29),864,32;NewObject:(0,30),896,32;NewObjectV:(0,31),928,32;NewObjectA:(0,32),960,32;GetObjectClass:(0,33),992,32;IsInstanceOf:(0,34),1024,32;GetMethodID:(0,35),1056,32;CallObjectMethod:(0,36),1088,32;CallObjectMethodV:(0,37),1120,32;CallObjectMethodA:(0,38),1152,32;CallBooleanMethod:(0,39),1184,32;CallBooleanMethodV:(0,40),1216,32;CallBooleanMethodA:(0,41),1248,32;CallByteMethod:(0,42),1280,32;CallByteMethodV:(0,43),1312,32;CallByteMethodA:(0,44),1344,32;CallCharMethod:(0,45),1376,32;CallCharMethodV:(0,46),1408,32;CallCharMethodA:(0,47),1440,32;CallShortMethod:(0,48),1472,32;CallShortMethodV:(0,49),1504,32;CallShortMethodA:(0,50),1536,32;CallIntMethod:(0,51),1568,32;CallIntMethodV:(0,52),1600,32;CallIntMethodA:(0,53),1632,32;CallLongMethod:(0,54),1664,32;CallLongMethodV:(0,55),1696,32;CallLongMethodA:(0,56),1728,32;CallFloatMethod:(0,57),1760,32;CallFloatMethodV:(0,58),1792,32;CallFloatMethodA:(0,59),1824,32;CallDoubleMethod:(0,60),1856,32;CallDoubleMethodV:(0,61),1888,32;CallDoubleMethodA:(0,62),1920,32;CallVoidMethod:(0,63),1952,32;CallVoidMethodV:(0,64),1984,32;CallVoidMethodA:(0,65),2016,32;CallNonvirtualObjectMethod:(0,66),2048,32;CallNonvirtualObjectMethodV:(0,67),2080,32;CallNonvirtualObjectMethodA:(0,68),2112,32;CallNonvirtualBooleanMethod:(0,69),2144,32;CallNonvirtualBooleanMethodV:(0,70),2176,32;CallNonvirtualBooleanMethodA:(0,71),2208,32;CallNonvirtualByteMethod:(0,72),2240,32;CallNonvirtualByteMethodV:(0,73),2272,32;CallNonvirtualByteMethodA:(0,74),2304,32;CallNonvirtualCharMethod:(0,75),2336,32;CallNonvirtualCharMethodV:(0,76),2368,32;CallNonvirtualCharMethodA:(0,77),2400,32;CallNonvirtualShortMethod:(0,78),2432,32;CallNonvirtualShortMethodV:(0,79),2464,32;CallNonvirtualShortMethodA:(0,80),2496,32;CallNonvirtualIntMethod:(0,81),2528,32;CallNonvirtualIntMethodV:(0,82),2560,32;CallNonvirtualIntMethodA:(0,83),2592,32;CallNonvirtualLongMethod:(0,84),2624,32;CallNonvirtualLongMethodV:(0,85),2656,32;CallNonvirtualLongMethodA:(0,86),2688,32;CallNonvirtualFloatMethod:(0,87),2720,32;CallNonvirtualFloatMethodV:(0,88),2752,32;CallNonvirtualFloatMethodA:(0,89),2784,32;CallNonvirtualDoubleMethod:(0,90),2816,32;CallNonvirtualDoubleMethodV:(0,91),2848,32;CallNonvirtualDoubleMethodA:(0,92),2880,32;CallNonvirtualVoidMethod:(0,93),2912,32;CallNonvirtualVoidMethodV:(0,94),2944,32;CallNonvirtualVoidMethodA:(0,95),2976,32;GetFieldID:(0,96),3008,32;GetObjectField:(0,97),3040,32;GetBooleanField:(0,98),3072,32;GetByteField:(0,99),3104,32;GetCharField:(0,100),3136,32;GetShortField:(0,101),3168,32;GetIntField:(0,102),3200,32;GetLongField:(0,103),3232,32;GetFloatField:(0,104),3264,32;GetDoubleField:(0,105),3296,32;SetObjectField:(0,106),3328,32;SetBooleanField:(0,107),3360,32;SetByteField:(0,108),3392,32;SetCharField:(0,109),3424,32;SetShortField:(0,110),3456,32;SetIntField:(0,111),3488,32;SetLongField:(0,112),3520,32;SetFloatField:(0,113),3552,32;SetDoubleField:(0,114),3584,32;GetStaticMethodID:(0,35),3616,32;CallStaticObjectMethod:(0,30),3648,32;CallStaticObjectMethodV:(0,31),3680,32;CallStaticObjectMethodA:(0,32),3712,32;CallStaticBooleanMethod:(0,115),3744,32;CallStaticBooleanMethodV:(0,116),3776,32;CallStaticBooleanMethodA:(0,117),3808,32;CallStaticByteMethod:(0,118),3840,32;CallStaticByteMethodV:(0,119),3872,32;CallStaticByteMethodA:(0,120),3904,32;CallStaticCharMethod:(0,121),3936,32;CallStaticCharMethodV:(0,122),3968,32;CallStaticCharMethodA:(0,123),4000,32;CallStaticShortMethod:(0,124),4032,32;CallStaticShortMethodV:(0,125),4064,32;CallStaticShortMethodA:(0,126),4096,32;CallStaticIntMethod:(0,127),4128,32;CallStaticIntMethodV:(0,128),4160,32;CallStaticIntMethodA:(0,129),4192,32;CallStaticLongMethod:(0,130),4224,32;CallStaticLongMethodV:(0,131),4256,32;CallStaticLongMethodA:(0,132),4288,32;CallStaticFloatMethod:(0,133),4320,32;CallStaticFloatMethodV:(0,134),4352,32;CallStaticFloatMethodA:(0,135),4384,32;CallStaticDoubleMethod:(0,136),4416,32;CallStaticDoubleMethodV:(0,137),4448,32;CallStaticDoubleMethodA:(0,138),4480,32;CallStaticVoidMethod:(0,139),4512,32;CallStaticVoidMethodV:(0,140),4544,32;CallStaticVoidMethodA:(0,141),4576,32;GetStaticFieldID:(0,96),4608,32;GetStaticObjectField:(0,142),4640,32;GetStaticBooleanField:(0,143),4672,32;GetStaticByteField:(0,144),4704,32;GetStaticCharField:(0,145),4736,32;GetStaticShortField:(0,146),4768,32;GetStaticIntField:(0,147),4800,32;GetStaticLongField:(0,148),4832,32;GetStaticFloatField:(0,149),4864,32;GetStaticDoubleField:(0,150),4896,32;SetStaticObjectField:(0,151),4928,32;SetStaticBooleanField:(0,152),4960,32;SetStaticByteField:(0,153),4992,32;SetStaticCharField:(0,154),5024,32;SetStaticShortField:(0,155),5056,32;SetStaticIntField:(0,156),5088,32;SetStaticLongField:(0,157),5120,32;SetStaticFloatField:(0,158),5152,32;SetStaticDoubleField:(0,159),5184,32;NewString:(0,160),5216,32;GetStringLength:(0,161),5248,32;GetStringChars:(0,162),5280,32;ReleaseStringChars:(0,163),5312,32;NewStringUTF:(0,164),5344,32;GetStringUTFLength:(0,161),5376,32;GetStringUTFChars:(0,165),5408,32;ReleaseStringUTFChars:(0,166),5440,32;GetArrayLength:(0,167),5472,32;NewObjectArray:(0,168),5504,32;GetObjectArrayElement:(0,169),5536,32;SetObjectArrayElement:(0,170),5568,32;NewBooleanArray:(0,171),5600,32;NewByteArray:(0,172),5632,32;NewCharArray:(0,173),5664,32;NewShortArray:(0,174),5696,32;NewIntArray:(0,175),5728,32;NewLongArray:(0,176),5760,32;NewFloatArray:(0,177),5792,32;NewDoubleArray:(0,178),5824,32;GetBooleanArrayElements:(0,179),5856,32;GetByteArrayElements:(0,180),5888,32;GetCharArrayElements:(0,181),5920,32;GetShortArrayElements:(0,182),5952,32;GetIntArrayElements:(0,183),5984,32;GetLongArrayElements:(0,184),6016,32;GetFloatArrayElements:(0,185),6048,32;GetDoubleArrayElements:(0,186),6080,32;ReleaseBooleanArrayElements:(0,187),6112,32;ReleaseByteArrayElements:(0,188),6144,32;ReleaseCharArrayElements:(0,189),6176,32;ReleaseShortArrayElements:(0,190),6208,32;ReleaseIntArrayElements:(0,191),6240,32;ReleaseLongArrayElements:(0,192),6272,32;ReleaseFloatArrayElements:(0,193),6304,32;ReleaseDoubleArrayElements:(0,194),6336,32;GetBooleanArrayRegion:(0,195),6368,32;GetByteArrayRegion:(0,196),6400,32;GetCharArrayRegion:(0,197),6432,32;GetShortArrayRegion:(0,198),6464,32;GetIntArrayRegion:(0,199),6496,32;GetLongArrayRegion:(0,200),6528,32;GetFloatArrayRegion:(0,201),6560,32;GetDoubleArrayRegion:(0,202),6592,32;SetBooleanArrayRegion:(0,203),6624,32;SetByteArrayRegion:(0,204),6656,32;SetCharArrayRegion:(0,205),6688,32;SetShortArrayRegion:(0,206),6720,32;SetIntArrayRegion:(0,207),6752,32;SetLongArrayRegion:(0,208),6784,32;SetFloatArrayRegion:(0,209),6816,32;SetDoubleArrayRegion:(0,210),6848,32;RegisterNatives:(0,211),6880,32;UnregisterNatives:(0,212),6912,32;MonitorEnter:(0,213),6944,32;MonitorExit:(0,213),6976,32;GetJavaVM:(0,214),7008,32;GetStringRegion:(0,215),7040,32;GetStringUTFRegion:(0,216),7072,32;GetPrimitiveArrayCritical:(0,217),7104,32;ReleasePrimitiveArrayCritical:(0,218),7136,32;GetStringCritical:(0,162),7168,32;ReleaseStringCritical:(0,163),7200,32;NewWeakGlobalRef:(0,219),7232,32;DeleteWeakGlobalRef:(0,220),7264,32;ExceptionCheck:(0,221),7296,32;NewDirectByteBuffer:(0,222),7328,32;GetDirectBufferAddress:(0,223),7360,32;GetDirectBufferCapacity:(0,224),7392,32;;:t(0,10)=*(0,225):t(0,11)=*(0,226):t(0,12)=*(0,227):t(0,13)=*(0,228):t(0,14)=*(0,229):t(0,15)=*(0,230):t(0,16)=*(0,231):t(0,17)=*(0,232):t(0,18)=*(0,233):t(0,19)=*(0,234):t(0,20)=*(0,235):t(0,21)=*(0,236):t(0,22)=*(0,237):t(0,23)=*(0,238):t(0,24)=*(0,239):t(0,25)=*(0,240):t(0,26)=*(0,241):t(0,27)=*(0,242):t(0,28)=*(0,243):t(0,29)=*(0,244):t(0,30)=*(0,245):t(0,31)=*(0,246):t(0,32)=*(0,247):t(0,33)=*(0,248):t(0,34)=*(0,249):t(0,35)=*(0,250):t(0,36)=*(0,251):t(0,37)=*(0,252):t(0,38)=*(0,253):t(0,39)=*(0,254):t(0,40)=*(0,255):t(0,41)=*(0,256):t(0,42)=*(0,257):t(0,43)=*(0,258):t(0,44)=*(0,259):t(0,45)=*(0,260):t(0,46)=*(0,261):t(0,47)=*(0,262):t(0,48)=*(0,263):t(0,49)=*(0,264):t(0,50)=*(0,265):t(0,51)=*(0,266):t(0,52)=*(0,267):t(0,53)=*(0,268):t(0,54)=*(0,269):t(0,55)=*(0,270):t(0,56)=*(0,271):t(0,57)=*(0,272):t(0,58)=*(0,273):t(0,59)=*(0,274):t(0,60)=*(0,275):t(0,61)=*(0,276):t(0,62)=*(0,277):t(0,63)=*(0,278):t(0,64)=*(0,279):t(0,65)=*(0,280):t(0,66)=*(0,281):t(0,67)=*(0,282):t(0,68)=*(0,283):t(0,69)=*(0,284):t(0,70)=*(0,285):t(0,71)=*(0,286):t(0,72)=*(0,287):t(0,73)=*(0,288):t(0,74)=*(0,289):t(0,75)=*(0,290):t(0,76)=*(0,291):t(0,77)=*(0,292):t(0,78)=*(0,293):t(0,79)=*(0,294):t(0,80)=*(0,295):t(0,81)=*(0,296):t(0,82)=*(0,297):t(0,83)=*(0,298):t(0,84)=*(0,299):t(0,85)=*(0,300):t(0,86)=*(0,301):t(0,87)=*(0,302):t(0,88)=*(0,303):t(0,89)=*(0,304):t(0,90)=*(0,305):t(0,91)=*(0,306):t(0,92)=*(0,307):t(0,93)=*(0,308):t(0,94)=*(0,309):t(0,95)=*(0,310):t(0,96)=*(0,311):t(0,97)=*(0,312):t(0,98)=*(0,313):t(0,99)=*(0,314):t(0,100)=*(0,315):t(0,101)=*(0,316):t(0,102)=*(0,317):t(0,103)=*(0,318):t(0,104)=*(0,319):t(0,105)=*(0,320):t(0,106)=*(0,321):t(0,107)=*(0,322):t(0,108)=*(0,323):t(0,109)=*(0,324):t(0,110)=*(0,325):t(0,111)=*(0,326):t(0,112)=*(0,327):t(0,113)=*(0,328):t(0,114)=*(0,329):t(0,115)=*(0,330):t(0,116)=*(0,331):t(0,117)=*(0,332):t(0,118)=*(0,333):t(0,119)=*(0,334):t(0,120)=*(0,335):t(0,121)=*(0,336):t(0,122)=*(0,337):t(0,123)=*(0,338):t(0,124)=*(0,339):t(0,125)=*(0,340):t(0,126)=*(0,341):t(0,127)=*(0,342):t(0,128)=*(0,343):t(0,129)=*(0,344):t(0,130)=*(0,345):t(0,131)=*(0,346):t(0,132)=*(0,347):t(0,133)=*(0,348):t(0,134)=*(0,349):t(0,135)=*(0,350):t(0,136)=*(0,351):t(0,137)=*(0,352):t(0,138)=*(0,353):t(0,139)=*(0,354):t(0,140)=*(0,355):t(0,141)=*(0,356):t(0,142)=*(0,357):t(0,143)=*(0,358):t(0,144)=*(0,359):t(0,145)=*(0,360):t(0,146)=*(0,361):t(0,147)=*(0,362):t(0,148)=*(0,363):t(0,149)=*(0,364):t(0,150)=*(0,365):t(0,151)=*(0,366):t(0,152)=*(0,367):t(0,153)=*(0,368):t(0,154)=*(0,369):t(0,155)=*(0,370):t(0,156)=*(0,371):t(0,157)=*(0,372):t(0,158)=*(0,373):t(0,159)=*(0,374):t(0,160)=*(0,375):t(0,161)=*(0,376):t(0,162)=*(0,377):t(0,163)=*(0,378):t(0,164)=*(0,379):t(0,165)=*(0,380):t(0,166)=*(0,381):t(0,167)=*(0,382):t(0,168)=*(0,383):t(0,169)=*(0,384):t(0,170)=*(0,385):t(0,171)=*(0,386):t(0,172)=*(0,387):t(0,173)=*(0,388):t(0,174)=*(0,389):t(0,175)=*(0,390):t(0,176)=*(0,391):t(0,177)=*(0,392):t(0,178)=*(0,393):t(0,179)=*(0,394):t(0,180)=*(0,395):t(0,181)=*(0,396):t(0,182)=*(0,397):t(0,183)=*(0,398):t(0,184)=*(0,399):t(0,185)=*(0,400):t(0,186)=*(0,401):t(0,187)=*(0,402):t(0,188)=*(0,403):t(0,189)=*(0,404):t(0,190)=*(0,405):t(0,191)=*(0,406):t(0,192)=*(0,407):t(0,193)=*(0,408):t(0,194)=*(0,409):t(0,195)=*(0,410):t(0,196)=*(0,411):t(0,197)=*(0,412):t(0,198)=*(0,413):t(0,199)=*(0,414):t(0,200)=*(0,415):t(0,201)=*(0,416):t(0,202)=*(0,417):t(0,203)=*(0,418):t(0,204)=*(0,419):t(0,205)=*(0,420):t(0,206)=*(0,421):t(0,207)=*(0,422):t(0,208)=*(0,423):t(0,209)=*(0,424):t(0,210)=*(0,425):t(0,211)=*(0,426):t(0,212)=*(0,427):t(0,213)=*(0,428):t(0,214)=*(0,429):t(0,215)=*(0,430):t(0,216)=*(0,431):t(0,217)=*(0,432):t(0,218)=*(0,433):t(0,219)=*(0,434):t(0,220)=*(0,435):t(0,221)=*(0,436):t(0,222)=*(0,437):t(0,223)=*(0,438):t(0,224)=*(0,439):t(0,225)=(0,225):t(0,226)=f(0,440):t(0,227)=f(0,441):t(0,228)=f(0,441):t(0,229)=f(0,442):t(0,230)=f(0,443):t(0,231)=f(0,2):t(0,232)=f(0,441):t(0,233)=f(0,444):t(0,234)=f(0,2):t(0,235)=f(0,440):t(0,236)=f(0,440):t(0,237)=f(0,445):t(0,238)=f(0,225):t(0,239)=f(0,225):t(0,240)=f(0,440):t(0,241)=f(0,2):t(0,242)=f(0,225):t(0,243)=f(0,444):t(0,244)=f(0,2):t(0,245)=f(0,2):t(0,246)=f(0,2):t(0,247)=f(0,2):t(0,248)=f(0,441):t(0,249)=f(0,444):t(0,250)=f(0,442):t(0,251)=f(0,2):t(0,252)=f(0,2):t(0,253)=f(0,2):t(0,254)=f(0,444):t(0,255)=f(0,444):t(0,256)=f(0,444):t(0,257)=f(0,446):t(0,258)=f(0,446):t(0,259)=f(0,446):t(0,260)=f(0,447):t(0,261)=f(0,447):t(0,262)=f(0,447):t(0,263)=f(0,448):t(0,264)=f(0,448):t(0,265)=f(0,448):t(0,266)=f(0,440):t(0,267)=f(0,440):t(0,268)=f(0,440):t(0,269)=f(0,449):t(0,270)=f(0,449):t(0,271)=f(0,449):t(0,272)=f(0,450):t(0,273)=f(0,450):t(0,274)=f(0,450):t(0,275)=f(0,451):t(0,276)=f(0,451):t(0,277)=f(0,451):t(0,278)=f(0,225):t(0,279)=f(0,225):t(0,280)=f(0,225):t(0,281)=f(0,2):t(0,282)=f(0,2):t(0,283)=f(0,2):t(0,284)=f(0,444):t(0,285)=f(0,444):t(0,286)=f(0,444):t(0,287)=f(0,446):t(0,288)=f(0,446):t(0,289)=f(0,446):t(0,290)=f(0,447):t(0,291)=f(0,447):t(0,292)=f(0,447):t(0,293)=f(0,448):t(0,294)=f(0,448):t(0,295)=f(0,448):t(0,296)=f(0,440):t(0,297)=f(0,440):t(0,298)=f(0,440):t(0,299)=f(0,449):t(0,300)=f(0,449):t(0,301)=f(0,449):t(0,302)=f(0,450):t(0,303)=f(0,450):t(0,304)=f(0,450):t(0,305)=f(0,451):t(0,306)=f(0,451):t(0,307)=f(0,451):t(0,308)=f(0,225):t(0,309)=f(0,225):t(0,310)=f(0,225):t(0,311)=f(0,443):t(0,312)=f(0,2):t(0,313)=f(0,444):t(0,314)=f(0,446):t(0,315)=f(0,447):t(0,316)=f(0,448):t(0,317)=f(0,440):t(0,318)=f(0,449):t(0,319)=f(0,450):t(0,320)=f(0,451):t(0,321)=f(0,225):t(0,322)=f(0,225):t(0,323)=f(0,225):t(0,324)=f(0,225):t(0,325)=f(0,225):t(0,326)=f(0,225):t(0,327)=f(0,225):t(0,328)=f(0,225):t(0,329)=f(0,225):t(0,330)=f(0,444):t(0,331)=f(0,444):t(0,332)=f(0,444):t(0,333)=f(0,446):t(0,334)=f(0,446):t(0,335)=f(0,446):t(0,336)=f(0,447):t(0,337)=f(0,447):t(0,338)=f(0,447):t(0,339)=f(0,448):t(0,340)=f(0,448):t(0,341)=f(0,448):t(0,342)=f(0,440):t(0,343)=f(0,440):t(0,344)=f(0,440):t(0,345)=f(0,449):t(0,346)=f(0,449):t(0,347)=f(0,449):t(0,348)=f(0,450):t(0,349)=f(0,450):t(0,350)=f(0,450):t(0,351)=f(0,451):t(0,352)=f(0,451):t(0,353)=f(0,451):t(0,354)=f(0,225):t(0,355)=f(0,225):t(0,356)=f(0,225):t(0,357)=f(0,2):t(0,358)=f(0,444):t(0,359)=f(0,446):t(0,360)=f(0,447):t(0,361)=f(0,448):t(0,362)=f(0,440):t(0,363)=f(0,449):t(0,364)=f(0,450):t(0,365)=f(0,451):t(0,366)=f(0,225):t(0,367)=f(0,225):t(0,368)=f(0,225):t(0,369)=f(0,225):t(0,370)=f(0,225):t(0,371)=f(0,225):t(0,372)=f(0,225):t(0,373)=f(0,225):t(0,374)=f(0,225):t(0,375)=f(0,1):t(0,376)=f(0,452):t(0,377)=f(0,453):t(0,378)=f(0,225):t(0,379)=f(0,1):t(0,380)=f(0,454):t(0,381)=f(0,225):t(0,382)=f(0,452):t(0,383)=f(0,455):t(0,384)=f(0,2):t(0,385)=f(0,225):t(0,386)=f(0,456):t(0,387)=f(0,457):t(0,388)=f(0,458):t(0,389)=f(0,459):t(0,390)=f(0,460):t(0,391)=f(0,461):t(0,392)=f(0,462):t(0,393)=f(0,463):t(0,394)=f(0,464):t(0,395)=f(0,465):t(0,396)=f(0,466):t(0,397)=f(0,467):t(0,398)=f(0,468):t(0,399)=f(0,469):t(0,400)=f(0,470):t(0,401)=f(0,471):t(0,402)=f(0,225):t(0,403)=f(0,225):t(0,404)=f(0,225):t(0,405)=f(0,225):t(0,406)=f(0,225):t(0,407)=f(0,225):t(0,408)=f(0,225):t(0,409)=f(0,225):t(0,410)=f(0,225):t(0,411)=f(0,225):t(0,412)=f(0,225):t(0,413)=f(0,225):t(0,414)=f(0,225):t(0,415)=f(0,225):t(0,416)=f(0,225):t(0,417)=f(0,225):t(0,418)=f(0,225):t(0,419)=f(0,225):t(0,420)=f(0,225):t(0,421)=f(0,225):t(0,422)=f(0,225):t(0,423)=f(0,225):t(0,424)=f(0,225):t(0,425)=f(0,225):t(0,426)=f(0,440):t(0,427)=f(0,440):t(0,428)=f(0,440):t(0,429)=f(0,440):t(0,430)=f(0,225):t(0,431)=f(0,225):t(0,432)=f(0,10):t(0,433)=f(0,225):t(0,434)=f(0,472):t(0,435)=f(0,225):t(0,436)=f(0,444):t(0,437)=f(0,2):t(0,438)=f(0,10):t(0,439)=f(0,449)jint:t(0,440)=(0,473)jclass:t(0,441)=(0,2)jmethodID:t(0,442)=(0,474)jfieldID:t(0,443)=(0,475)jboolean:t(0,444)=(0,476)jthrowable:t(0,445)=(0,2)jbyte:t(0,446)=(0,477)jchar:t(0,447)=(0,478)jshort:t(0,448)=(0,479)jlong:t(0,449)=(0,480)jfloat:t(0,450)=(0,481)jdouble:t(0,451)=(0,482)jsize:t(0,452)=(0,440):t(0,453)=*(0,483):t(0,454)=*(0,484)jobjectArray:t(0,455)=(0,485)jbooleanArray:t(0,456)=(0,485)jbyteArray:t(0,457)=(0,485)jcharArray:t(0,458)=(0,485)jshortArray:t(0,459)=(0,485)jintArray:t(0,460)=(0,485)jlongArray:t(0,461)=(0,485)jfloatArray:t(0,462)=(0,485)jdoubleArray:t(0,463)=(0,485):t(0,464)=*(0,444):t(0,465)=*(0,446):t(0,466)=*(0,447):t(0,467)=*(0,448):t(0,468)=*(0,440):t(0,469)=*(0,449):t(0,470)=*(0,450):t(0,471)=*(0,451)jweak:t(0,472)=(0,2)long int:t(0,473)=r(0,473);-2147483648;2147483647;:t(0,474)=*(0,486):t(0,475)=*(0,487)unsigned char:t(0,476)=@s8;r(0,476);0;255;signed char:t(0,477)=@s8;r(0,477);-128;127;short unsigned int:t(0,478)=@s16;r(0,478);0;65535;short int:t(0,479)=@s16;r(0,479);-32768;32767;long long int:t(0,480)=@s64;r(0,480);01000000000000000000000;0777777777777777777777;float:t(0,481)=r(0,488);4;0;double:t(0,482)=r(0,488);8;0;:t(0,483)=k(0,447):t(0,484)=k(0,489)jarray:t(0,485)=(0,2):t(0,486)=xs_jmethodID::t(0,487)=xs_jfieldID:char:t(0,489)=r(0,489);0;127;PK t4ユマ-,gnu/io/installer/resources/macosx/preinstall#!/bin/sh curruser=$1 echo $curruser if [ ! -d /var/lock ] then mkdir /var/lock fi chgrp uucp /var/lock chmod 775 /var/lock if [ ! `niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then niutil -mergeprop / /groups/uucp users $curruser fi PK L t4 ロ妖゙゙,gnu/io/installer/resources/macosx/README.txtlibAuthKit.jnilib and the following java packages glguerin.* app.authkit.* app.hex.* app.util.* are part of Greg Guerin's AuthKit see http://www.amug.org/~glguerin/sw/#authkit it released under "Artistic" license PK 」 t4ナゥ/''$gnu/io/installer/RXTXInstaller.classハコセ1テ 1f gh f ij k l m no npq r s tu v w xyz{ |} ~ ~ f x x x | "f " " "       xsysPrefLjava/util/prefs/Preferences; checkPref jarFolderLjava/io/File; libFolderinst%Lgnu/io/installer/InstallInstruction;()VCodeLineNumberTableLocalVariableTablethis Lgnu/io/installer/RXTXInstaller; runPreProcessrunPostProcessinstallfeLjava/util/Enumeration;finishInstallationtLjava/lang/Throwable;getInstallInstruction'()Lgnu/io/installer/InstallInstruction; getInstance"()Lgnu/io/installer/RXTXInstaller;osNameLjava/lang/String;initInstallation(Ljava/lang/Class;)V checkPrefName rootClassLjava/lang/Class;addLibResource'(Ljava/lang/String;Ljava/lang/String;)VpathresourcelibFileaddJarResourcejarFile addResource#(Ljava/io/File;Ljava/lang/String;)Vmain([Ljava/lang/String;)Vargs[Ljava/lang/String; installer SourceFileRXTXInstaller.java :; 43#gnu/io/installer/InstallInstruction 89gnu/io/installer/RXTXInstaller PQ A;   java/io/File 23 。「」 、・ B; G;ヲ ァ;java/lang/Throwableos.nameィ ゥェォ ャュmac ョッ+gnu/io/installer/macosx/MACOSXRXTXInstallerinstaller.prefー アイ ウエ/check オッ カキ クケjava/lang/StringBuilder Throwable コサ コシ スュセ ソタ 76 :] \] 56 LM C; チツjava/lang/ObjectgetKeys()Ljava/util/Enumeration;java/util/EnumerationhasMoreElements()Z nextElement()Ljava/lang/Object;getPath"(Ljava/io/File;)Ljava/lang/String;!gnu/io/installer/util/InstallUtil installPart](Ljava/util/prefs/Preferences;Ljava/util/prefs/Preferences;Ljava/lang/String;Ljava/io/File;)Vjava/util/prefs/Preferences removeNodejava/lang/System getProperty&(Ljava/lang/String;)Ljava/lang/String;java/lang/String toLowerCase()Ljava/lang/String; startsWith(Ljava/lang/String;)Zjava/lang/ClassgetResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;importPreferences(Ljava/io/InputStream;)V nodeExistsnode1(Ljava/lang/String;)Ljava/util/prefs/Preferences;outLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)V systemRoot()Ljava/util/prefs/Preferences;!12343567689 :;<G*キ*オ*サYキオア=  > ?@A;B;C;<ョL*カ*カ*エニ4*エカ L+ケ #+ケ タ Mイ *エ*エ,カ,クァレ*カ*カア=*  #-@CGK > -D6)EFL?@G;<\*エヌア*エカァLア=#%&'>HI?@JK</*エー=*> ?@ LM<RクカK*カ サYキーー=. /02>  NOPQ<ニR*オ+ヌア+カクM*イ ,カ イ ,カ ァオァ"M*オイ!サ"Yキ#$カ%,カ&カ'カ(ア /2=* 67 9:;/?2<3=8>Q@>*RO3HIR?@RSTUV<x$*エ)ニ +ニ,ヌアサ Y*エ)+キ*N*-,カ+ア=CDE#F>*$?@$WO$XOY6ZV<x$*エ,ニ +ニ,ヌアサ Y*エ,+キ*N*-,カ+ア=IJK#L>*$?@$WO$XO[6\]<b*エヌ*サYキオ*エ+,カ-ア=OPQ> ?@W6XO ^_<I ク.L+ニ+カ/ア=TU V> `a b@c;<ク0ウ ア= dePK ht4gnu/io/installer/util/PK ht4`m$ZSS'gnu/io/installer/util/InstallUtil.classハコセ1 sdat apps            。「」 、・ ヲ ァィ ゥ ェ ォ &ャュ &ョ &ッ &ー ア イウ &エ オ イカ イキクケコ サ イシ イス kSystemDomainS ConstantValue kLocalDomainkNetworkDomain kUserDomainkClassicDomainkPreferenceFolderIprefkApplicationSupportFolderasupkSharedUserDataFolderkApplicationFolderkExtensionFolderextnkDomainLibraryFolderdlib()VCodeLineNumberTableLocalVariableTablethis#Lgnu/io/installer/util/InstallUtil;getSharedFolderPath()Ljava/lang/String;getApplicationFolderPathgetGlobalApplicationFolderPath getFolderPath(I)Ljava/lang/String;clazzLjava/lang/Class;mLjava/lang/reflect/Method;tLjava/lang/Throwable; folderKind(SI)Ljava/lang/String;domaincopyResourceToFile#(Ljava/lang/String;Ljava/io/File;)VfosLjava/io/FileOutputStream;isLjava/io/InputStream;buffer[Brb absResPathLjava/lang/String;fileLjava/io/File; installPart](Ljava/util/prefs/Preferences;Ljava/util/prefs/Preferences;Ljava/lang/String;Ljava/io/File;)VcheckResParentNamecheckInstallPrefLjava/util/prefs/Preferences;installValueLengthJcheckValueLength newLengthsysPref checkPref resPathName fileToInstall needInstallZ separatorC prevLengthfooFileresName resParentName installPref SourceFileInstallUtil.java MN XY Xacom.apple.eio.FileManager セソ findFolderjava/lang/Class タ[ チツjava/lang/Objectjava/lang/Integer Mテト ナニjava/lang/Stringjava/lang/Throwablejava/lang/Short Mヌネ ノハjava/lang/StringBuildergetFolderPath Throwable ヒフ ヒヘ ホUマ ミム!gnu/io/installer/util/InstallUtil メモjava/io/FileOutputStream Mヤユ ヨラ リル レN ロN ワ java/io/File Mム ンU ゙U ゚ Y File  is uptodate copy file cd NforName%(Ljava/lang/String;)Ljava/lang/Class;TYPE getMethod@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;(I)Vjava/lang/reflect/Methodinvoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(S)Vjava/lang/SystemoutLjava/io/PrintStream;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toStringjava/io/PrintStreamprintln(Ljava/lang/String;)VgetResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;(Ljava/io/File;)Vjava/io/InputStreamread([BII)Iwrite([BII)VcloseprintStackTrace separatorChargetName getParentreplace(CC)Ljava/lang/String;java/util/prefs/Preferencesnode1(Ljava/lang/String;)Ljava/util/prefs/Preferences;length()J substring nodeExists(Ljava/lang/String;)ZgetLong(Ljava/lang/String;J)JputLong(Ljava/lang/String;J)Vflush! 6789:78;<78=>78?@78ABC8DEC8FGC8HC8IC8JKC8LMNO/*キアPQ RS TUOクーP VUOクーP WUO! クーP XYO2クL+ス Yイ Sカ M,ス Yサ YキSカターLー./P/0Q*)Z[\]0^_2`C XaOハ\クM,ス YイSYイ Sカ N-ス YサYキSYサ YキSカターMイサYキカ,カカカー?@P@ A!Z#Q4:Z[#\]A^_\b7\`C cdOG*カMシN6,ニ,サY+キ :,--セカ!Y6-カ"ァカ#ァM,カ$ア>AP6 '()*+,--6.9/>3A1B2F4QHef6gh0ij-kCB^_GlmGno pqOー:-ニ,ヌア+ヌァ6イ%6 7サ&Y,キ':カ(: カ): / /カ*: * カ+: -カ,7ァ:  爆ァ6n カ-: : + カ. + カ+ァ: ァ::   カ/7 ヌ ァ   カ/7 漠爆爆 漠ァ6$イサYキ0カ-カ1カカカァ:イサYキ2カ-カカカ,-ク3-カ,7    カ4 カ5ァ: アSY\| 47P!6 789:&;-<4=F>N?SAYB^DlEqFyG|ILJKM」NカOワTUVWX Z&[/\4]9_Qタ^^_ ^_ycrm |`st 」9uvカ&wv&xv 9^_ :yt:zt:{m:|o&}~!v&o- m 4m Nt PK L t4 META-INF/ハPK L t4女i}rr+META-INF/MANIFEST.MFPK ^ /マapp/PK ^ / app/authkit/PK 」 t4app/authkit/envoy/PK ^ /逮カ%ララKapp/authkit/envoy/Envoy.classPK ^ /dャトユユ]app/authkit/envoy/Task.classPK ^ /・ヨタツツlapp/authkit/envoy/Tool.classPK 」 t4h9app/authkit/test/PK ^ /s閲アア9app/authkit/test/AllTests.classPK ^ /U.6トト>app/authkit/test/AuthTest.classPK ^ /ワ孟{++Sapp/authkit/test/Digester.classPK ^ /攵x!Yapp/authkit/test/TestAttach.classPK ^ /T / 5happ/authkit/test/TestAuth.classPK ^ / 、!|app/authkit/test/TestDetach.classPK ^ /jrフフ&ーapp/authkit/test/TestExternalize.classPK ^ /慶ヲ2!タapp/authkit/test/TestLoader.classPK ^ /ツ47V(( app/authkit/test/TestPrivs.classPK ^ /ル鬣ァァ#a「app/authkit/test/TestReattach.classPK ^ /#(ff&Iゥapp/authkit/test/TestReleaseSelf.classPK ^ /bミgーapp/authkit/test/TestTwo.classPK 」 t40ケapp/authkit/tools/PK ^ /qP)N N )`ケapp/authkit/tools/AppBundleLockdown.classPK ^ /、Z゚l%ニapp/authkit/tools/PerformAsRoot.classPK 」 t4ニヘapp/authkit/tools/tasks/PK ^ /#'~ワ__3ヘapp/authkit/tools/tasks/AppBundleLockdownTask.classPK ^ /ン、PTT(ャヨapp/authkit/tools/tasks/CommonTask.classPK ^ /uTi、"F゚app/authkit/tools/tasks/None.classPK ^ /Oイネ0レレ$app/authkit/tools/tasks/RunEat.classPK ^ /ワ4畛$8app/authkit/tools/tasks/RunOut.classPK 」 t4吝app/hex/PK ^ /Kモゥゥソapp/hex/Dump.classPK ^ /錐?俯app/hex/Hex.classPK 」 t4 ゥapp/util/PK ^ /症ク[ [ ミapp/util/BasicAlert.classPK ^ /ィ,ヨヤヤbapp/util/FileDialogger.classPK ^ / pglguerin/PK 」 t4glguerin/authkit/PK ^ /[ゥn||$ニglguerin/authkit/Authorization.classPK ^ /glguerin/authkit/imp/PK 」 t4キglguerin/authkit/imp/macosx/PK ^ /9ニァネネ1glguerin/authkit/imp/macosx/AuthProcess$FIn.classPK ^ /」Vィィ2glguerin/authkit/imp/macosx/AuthProcess$FOut.classPK ^ /Hシii- glguerin/authkit/imp/macosx/AuthProcess.classPK ^ /$yO5エ%glguerin/authkit/imp/macosx/MacOSXAuthorization.classPK 」 t4・6glguerin/authkit/imp/plain/PK ^ /;)ケ  5゙6glguerin/authkit/imp/plain/DenyAllAuthorization.classPK ^ / 0)) System.out.println(i); }catch (Exception ie){} } } } ./rxtx-2.2pre2/contrib/DSR-workaround.java0000644000175000017500000001163507062247311020402 0ustar twernertwernerThe following appears to work for Ken Eisner <019769e@acadiau.ca> ----- under a windows platform we can check for lost of DSR and it is consistant however, under linux it is not consistant. We rarely and infrequently get loss of DSR. ----- We found a way around the inconsistant detection / loss of DSR. We decided to check the DSR status in the OUTPUT_BUFFER_EMPTY event (I think that is where we put it). ----- Trent, here is the code which works for us. Excuse the formating.. damned thing won't space things properly... Let me know if you need anything else -Ken /** * Procedure: void serialEvent(SerialPortEvent event) * Params: SerialPortEvent event * * Define what we are doing when one of these events are fired **/ public void serialEvent(SerialPortEvent event) { int numBytes = 0; int offset = 0; switch(event.getEventType()) { case SerialPortEvent.BI: case SerialPortEvent.OE: case SerialPortEvent.FE: case SerialPortEvent.PE: case SerialPortEvent.CD: case SerialPortEvent.RI: case SerialPortEvent.CTS: break; case SerialPortEvent.DSR: break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: /* * HACK: This is designed to work around the inconsistent loss of DSR * and inconsistent detection of DSR if program running before * cable connected * * Here we check if the DSR flag is high. * If it is then we check to see if our class var is alread true, * meaning that we have a connection. * If our class var got_dsr is false then we set our class var * got_dsr to true, lost_dsr to false * Else the we already have a connection so just set the class var * got_dsr to true * Else we check if we already have DSR * If we do then we set the lost_dsr to true, and got_dsr to false * meaning that we lost DSR */ if (serial_port_.isDSR() == true) { if (got_dsr == false) /* new connection */ { got_dsr = true; System.out.println("\nReceived DSR -- BEGIN OF TRANSMISSION\n"); lost_dsr = false; } else /* old connection */ got_dsr = true; } else { /* already got connection */ if (got_dsr == true) { /* * Check if we have a bad call * * 1.) Get the current time (in milliseconds) * 2.) If the current time is less than the time of the last * character read then we have major problems * 3.) Otherwise, if the current time less the time of the last * char read is less than the length of the end tone then we * have a bad call. */ Date now = new Date(); long current_time = now.getTime(); if (current_time <= time_of_last_char) System.err.println("CommReader() - Current time is before last char"); else { if ((current_time - time_of_last_char) <= end_tone_length_) { System.out.println("\nInterrupted transmission"); this.passed_client_checks_ = false; } else { System.out.println("\nGood transmission"); this.passed_client_checks_ = true; } } /* * Stick a fork in us, we're done here. */ sender_.close_zipfile(); /* * Set lost_dsr to true and got_dsr to false * Set finished_receiving_data to true */ lost_dsr = true; System.out.println("Lost DSR -- END OF TRANSMISSION"); got_dsr = false; this.finished_receiving_data_ = true; } } break; case SerialPortEvent.DATA_AVAILABLE: byte[] readBuffer = new byte[2048]; try { /* * Read while there is something to read, stop when done */ while (is_.available() > 0) { offset = 0; numBytes = is_.read(readBuffer); Date now = new Date(); time_of_last_char = now.getTime(); if (numBytes > 0) { /* * The first character detected is some weird ^@ thing which we * want to ignore so we set the offset to 1 and reduce the * numBytes read by one */ if (readBuffer[0] == 0) { offset = 1; numBytes--; } System.out.print(new String (readBuffer , offset, numBytes)); sender_.write(readBuffer, offset, numBytes); } } } catch (Exception e) { System.err.println(e.getMessage()); e.printStackTrace(); } break; } /* end switch */ } ./rxtx-2.2pre2/contrib/SNComHandler.java0000644000175000017500000003751507443223760020050 0ustar twernertwerner// Generated by P Bennett: Monday, 4 October 1999 at: 05:24:32 pm // Com Port Handler. // I have released this code as a guide only. // It will not run without the supporting classes. // It was origanally written to communicate with a development prototype // and runs under Slackware Linux Version 4 with Blackdown jdk1.1.7_v3 // Green Threads and rxtx version 3.4 with Java Comms API V2.0 // This thread is controlled by a thread that implements a queue // and methods for controlling the queue and allocating the resources (modems) // The modem used for development was a Siemens M20 Cellular modem. // The remote equipment dumped its data upon connection and then hangs up. // The protocol has changed somewhat now. (A Subset of HDLC) // I have added extra comments for your benefit. // It is free to use. // Just a quick note. I have no formal training therefor the programming techniques // may not be the best ones to use. However the technique I use has been developed // through experience and it seems to work for me. import java.util.*; import java.io.*; import gnu.io.*; //Comms Extensions /** Class To Talk To A GSM Cellular Modem, Dial an SNU and retrieve the data. * Uses Java Comm API 2.0 * @author P Bennett * @version 1.0 * @see SNServerIO * @see SNComThread */ public class SNComHandler extends java.lang.Thread implements SerialPortEventListener { private static SNComThread comThread; // A reference back to the parent. private static SNLogger comLog; // Log handler private static SNConfig serverConfig; // Server Configuration object private String comName = "Nil"; // The com port name to use as in /dev/ttyS0 private boolean process = false; // Process a request private String requestId = "Nil"; // Request ID private String num = "Nil"; // The phone number to dial private boolean running = true; // Make it go around private CommPortIdentifier portId; // Port Identifier private SerialPort serialPort = null; // Serial Port object private OutputStream outputStream = null; // The streams private InputStream inputStream = null; private String errMessage = ""; // An error message private boolean fatalErr = false; // Big problems call the emergency team :-( private boolean waitForInput = true; // Wait for incoming data /** Construct a new SNComHandler Object.. * For initialising the array of Com Handlers. * @see SNComThread */ public SNComHandler() { } /** Construct a new SNComHandler Object. * Created with the following parameters. * @param cThread The parent thread. * @param sLog The Logging object. * @param sConfig The server config object. * @param cName The Com Port name eg. /dev/ttyS0 * @see SNLogger * @see SNConfig */ public SNComHandler(SNComThread cThread, SNLogger sLog, SNConfig sConfig, String cName) throws NoSuchPortException { this.comThread = cThread; // Parent thread this.comLog = sLog; // Log object this.serverConfig = sConfig; // Config object this.comName = cName; // The com port name portId = (CommPortIdentifier)CommPortIdentifier.getPortIdentifier(this.comName); // Set up the ID this.comLog.log("Com Handler Initialised For " + comName); // Log start } /** Thread run method * Call unit num, when requested and * pass the recieved data back to * the parent thread que. */ public void run() { // comLog.debugInfo("Com Handler Run Method Started For " + comName); int resetCount = 0; // Reset attempts int resetCount2 = 0; // And again. There must be a better way int resetCount3 = 0; // And again. of doing this!!!! They are all the same. while (running) { // While we are doin it. if (fatalErr) { // Big problems comThread.queRequest(requestId, errMessage, "Error"); // Tell the parent comLog.log(errMessage + " " + comName + " " + num); // Tell everyone num = "Nil"; // Reset some variables resetCount = 0; // The error resets process resetCount2 = 0; // Round we go again. resetCount3 = 0; fatalErr = false; } if (!process) { // Nothing to do try { Thread.sleep(500); // Have a sleep } catch (InterruptedException e) {} continue; // Round we go again. } comLog.debugInfo("**********We Are Processing***********"); if (num.equals("Nil")) { // Can't dial Nil! try { // Just a catch never tested Thread.sleep(500); // Have a sleep } catch (InterruptedException e) {} // Prolly does not work as intended continue; // Round we go again. } comLog.debugInfo("**********Trying To Open Port***********"); if (!openPort()) { // Try to open port closePort(); // Try to close it then try { Thread.sleep(500); // Have a sleep } catch (InterruptedException e) {} resetCount ++; // Up the counter //***************** 3 goes in serverconfig ************************8 if (resetCount > 3) { // Check the counter process = false; // We got problems errMessage = "Error! Could Not Open Port"; fatalErr = true; // We got big problems } continue; // Round we go to sort it out } comLog.debugInfo("**********Trying To Reset Modem***********"); if (!reset()) { // We got the port now reset the modem try { Thread.sleep(500); // Have a sleep } catch (InterruptedException e) {} resetCount2 ++; // Up the counter //***************** 3 goes in serverconfig ************************8 if (resetCount2 > 3) { // Check the counter process = false; // We got problems errMessage = "Error! Could Not Reset Modem"; fatalErr = true; // We got big problems } continue; // Round we go to sort it out } comLog.debugInfo("**********Trying To Dial***********"); if (!dial()) { // The modem reset OK now dial comLog.debugInfo("**********" + errMessage + "***********"); try { Thread.sleep(500); // Have a sleep } catch (InterruptedException e) {} resetCount3 ++; // Up the count //***************** 3 goes in serverconfig ************************8 if (resetCount3 > 2) { // Check the count process = false; // We got problems errMessage = "Error! Could Not Dial"; fatalErr = true; // We got big problems } continue; // Round we go to sort it out } int numBytes = 0; // Number of bytes read from input byte[] readBuffer = new byte[20]; // Tmp Read buffer of 20 bytes String sReadBuff = ""; // Read Buffer boolean dLoop = true; // Loop while (dLoop) { // Wait for incoming data try { while (inputStream.available() > 0) { // While there is something to read numBytes = inputStream.read(readBuffer); // Get the bytes String tmpR = new String(readBuffer); // Set up a string sReadBuff += tmpR.substring(0, numBytes); // Add to read buffer } } catch (IOException e) { dLoop = false; // Problems process = false; // This has never occured } if (sReadBuff.indexOf("NO CARRIER") != -1) { // Test incoming data errMessage = ""; // Unit hangs up once it dLoop = false; // dumps its data } else if (sReadBuff.indexOf("ERROR") != -1) { // Check for error errMessage = "Error! Recieved Data Not Clean " + num + " " + comName; dLoop = false; } else if (sReadBuff.length() > 5000) { // Check for receive runnaway errMessage = ""; dLoop = false; } } if (errMessage.equals("")) { // No error occured comThread.queRequest(requestId, sReadBuff, "Ready"); // Tell the parent the result comLog.log("Data Recieved " + " " + requestId + " " + num); // Log it System.out.println("*********" + sReadBuff + "*********"); // Raw Debug code } else { if (!fatalErr) { // Error comThread.queRequest(requestId, errMessage, "Error"); // Tell parent comLog.log(errMessage + " " + comName + " " + num); // Log System.out.println("*********" + errMessage + "*********"); // Raw debug } } closePort(); // Close the port resetCount = 0; // Reset the variables ready for next request resetCount2 = 0; resetCount3 = 0; num = "Nil"; process = false; } } /** Open Com Port * @return true if succesfull */ private boolean openPort() { if (serialPort == null) { // Set up serial port object if need be comLog.debugInfo("**********Open Port Routine***********"); try { serialPort = (SerialPort) portId.open("SimpleReadApp", 2000); // Open serial port comLog.debugInfo("**********Port Open***********"); } catch (PortInUseException e) { return false; // Hmm its in use } if (inputStream == null) { // Set up the input stream if need be try { inputStream = serialPort.getInputStream(); // Get the stream } catch (IOException e) { return false; } } if (outputStream == null) { // Set up the output stream if need be try { outputStream = serialPort.getOutputStream(); // Get the stream } catch (IOException e) { return false; } } try { serialPort.addEventListener(this); // Add the event listener } catch (TooManyListenersException e) { return false; } serialPort.notifyOnDataAvailable(true); // Set the port to notify on incoming data //********* Maybe this goes in serverconfig maybe on a per port basis // Set the port parameters try { serialPort.setSerialPortParams(19200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); } catch (UnsupportedCommOperationException e) { return false; } } return true; // Everything went ok } /** Close Com Port. */ private void closePort() { if (serialPort != null) { // Check that the serial port is not null serialPort.notifyOnDataAvailable(false); // Close down notification serialPort.removeEventListener(); // Remove the event listener if (inputStream != null) { // Check for null try { inputStream.close(); // Close it inputStream = null; // Clean up } catch (IOException e) {} } if (outputStream != null) { // Check for null try { outputStream.close(); // Close it outputStream = null; // Clean up } catch (IOException e) {} } serialPort.close(); // Close the serial port serialPort = null; // Clean up } } /** Reset The Modem * @return true if succesfull. */ private boolean reset() { try { outputStream.write(new String("atz").getBytes()); // Send the modem atz outputStream.write((byte)0x0D); // And the other stuff outputStream.write((byte)0x0A); // } catch (IOException e) { return false; } int waitingCount = 0; // Heres another counter waitForInput = true; // We are waiting while (waitForInput) { // Yes we are try { Thread.sleep(100); // We have a little rest } catch (InterruptedException e) {} waitingCount ++; // We count //***************** 20 goes in serverconfig ************************ if (waitingCount > 20) { // We have counted to much return false; // Could not reset } } int numBytes = 0; // Set up number of bytes read byte[] readBuffer = new byte[20]; // And a buffer String sReadBuff = ""; // And another buffer try { while (inputStream.available() > 0) { numBytes = inputStream.read(readBuffer); // Read from the port String tmpR = new String(readBuffer); sReadBuff += tmpR.substring(0, numBytes); } } catch (IOException e) { return false; } //********************Maybe for serverconfig if (sReadBuff.indexOf("OK") != -1) { // Test for OK response from modem try { Thread.sleep(1000); // We have another sleep to allow things } catch (InterruptedException e) {} // to settle return true; } return false; // We did not reset OK } /** Dial number requested * @return true if connected */ private boolean dial() { try { comLog.debugInfo("**********" + num + "***********"); outputStream.write(new String("atd").getBytes()); // Send atd outputStream.write(num.getBytes()); // And the number outputStream.write((byte)0x0D); // And the other stuff outputStream.write((byte)0x0A); } catch (IOException e) { errMessage = "Error! Could Not Write To Port "; comLog.debugInfo("**********Error Writing***********"); return false; // Bad could not write } int waitingCount = 0; // We are counting again waitForInput = true; // Waiting while (waitForInput) { try { Thread.sleep(100); // Have a sleep } catch (InterruptedException e) {} waitingCount ++; // Counting //**************** For serverconfig ************************ if (waitingCount > 200) { // Counted to much errMessage = "Error! Timed Out Waiting For Response"; return false; // Timed out } } int numBytes = 0; // Set up for reading byte[] readBuffer = new byte[20]; // Youve seen it before String sReadBuff = ""; // The comments are getting thinner boolean dLoop = true; // No need to repeat while (dLoop) { try { while (inputStream.available() > 0) { numBytes = inputStream.read(readBuffer); String tmpR = new String(readBuffer); sReadBuff += tmpR.substring(0, numBytes); // We read it } if (sReadBuff.indexOf("NO CARRIER") != -1) { // Out of area errMessage = "Error! No Carrier"; return false; } else if (sReadBuff.indexOf("BUSY") != -1) { // Busy errMessage = "Error! Busy"; // Who is ringing our units return false; // Maybe it is dialing out } else if (sReadBuff.indexOf("NO DIAL TONE") != -1) { // Bad no signal errMessage = "Error! No Dial Tone"; // Were has the ariel gone return false; } else if (sReadBuff.indexOf("OK") != -1) { // Hmm voice call no good errMessage = "Error! Voice Call"; return false; } else if (sReadBuff.indexOf("CONNECT") != -1) { // Ah this is what we want return true; // Return true } } catch (IOException e) { errMessage = "Error! Could Not Read From Com Port"; return false; // Bad but never happened yet } } errMessage = "Error! Invalid Data " + sReadBuff; return false; // Something has gone wrong } /** Serial Event Routine * Set waitForInput to false when data ready */ public void serialEvent(SerialPortEvent event) { switch(event.getEventType()) { case SerialPortEvent.BI: case SerialPortEvent.OE: case SerialPortEvent.FE: case SerialPortEvent.PE: case SerialPortEvent.CD: case SerialPortEvent.CTS: case SerialPortEvent.DSR: case SerialPortEvent.RI: case SerialPortEvent.OUTPUT_BUFFER_EMPTY: break; case SerialPortEvent.DATA_AVAILABLE: waitForInput = false; // We got incoming break; // Thats it for serial events } } /** Process Request To Call SNU. * Request that a call be made and the data * returned to the controlling thread. * @see SNComThread */ public void processRequest(String req, String num) { requestId = req; // Set ID this.num = num; // Set the phone number process = true; // Make it go } /** Is Processing Call * @return true if thread is busy * @see SNComThread */ public boolean isProcessing() { return process; // Are you busy } /** Is Processing This Q Id. * @param qID The ID to test for * @return true if the thread is processing qID * @see SNComThread */ public boolean isProcessing(String qID) { return requestId.equals(qID); // Are you busy doing this job } } /* the following was added so the code will compile. Its not proper */ class SNLogger { public void debugInfo(java.lang.String it) { } public void log(java.lang.String it) { } } class SNComThread { public void queRequest(java.lang.String a, java.lang.String b, java.lang.String c) { } } class SNConfig { } ./rxtx-2.2pre2/contrib/rxtx.proj0000644000175000017500000003161407167435317016631 0ustar twernertwernerMIDE3ДPrf+ョPrEnPrVrPrivDAccSPth/boot/develop/headers/beSPth/boot/develop/headers/cppSPth/boot/develop/headers/posixSPth/boot/develop/libSPth/boot/beos/system/libPPth{project}Trgg @fgcc_linkapplication/x-mw-projectgcc_linkapplication/x-vnd.Be-elfexecutablegcc_linkapplication/x-vnd.Be.ar-archivecgcctext/*c++gcctext/*ccgcctext/*cpgcctext/*cppgcctext/*doctext/*exptext/*htext/*htmltext/*agcc_linkogcc_linkrsrcsogcc_linkGPrfGenB/MWPrAppEditorPrefsリリリ GenBcccggccCompilerOptions-fpic -O3GenBdlcggccLinkerOptionsGenBGNOLUpdateProjGenB、mwcx訓rojectPrefsx86application/x-vnd.Be-elfexecutablelibSerial.soGenB cccg gccLanguageGenB-cccggccCommonWarningGenB'cccggccWarningGenB*cccggccCodeGenerationGenB)cccgAdditionalGCCCompilerOptionsGenBdlcggccLinkerGenB'dlcgAdditionalGCCLinkerOptionsGenBRsDtResDataGenB3mwccProcessorPrefs DtGenBnmwccXLanguagePrefsGenB&mwccWarningsPrefsGenB&mwcc DisassemblerPrefsGenB#mwccGlobalOptsGenBShDtShellData-noprofileGenBmsanNASMOptionssホ!ロKeホ!; 絢 @ル& &ル&sEフ ; 絢 ヌ ル&sE`k ル&咆 絢 Dk 絢 @M  ? @k @k ヌ @k 絢 ト @ 族絢 @ ワト リ@Mト ル&ト ト iト ル& 咆 ト ル&<{ &ル&< &<ト m<ル&  K9<<<<ル&<膀Shar株Hタ絢  ニ絢 ( y絢 X %9 @k 絢 @k ーー; 絢 ヌ @k ヌ 絢 `k ヌ 絢 Dk 絢 Zシ ? @k @k ヌ @k 絢 ZP I;0ZP ル&ZZ0Z 、N  P ネI#鶺 D タ ZT :齪 #鶸hDtP ; 絢 ヌ ; 絢 ヌ le絢 `k 絢 絢 Dk 絢 ク ? @k @k ヌ @k 絢 ホ1 絢 @k ル&< 、N  @JH Dk \ ] lTYNAH L P 0キmsan^P L ShDtGenB瀘wldフLinkerPrefs__start_term_routine__init_routine_GenB)mwldPEFPrefsGenBアmwld榔rojectNamePrefsApplication????PPABapplication/x-be-executableSectPFilesロ`!DPrfセ+モm !愍&ロ! ;IgFl\Mimetext/x-source-codeMSFlName jtypes.hIgFl]Mimetext/x-source-codeMSFlName jmalloc.hIgFlYMimetext/x-source-codeMSFlName jni.hIgFlsMimetext/x-source-codeMSFl4Name$ javax_comm_CommPortIdentifier.hIgFldMimetext/x-source-codeMSFl%Namejavax_comm_I2C.hIgFlhMimetext/x-source-codeMSFl)Namejavax_comm_LPRPort.hIgFlmMimetext/x-source-codeMSFl.Namejavax_comm_ParallelPort.hIgFldMimetext/x-source-codeMSFl%Namejavax_comm_Raw.hIgFlfMimetext/x-source-codeMSFl'Namejavax_comm_RS485.hIgFliMimetext/x-source-codeMSFl*Namejavax_comm_RXTXPort.hIgFl\Mimetext/x-source-codeMSFlName config.hIgFloMimetext/x-source-codeMSFl0Name javax_comm_RXTXCommDriver.hIgFl_Mimetext/x-source-codeMSFl Name SerialImp.hLinkpMime'#application/x-vnd.Be-elfexecutableMSFl!Name libdevice.soFil1s!+L9ロモMimetext/x-source-codeMSFl"NameSerialImp.cppSrFl Name SerialImp.hSrFlName config.hSrFl*Namejavax_comm_RXTXPort.hSrFlName jmalloc.hSrFlName jni.hSrFlName jni_cpp.hSrFlName jtypes.h./rxtx-2.2pre2/contrib/Test.java0000644000175000017500000000712307443223760016502 0ustar twernertwerner/* * Test.class is just that.. a Test */ import java.io.*; import java.util.*; import gnu.io.*; public class Test implements SerialPortEventListener { InputStream inputStream; OutputStream outputStream; SerialPort serialPort; Thread readThread; public static void main(String[] args) { if (args.length < 1) { System.out.print("Test.class /dev/ports/serialx\n"); System.exit(-1); } System.out.println("opening the Port: " + args[0]); Test reader = new Test(args[0]); } public Test(String PortName) { RXTXCommDriver TxPort = new RXTXCommDriver(); System.out.print("open Ports\n"); serialPort = (SerialPort) TxPort.getCommPort(PortName, CommPortIdentifier.PORT_SERIAL); System.out.print("Get Streams\n"); try { inputStream = serialPort.getInputStream(); outputStream = serialPort.getOutputStream(); } catch (IOException e) { e.printStackTrace(); } try { serialPort.addEventListener(this); } catch (TooManyListenersException e) { e.printStackTrace(); } try { System.out.println("Baud is " + serialPort.getBaudRate()); System.out.println("Bits is " + serialPort.getDataBits()); System.out.println("Stop is " + serialPort.getStopBits()); System.out.println("Par is " + serialPort.getParity()); System.out.print("Set Params\n"); serialPort.setSerialPortParams(19200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); System.out.println("Baud is " + serialPort.getBaudRate()); System.out.println("Bits is " + serialPort.getDataBits()); System.out.println("Stop is " + serialPort.getStopBits()); System.out.println("Par is " + serialPort.getParity()); System.out.print("Set Params\n"); serialPort.setSerialPortParams(9600, SerialPort.DATABITS_7, SerialPort.STOPBITS_2, SerialPort.PARITY_ODD); System.out.println("Baud is " + serialPort.getBaudRate()); System.out.println("Bits is " + serialPort.getDataBits()); System.out.println("Stop is " + serialPort.getStopBits()); System.out.println("Par is " + serialPort.getParity()); } catch (UnsupportedCommOperationException e) { e.printStackTrace(); } System.out.print("Sending 0x01\n"); try { outputStream.write((byte)0x01); System.out.print("0x01 Sent\n"); } catch (IOException e) { e.printStackTrace(); } } public void serialEvent(SerialPortEvent event) { switch(event.getEventType()) { case SerialPortEvent.BI: System.out.print("BI\n"); case SerialPortEvent.OE: System.out.print("OE\n"); case SerialPortEvent.FE: System.out.print("FE\n"); case SerialPortEvent.PE: System.out.print("PE\n"); case SerialPortEvent.CD: System.out.print("CD\n"); case SerialPortEvent.CTS: System.out.print("CTS\n"); case SerialPortEvent.DSR: System.out.print("DSR\n"); case SerialPortEvent.RI: System.out.print("RI\n"); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: System.out.print("Out Buff Empty\n"); break; case SerialPortEvent.DATA_AVAILABLE: System.out.print("Data Available\n"); break; } } } ./rxtx-2.2pre2/contrib/ChangePackage.sh0000755000175000017500000000244507705043664017726 0ustar twernertwerner#!/bin/sh # Don't use! :) # # Sat, 03 May 2003 16:45:08 Modifications from Jrg Weule # Create a ed-cmd for the change of one pattern # case $1 in gnu) X=g/javax_comm/s+javax_comm+gnu_io+g ;; javax) X=g/gnu_io/s+gnu_io+javax_comm+g ;; *) echo;echo;echo From the top rxtx directory run;echo;echo -e \\t./ChangePackage.sh gnu;echo -e \\t\\tor;echo -e \\t./ChangePackage.sh javax;echo;echo; exit 0 ;; esac # # ed will be used to keep the owner and mode of the files unchanged. # We have run the ed-script for the characters '.' '/' as well. # "tr _ $D" do the change. # find . -type f -a -print | grep -v $0 | (while read F ; do ( echo $X; echo $X| tr _ /; echo $X| tr _ .; echo w; echo q ) | ed $F 2>&1 >/dev/null done ) # # Now we do little changes at the Makefiles. Hope that all we need. # find . -name Makefile\* -a -print | (while read F ; do cat < 2 ) { System.out.print("Reset To Many Times Error ...\n"); System.exit(1); } } try { Thread.sleep(100); } catch (InterruptedException e) {} } } public void closePort(SerialPort serialPort) { if (serialPort != null) { serialPort.notifyOnDataAvailable(false); serialPort.removeEventListener(); if (inputStream != null) { try { inputStream.close(); inputStream = null; } catch (IOException e) {} } if (outputStream != null) { try { outputStream.close(); outputStream = null; } catch (IOException e) {} } serialPort.close(); serialPort = null; } } public boolean reset() { try { outputStream.write(new String("atz").getBytes()); outputStream.write((byte)0x0D); System.out.print("--> atz\n"); } catch (IOException e) { System.out.print("Reset Output IO Exception"); return false; } int waitingCount = 0; waitForInput = true; while (waitForInput) { try { Thread.sleep(100); } catch (InterruptedException e) {} waitingCount ++; //2 seconds for it to reset if (waitingCount > 20) { return false; } } int numBytesTotal = 0; byte[] readBuffer = new byte[20]; String sReadBuff = ""; boolean dLoop = true; while (dLoop) { try { while (inputStream.available() > 0) { numBytes = inputStream.read(readBuffer); numBytesTotal += numBytes; String tmpR = new String(readBuffer); sReadBuff += tmpR.substring(0, numBytes); } if (sReadBuff.indexOf("NO CARRIER") != -1) { dLoop = false; } else if (sReadBuff.indexOf("BUSY") != -1) { dLoop = false; } else if (sReadBuff.indexOf("NO DIALTONE") != -1) { dLoop = false; } else if (sReadBuff.indexOf("OK") != -1) { dLoop = false; System.out.print("<-- " + new String(sReadBuff)); return true; } else if (sReadBuff.indexOf("CONNECT") != -1) { dLoop = false; } } catch (IOException e) { System.out.print("Reset Input IO Exception"); return false; } } System.out.print("<-- " + new String(sReadBuff)); return false; } public boolean dial() { try { outputStream.write(new String("atd").getBytes()); outputStream.write(num.getBytes()); outputStream.write((byte)0x0D); System.out.print("--> atdxxxxx\n"); } catch (IOException e) { System.out.print("Dial Output IO Exception"); return false; } int waitingCount = 0; waitForInput = true; while (waitForInput) { try { Thread.sleep(100); } catch (InterruptedException e) {} waitingCount ++; if (waitingCount > 1000) { return false; } } int numBytesTotal = 0; byte[] readBuffer = new byte[20]; String sReadBuff = ""; boolean dLoop = true; while (dLoop) { try { while (inputStream.available() > 0) { numBytes = inputStream.read(readBuffer); numBytesTotal += numBytes; String tmpR = new String(readBuffer); sReadBuff += tmpR.substring(0, numBytes); } if (sReadBuff.indexOf("NO CARRIER") != -1) { dLoop = false; } else if (sReadBuff.indexOf("BUSY") != -1) { dLoop = false; } else if (sReadBuff.indexOf("NO DIALTONE") != -1) { dLoop = false; } else if (sReadBuff.indexOf("OK") != -1) { dLoop = false; } else if (sReadBuff.indexOf("CONNECT") != -1) { System.out.print("<-- " + new String(sReadBuff)); dLoop = false; return true; } } catch (IOException e) { System.out.print("Dial Input IO Exception"); return false; } } System.out.print("<-- " + new String(sReadBuff)); return false; } public void serialEvent(SerialPortEvent event) { switch(event.getEventType()) { case SerialPortEvent.BI: System.out.print("BI\n"); case SerialPortEvent.OE: System.out.print("OE\n"); case SerialPortEvent.FE: System.out.print("FE\n"); case SerialPortEvent.PE: System.out.print("PE\n"); case SerialPortEvent.CD: System.out.print("CD\n"); case SerialPortEvent.CTS: System.out.print("CTS\n"); case SerialPortEvent.DSR: System.out.print("DSR\n"); case SerialPortEvent.RI: System.out.print("RI\n"); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: System.out.print("Out Buff Empty\n"); break; case SerialPortEvent.DATA_AVAILABLE: waitForInput = false; // System.out.print("Data Available\n"); break; } } } ./rxtx-2.2pre2/contrib/CVS/0000755000175000017500000000000011126534475015351 5ustar twernertwerner./rxtx-2.2pre2/contrib/CVS/Template0000644000175000017500000000000011126534456017034 0ustar twernertwerner./rxtx-2.2pre2/contrib/CVS/Tag0000644000175000017500000000001711126534456016004 0ustar twernertwernerTcommapi-0-0-1 ./rxtx-2.2pre2/contrib/CVS/Root0000644000175000017500000000007511126534456016220 0ustar twernertwerner:pserver:jarvi@cvs.milestonesolutions.com:/usr/local/cvsroot ./rxtx-2.2pre2/contrib/CVS/Entries0000644000175000017500000000133711126534475016711 0ustar twernertwerner/ChangePackage.sh/1.1.2.5/Tue Jul 15 18:28:04 2003//Tcommapi-0-0-1 /DSR-workaround.java/1.1/Fri Mar 10 19:36:41 2000//Tcommapi-0-0-1 /LeakTest1.java/1.1.2.2/Wed Dec 5 18:09:34 2001//Tcommapi-0-0-1 /SNComHandler.java/1.2.2.1/Mon Mar 11 21:56:00 2002//Tcommapi-0-0-1 /SimpleRead.java/1.1.2.1/Mon Mar 11 21:56:00 2002//Tcommapi-0-0-1 /SimpleSnuV1.java/1.1.2.1/Mon Mar 11 21:56:00 2002//Tcommapi-0-0-1 /Test.java/1.1.2.3/Mon Mar 11 21:56:00 2002//Tcommapi-0-0-1 /TestMonitorThread.java/1.1.2.4/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 /changecvsroot.sh/1.1.2.1/Fri Oct 17 10:20:04 2003//Tcommapi-0-0-1 /rxtx.proj/1.1.2.1/Fri Oct 6 20:49:19 2000//Tcommapi-0-0-1 /testSerial.c/1.1.2.5/Thu Apr 26 05:26:04 2007//Tcommapi-0-0-1 D/MAcOSX//// ./rxtx-2.2pre2/contrib/CVS/Repository0000644000175000017500000000002311126534456017445 0ustar twernertwernerrxtx-devel/contrib