From: <wda...@us...> - 2009-06-09 19:49:50
|
Revision: 4781 http://oorexx.svn.sourceforge.net/oorexx/?rev=4781&view=rev Author: wdashley Date: 2009-06-09 19:49:42 +0000 (Tue, 09 Jun 2009) Log Message: ----------- The previous fix for stdin buffering left the stdin handle unbuffered so when the interpreter exited the caller's stdin was left unbuffered since the handle was inherited from the caller. This fix reverts stdin to its original line buffered state. Modified Paths: -------------- main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp main/trunk/interpreter/platform/unix/SystemInterpreter.cpp Modified: main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp =================================================================== --- main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-09 17:34:12 UTC (rev 4780) +++ main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-09 19:49:42 UTC (rev 4781) @@ -46,6 +46,8 @@ /* */ /*****************************************************************************/ +#include <stdio.h> +#include <termios.h> #include "RexxCore.h" #include "SystemInterpreter.hpp" #include "Interpreter.hpp" @@ -138,7 +140,13 @@ void SystemInterpreter::terminateInterpreter() { -// clean up the signal handler +// revert stdin and stdout back to their original states + termios term; + tcgetattr(0, &term); + term.c_lflag ^= ICANON; + tcsetattr(0, TCSANOW, &term); + setvbuf(stdin, (char *)NULL, _IOLBF, 0); + setvbuf(stdout, (char *)NULL, _IOLBF, 0); } Modified: main/trunk/interpreter/platform/unix/SystemInterpreter.cpp =================================================================== --- main/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-09 17:34:12 UTC (rev 4780) +++ main/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-09 19:49:42 UTC (rev 4781) @@ -46,6 +46,8 @@ /* */ /*****************************************************************************/ +#include <stdio.h> +#include <termios.h> #include "RexxCore.h" #include "SystemInterpreter.hpp" #include "Interpreter.hpp" @@ -70,6 +72,7 @@ void signalHandler(int sig) { + #ifdef ORXAP_DEBUG switch (sig) { @@ -137,7 +140,13 @@ void SystemInterpreter::terminateInterpreter() { -// clean up the signal handler +// revert stdin and stdout back to their original states + termios term; + tcgetattr(0, &term); + term.c_lflag ^= ICANON; + tcsetattr(0, TCSANOW, &term); + setvbuf(stdin, (char *)NULL, _IOLBF, 0); + setvbuf(stdout, (char *)NULL, _IOLBF, 0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2009-06-18 17:13:27
|
Revision: 4815 http://oorexx.svn.sourceforge.net/oorexx/?rev=4815&view=rev Author: wdashley Date: 2009-06-18 17:13:21 +0000 (Thu, 18 Jun 2009) Log Message: ----------- The previous ctrl-c fix for Linux was wrong. This is the correct fix. Modified Paths: -------------- main/branches/4.0beta/trunk/common/platform/unix/SysFile.cpp main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp main/trunk/common/platform/unix/SysFile.cpp main/trunk/interpreter/platform/unix/SystemInterpreter.cpp Modified: main/branches/4.0beta/trunk/common/platform/unix/SysFile.cpp =================================================================== --- main/branches/4.0beta/trunk/common/platform/unix/SysFile.cpp 2009-06-18 16:40:49 UTC (rev 4814) +++ main/branches/4.0beta/trunk/common/platform/unix/SysFile.cpp 2009-06-18 17:13:21 UTC (rev 4815) @@ -1102,11 +1102,6 @@ getStreamTypeInfo(); setBuffering(false, 0); readable = true; // force this to readable - - termios term; - tcgetattr(fileHandle, &term); - term.c_lflag &= ~ICANON; - tcsetattr(fileHandle, TCSANOW, &term); // STDIN is buffered by default so make it unbuffered setbuf(stdin, NULL); } Modified: main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp =================================================================== --- main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-18 16:40:49 UTC (rev 4814) +++ main/branches/4.0beta/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-18 17:13:21 UTC (rev 4815) @@ -124,7 +124,8 @@ new_action.sa_handler = signalHandler; old_action.sa_handler = NULL; sigfillset(&new_action.sa_mask); - new_action.sa_flags = SA_RESTART; +// new_action.sa_flags = SA_RESTART; + new_action.sa_flags = 0; // do not use SA_RESTART or ctrl-c will not work as expected! /* Termination signals are set by Object REXX whenever the signals were not set */ /* from outside (calling C-routine). The SIGSEGV signal is not set any more, so */ @@ -141,10 +142,6 @@ void SystemInterpreter::terminateInterpreter() { // revert stdin and stdout back to their original states - termios term; - tcgetattr(0, &term); - term.c_lflag ^= ICANON; - tcsetattr(0, TCSANOW, &term); setvbuf(stdin, (char *)NULL, _IOLBF, 0); setvbuf(stdout, (char *)NULL, _IOLBF, 0); } Modified: main/trunk/common/platform/unix/SysFile.cpp =================================================================== --- main/trunk/common/platform/unix/SysFile.cpp 2009-06-18 16:40:49 UTC (rev 4814) +++ main/trunk/common/platform/unix/SysFile.cpp 2009-06-18 17:13:21 UTC (rev 4815) @@ -1102,11 +1102,6 @@ getStreamTypeInfo(); setBuffering(false, 0); readable = true; // force this to readable - - termios term; - tcgetattr(fileHandle, &term); - term.c_lflag &= ~ICANON; - tcsetattr(fileHandle, TCSANOW, &term); // STDIN is buffered by default so make it unbuffered setbuf(stdin, NULL); } Modified: main/trunk/interpreter/platform/unix/SystemInterpreter.cpp =================================================================== --- main/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-18 16:40:49 UTC (rev 4814) +++ main/trunk/interpreter/platform/unix/SystemInterpreter.cpp 2009-06-18 17:13:21 UTC (rev 4815) @@ -124,7 +124,8 @@ new_action.sa_handler = signalHandler; old_action.sa_handler = NULL; sigfillset(&new_action.sa_mask); - new_action.sa_flags = SA_RESTART; +// new_action.sa_flags = SA_RESTART; + new_action.sa_flags = 0; // do not use SA_RESTART or ctrl-c will not work as expected! /* Termination signals are set by Object REXX whenever the signals were not set */ /* from outside (calling C-routine). The SIGSEGV signal is not set any more, so */ @@ -141,10 +142,6 @@ void SystemInterpreter::terminateInterpreter() { // revert stdin and stdout back to their original states - termios term; - tcgetattr(0, &term); - term.c_lflag ^= ICANON; - tcsetattr(0, TCSANOW, &term); setvbuf(stdin, (char *)NULL, _IOLBF, 0); setvbuf(stdout, (char *)NULL, _IOLBF, 0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2009-06-23 15:31:03
|
Revision: 4837 http://oorexx.svn.sourceforge.net/oorexx/?rev=4837&view=rev Author: wdashley Date: 2009-06-23 15:30:57 +0000 (Tue, 23 Jun 2009) Log Message: ----------- Remove extraneous forward slash. Modified Paths: -------------- main/branches/4.0beta/trunk/platform/unix/oorexx.spec.in main/trunk/platform/unix/oorexx.spec.in Modified: main/branches/4.0beta/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/branches/4.0beta/trunk/platform/unix/oorexx.spec.in 2009-06-23 04:56:28 UTC (rev 4836) +++ main/branches/4.0beta/trunk/platform/unix/oorexx.spec.in 2009-06-23 15:30:57 UTC (rev 4837) @@ -298,7 +298,7 @@ rm /etc/rc.d/init.d/rxapid else # Suse - /etc/rc.d//rxapid stop + /etc/rc.d/rxapid stop rm /etc/rc.d/rc3.d/S89rxapid rm /etc/rc.d/rc5.d/S89rxapid rm /etc/rc.d/rxapid Modified: main/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/trunk/platform/unix/oorexx.spec.in 2009-06-23 04:56:28 UTC (rev 4836) +++ main/trunk/platform/unix/oorexx.spec.in 2009-06-23 15:30:57 UTC (rev 4837) @@ -307,7 +307,7 @@ rm /etc/rc.d/init.d/rxapid else # Suse - /etc/rc.d//rxapid stop + /etc/rc.d/rxapid stop rm /etc/rc.d/rc3.d/S89rxapid rm /etc/rc.d/rc5.d/S89rxapid rm /etc/rc.d/rxapid This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2009-07-24 15:15:30
|
Revision: 5002 http://oorexx.svn.sourceforge.net/oorexx/?rev=5002&view=rev Author: wdashley Date: 2009-07-24 15:15:22 +0000 (Fri, 24 Jul 2009) Log Message: ----------- With Rick's previous x86_64 fixes ooRexx now compiles on s390 with default optimizations turned on. I also added a new section for s390 31-bit Linux systems. Modified Paths: -------------- main/branches/4.0beta/trunk/configure.ac main/trunk/configure.ac Modified: main/branches/4.0beta/trunk/configure.ac =================================================================== --- main/branches/4.0beta/trunk/configure.ac 2009-07-24 05:38:19 UTC (rev 5001) +++ main/branches/4.0beta/trunk/configure.ac 2009-07-24 15:15:22 UTC (rev 5002) @@ -183,18 +183,25 @@ ORX_SYS_STR="LINUX" ;; i370-*ibm*) + dnl This a 31 bit system ORX_SYS_STR="LINUX" - GENERIC_DEFINES="$GENERIC_DEFINES -m31 -OO" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; s390x-*ibm*) + dnl This a 64 bit system ORX_SYS_STR="LINUX" -dnl gcc is overly agressive on s390x so turn all optimizations off - GENERIC_DEFINES="$GENERIC_DEFINES -O0" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; + s390-*ibm*) + dnl This a 31 bit system + ORX_SYS_STR="LINUX" + CC_WARNINGS="$GCC_WARNINGS" + CXX_WARNINGS="$GCXX_WARNINGS" + ;; *linux*) ORX_SYS_STR="LINUX" CC_WARNINGS="$GCC_WARNINGS" Modified: main/trunk/configure.ac =================================================================== --- main/trunk/configure.ac 2009-07-24 05:38:19 UTC (rev 5001) +++ main/trunk/configure.ac 2009-07-24 15:15:22 UTC (rev 5002) @@ -183,18 +183,25 @@ ORX_SYS_STR="LINUX" ;; i370-*ibm*) + dnl This a 31 bit system ORX_SYS_STR="LINUX" - GENERIC_DEFINES="$GENERIC_DEFINES -m31 -OO" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; s390x-*ibm*) + dnl This a 64 bit system ORX_SYS_STR="LINUX" -dnl gcc is overly agressive on s390x so turn all optimizations off - GENERIC_DEFINES="$GENERIC_DEFINES -O0" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; + s390-*ibm*) + dnl This a 31 bit system + ORX_SYS_STR="LINUX" + CC_WARNINGS="$GCC_WARNINGS" + CXX_WARNINGS="$GCXX_WARNINGS" + ;; *linux*) ORX_SYS_STR="LINUX" CC_WARNINGS="$GCC_WARNINGS" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2009-07-24 15:23:05
|
Revision: 5003 http://oorexx.svn.sourceforge.net/oorexx/?rev=5003&view=rev Author: wdashley Date: 2009-07-24 15:22:58 +0000 (Fri, 24 Jul 2009) Log Message: ----------- I messed up and put the -m31 directive on the wrong section. Oops! Modified Paths: -------------- main/branches/4.0beta/trunk/configure.ac main/trunk/configure.ac Modified: main/branches/4.0beta/trunk/configure.ac =================================================================== --- main/branches/4.0beta/trunk/configure.ac 2009-07-24 15:15:22 UTC (rev 5002) +++ main/branches/4.0beta/trunk/configure.ac 2009-07-24 15:22:58 UTC (rev 5003) @@ -192,13 +192,13 @@ s390x-*ibm*) dnl This a 64 bit system ORX_SYS_STR="LINUX" - GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; s390-*ibm*) dnl This a 31 bit system ORX_SYS_STR="LINUX" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; Modified: main/trunk/configure.ac =================================================================== --- main/trunk/configure.ac 2009-07-24 15:15:22 UTC (rev 5002) +++ main/trunk/configure.ac 2009-07-24 15:22:58 UTC (rev 5003) @@ -192,13 +192,13 @@ s390x-*ibm*) dnl This a 64 bit system ORX_SYS_STR="LINUX" - GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; s390-*ibm*) dnl This a 31 bit system ORX_SYS_STR="LINUX" + GENERIC_DEFINES="$GENERIC_DEFINES -m31" CC_WARNINGS="$GCC_WARNINGS" CXX_WARNINGS="$GCXX_WARNINGS" ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2009-08-12 21:05:06
|
Revision: 5083 http://oorexx.svn.sourceforge.net/oorexx/?rev=5083&view=rev Author: wdashley Date: 2009-08-12 21:04:53 +0000 (Wed, 12 Aug 2009) Log Message: ----------- Move 4.0 main to releases. Added Paths: ----------- main/releases/4.0.0/ main/releases/4.0.0/trunk/ Removed Paths: ------------- main/branches/4.0beta/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mie...@us...> - 2010-05-02 15:00:28
|
Revision: 5867 http://oorexx.svn.sourceforge.net/oorexx/?rev=5867&view=rev Author: miesfeld Date: 2010-05-02 15:00:22 +0000 (Sun, 02 May 2010) Log Message: ----------- Create ooRexx 4.0.1 release Added Paths: ----------- main/releases/4.0.1/ Removed Paths: ------------- main/branches/4.0.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2010-09-08 19:31:42
|
Revision: 6155 http://oorexx.svn.sourceforge.net/oorexx/?rev=6155&view=rev Author: wdashley Date: 2010-09-08 19:31:33 +0000 (Wed, 08 Sep 2010) Log Message: ----------- Step 1 in adding the ooRexx unix extensions. More later. Added Paths: ----------- docs/trunk/unixextensions/ docs/trunk/unixextensions/Makefile docs/trunk/unixextensions/docbook-1.png docs/trunk/unixextensions/files.xml docs/trunk/unixextensions/hyperref.cfg docs/trunk/unixextensions/misc.xml docs/trunk/unixextensions/namelookup.xml docs/trunk/unixextensions/oorexx.jpg docs/trunk/unixextensions/preface.xml docs/trunk/unixextensions/process.xml docs/trunk/unixextensions/unixextensions.xml docs/trunk/unixextensions/usergrps.xml docs/trunk/unixextensions/xattr.xml main/branches/4.1.0/trunk/extensions/platform/unix/rxunixsys/ main/branches/4.1.0/trunk/extensions/platform/unix/rxunixsys/rxunixsys.cpp main/branches/4.1.0/trunk/extensions/platform/unix/rxunixsys/rxunixsys.h main/trunk/extensions/platform/unix/rxunixsys/ main/trunk/extensions/platform/unix/rxunixsys/rxunixsys.cpp main/trunk/extensions/platform/unix/rxunixsys/rxunixsys.h Added: docs/trunk/unixextensions/Makefile =================================================================== --- docs/trunk/unixextensions/Makefile (rev 0) +++ docs/trunk/unixextensions/Makefile 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,103 @@ +#---------------------------------------------------------------------------- +# +# Description: Makefile for the Object Rexx Reference Documents. +# +# Copyright (c) 2005-2010, Rexx Language Association. All rights reserved. +# +# This program and the accompanying materials are made available under +# the terms of the Common Public License v1.0 which accompanies this +# distribution. A copy is also available at the following address: +# http://www.oorexx.org/license.html +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the distribution. +# +# Neither the name of Rexx Language Association nor the names +# of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Author(s): +# W. David Ashley <da...@us...> +# +#---------------------------------------------------------------------------- + + +STYLESHEET = /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl \ + ../shared/oorexx.print.dsl + +HTML_STYLESHEET = /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl \ + ../shared/oorexx.html.dsl + +xml_FILES = winprogmanager.xml \ + clipboard.xml \ + winregistry.xml \ + wineventlog.xml \ + windowmanager.xml \ + windowobj.xml \ + menuobj.xml \ + winole.xml \ + wsheng.xml \ + ../shared/legalstuff.xml \ + ../shared/notices.xml \ + ../shared/gethelp.xml \ + ../shared/CPLv1.0.xml + +IMAGE_FILES = docbook-1.png \ + oorexx.jpg + +JADETEXFMT = ./pdfjadetex.fmt +HYPERREFCFG = ./hyperref.cfg +TEXMF = /usr/share/texmf + +export TEXFORMATS=.: + +all: pdf html + +pdf: winextensions.pdf + +html: winextensions-html.zip + +winextensions.pdf: $(IMAGE_FILES) $(STYLESHEET) $(JADETEXFMT) genindex.xml svnrev.tmp + docbook2pdf -d ../shared/oorexx.print.dsl winextensions.xml + +book1.htm: $(IMAGE_FILES) $(HTML_STYLESHEET) genindex.xml svnrev.tmp + docbook2html -d ../shared/oorexx.html.dsl winextensions.xml + +winextensions-html.zip: book1.htm + zip winextensions-html *.htm *.jpg *.png + +$(JADETEXFMT): $(HYPERREFCFG) + pdftex -ini \&pdflatex pdfjadetex.ini + +genindex.xml: $(HTML_STYLESHEET) $(xml_FILES) svnrev.tmp + collateindex.pl -N -o genindex.xml + jade -t xml -d ../shared/oorexx.html.dsl -V html-index winextensions.xml + rm *.htm + collateindex.pl -p -g -o genindex.xml HTML.index + +svnrev.tmp: + svnversion > svnrev.tmp + + +clean: + rm -f *.log *.aux *.out *.fmt *.pdf genindex.xml *.htm *.zip HTML.index *.tmp + Added: docs/trunk/unixextensions/docbook-1.png =================================================================== (Binary files differ) Property changes on: docs/trunk/unixextensions/docbook-1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: docs/trunk/unixextensions/files.xml =================================================================== --- docs/trunk/unixextensions/files.xml (rev 0) +++ docs/trunk/unixextensions/files.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,560 @@ +<chapter id="files"><title id="files.title">File and File System Functions</title> + +<para>This chapter covers the available file and file system functions.</para> + + +<section id="utlSysAccess"><title>SysAccess</title> +<indexterm><primary>SysAccess</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysAccess(file, mode)--------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Checks to see if the user has access permissions on a file.</para> +<para>This function uses the <filename>access()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">file</emphasis></term> +<listitem><para>The path/file name to check access permissions. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">mode</emphasis></term> +<listitem><para>The access permissions to check on the file. Must be a decimal number. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success (all access rights available) or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* do others have write permission on the file? */ + +retc = SysAccess("/home/dashley/temp.txt", 2) +]]> +</programlisting> +</section> + + +<section id="utlSysChmod"><title>SysChmod</title> +<indexterm><primary>SysChmod</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysChmod(file, mode)---------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Sets the mode bits of a file.</para> +<para>This function uses the <filename>chmod()</filename> +C API to perform the action.</para> +<para>You must be the owner of the file or root in order for this function +to be successful.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">file</emphasis></term> +<listitem><para>The path/file name to to modify the mode bits. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">mode</emphasis></term> +<listitem><para>The new and complete list of bits. Note that it is not +possible to unset bits with this function except through this argument. +This parameter must be a decimal number. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success (all access rights available) or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* set the mode bits on a file */ + +retc = SysChmod("/home/dashley/temp.txt", "rwxrwxr-x") +retc = SysChmod("/home/dashley/temp.txt", "rwSrwsr-x") +]]> +</programlisting> +</section> + + +<section id="utlSysChown"><title>SysChown</title> +<indexterm><primary>SysChown</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysChown(srcpath, uid, gid)--------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Change the user and group ownership attributes of a file.</para> +<para>This function uses the <filename>chown()</filename> +C API to perform the action.</para> +<para>You must be the owner of the file or root in order for this function +to be successful.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">srcpath</emphasis></term> +<listitem><para>The path/filename of the source file to change. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">uid</emphasis></term> +<listitem><para>The new numerical user id. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">gid</emphasis></term> +<listitem><para>The new numerical group id. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* change the ownership attributes of a file */ + +call SysChown "/home/username/myfile", 501, 530 +]]> +</programlisting> +</section> + + +<section id="utlSysChroot"><title>SysChroot</title> +<indexterm><primary>SysChroot</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysChroot(srcpath)------------------------------------------>< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Change the root directory of the current process.</para> +<para>This function uses the <filename>chroot()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">srcpath</emphasis></term> +<listitem><para>The new root subdirectory base path. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* change the ownership attributes of a file */ + +call SysChroot "/home/username/" +]]> +</programlisting> +</section> + + +<section id="utlSysEuidaccess"><title>SysEuidaccess</title> +<indexterm><primary>SysEuidaccess</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysEuidaccess(file, mode)----------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Checks to see if the effective user has access permissions on a file.</para> +<para>This function uses the <filename>euidaccess()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">file</emphasis></term> +<listitem><para>The path/file name to check access permissions. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">mode</emphasis></term> +<listitem><para>The access permissions to check on the file. Must be a decimal number. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success (all access rights available) or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* do others have write permission on the file? */ + +retc = SysEuidaccess("/home/dashley/temp.txt", 2) +]]> +</programlisting> +</section> + + +<section id="utlSysGetdirlist"><title>SysGetdirlist</title> +<indexterm><primary>SysGetdirlist</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetdirlist(dir)------------------------------------------>< +]]> +</programlisting> +<para>Returns an ooRexx array of the file name(s) contained in a subdirectory.</para> +<para>The returned array will contain ALL file names including files usually not +not displayed (hidden files). The ooRexx array list of files is NOT sorted. +The array will be empty if an error occurs opening the subdirectory.</para> +<para>This function uses the <filename>opendir()</filename>, +<filename>closedir()</filename> and <filename>readdir()</filename> +C APIs to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">dir</emphasis></term> +<listitem><para>The subdirectory to be listed. +</para></listitem></varlistentry> +</variablelist> +<para>Returns an ooRexx array.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the subdirectory entries */ + +arr = SysGetdirlist("./") +do entry over arr + say entry + end +]]> +</programlisting> +</section> + + +<section id="utlSysLchown"><title>SysLchown</title> +<indexterm><primary>SysLchown</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysLchown(srcpath, uid, gid)-------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Change the user and group ownership attributes of a symbolic link.</para> +<para>This function uses the <filename>lchown()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">srcpath</emphasis></term> +<listitem><para>The path/filename of the source file to change. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">uid</emphasis></term> +<listitem><para>The new numerical user id. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">gid</emphasis></term> +<listitem><para>The new numerical group id. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* change the ownership attributes of a symbolic link */ + +call SysLchown "/home/username/myfile", 501, 530 +]]> +</programlisting> +</section> + + +<section id="utlSysLink"><title>SysLink</title> +<secondary>SysLink</secondary></indexterm> +<programlisting> +<![CDATA[ +>>-SysLink(srcpath, targetpath)-------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Create a symbolic (hard) link.</para> +<para>This function uses the <filename>link()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">srcpath</emphasis></term> +<listitem><para>The path/filename of the source file. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">targetpath</emphasis></term> +<listitem><para>The new path/filname that will become the hard link. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* create a new link */ + +call SysLink "/pub", "/home/username/myownpublink" +]]> +</programlisting> +</section> + + +<section id="utlSysMkdir"><title>SysMkdir</title> +<secondary>SysMkdir</secondary></indexterm> +<programlisting> +<![CDATA[ +>>-SysMkdir(dir, mode)----------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Create a subdirectory.</para> +<para>This function uses the <filename>mkdir()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">dir</emphasis></term> +<listitem><para>The new subdirectory name. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">mode</emphasis></term> +<listitem><para>The mode (decimal number) for the new subdirectory. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* create a new subdir */ + +retc = SysMkdir("./pub", b2d("111111101")) +]]> +</programlisting> +</section> + + +<section id="utlSysRmdir"><title>SysRmdir</title> +<secondary>SysRmdir</secondary></indexterm> +<programlisting> +<![CDATA[ +>>-SysRmdir(dir)----------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Remove a subdirectory.</para> +<para>This function uses the <filename>rmdir()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">dir</emphasis></term> +<listitem><para>The subdirectory to remove. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* remove a subdir */ + +retc = SysRmdir("./pub") +]]> +</programlisting> +</section> + + +<section id="utlSysStat"><title>SysStat</title> +<indexterm><primary>SysStat</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysStat(file, option)--------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns information about a file.</para> +<para>This function uses the <filename>stat64()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">file</emphasis></term> +<listitem><para>The path/file name. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">option</emphasis></term> +<listitem><para>An option specifying the information to return. +The values are all case insensitive and only the first letter of the option value is checked. +Allowed values are: +<variablelist> +<varlistentry><term>"DEVICE"</term> +<listitem><para>The file's owning device id. +</para></listitem></varlistentry> +<varlistentry><term>"INODE"</term> +<listitem><para>The inode number. +</para></listitem></varlistentry> +<varlistentry><term>"PERMISSIONS"</term> +<listitem><para>The permissions in a 10 character string similar to that produced by the +shell command "ls -l". +</para></listitem></varlistentry> +<varlistentry><term>"NUMBERLINKS"</term> +<listitem><para>The number of links to the file. +</para></listitem></varlistentry> +<varlistentry><term>"UID"</term> +<listitem><para>The file's owner numerical user id. +</para></listitem></varlistentry> +<varlistentry><term>"GID"</term> +<listitem><para>The file's numerical group id. +</para></listitem></varlistentry> +<varlistentry><term>"REALDEV"</term> +<listitem><para>The file's real device id (if any). +</para></listitem></varlistentry> +<varlistentry><term>"SIZE"</term> +<listitem><para>The file's size in bytes. +</para></listitem></varlistentry> +<varlistentry><term>"ACCESS"</term> +<listitem><para>The file's last access timestamp in the form YYYY-MM-DD HH:MM:SS. +</para></listitem></varlistentry> +<varlistentry><term>"MODIFIED"</term> +<listitem><para>The file's last modified timestamp in the form YYYY-MM-DD HH:MM:SS. +</para></listitem></varlistentry> +<varlistentry><term>"CHANGED"</term> +<listitem><para>The file's last changed timestamp in the form YYYY-MM-DD HH:MM:SS. +</para></listitem></varlistentry> +</variablelist> +</para></listitem></varlistentry> +</variablelist> +<para>Returns information specified by the <emphasis>option</emphasis>.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* the following examples came from a Linux laptop running Fedora 12 */ + +SysStat("/home/dashley/temp.txt", "n") --> 1 +SysStat("/home/dashley/temp.txt", "u") --> 500 +SysStat("/home/dashley/temp.txt", "g") --> 500 +SysStat("/home/dashley/temp.txt", "s") --> 427 +SysStat("/home/dashley/temp.txt", "a") --> 2009-12-02 13:22:16 +]]> +</programlisting> +</section> + + +<section id="utlSysSymlink"><title>SysSymlink</title> +<indexterm><primary>SysSymlink</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysSymlink(srcpath, targetpath)----------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Create a symbolic (soft) link.</para> +<para>This function uses the <filename>symlink()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">srcpath</emphasis></term> +<listitem><para>The path/filename of the source file. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">targetpath</emphasis></term> +<listitem><para>The new path/filname that will become the soft link. +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success and -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* create a new symlink */ + +call SysSymlink "/pub", "/home/username/myownpublink" +]]> +</programlisting> +</section> + + +<section id="utlSysUmask"><title>SysUmask</title> +<indexterm><primary>SysUmask</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysUmask(umask)--------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Set the umask.</para> +<para>This function uses the <filename>umask()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">umask</emphasis></term> +<listitem><para>The new umask. This MUST be a decimal number (not octal). +</para></listitem></varlistentry> +</variablelist> +<para>Returns zero on success or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* set the umask */ + +call SysUmask 2 +]]> +</programlisting> +</section> + + +<section id="utlSysUname"><title>SysUname</title> +<indexterm><primary>SysUname</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysUname(--+----------+--)---------------------------------->< + +--option--+ +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns system information.</para> +<para>This function uses the <filename>uname()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">opt</emphasis></term> +<listitem><para>An option specifying the information to return. +The values are all case insensitive and only the first letter of the option value is checked. +Allowed values are: +<variablelist> +<varlistentry><term>"SYSTEM"</term> +<listitem><para>The system name. This is the default option if none is specified. +</para></listitem></varlistentry> +<varlistentry><term>"NODE"</term> +<listitem><para>The system node (or default host) name. +</para></listitem></varlistentry> +<varlistentry><term>"RELEASE"</term> +<listitem><para>The system release name. +</para></listitem></varlistentry> +<varlistentry><term>"VERSION"</term> +<listitem><para>The system version. +</para></listitem></varlistentry> +<varlistentry><term>"MACHINE"</term> +<listitem><para>The system machine type. +</para></listitem></varlistentry> +</variablelist> +</para></listitem></varlistentry> +</variablelist> +<para>Returns information specified by the <emphasis>option</emphasis>.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* the following examples came from a Linux laptop running Fedora 12 */ + +SysUname() --> Linux +SysUname("s") --> Linux +SysUname("n") --> bugs.ibm.com +SysUname("r") --> 2.6.31.6-166.fc12.i686 +SysUname("v") --> #1 SMP Wed Dec 9 11:14:59 EST 2009 +SysUname("m") --> i686 +]]> +</programlisting> +</section> + + +<section id="utlSysWordexp"><title>SysWordexp</title> +<indexterm><primary>SysWordexp</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysWordexp(exp)--------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Performs a shell-like expansion of the input expression and returns the result in an +array. This function will expand the characters "*", "?" and "~" (the tilde). +</para> +<para>This function uses the <filename>wordexp()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">exp</emphasis></term> +<listitem><para>The expression to expand. +</para></listitem></varlistentry> +</variablelist> +<para>Returns an array of the expanded results.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* process an expansion */ + +arr = SysWordexp("./*.txt" +do mem over arr + say mem + end +]]> +</programlisting> +</section> + + +</chapter> + Added: docs/trunk/unixextensions/hyperref.cfg =================================================================== --- docs/trunk/unixextensions/hyperref.cfg (rev 0) +++ docs/trunk/unixextensions/hyperref.cfg 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,8 @@ +\PassOptionsToPackage{pdftitle={Open Object Rexx: Reference}}{hyperref} +\PassOptionsToPackage{pdfauthor={Rexx Language Association}}{hyperref} +\PassOptionsToPackage{pdfsubject={ooRexx Reference}}{hyperref} +\PassOptionsToPackage{pdfkeywords={ooRexx, Classes, Reference, Functions}}{hyperref} +\PassOptionsToPackage{linkcolor=blue}{hyperref} +\PassOptionsToPackage{citecolor=blue}{hyperref} +\PassOptionsToPackage{urlcolor=blue}{hyperref} +\PassOptionsToPackage{anchorcolor=blue}{hyperref} Added: docs/trunk/unixextensions/misc.xml =================================================================== --- docs/trunk/unixextensions/misc.xml (rev 0) +++ docs/trunk/unixextensions/misc.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,261 @@ +<chapter id="misc"><title id="misc.title">Miscellaneous Functions</title> + +<para>This chapter covers the available miscellaneous functions.</para> + + +<section id="utlSysCrypt"><title>SysCrypt</title> +<indexterm><primary>SysCrypt</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysCrypt(str, salt)----------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns an encrypted version of <emphasis>str</emphasis>.</para> +<para>This function uses the <filename>crypt()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">str</emphasis></term> +<listitem><para>The string to be encrypted. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">salt</emphasis></term> +<listitem><para>The two character encryption salt. +</para></listitem></varlistentry> +</variablelist> +<para>Returns the encrypted string or a zero-length string on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* encrypt a string */ + +encstr = SysCrypt("String to encrypt.", "3A") +]]> +</programlisting> +</section> + + +<section id="utlSysGetsid"><title>SysGetsid</title> +<indexterm><primary>SysGetsid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetsid()------------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current session id.</para> +<para>This function uses the <filename>getsid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para>para> +<para>Returns the current sid or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the session id */ + +mysid = SysGetsid() +]]> +</programlisting> +</section> + + +<section id="utlSysGeterrno"><title>SysGeterrno</title> +<indexterm><primary>SysGeterrno</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGeterrno()----------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns the errno numeric value.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para>para> +<para>Returns the numeric errno value.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the errno */ + +errno = SysGeterrno() +]]> +</programlisting> +</section> + + +<section id="utlSysGeterrnomsg"><title>SysGeterrnomsg</title> +<indexterm><primary>SysGeterrnomsg</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGeterrnomsg(errno)--------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns a short description of the errno value.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">errno</emphasis></term> +<listitem><para>The numeric errno value. +</para></listitem></varlistentry> +</variablelist> +<para>Returns a short description of the errno value. +If the message is not available it returns the strimg "Unknown".</section> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the errno message */ + +say SysGeterrnomsg(26) +]]> +</programlisting> +</section> + + +<section id="utlSysGetsizeofptr"><title>SysGetsizeofptr</title> +<indexterm><primary>SysGetsizeofptr</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetsizeofptr()------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the size (in bits) of a pointer.</para> +<para>This function uses the <filename>sizeof(void *)</filename> +C macro to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para>para> +<para>Returns 32 or 64 in most cases.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the pointer size */ + +addrmode = SysGetsizeofptr() +]]> +</programlisting> +</section> + + +<section id="utlSysSetsid"><title>SysSetsid</title> +<indexterm><primary>SysSetsid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysSetsid(sid)---------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Set the session id.</para> +<para>This function uses the <filename>setsid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">sid</emphasis></term> +<listitem><para>The new numeric session id. +</para></listitem></varlistentry> +</variablelist> +<para>Returns the new sid or -1 on an error.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* set the session id to zero */ + +call SysSetsid 0 +]]> +</programlisting> +</section> + + +<section id="utlSysSignal"><title>SysSignal</title> +<indexterm><primary>SysSignal</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysSignal(signum, option)----------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Sets the disposition of a signal to either SIG_IGN (ignore) or SIG_DFL (default).</para> +<note><title>Note</title><para>You should be VERY carefull when calling this function as it can +cause problems with the Rexx interpreter. If you don't know what you are doing then you +should not call this function.</para> +</note> +<para>This function uses the <filename>signal()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">signum</emphasis></term> +<listitem><para>The signal number to change. This is an integer and cooresponds to the +set of system signal numbers. The following is a partial list of valid values: +<programlisting> +SIGHUP 1 Hangup (POSIX) +SIGINT 2 Terminal interrupt (ANSI) +SIGQUIT 3 Terminal quit (POSIX) +SIGILL 4 Illegal instruction (ANSI) +SIGTRAP 5 Trace trap (POSIX) +SIGIOT 6 IOT Trap (4.2 BSD) +SIGBUS 7 BUS error (4.2 BSD) +SIGFPE 8 Floating point exception (ANSI) +SIGKILL 9 Kill(can't be caught or ignored) (POSIX) +SIGUSR1 10 User defined signal 1 (POSIX) +SIGSEGV 11 Invalid memory segment access (ANSI) +SIGUSR2 12 User defined signal 2 (POSIX) +SIGPIPE 13 Write on a pipe with no reader, Broken pipe (POSIX) +SIGALRM 14 Alarm clock (POSIX) +SIGTERM 15 Termination (ANSI) +SIGSTKFLT 16 Stack fault +SIGCHLD 17 Child process has stopped or exited, changed (POSIX) +SIGCONT 18 Continue executing, if stopped (POSIX) +SIGSTOP 19 Stop executing(can't be caught or ignored) (POSIX) +SIGTSTP 20 Terminal stop signal (POSIX) +SIGTTIN 21 Background process trying to read, from TTY (POSIX) +SIGTTOU 22 Background process trying to write, to TTY (POSIX) +SIGURG 23 Urgent condition on socket (4.2 BSD) +SIGXCPU 24 CPU limit exceeded (4.2 BSD) +SIGXFSZ 25 File size limit exceeded (4.2 BSD) +SIGVTALRM 26 Virtual alarm clock (4.2 BSD) +SIGPROF 27 Profiling alarm clock (4.2 BSD) +SIGWINCH 28 Window size change (4.3 BSD, Sun) +SIGIO 29 I/O now possible (4.2 BSD) +SIGPWR 30 Power failure restart (System V) +</programlisting> +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">option</emphasis></term> +<listitem><para>An option specifying the signal action. +The values are all case insensitive and only the first letter of the option value is checked. +Allowed values are: +<variablelist> +<varlistentry><term>"DEFAULT"</term> +<listitem><para>The default action is to be set. +</para></listitem></varlistentry> +<varlistentry><term>"IGNORE"</term> +<listitem><para>Ignore this signal. +</para></listitem></varlistentry> +</variablelist> +</para></listitem></varlistentry> +</variablelist> +<para>Returns previous signal value. This is meaningless to the Rexx programmer.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* Cause alarm signals to be ignored */ +call SysSignal 14, "ignore" + +/* Cause terminal interrupts to take the default action */ +call SysSignal 2, "default" + +/* Cause HUPs to be ignored */ +call SysSignal 1, "I" +]]> +</programlisting> +</section> + + + + + + + + + + +</chapter> + Added: docs/trunk/unixextensions/namelookup.xml =================================================================== --- docs/trunk/unixextensions/namelookup.xml (rev 0) +++ docs/trunk/unixextensions/namelookup.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,189 @@ +<chapter id="namelookup"><title id="namelookup.title">Name Lookup Functions</title> + +<para>This chapter covers the available name lookup functions. +These functions can look up a server/service name and return +information about that server/service.</para> + + +<section id="utlSysGethostname"><title>SysGethostname</title> +<indexterm><primary>SysGethostname</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGethostname()-------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns the hostname of the machine.</para> +<para>This function uses the <filename>gethostname()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* the following example comes from a Linux laptop running Fedora */ + +SysGethostname() --> "wda.holmes4.com" +]]> +</programlisting> +</section> + + +<section id="utlSysGetservbyname"><title>SysGetservbyname</title> +<indexterm><primary>SysGetservbyname</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetservbyname(name, proto, option)----------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns information about a service.</para> +<para>This function uses the <filename>getservbyname()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">name</emphasis></term> +<listitem><para>The service name. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">proto</emphasis></term> +<listitem><para>The protocol name, usually TCP or UDP. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">option</emphasis></term> +<listitem><para>An option specifying the information to return. +The values are all case insensitive and only the first letter of the option value is checked. +Allowed values are: +<variablelist> +<varlistentry><term>"NAME"</term> +<listitem><para>The service name. +</para></listitem></varlistentry> +<varlistentry><term>"PORT"</term> +<listitem><para>The service port number. +</para></listitem></varlistentry> +<varlistentry><term>"ALIASES"</term> +<listitem><para>The services alias names are returned in an array. +</para></listitem></varlistentry> +</variablelist> +</para></listitem></varlistentry> +</variablelist> +<para>Returns information specified by the <emphasis>option</emphasis>.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* the following examples came from a Linux laptop running Fedora */ + +SysGetservbyname("HTTP", "TCP", "n") --> HTTP +SysGetservbyname("HTTP", "TCP", "p") --> 80 +]]> +</programlisting> +</section> + + +<section id="utlSysGetservbyport"><title>SysGetservbyport</title> +<indexterm><primary>SysGetservbyport</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetservbyport(port, proto, option)----------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns information about a service.</para> +<para>This function uses the <filename>getservbyport()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<variablelist> +<varlistentry><term><emphasis role="italic">port</emphasis></term> +<listitem><para>The service port number. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">proto</emphasis></term> +<listitem><para>The protocol name, usually TCP or UDP. +</para></listitem></varlistentry> +<varlistentry><term><emphasis role="italic">option</emphasis></term> +<listitem><para>An option specifying the information to return. +The values are all case insensitive and only the first letter of the option value is checked. +Allowed values are: +<variablelist> +<varlistentry><term>"NAME"</term> +<listitem><para>The service name. +</para></listitem></varlistentry> +<varlistentry><term>"PORT"</term> +<listitem><para>The service port number. +</para></listitem></varlistentry> +<varlistentry><term>"ALAISES"</term> +<listitem><para>The services alias names are returned in an array. +</para></listitem></varlistentry> +</variablelist> +</para></listitem></varlistentry> +</variablelist> +<para>Returns information specified by the <emphasis>option</emphasis>.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* the following examples came from a Linux laptop running Fedora */ + +SysGetservbyport(80, "TCP", "n") --> HTTP +SysGetservbyport(80, "TCP", "p") --> 80 +]]> +</programlisting> +</section> + + +<section id="utlSysGettzname1"><title>SysGettzname1</title> +<indexterm><primary>SysGettzname1</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGettzname1()--------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns the time zone name.</para> +<para>This function uses the <filename>time.h</filename> +C header file to obtain the time zone name and is sensitive +to the environment variable TZ.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None.</para> +<para>Returns the time zone name.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +say SysGettzname1() +]]> +</programlisting> +</section> + + +<section id="utlSysGettzname2"><title>SysGettzname2</title> +<indexterm><primary>SysGettzname2</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGettzname2()--------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Returns the daylight savings time zone name.</para> +<para>This function uses the <filename>time.h</filename> +C header file to obtain the time zone name and is sensitive +to the environment variable TZ.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None.</para> +<para>Returns the daylight savings time zone name.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +say SysGettzname2() +]]> +</programlisting> +</section> + + + + + + + + + + + + +</chapter> + Added: docs/trunk/unixextensions/oorexx.jpg =================================================================== (Binary files differ) Property changes on: docs/trunk/unixextensions/oorexx.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: docs/trunk/unixextensions/preface.xml =================================================================== --- docs/trunk/unixextensions/preface.xml (rev 0) +++ docs/trunk/unixextensions/preface.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,204 @@ +<!--######################################################################### + # + # Description: Open Object Rexx: Unix Extensions Reference SGML file. + # + # Copyright (c) 2005-2010, Rexx Language Association. All rights reserved. + # Portions Copyright (c) 2004, IBM Corporation. All rights reserved. + # + # This program and the accompanying materials are made available under + # the terms of the Common Public License v1.0 which accompanies this + # distribution. A copy is also available at the following address: + # http://www.oorexx.org/license.html + # + # Redistribution and use in source and binary forms, with or + # without modification, are permitted provided that the following + # conditions are met: + # + # Redistributions of source code must retain the above copyright + # notice, this list of conditions and the following disclaimer. + # Redistributions in binary form must reproduce the above copyright + # notice, this list of conditions and the following disclaimer in + # the documentation and/or other materials provided with the distribution. + # + # Neither the name of Rexx Language Association nor the names + # of its contributors may be used to endorse or promote products + # derived from this software without specific prior written permission. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + # Author(s): + # W. David Ashley <da...@us...> + # + ######################################################################### +--> +<preface id="preface"><title>About This Book</title> +<para> + This book describes extensions to the Open Object Rexx Interpreter that are specific to Unix-like + operating system. The extensions are in a number of categories. +</para> +<para> + This book is intended for people who plan to develop applications using ooRexx and one or more of the + Unix specific classes. In general no special knowledge of Unix programming is needed to use the + Unix extensions. Therefore this book is applicable for users ranging in experience from the novice + ooRexx programmer, to the experienced application developer. +</para> +<para> + This book is a reference rather than a tutorial. It assumes the reader has some exposure to + object-oriented programming concepts and Rexx programming. +</para> + +<section id="relinf"><title>Related Information</title> +<para>See also: +<citetitle pubwork="book">Open Object Rexx: Reference</citetitle></para> +</section> + +<section id="readsy"><title>How to Read the Syntax Diagrams</title> +<para>Throughout this book, syntax is described using the structure defined +below.</para> +<itemizedlist> +<listitem><para>Read the syntax diagrams from left to right, from top to bottom, following +the path of the line.</para> +<para>The <computeroutput>>>---</computeroutput> symbol +indicates the beginning of a statement.</para> +<para>The <computeroutput>---></computeroutput> symbol indicates that the +statement syntax is continued on the next line.</para> +<para>The <computeroutput>>---</computeroutput> symbol indicates +that a statement is continued from the previous line.</para> +<para>The <computeroutput>---><</computeroutput> symbol indicates the end +of a statement.</para> +<para>Diagrams of syntactical units other than complete statements start +with the <computeroutput>>---</computeroutput> symbol and end with +the <computeroutput>---></computeroutput> symbol.</para></listitem> +<listitem><para>Required items appear on the horizontal line (the main path). + +<programlisting> +<![CDATA[ +>>-STATEMENT--required_item------------------------------------>< +]]> +</programlisting> + +</para></listitem> +<listitem><para>Optional items appear below the main path. </para> + +<programlisting> +<![CDATA[ +>>-STATEMENT--+---------------+-------------------------------->< + +-optional_item-+ +]]> +</programlisting> + +</listitem> +<listitem><para>If you can choose from two or more items, they appear +vertically, in a stack. If you must choose one of the items, one +item of the stack appears on the main path.</para> + +<programlisting> +<![CDATA[ +>>-STATEMENT--+-required_choice1-+----------------------------->< + +-required_choice2-+ +]]> +</programlisting> + +</listitem> +<listitem><para>If choosing one of the items is optional, the entire stack +appears below the main path.</para> + +<programlisting> +<![CDATA[ +>>-STATEMENT--+------------------+----------------------------->< + +-optional_choice1-+ + +-optional_choice2-+ +]]> +</programlisting> + +</listitem> +<listitem><para>If one of the items is the default, it appears above the main +path and the remaining choices are shown below.</para> + +<programlisting> +<![CDATA[ + +-default_choice--+ +>>-STATEMENT--+-----------------+------------------------------>< + +-optional_choice-+ + +-optional_choice-+ +]]> +</programlisting> + +</listitem> +<listitem><para>An arrow returning to the left above the main line indicates an +item that can be repeated.</para> + +<programlisting> +<![CDATA[ + +-----------------+ + V | +>>-STATEMENT----repeatable_item-+------------------------------>< +]]> +</programlisting> + +<para>A repeat arrow above a stack indicates that you can repeat the +items in the stack.</para></listitem> +<listitem><para>A set of vertical bars around an item indicates that the item +is a fragment, a part of the syntax diagram that appears in +greater detail below the main diagram.</para> + +<programlisting> +<![CDATA[ +>>-STATEMENT--| fragment |------------------------------------->< +]]> +</programlisting> + +<para><emphasis role="italic">fragment:</emphasis></para> + +<programlisting> +|--expansion_provides_greater_detail----------------------------| +</programlisting> +</listitem> +<listitem><para>Language keywords appear in uppercase (for example, +<computeroutput>SAY</computeroutput>). They must +be spelled exactly as shown but you can type them in upper, lower, or mixed +case. Variables appear in all lowercase letters (for example, +<computeroutput>parmx</computeroutput>). They represent user-supplied names +or values.</para></listitem> +<listitem><para>Class and method names appear in mixed case (for example, +<computeroutput>.Object~new</computeroutput>). They must +be spelled exactly as shown but you can type them in upper, lower, or mixed +case.</para></listitem> +<listitem><para>If punctuation marks, parentheses, arithmetic operators, or +such symbols are shown, you must enter them as part of the syntax. +</para></listitem></itemizedlist> + +<para>The following example shows how the syntax is described:</para> + +<programlisting> +<![CDATA[ + +-,------+ + V | +>>-MAX(----number-+--)----------------------------------------->< +]]> +</programlisting> +</section> + +<section><title>A Note About Program Examples in this Document</title> +<para>The program examples in this document are rendered in a mono-spaced +font that is not completely compatible for cut-and-paste functionality. +Pasting text into an editor could result in some characters outside of +the standard ASCII character set. Specifically, single-quote and +double-quote characters are sometimes converted incorrectly when +pasted into an editor.</para> + +</section> + +&gethelp; + +</preface> Added: docs/trunk/unixextensions/process.xml =================================================================== --- docs/trunk/unixextensions/process.xml (rev 0) +++ docs/trunk/unixextensions/process.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,91 @@ +<chapter id="process"><title id="process.title">Process and Thread Functions</title> + +<para>This chapter covers the available process and thread functions.</para> + +<section id="utlSysGetpid"><title>SysGetpid</title> +<indexterm><primary>SysGetpid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetpid()------------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current process id.</para> +<para>This function uses the <filename>getpid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para> +<para>Returns the current numerical process id.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the current process id */ + +mypid = SysGetpid() +]]> +</programlisting> +</section> + + +<section id="utlSysGetppid"><title>SysGetppid</title> +<indexterm><primary>SysGetppid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetppid()------------------------------------------------>< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the parent process id of the current process.</para> +<para>This function uses the <filename>getppid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para> +<para>Returns the current parent process id.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the parent process id */ + +myppid = SysGetppid() +]]> +</programlisting> +</section> + + +<section id="utlSysGettid"><title>SysGettid</title> +<indexterm><primary>SysGettid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGettid()------------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current thread id.</para> +<para>This function uses the <filename>pthread_self()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para> +<para>Returns the current numerical thread id.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the current thread id */ + +mytid = SysGettid() +]]> +</programlisting> +</section> + + + + + + + + + + + + +</chapter> + Added: docs/trunk/unixextensions/unixextensions.xml =================================================================== --- docs/trunk/unixextensions/unixextensions.xml (rev 0) +++ docs/trunk/unixextensions/unixextensions.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,85 @@ +<?xml version="1.0" standalone="no"> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN" +[ +<!ENTITY legalstuff SYSTEM "../shared/legalstuff.xml"> +<!ENTITY preface SYSTEM "preface.xml"> +<!ENTITY process SYSTEM "process.xml"> +<!ENTITY usergrps SYSTEM "usergrps.xml"> +<!ENTITY files SYSTEM "files.xml"> +<!ENTITY xattr SYSTEM "xattr.xml"> +<!ENTITY namelookup SYSTEM "namelookup.xml"> +<!ENTITY misc SYSTEM "misc.xml"> +<!ENTITY notices SYSTEM "../shared/notices.xml"> +<!ENTITY cpl SYSTEM "../shared/CPLv1.0.xml"> +<!ENTITY gethelp SYSTEM "../shared/gethelp.xml"> +<!ENTITY genindex SYSTEM "genindex.xml"> +<!ENTITY svnrev SYSTEM "svnrev.tmp"> +]> +<!--######################################################################### + # + # Description: Open Object Rexx: Unix Extensions SGML file. + # + # Copyright (c) 2005-2010, Rexx Language Association. All rights reserved. + # Portions Copyright (c) 2004, IBM Corporation. All rights reserved. + # + # This program and the accompanying materials are made available under + # the terms of the Common Public License v1.0 which accompanies this + # distribution. A copy is also available at the following address: + # http://www.oorexx.org/license.html + # + # Redistribution and use in source and binary forms, with or + # without modification, are permitted provided that the following + # conditions are met: + # + # Redistributions of source code must retain the above copyright + # notice, this list of conditions and the following disclaimer. + # Redistributions in binary form must reproduce the above copyright + # notice, this list of conditions and the following disclaimer in + # the documentation and/or other materials provided with the distribution. + # + # Neither the name of Rexx Language Association nor the names + # of its contributors may be used to endorse or promote products + # derived from this software without specific prior written permission. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + # Author(s): + # W. David Ashley <da...@us...> + # + ######################################################################### +--> +<book> +<bookinfo> +<title>Open Object Rexx™</title> +<subtitle>Unix Extensions Reference</subtitle> +<titleabbrev>Unix Extensions Reference</titleabbrev> + +&legalstuff; + +</bookinfo> + +&preface; <!-- About This Book --> +<!-- start of body --> +&process; <!-- Processes and threads --> +&usergrps; <!-- Users and groups --> +&files; <!-- Files --> +&xattr; <!-- Extended attributes --> +&namelookup; <!-- Name lookups --> +&misc; <!-- Miscellaneous --> +<!-- start of appendix --> +¬ices; <!-- Notices --> +&cpl; <!-- CPL --> +<!-- start of index --> +&genindex; <!-- Index --> + +</book> Added: docs/trunk/unixextensions/usergrps.xml =================================================================== --- docs/trunk/unixextensions/usergrps.xml (rev 0) +++ docs/trunk/unixextensions/usergrps.xml 2010-09-08 19:31:33 UTC (rev 6155) @@ -0,0 +1,536 @@ +<chapter id="usergrps"><title id="usergrps.title">User and Group Functions</title> + +<para>This chapter covers the available user and group functions.</para> + +<section id="utlSysGetegid"><title>SysGetegid</title> +<indexterm><primary>SysGetegid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetegid()------------------------------------------------>< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current numerical effective group id.</para> +<para>This function uses the <filename>getegid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para> +<para>Returns the current numerical effective group id.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the current effective group id */ + +myegid = SysGetegid() +]]> +</programlisting> +</section> + + +<section id="utlSysGeteuid"><title>SysGeteuid</title> +<indexterm><primary>SysGeteuid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGeteuid()------------------------------------------------>< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current numerical effective user id.</para> +<para>This function uses the <filename>geteuid()</filename> +C API to perform the action.</para> +<para><emphasis role="bold">Parameter:</emphasis></para> +<para>None</para> +<para>Returns the current numerical effective user id.</para> +<para><emphasis role="bold">Example:</emphasis></para> +<programlisting> +<![CDATA[ +/* get the current effective user id */ + +myeuid = SysGeteuid() +]]> +</programlisting> +</section> + + +<section id="utlSysGetgid"><title>SysGetgid</title> +<indexterm><primary>SysGetgid</primary></indexterm> +<programlisting> +<![CDATA[ +>>-SysGetgid()------------------------------------------------->< +]]> +</programlisting> +<para><emphasis role="bold">Returns</emphasis></para> +<para>Gets the current numerical group id.</para> +<para>This function uses the <filename>getgid()</filename>... [truncated message content] |
From: <wda...@us...> - 2010-09-08 20:22:36
|
Revision: 6157 http://oorexx.svn.sourceforge.net/oorexx/?rev=6157&view=rev Author: wdashley Date: 2010-09-08 20:22:29 +0000 (Wed, 08 Sep 2010) Log Message: ----------- Merge rxunixsys into the trunk and branch. This builds cleanly on Fedora 13. Modified Paths: -------------- main/branches/4.1.0/trunk/Makefile.am main/branches/4.1.0/trunk/platform/unix/oorexx.spec.in main/trunk/Makefile.am main/trunk/platform/unix/oorexx.spec.in Modified: main/branches/4.1.0/trunk/Makefile.am =================================================================== --- main/branches/4.1.0/trunk/Makefile.am 2010-09-08 19:47:05 UTC (rev 6156) +++ main/branches/4.1.0/trunk/Makefile.am 2010-09-08 20:22:29 UTC (rev 6157) @@ -1,6 +1,6 @@ #/*----------------------------------------------------------------------------*/ #/* */ -#/* Copyright (c) 2005-2010 Rexx Language Association. All rights reserved. */ +#/* Copyright (c) 2005-2008 Rexx Language Association. All rights reserved. */ #/* */ #/* This program and the accompanying materials are made available under */ #/* the terms of the Common Public License v1.0 which accompanies this */ @@ -83,9 +83,11 @@ build_extensions_dir = $(top_srcdir)/extensions build_extensions_rexutils_dir = $(build_extensions_dir)/rexxutil build_extensions_rxftp_dir = $(build_extensions_dir)/rxftp +build_extensions_csvstream_dir = $(build_extensions_dir)/csvStream build_extensions_rxmath_dir = $(build_extensions_dir)/rxmath build_extensions_rxregexp_dir = $(build_extensions_dir)/rxregexp build_extensions_rxsock_dir = $(build_extensions_dir)/rxsock +build_extensions_hostemu_dir = $(build_extensions_dir)/hostemu build_utilities_dir = $(top_srcdir)/utilities build_utilities_rexximage_dir = $(build_utilities_dir)/rexximage build_api_dir = $(top_srcdir)/api @@ -100,6 +102,7 @@ interpreter_unix_dir = $(build_interpreter_dir)/platform/unix extensions_unix_dir = $(build_extensions_dir)/platform/unix extensions_rexutils_unix_dir = $(build_extensions_rexutils_dir)/platform/unix +extensions_hostemu_unix_dir = $(build_extensions_hostemu_dir)/platform/unix utilities_rexx_unix_dir = $(build_utilities_dir)/rexx/platform/unix utilities_rexxc_unix_dir = $(build_utilities_dir)/rexxc/platform/unix utilities_rxqueue_unix_dir = $(build_utilities_dir)/rxqueue/platform/unix @@ -198,7 +201,9 @@ $(build_classes_dir)/StringClass.hpp \ $(build_classes_dir)/SupplierClass.hpp \ $(build_classes_dir)/TableClass.hpp \ - $(build_classes_dir)/WeakReferenceClass.hpp + $(build_classes_dir)/WeakReferenceClass.hpp \ + $(build_classes_dir)/StackFrameClass.hpp \ + $(build_classes_dir)/ExceptionClass.hpp classesSupportHeaders = $(build_classes_support_dir)/ProgramMetaData.hpp \ $(build_classes_support_dir)/RexxCollection.hpp \ $(build_classes_support_dir)/RexxCompoundElement.hpp \ @@ -209,6 +214,7 @@ $(build_classes_support_dir)/RexxListTable.hpp \ $(build_classes_support_dir)/StringUtil.hpp concurrencyHeaders = $(build_concurrency_dir)/ActivationApiContexts.hpp \ + $(build_concurrency_dir)/ActivationFrame.hpp \ $(build_concurrency_dir)/ActivityDispatcher.hpp \ $(build_concurrency_dir)/ActivityManager.hpp \ $(build_concurrency_dir)/CallbackDispatcher.hpp \ @@ -351,6 +357,7 @@ $(build_extensions_rxregexp_dir)/dblqueue.hpp \ $(build_extensions_rxregexp_dir)/regexp.hpp rxsockHeaders = $(build_extensions_rxsock_dir)/rxsock.h +hostemuHeaders = $(build_extensions_hostemu_dir)/hostemu.h # Platform specific files windowsMiscFiles = unixMiscFiles = $(interpreter_unix_dir)/*.cat \ @@ -369,8 +376,13 @@ $(top_srcdir)/unix-like-build.txt \ $(top_srcdir)/windows-build.txt \ $(top_srcdir)/oorexx.ver \ + $(build_extensions_csvstream_dir)/csvStream.cls \ $(build_extensions_rxftp_dir)/rxftp.cls \ + $(build_extensions_csvstream_dir)/csvStream.cls \ $(build_extensions_rxsock_dir)/socket.cls \ + $(build_extensions_rxsock_dir)/streamsocket.cls \ + $(build_extensions_rxsock_dir)/mime.cls \ + $(build_extensions_rxsock_dir)/smtp.cls \ $(build_extensions_rxregexp_dir)/*.cls \ $(build_messages_dir)/*.xsl \ $(build_messages_dir)/*.sgml \ @@ -401,7 +413,8 @@ $(rexxapiCommonHeaders) \ $(rexxapiServerHeaders) \ $(rxregexpHeaders) \ - $(rxsockHeaders) + $(rxsockHeaders) \ + $(hostemuHeaders) # # These error message files are built BEFORE any other target @@ -416,7 +429,7 @@ # # Shared library targets # -pkglib_LTLIBRARIES = librexxapi.la librexx.la librexxutil.la librxmath.la librxregexp.la librxsock.la +pkglib_LTLIBRARIES = librexxapi.la librexx.la librexxutil.la librxmath.la librxregexp.la librxsock.la libhostemu.la librxunixsys.la # # Scripts to install @@ -532,7 +545,9 @@ $(build_classes_dir)/SupplierClass.cpp \ $(build_classes_dir)/TableClass.cpp \ $(build_classes_dir)/IdentityTableClass.cpp \ - $(build_classes_dir)/WeakReferenceClass.cpp + $(build_classes_dir)/WeakReferenceClass.cpp \ + $(build_classes_dir)/StackFrameClass.cpp \ + $(build_classes_dir)/ExceptionClass.cpp package_sources = $(build_package_dir)/LibraryPackage.cpp \ $(build_package_dir)/PackageManager.cpp memory_sources = $(build_memory_dir)/DeadObject.cpp \ @@ -560,6 +575,7 @@ $(build_behaviour_dir)/VirtualFunctionTable.cpp concurrency_sources = $(build_concurrency_dir)/ActivityDispatcher.cpp \ $(build_concurrency_dir)/ActivityManager.cpp \ + $(build_concurrency_dir)/ActivationFrame.cpp \ $(build_concurrency_dir)/CallbackDispatcher.cpp \ $(build_concurrency_dir)/TrappingDispatcher.cpp \ $(build_concurrency_dir)/ExitHandler.cpp \ @@ -656,7 +672,8 @@ $(build_runtime_dir)/RexxMisc.cpp \ $(build_runtime_dir)/Version.cpp streamlibrary_sources = $(build_streamlibrary_dir)/StreamCommandParser.cpp \ - $(build_streamlibrary_dir)/StreamNative.cpp + $(build_streamlibrary_dir)/StreamNative.cpp \ + $(build_streamlibrary_dir)/FileNative.cpp librexx_la_SOURCES = $(classes_sources) \ $(classes_support_sources) \ $(interpreter_api_sources) \ @@ -673,7 +690,8 @@ $(runtime_sources) \ $(streamlibrary_sources) core_classes = $(build_rexxclasses_dir)/CoreClasses.orx \ - $(build_rexxclasses_dir)/StreamClasses.orx + $(build_rexxclasses_dir)/StreamClasses.orx \ + $(build_rexxclasses_dir)/Serializable.orx core_platform_classes = $(build_interpreter_platform_dir)/PlatformObjects.orx # # Preprocessor flags for librexx.so @@ -909,9 +927,49 @@ librxregexp_la_LIBADD = @ORX_LIBADD_LIBRARY@ librxregexp_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@ +#################### libhostemu.so ################ # +# Sources for libhostemu.so +# +libhostemu_la_SOURCES = $(extensions_hostemu_unix_dir)/hostemu.cpp \ + $(build_extensions_hostemu_dir)/hostemu.h \ + $(build_extensions_hostemu_dir)/cmdparse.ypp +# +# Preprocessor flags for libhostemu.so +# +libhostemu_la_CXXFLAGS = $(COMMON_CPPFLAGS) \ + -I$(build_api_dir) \ + -I$(build_api_platform_dir) \ + -I$(build_extensions_hostemu_dir) +# +# Extra libraries for libhostemu.so (maybe) +# +libhostemu_la_LIBADD = @ORX_LIBADD_LIBRARY@ +libhostemu_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@ + +#################### librxunixsys.so ################ +# +# Sources for librxunixsys.so +# +librxunixsys_la_SOURCES = $(extensions_unix_dir)/rxunixsys/rxunixsys.cpp \ + $(extensions_unix_dir)/rxunixsys/rxunixsys.h +# +# Preprocessor flags for librxunixsys.so +# +librxunixsys_la_CXXFLAGS = $(COMMON_CPPFLAGS) \ + -I$(build_api_dir) \ + -I$(build_api_platform_dir) \ + -I$(extensions_unix_dir)/rxunixsys +# +# Extra libraries for librxunixsys.so (maybe) +# +librxunixsys_la_LIBADD = @ORX_LIBADD_LIBRARY@ +librxunixsys_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@ + +# # explicit targets: # + rexx.cat: $(build_messages_dir)/gencat.inp -gencat $(@) $(build_messages_dir)/gencat.inp @@ -945,6 +1003,7 @@ $(build_behaviour_dir)/VirtualFunctionTable.cpp: $(build_behaviour_dir)/VirtualFunctionTable.xsl $(classesXML) sh ./xsl.sh $(@) $(classesXML) $(build_behaviour_dir)/VirtualFunctionTable.xsl +rexx.img: LD_LIBRARY_PATH = ./.libs rexx.img: rexximage librexxutil.la $(core_classes) $(core_platform_classes) cp $(build_rexxclasses_dir)/*.orx . cp $(build_interpreter_platform_dir)/*.orx . @@ -957,7 +1016,9 @@ ooTest: cp $(build_extensions_dir)/rxregexp/rxregexp.cls ./ cp $(build_extensions_dir)/rxftp/rxftp.cls ./ + cp $(build_extensions_dir)/csvStream/csvStream.cls ./ cp $(build_extensions_dir)/rxsock/socket.cls ./ + cp $(build_extensions_dir)/rxsock/streamsocket.cls ./ # # distribution files @@ -1010,10 +1071,32 @@ $(install_sh_SCRIPT) $(build_os_platform_dir)/oorexx-config $(DESTDIR)$(prefix)/bin/oorexx-config $(install_sh_SCRIPT) $(build_extensions_rxregexp_dir)/rxregexp.cls $(DESTDIR)$(prefix)/bin/rxregexp.cls $(install_sh_SCRIPT) $(build_extensions_rxftp_dir)/rxftp.cls $(DESTDIR)$(prefix)/bin/rxftp.cls + $(install_sh_SCRIPT) $(build_extensions_csvstream_dir)/csvStream.cls $(DESTDIR)$(prefix)/bin/csvStream.cls $(install_sh_SCRIPT) $(build_extensions_rxsock_dir)/socket.cls $(DESTDIR)$(prefix)/bin/socket.cls - if test "$(ORX_SYS_STR)" != "AIX"; then \ + $(install_sh_SCRIPT) $(build_extensions_rxsock_dir)/streamsocket.cls $(DESTDIR)$(prefix)/bin/streamsocket.cls + $(install_sh_SCRIPT) $(build_extensions_rxsock_dir)/mime.cls $(DESTDIR)$(prefix)/bin/mime.cls + $(install_sh_SCRIPT) $(build_extensions_rxsock_dir)/smtp.cls $(DESTDIR)$(prefix)/bin/smtp.cls + if test "$(ORX_SYS_STR)" != "AIX" -a "$(ORX_SYS_STR)" != "MACOSX"; then \ $(install_sh_SCRIPT) $(rexxapi_server_unix_dir)/rxapid $(DESTDIR)$(prefix)/bin/rxapid; \ fi + + if test "$(ORX_SYS_STR)" = "MACOSX"; then \ + $(install_sh_SCRIPT) $(platform_unix_dir)/macosx/org.rexxla.oorexx.rxapid.plist \ + $(DESTDIR)$(prefix)/bin/org.rexxla.oorexx.rxapid.plist; \ + mkdir $(platform_unix_dir)/macosx/scripts; \ + sed -e "s/^VER=/VER=$(ORX_MAJOR)/" -e "s/^REL=/REL=$(ORX_AGE)/" -e "s/^MOD=/MOD=$(ORX_REVISION)/" \ + -e "s-^PREFIX=-PREFIX=$(prefix)-" $(platform_unix_dir)/macosx/postflight.in \ + >$(platform_unix_dir)/macosx/scripts/postflight; \ + sed -e "s-^PREFIX=-PREFIX=$(prefix)-" $(platform_unix_dir)/macosx/preflight.in \ + >$(platform_unix_dir)/macosx/scripts/preflight; \ + sed -e "s/^VER=/VER=$(ORX_MAJOR)/" -e "s/^REL=/REL=$(ORX_MINOR)/" -e "s/^MOD=/MOD=$(ORX_MOD_LVL)/" \ + -e "s-^PREFIX=-PREFIX=$(prefix)-" -e "s-^BLD_DIR=-BLD_DIR=$(top_srcdir)-" \ + $(platform_unix_dir)/macosx/MakeRexxPackage.in >$(platform_unix_dir)/macosx/MakeRexxPackage; \ + sed -e "s-#PREF#-$(prefix)-" $(platform_unix_dir)/macosx/PackageInfo.in >$(platform_unix_dir)/macosx/PackageInfo; \ + chmod 755 $(platform_unix_dir)/macosx/scripts/preflight $(platform_unix_dir)/macosx/scripts/postflight \ + $(platform_unix_dir)/macosx/MakeRexxPackage; \ + fi + for a in $(build_samples_dir)/*.rex; do \ bn=`basename $$a`; \ $(install_sh_SCRIPT) $$a $(DESTDIR)$(prefix)/share/ooRexx/$$bn; \ Modified: main/branches/4.1.0/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/branches/4.1.0/trunk/platform/unix/oorexx.spec.in 2010-09-08 19:47:05 UTC (rev 6156) +++ main/branches/4.1.0/trunk/platform/unix/oorexx.spec.in 2010-09-08 20:22:29 UTC (rev 6157) @@ -59,6 +59,7 @@ # Specify the libtool library version %define orx_current 4 %define orx_revision 2 +# orx_age should ALWAYS remain 0 so the linker can always use the latest version %define orx_age 0 # the order of these looks wrong, but that is how it comes out! %define orx_libversion %{orx_current}.%{orx_age}.%{orx_revision} @@ -120,7 +121,11 @@ %{_prefix}/bin/rexx.cat %{_prefix}/bin/rxregexp.cls %{_prefix}/bin/rxftp.cls +%{_prefix}/bin/csvStream.cls %{_prefix}/bin/socket.cls +%{_prefix}/bin/streamsocket.cls +%{_prefix}/bin/mime.cls +%{_prefix}/bin/smtp.cls %{_prefix}/bin/oorexx-config %{_prefix}/lib/ooRexx/librexx.so %{_prefix}/lib/ooRexx/librexx.so.%{orx_current} @@ -146,6 +151,14 @@ %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_current} %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} %{_prefix}/lib/ooRexx/librexxutil.la +%{_prefix}/lib/ooRexx/libhostemu.so +%{_prefix}/lib/ooRexx/libhostemu.so.%{orx_current} +%{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} +%{_prefix}/lib/ooRexx/libhostemu.la +%{_prefix}/lib/ooRexx/librxunixsys.so +%{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_current} +%{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} +%{_prefix}/lib/ooRexx/librxunixsys.la %{_prefix}/include/rexx.h %{_prefix}/include/rexxapidefs.h %{_prefix}/include/rexxapitypes.h @@ -187,7 +200,11 @@ ln -sf %{_prefix}/bin/rexx.cat /usr/bin/rexx.cat ln -sf %{_prefix}/bin/rxregexp.cls /usr/bin/rxregexp.cls ln -sf %{_prefix}/bin/rxftp.cls /usr/bin/rxftp.cls + ln -sf %{_prefix}/bin/csvStream.cls /usr/bin/csvStream.cls ln -sf %{_prefix}/bin/socket.cls /usr/bin/socket.cls + ln -sf %{_prefix}/bin/streamsocket.cls /usr/bin/streamsocket.cls + ln -sf %{_prefix}/bin/mime.cls /usr/bin/mime.cls + ln -sf %{_prefix}/bin/smtp.cls /usr/bin/smtp.cls ln -sf %{_prefix}/bin/oorexx-config /usr/bin/oorexx-config ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.%{orx_libversion} ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.%{orx_current} @@ -212,6 +229,14 @@ ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.%{orx_current} ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so ln -sf %{_prefix}/lib/ooRexx/librexxutil.la /usr/%{_lib}/librexxutil.la + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.%{orx_libversion} + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.%{orx_current} + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so + ln -sf %{_prefix}/lib/ooRexx/libhostemu.la /usr/%{_lib}/libhostemu.la + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.%{orx_libversion} + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.%{orx_current} + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.la /usr/%{_lib}/librxunixsys.la ln -sf %{_prefix}/include/rexx.h /usr/include/rexx.h ln -sf %{_prefix}/include/rexxapidefs.h /usr/include/rexxapidefs.h ln -sf %{_prefix}/include/rexxapitypes.h /usr/include/rexxapitypes.h @@ -226,18 +251,22 @@ ln -sf %{_prefix}/share/man/man1/rxqueue.1 /usr/share/man/man1/rxqueue.1 ln -sf %{_prefix}/share/ooRexx/rexxtry.rex /usr/bin/rexxtry.rex # allow backwards compatibility to previous versions - ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.3 - ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.3 - ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.3 + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.2 + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.3 fi if [ -d /etc/rc.d/init.d ]; then # Red Hat @@ -266,26 +295,44 @@ rm -f /usr/bin/rexx.cat rm -f /usr/bin/rxregexp.cls rm -f /usr/bin/rxftp.cls +rm -f /usr/bin/csvStream.cls rm -f /usr/bin/socket.cls +rm -f /usr/bin/streamsocket.cls +rm -f /usr/bin/mime.cls +rm -f /usr/bin/smtp.cls rm -f /usr/bin/oorexx-config rm -f /usr/%{_lib}/librexx.so +rm -f /usr/%{_lib}/librexx.la rm -f /usr/%{_lib}/librexx.%{orx_libversion} rm -f /usr/%{_lib}/librexx.%{orx_current} rm -f /usr/%{_lib}/librexxapi.so +rm -f /usr/%{_lib}/librexxapi.la rm -f /usr/%{_lib}/librexxapi.%{orx_libversion} rm -f /usr/%{_lib}/librexxapi.%{orx_current} rm -f /usr/%{_lib}/librxsock.so +rm -f /usr/%{_lib}/librxsock.la rm -f /usr/%{_lib}/librxsock.%{orx_libversion} rm -f /usr/%{_lib}/librxsock.%{orx_current} rm -f /usr/%{_lib}/librxmath.so +rm -f /usr/%{_lib}/librxmath.la rm -f /usr/%{_lib}/librxmath.%{orx_libversion} rm -f /usr/%{_lib}/librxmath.%{orx_current} rm -f /usr/%{_lib}/librxregexp.so +rm -f /usr/%{_lib}/librxregexp.la rm -f /usr/%{_lib}/librxregexp.%{orx_libversion} rm -f /usr/%{_lib}/librxregexp.%{orx_current} rm -f /usr/%{_lib}/librexxutil.so +rm -f /usr/%{_lib}/librexxutil.la rm -f /usr/%{_lib}/librexxutil.%{orx_libversion} rm -f /usr/%{_lib}/librexxutil.%{orx_current} +rm -f /usr/%{_lib}/libhostemu.so +rm -f /usr/%{_lib}/libhostemu.la +rm -f /usr/%{_lib}/libhostemu.%{orx_libversion} +rm -f /usr/%{_lib}/libhostemu.%{orx_current} +rm -f /usr/%{_lib}/librxunixsys.so +rm -f /usr/%{_lib}/librxunixsys.la +rm -f /usr/%{_lib}/librxunixsys.%{orx_libversion} +rm -f /usr/%{_lib}/librxunixsys.%{orx_current} rm -f /usr/share/man/man1/oorexx-config.1 rm -f /usr/share/man/man1/rexx.1 rm -f /usr/share/man/man1/rexxc.1 @@ -316,7 +363,7 @@ %postun ldconfig -# Do no change this to rm -rf %{_prefix} +# Do not change this to rm -rf %{_prefix} # If you do you could wipe out the all the /usr subdirs! if [ -d /opt/ooRexx ]; then rm -rf /opt/ooRexx Modified: main/trunk/Makefile.am =================================================================== --- main/trunk/Makefile.am 2010-09-08 19:47:05 UTC (rev 6156) +++ main/trunk/Makefile.am 2010-09-08 20:22:29 UTC (rev 6157) @@ -429,7 +429,7 @@ # # Shared library targets # -pkglib_LTLIBRARIES = librexxapi.la librexx.la librexxutil.la librxmath.la librxregexp.la librxsock.la libhostemu.la +pkglib_LTLIBRARIES = librexxapi.la librexx.la librexxutil.la librxmath.la librxregexp.la librxsock.la libhostemu.la librxunixsys.la # # Scripts to install @@ -947,7 +947,26 @@ libhostemu_la_LIBADD = @ORX_LIBADD_LIBRARY@ libhostemu_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@ +#################### librxunixsys.so ################ # +# Sources for librxunixsys.so +# +librxunixsys_la_SOURCES = $(extensions_unix_dir)/rxunixsys/rxunixsys.cpp \ + $(extensions_unix_dir)/rxunixsys/rxunixsys.h +# +# Preprocessor flags for librxunixsys.so +# +librxunixsys_la_CXXFLAGS = $(COMMON_CPPFLAGS) \ + -I$(build_api_dir) \ + -I$(build_api_platform_dir) \ + -I$(extensions_unix_dir)/rxunixsys +# +# Extra libraries for librxunixsys.so (maybe) +# +librxunixsys_la_LIBADD = @ORX_LIBADD_LIBRARY@ +librxunixsys_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@ + +# # explicit targets: # Modified: main/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/trunk/platform/unix/oorexx.spec.in 2010-09-08 19:47:05 UTC (rev 6156) +++ main/trunk/platform/unix/oorexx.spec.in 2010-09-08 20:22:29 UTC (rev 6157) @@ -155,6 +155,10 @@ %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_current} %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} %{_prefix}/lib/ooRexx/libhostemu.la +%{_prefix}/lib/ooRexx/librxunixsys.so +%{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_current} +%{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} +%{_prefix}/lib/ooRexx/librxunixsys.la %{_prefix}/include/rexx.h %{_prefix}/include/rexxapidefs.h %{_prefix}/include/rexxapitypes.h @@ -229,6 +233,10 @@ ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.%{orx_current} ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so ln -sf %{_prefix}/lib/ooRexx/libhostemu.la /usr/%{_lib}/libhostemu.la + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.%{orx_libversion} + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.%{orx_current} + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.la /usr/%{_lib}/librxunixsys.la ln -sf %{_prefix}/include/rexx.h /usr/include/rexx.h ln -sf %{_prefix}/include/rexxapidefs.h /usr/include/rexxapidefs.h ln -sf %{_prefix}/include/rexxapitypes.h /usr/include/rexxapitypes.h @@ -243,20 +251,22 @@ ln -sf %{_prefix}/share/man/man1/rxqueue.1 /usr/share/man/man1/rxqueue.1 ln -sf %{_prefix}/share/ooRexx/rexxtry.rex /usr/bin/rexxtry.rex # allow backwards compatibility to previous versions - ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.3 - ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.3 - ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.2 - ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.3 - ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.2 - ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.3 - ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.2 - ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexx.so.%{orx_libversion} /usr/%{_lib}/librexx.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexxapi.so.%{orx_libversion} /usr/%{_lib}/librexxapi.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxsock.so.%{orx_libversion} /usr/%{_lib}/librxsock.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxmath.so.%{orx_libversion} /usr/%{_lib}/librxmath.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxregexp.so.%{orx_libversion} /usr/%{_lib}/librxregexp.so.3 + ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.2 + ln -sf %{_prefix}/lib/ooRexx/librexxutil.so.%{orx_libversion} /usr/%{_lib}/librexxutil.so.3 + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.2 + ln -sf %{_prefix}/lib/ooRexx/libhostemu.so.%{orx_libversion} /usr/%{_lib}/libhostemu.so.3 + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.2 + ln -sf %{_prefix}/lib/ooRexx/librxunixsys.so.%{orx_libversion} /usr/%{_lib}/librxunixsys.so.3 fi if [ -d /etc/rc.d/init.d ]; then # Red Hat @@ -319,6 +329,10 @@ rm -f /usr/%{_lib}/libhostemu.la rm -f /usr/%{_lib}/libhostemu.%{orx_libversion} rm -f /usr/%{_lib}/libhostemu.%{orx_current} +rm -f /usr/%{_lib}/librxunixsys.so +rm -f /usr/%{_lib}/librxunixsys.la +rm -f /usr/%{_lib}/librxunixsys.%{orx_libversion} +rm -f /usr/%{_lib}/librxunixsys.%{orx_current} rm -f /usr/share/man/man1/oorexx-config.1 rm -f /usr/share/man/man1/rexx.1 rm -f /usr/share/man/man1/rexxc.1 @@ -349,7 +363,7 @@ %postun ldconfig -# Do no change this to rm -rf %{_prefix} +# Do not change this to rm -rf %{_prefix} # If you do you could wipe out the all the /usr subdirs! if [ -d /opt/ooRexx ]; then rm -rf /opt/ooRexx This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2010-12-06 15:34:26
|
Revision: 6444 http://oorexx.svn.sourceforge.net/oorexx/?rev=6444&view=rev Author: wdashley Date: 2010-12-06 15:34:20 +0000 (Mon, 06 Dec 2010) Log Message: ----------- Move thr 4.1.0 branch to production. Added Paths: ----------- main/releases/4.1.0/ Removed Paths: ------------- main/branches/4.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2012-02-08 16:38:03
|
Revision: 7512 http://oorexx.svn.sourceforge.net/oorexx/?rev=7512&view=rev Author: wdashley Date: 2012-02-08 16:37:52 +0000 (Wed, 08 Feb 2012) Log Message: ----------- Add RH 6.1 and 6.2 to the trunk version of the rmp spec file. Bring the branch spec file up to date with the trunk. Modified Paths: -------------- main/branches/4.1/trunk/platform/unix/oorexx.spec.in main/trunk/platform/unix/oorexx.spec.in Modified: main/branches/4.1/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/branches/4.1/trunk/platform/unix/oorexx.spec.in 2012-02-08 15:42:16 UTC (rev 7511) +++ main/branches/4.1/trunk/platform/unix/oorexx.spec.in 2012-02-08 16:37:52 UTC (rev 7512) @@ -58,11 +58,24 @@ # Red Hat %if 0%{?_redhat} # Currently RH does not define these like Fedora does, but they might in the future. -# So we define them and if RH ever does use them we can eliminate the definitions. -# We will default the version to 55 for now. -%define build_distro %(grep -q "Red Hat Enterprise Linux" /etc/redhat-release && echo rhel || echo rhl) -%define build_release 55 -%define _osdistname %{build_distro}%{build_release} +# So we define them using the contents of the release file. +%define build_distro rhel +%if %(if grep -q "release 5.5" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 55 +%endif +%if %(if grep -q "release 5.6" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 56 +%endif +%if %(if grep -q "release 6.0" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 60 +%endif +%if %(if grep -q "release 6.1" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 61 +%endif +%if %(if grep -q "release 6.2" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 62 +%endif +%define _osdistname %{build_distro}%{build_version} %define _unknownos 0 %endif @@ -213,58 +226,22 @@ #****************************************************************************** %post #****************************************************************************** -# Normally we would not need to add links back to /usr/lib because the ooRexx -# executables have the correct path to the libraries linked into them. But -# developers need to be able to link their applications to a known location. -# So we add links to the libraries that developers will need access to. -ln -sf %{_libdir}/ooRexx/librexx.so %{_libdir}/librexx.so -ln -sf %{_libdir}/ooRexx/librexx.so %{_libdir}/librexx.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librexx.so %{_libdir}/librexx.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librexx.la %{_libdir}/librexx.la -ln -sf %{_libdir}/ooRexx/librexx.so %{_libdir}/librexx.so.2 -ln -sf %{_libdir}/ooRexx/librexx.so %{_libdir}/librexx.so.3 -ln -sf %{_libdir}/ooRexx/librexxapi.so %{_libdir}/librexxapi.so -ln -sf %{_libdir}/ooRexx/librexxapi.so %{_libdir}/librexxapi.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librexxapi.so %{_libdir}/librexxapi.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librexxapi.la %{_libdir}/librexxapi.la -ln -sf %{_libdir}/ooRexx/librexxapi.so %{_libdir}/librexxapi.so.2 -ln -sf %{_libdir}/ooRexx/librexxapi.so %{_libdir}/librexxapi.so.3 -ln -sf %{_libdir}/ooRexx/librxsock.so %{_libdir}/librxsock.so -ln -sf %{_libdir}/ooRexx/librxsock.so %{_libdir}/librxsock.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librxsock.so %{_libdir}/librxsock.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librxsock.la %{_libdir}/librxsock.la -ln -sf %{_libdir}/ooRexx/librxsock.so %{_libdir}/librxsock.so.2 -ln -sf %{_libdir}/ooRexx/librxsock.so %{_libdir}/librxsock.so.3 -ln -sf %{_libdir}/ooRexx/librxmath.so %{_libdir}/librxmath.so -ln -sf %{_libdir}/ooRexx/librxmath.so %{_libdir}/librxmath.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librxmath.so %{_libdir}/librxmath.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librxmath.la %{_libdir}/librxmath.la -ln -sf %{_libdir}/ooRexx/librxmath.so %{_libdir}/librxmath.so.2 -ln -sf %{_libdir}/ooRexx/librxmath.so %{_libdir}/librxmath.so.3 -ln -sf %{_libdir}/ooRexx/librxregexp.so %{_libdir}/librxregexp.so -ln -sf %{_libdir}/ooRexx/librxregexp.so %{_libdir}/librxregexp.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librxregexp.so %{_libdir}/librxregexp.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librxregexp.la %{_libdir}/librxregexp.la -ln -sf %{_libdir}/ooRexx/librxregexp.so %{_libdir}/librxregexp.so.2 -ln -sf %{_libdir}/ooRexx/librxregexp.so %{_libdir}/librxregexp.so.3 -ln -sf %{_libdir}/ooRexx/librexxutil.so %{_libdir}/librexxutil.so -ln -sf %{_libdir}/ooRexx/librexxutil.so %{_libdir}/librexxutil.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librexxutil.so %{_libdir}/librexxutil.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librexxutil.la %{_libdir}/librexxutil.la -ln -sf %{_libdir}/ooRexx/librexxutil.so %{_libdir}/librexxutil.so.2 -ln -sf %{_libdir}/ooRexx/librexxutil.so %{_libdir}/librexxutil.so.3 -ln -sf %{_libdir}/ooRexx/libhostemu.so %{_libdir}/libhostemu.so -ln -sf %{_libdir}/ooRexx/libhostemu.so %{_libdir}/libhostemu.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/libhostemu.so %{_libdir}/libhostemu.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/libhostemu.la %{_libdir}/libhostemu.la -ln -sf %{_libdir}/ooRexx/libhostemu.so %{_libdir}/libhostemu.so.2 -ln -sf %{_libdir}/ooRexx/libhostemu.so %{_libdir}/libhostemu.so.3 -ln -sf %{_libdir}/ooRexx/librxunixsys.so %{_libdir}/librxunixsys.so -ln -sf %{_libdir}/ooRexx/librxunixsys.so %{_libdir}/librxunixsys.so.@ORX_SUBST_CURRENT@ -ln -sf %{_libdir}/ooRexx/librxunixsys.so %{_libdir}/librxunixsys.so.%{orx_libversion} -ln -sf %{_libdir}/ooRexx/librxunixsys.la %{_libdir}/librxunixsys.la -ln -sf %{_libdir}/ooRexx/librxunixsys.so %{_libdir}/librxunixsys.so.2 -ln -sf %{_libdir}/ooRexx/librxunixsys.so %{_libdir}/librxunixsys.so.3 +ln -sf %{_libdir}/librexx.so %{_libdir}/librexx.so.2 +ln -sf %{_libdir}/librexx.so %{_libdir}/librexx.so.3 +ln -sf %{_libdir}/librexxapi.so %{_libdir}/librexxapi.so.2 +ln -sf %{_libdir}/librexxapi.so %{_libdir}/librexxapi.so.3 +ln -sf %{_libdir}/librxsock.so %{_libdir}/librxsock.so.2 +ln -sf %{_libdir}/librxsock.so %{_libdir}/librxsock.so.3 +ln -sf %{_libdir}/librxmath.so %{_libdir}/librxmath.so.2 +ln -sf %{_libdir}/librxmath.so %{_libdir}/librxmath.so.3 +ln -sf %{_libdir}/librxregexp.so %{_libdir}/librxregexp.so.2 +ln -sf %{_libdir}/librxregexp.so %{_libdir}/librxregexp.so.3 +ln -sf %{_libdir}/librexxutil.so %{_libdir}/librexxutil.so.2 +ln -sf %{_libdir}/librexxutil.so %{_libdir}/librexxutil.so.3 +ln -sf %{_libdir}/libhostemu.so %{_libdir}/libhostemu.so.2 +ln -sf %{_libdir}/libhostemu.so %{_libdir}/libhostemu.so.3 +ln -sf %{_libdir}/librxunixsys.so %{_libdir}/librxunixsys.so.2 +ln -sf %{_libdir}/librxunixsys.so %{_libdir}/librxunixsys.so.3 # Add links for some ooRexx scripts ln -sf %{_datadir}/ooRexx/rexxtry.rex %{_bindir}/rexxtry.rex # Add the rxapi service Modified: main/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/trunk/platform/unix/oorexx.spec.in 2012-02-08 15:42:16 UTC (rev 7511) +++ main/trunk/platform/unix/oorexx.spec.in 2012-02-08 16:37:52 UTC (rev 7512) @@ -69,6 +69,12 @@ %if %(if grep -q "release 6.0" /etc/redhat-release; then echo 1; else echo 0; fi;) %define build_version 60 %endif +%if %(if grep -q "release 6.1" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 61 +%endif +%if %(if grep -q "release 6.2" /etc/redhat-release; then echo 1; else echo 0; fi;) +%define build_version 62 +%endif %define _osdistname %{build_distro}%{build_version} %define _unknownos 0 %endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wda...@us...> - 2012-03-20 16:40:31
|
Revision: 7691 http://oorexx.svn.sourceforge.net/oorexx/?rev=7691&view=rev Author: wdashley Date: 2012-03-20 16:40:19 +0000 (Tue, 20 Mar 2012) Log Message: ----------- Fix rpm spec file so that Rexx applications can be linked once ooRexx has been installed. Modified Paths: -------------- main/branches/4.1/trunk/platform/unix/oorexx.spec.in main/trunk/platform/unix/oorexx.spec.in Modified: main/branches/4.1/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/branches/4.1/trunk/platform/unix/oorexx.spec.in 2012-03-20 15:13:26 UTC (rev 7690) +++ main/branches/4.1/trunk/platform/unix/oorexx.spec.in 2012-03-20 16:40:19 UTC (rev 7691) @@ -253,6 +253,7 @@ # else, try good old chkconfig chkconfig --add rxapid fi +echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf ldconfig service rxapid start @@ -277,6 +278,7 @@ #****************************************************************************** %postun #****************************************************************************** +rm -f /etc/ld.so.conf.d/ooRexx.conf ldconfig #****************************************************************************** Modified: main/trunk/platform/unix/oorexx.spec.in =================================================================== --- main/trunk/platform/unix/oorexx.spec.in 2012-03-20 15:13:26 UTC (rev 7690) +++ main/trunk/platform/unix/oorexx.spec.in 2012-03-20 16:40:19 UTC (rev 7691) @@ -254,6 +254,7 @@ # else, try good old chkconfig chkconfig --add rxapid fi +echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf ldconfig service rxapid start @@ -277,6 +278,7 @@ #****************************************************************************** %postun #****************************************************************************** +rm -f /etc/ld.so.conf.d/ooRexx.conf ldconfig #****************************************************************************** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |