Index: ossp-pkg/sa/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/sa/Makefile.in,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/sa/Makefile.in,v' 2>/dev/null --- Makefile.in 2001/10/05 11:40:22 1.3 +++ Makefile.in 2001/10/08 10:03:54 1.4 @@ -1,7 +1,8 @@ ## ## SA - OSSP Socket Abstraction Library -## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001 The OSSP Project +## Copyright (c) 2001 Cable & Wireless Deutschland ## ## This file is part of OSSP SA, a socket abstraction library which ## can be found at http://www.ossp.org/pkg/sa/. Index: ossp-pkg/sa/README RCS File: /v/ossp/cvs/ossp-pkg/sa/README,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sa/README,v' 2>/dev/null --- README 2001/10/02 13:27:44 1.1 +++ README 2001/10/08 10:03:54 1.2 @@ -0,0 +1,50 @@ + ___ __ _ + / __|/ _` | + \__ \ (_| | + |___/\__,_| + + SA - Socket Abstraction Library + Version 0.1.0 (13-Sep-2001) + + ABSTRACT + + The OSSP SA library is an abstraction library for the Unix socket + interface featuring stream and datagram oriented communication over + Unix Domain and Internet Domain sockets. It provides the following key + features: address abstraction, type abstraction, I/O timeouts, I/O + stream buffering and convinience I/O functions. + + COPYRIGHT AND LICENSE + + Copyright (c) 2001 Ralf S. Engelschall + Copyright (c) 2001 The OSSP Project + Copyright (c) 2001 Cable & Wireless Deutschland + + This file is part of OSSP SA, a socket abstraction library which + can be found at http://www.ossp.org/pkg/sa/. + + Permission to use, copy, modify, and distribute this software for + any purpose with or without fee is hereby granted, provided that + the above copyright notice and this permission notice appear in all + copies. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR + 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. + + HOME AND DOCUMENTATION + + The documentation and latest release can be found on + + o http://www.ossp.org/pkg/sa/ + o ftp://ftp.ossp.org/pkg/sa/ + Index: ossp-pkg/sa/aclocal.m4 RCS File: /v/ossp/cvs/ossp-pkg/sa/aclocal.m4,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sa/aclocal.m4,v' 2>/dev/null --- aclocal.m4 2001/10/02 13:27:44 1.1 +++ aclocal.m4 2001/10/08 10:03:54 1.2 @@ -1,3 +1,32 @@ +dnl ## +dnl ## SA - OSSP Socket Abstraction Library +dnl ## Copyright (c) 2001 Ralf S. Engelschall +dnl ## Copyright (c) 2001 The OSSP Project +dnl ## Copyright (c) 2001 Cable & Wireless Deutschland +dnl ## +dnl ## This file is part of OSSP SA, a socket abstraction library which +dnl ## can be found at http://www.ossp.org/pkg/sa/. +dnl ## +dnl ## Permission to use, copy, modify, and distribute this software for +dnl ## any purpose with or without fee is hereby granted, provided that +dnl ## the above copyright notice and this permission notice appear in all +dnl ## copies. +dnl ## +dnl ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +dnl ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +dnl ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +dnl ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +dnl ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +dnl ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +dnl ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +dnl ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +dnl ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +dnl ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +dnl ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +dnl ## SUCH DAMAGE. +dnl ## +dnl ## aclocal.m4: GNU Autoconf local macro definitions +dnl ## dnl ## dnl ## Check whether compiler option works Index: ossp-pkg/sa/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/sa/configure.ac,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sa/configure.ac,v' 2>/dev/null --- configure.ac 2001/10/02 18:37:19 1.2 +++ configure.ac 2001/10/08 10:03:54 1.3 @@ -1,7 +1,8 @@ dnl ## dnl ## SA - OSSP Socket Abstraction Library -dnl ## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -dnl ## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +dnl ## Copyright (c) 2001 Ralf S. Engelschall +dnl ## Copyright (c) 2001 The OSSP Project +dnl ## Copyright (c) 2001 Cable & Wireless Deutschland dnl ## dnl ## This file is part of OSSP SA, a socket abstraction library which dnl ## can be found at http://www.ossp.org/pkg/sa/. Index: ossp-pkg/sa/sa-config.in RCS File: /v/ossp/cvs/ossp-pkg/sa/sa-config.in,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/sa/sa-config.in,v' | diff -u /dev/null - -L'ossp-pkg/sa/sa-config.in' 2>/dev/null --- ossp-pkg/sa/sa-config.in +++ - 2025-04-12 02:34:38.009898201 +0200 @@ -0,0 +1,145 @@ +#!/bin/sh +## +## SA - OSSP Logging Library +## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001 The OSSP Project +## Copyright (c) 2001 Cable & Wireless Deutschland +## +## This file is part of OSSP SA, a socket abstraction library which +## can be found at http://www.ossp.org/pkg/sa/. +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## 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. +## +## sa-config.in: SA library build utility +## + +DIFS=' +' + +prefix="@prefix@" +exec_prefix="@exec_prefix@" + +sa_prefix="$prefix" +sa_exec_prefix="$exec_prefix" +sa_bindir="@bindir@" +sa_libdir="@libdir@" +sa_includedir="@includedir@" +sa_mandir="@mandir@" +sa_datadir="@datadir@" +sa_acdir="@datadir@/aclocal" +sa_cflags="@CFLAGS@" +sa_ldflags="@LDFLAGS@" +sa_libs="@LIBS@" +sa_version="@SA_VERSION_STR@" + +help=no +version=no + +usage="sa-config" +usage="$usage [--help] [--version] [--all]" +usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]" +usage="$usage [--cflags] [--ldflags] [--libs]" +if [ $# -eq 0 ]; then + echo "sa-config:Error: Invalid option" 1>&2 + echo "sa-config:Usage: $usage" 1>&2 + exit 1 +fi +output='' +output_extra='' +all=no +prev='' +OIFS="$IFS" IFS="$DIFS" +for option +do + if [ ".$prev" != . ]; then + eval "$prev=\$option" + prev='' + continue + fi + case "$option" in + -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg='' ;; + esac + case "$option" in + --help|-h) + echo "Usage: $usage" + exit 0 + ;; + --version|-v) + echo "OSSP SA $sa_version" + exit 0 + ;; + --all) + all=yes + ;; + --prefix) + output="$output $sa_prefix" + ;; + --exec-prefix) + output="$output $sa_exec_prefix" + ;; + --bindir) + output="$output $sa_bindir" + ;; + --libdir) + output="$output $sa_libdir" + ;; + --includedir) + output="$output $sa_includedir" + ;; + --mandir) + output="$output $sa_mandir" + ;; + --datadir) + output="$output $sa_datadir" + ;; + --acdir) + output="$output $sa_acdir" + ;; + --cflags) + output="$output -I$sa_includedir" + output_extra="$output_extra $sa_cflags" + ;; + --ldflags) + output="$output -L$sa_libdir" + output_extra="$output_extra $sa_ldflags" + ;; + --libs) + output="$output -lsa" + output_extra="$output_extra $sa_libs" + ;; + * ) + echo "sa-config:Error: Invalid option" 1>&2 + echo "sa-config:Usage: $usage" 1>&2 + exit 1; + ;; + esac +done +IFS="$OIFS" +if [ ".$prev" != . ]; then + echo "sa-config:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2 + exit 1 +fi +if [ ".$output" != . ]; then + if [ ".$all" = .yes ]; then + output="$output $output_extra" + fi + echo $output +fi + Index: ossp-pkg/sa/sa.ac RCS File: /v/ossp/cvs/ossp-pkg/sa/sa.ac,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sa/sa.ac,v' 2>/dev/null --- sa.ac 2001/10/05 11:48:49 1.2 +++ sa.ac 2001/10/08 10:03:54 1.3 @@ -1,7 +1,8 @@ ## ## SA - OSSP Socket Abstraction Library -## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001 The OSSP Project +## Copyright (c) 2001 Cable & Wireless Deutschland ## ## This file is part of OSSP SA, a socket abstraction library which ## can be found at http://www.ossp.org/pkg/sa/. Index: ossp-pkg/sa/sa.c RCS File: /v/ossp/cvs/ossp-pkg/sa/sa.c,v rcsdiff -q -kk '-r1.11' '-r1.12' -u '/v/ossp/cvs/ossp-pkg/sa/sa.c,v' 2>/dev/null --- sa.c 2001/10/07 15:21:17 1.11 +++ sa.c 2001/10/08 10:03:54 1.12 @@ -1,7 +1,8 @@ /* ** SA - OSSP Socket Abstraction Library -** Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -** Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +** Copyright (c) 2001 Ralf S. Engelschall +** Copyright (c) 2001 The OSSP Project +** Copyright (c) 2001 Cable & Wireless Deutschland ** ** This file is part of OSSP SA, a socket abstraction library which ** can be found at http://www.ossp.org/pkg/sa/. Index: ossp-pkg/sa/sa.h RCS File: /v/ossp/cvs/ossp-pkg/sa/sa.h,v rcsdiff -q -kk '-r1.12' '-r1.13' -u '/v/ossp/cvs/ossp-pkg/sa/sa.h,v' 2>/dev/null --- sa.h 2001/10/07 15:21:17 1.12 +++ sa.h 2001/10/08 10:03:54 1.13 @@ -1,7 +1,8 @@ /* ** SA - OSSP Socket Abstraction Library -** Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -** Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +** Copyright (c) 2001 Ralf S. Engelschall +** Copyright (c) 2001 The OSSP Project +** Copyright (c) 2001 Cable & Wireless Deutschland ** ** This file is part of OSSP SA, a socket abstraction library which ** can be found at http://www.ossp.org/pkg/sa/. Index: ossp-pkg/sa/sa.pod RCS File: /v/ossp/cvs/ossp-pkg/sa/sa.pod,v rcsdiff -q -kk '-r1.7' '-r1.8' -u '/v/ossp/cvs/ossp-pkg/sa/sa.pod,v' 2>/dev/null --- sa.pod 2001/10/05 21:11:22 1.7 +++ sa.pod 2001/10/08 10:03:54 1.8 @@ -1,7 +1,8 @@ ## ## SA - OSSP Socket Abstraction Library -## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) -## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) +## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001 The OSSP Project +## Copyright (c) 2001 Cable & Wireless Deutschland ## ## This file is part of OSSP SA, a socket abstraction library which ## can be found at http://www.ossp.org/pkg/sa/. @@ -130,7 +131,7 @@ operation was able to succeed. This allows one to easily program less-blocking network services. -=item B +=item B If B is used for stream communication, internally all I/O operations can be performed through input and/or output buffers (set Index: ossp-pkg/sa/sa_test.c RCS File: /v/ossp/cvs/ossp-pkg/sa/sa_test.c,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/sa/sa_test.c,v' 2>/dev/null --- sa_test.c 2001/10/05 20:52:15 1.5 +++ sa_test.c 2001/10/08 10:03:54 1.6 @@ -1,3 +1,32 @@ +/* +** SA - OSSP Socket Abstraction Library +** Copyright (c) 2001 Ralf S. Engelschall +** Copyright (c) 2001 The OSSP Project +** Copyright (c) 2001 Cable & Wireless Deutschland +** +** This file is part of OSSP SA, a socket abstraction library which +** can be found at http://www.ossp.org/pkg/sa/. +** +** Permission to use, copy, modify, and distribute this software for +** any purpose with or without fee is hereby granted, provided that +** the above copyright notice and this permission notice appear in all +** copies. +** +** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +** 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. +** +** sa_test.c: socket abstraction library test suite +*/ #include #include