Index: ossp-pkg/sio/AUTHORS RCS File: /v/ossp/cvs/ossp-pkg/sio/AUTHORS,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/AUTHORS,v' 2>/dev/null --- AUTHORS 2002/12/18 14:58:29 1.1 +++ AUTHORS 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O Index: ossp-pkg/sio/BRAINSTORM.txt RCS File: /v/ossp/cvs/ossp-pkg/sio/BRAINSTORM.txt,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/sio/BRAINSTORM.txt,v' 2>/dev/null --- BRAINSTORM.txt 2002/10/22 13:01:35 1.3 +++ BRAINSTORM.txt 2003/01/06 19:04:56 1.4 @@ -68,7 +68,7 @@ Optimierungen: o mmap muss moeglich sein -o if target connector = socket & source connector = file => try to use sendfile(2) +o if target connector = socket & source connector = file => try to use sendfile(2) o if target connector = file & source connector = file => try to use mmap(2) o wenn I/O ohne filters dann no buffering oder nur wenn chunks zu klein o wann es geht writev() und readv() nutzen, um Buffers zu koppeln beim I/O @@ -83,7 +83,7 @@ o man sollte meta-data (mtime, inode, etc.) von SIO connector rausfinden koennen und setzen koennen o Chunking muss moeglich sein (HTTP?) -o Read sollte lesen bis: +o Read sollte lesen bis: - number of bytes read - found a char of class [a-z] - found a string "foo" @@ -95,7 +95,7 @@ Architecture: o three types of objects (siehe SIO.fig): - plugs (Stecker/Anschluesse) for socket, file, mem, etc. - - pipes (Rohre/Verbindungen) + - pipes (Rohre/Verbindungen) - pipelines (the Kombination von plugs und pipes zu einer Einheit) o buffered I/O: es gibt eine buffer-pipe, das ist alles unbuffered I/O ist also eine Pipleline wo kein buffer-pipe dabei ist @@ -156,13 +156,13 @@ SIO_CHR | SIO_STR | SIO_BUF | SIO_FMT | SIO_STRVEC | SIO_BUFVEC type of objects: character, nul-terminated string or buffer+size or format string based - SIO_MULT + SIO_MULT multiple objects are passed in call - SIO_NULLEND + SIO_NULLEND whether size of vector is indicated by NULL or given SIO_COPY - objects are copied to library + objects are copied to library (internal its SIO_GIFT after copy!) SIO_GIFT objects are gifted to library @@ -202,7 +202,7 @@ IDEA: - SIO (Socket IO) - BIO (Buffered/Filtered I/O) - - BA/BB (Buffer Aggregates, Bucket Brigades -- ACT) + - BA/BB (Buffer Aggregates, Bucket Brigades -- ACT) ----------------- @@ -223,7 +223,7 @@ typedef struct sio_st sio_t; /* I/O vector entry (similar to POSIX struct iovec) for sio_{read,write}v() */ -typdef struct sio_iovec_st +typdef struct sio_iovec_st char *iov_base; /* Base address. */ size_t iov_len; /* Length. */ } sio_iovec_t; @@ -261,8 +261,8 @@ sio_t *sio_dup (sio_t *sio); int sio_free (sio_t *sio); -/* - * I/O Operations +/* + * I/O Operations */ sio_size_t sio_read (sio_t *sio, void *buf, size_t bytes); sio_size_t sio_write (sio_t *sio, void *buf, size_t bytes); @@ -286,7 +286,7 @@ sio_site_t sio_vscanf (sio_t *sio, const char *fmt, va_list ap); /* - * Buffering & Synchronization + * Buffering & Synchronization */ int sio_sync (sio_t *sio); int sio_purge (sio_t *sio); Index: ossp-pkg/sio/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/sio/ChangeLog,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/12/18 14:58:29 1.1 +++ ChangeLog 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O Index: ossp-pkg/sio/INSTALL RCS File: /v/ossp/cvs/ossp-pkg/sio/INSTALL,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/INSTALL,v' 2>/dev/null --- INSTALL 2002/12/18 14:58:29 1.1 +++ INSTALL 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O Index: ossp-pkg/sio/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/sio/Makefile.in,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sio/Makefile.in,v' 2>/dev/null --- Makefile.in 2002/12/18 15:54:15 1.2 +++ Makefile.in 2003/01/06 19:04:56 1.3 @@ -1,13 +1,11 @@ ## ## OSSP sio - Stream I/O -## Copyright (c) 2002 Ralf S. Engelschall -## Copyright (c) 2002 The OSSP Project -## Copyright (c) 2002 Cable & Wireless Deutschland -## Copyright (c) 2002 Michael van Elst +## Copyright (c) 2002-2003 Cable & Wireless Deutschland +## Copyright (c) 2002-2003 The OSSP Project +## Copyright (c) 2002-2003 Ralf S. Engelschall ## -## This file is part of OSSP sio, an abstract data type of -## a pair of half-duplex data pipes which can be found at -## http://www.ossp.org/pkg/lib/sio/. +## This file is part of OSSP sio, a layered stream I/O library +## which can be found at http://www.ossp.org/pkg/lib/sio/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/NEWS RCS File: /v/ossp/cvs/ossp-pkg/sio/NEWS,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/NEWS,v' 2>/dev/null --- NEWS 2002/12/18 14:58:29 1.1 +++ NEWS 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O Index: ossp-pkg/sio/README RCS File: /v/ossp/cvs/ossp-pkg/sio/README,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/README,v' 2>/dev/null --- README 2002/12/18 14:58:29 1.1 +++ README 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O @@ -12,14 +12,12 @@ COPYRIGHT AND LICENSE - Copyright (c) 2002 Ralf S. Engelschall - Copyright (c) 2002 The OSSP Project - Copyright (c) 2002 Cable & Wireless Deutschland - Copyright (c) 2002 Michael van Elst - - This file is part of OSSP sio, an abstract data type of - a pair of half-duplex data pipes which can be found at - http://www.ossp.org/pkg/lib/sio/. + Copyright (c) 2002-2003 Cable & Wireless Deutschland + Copyright (c) 2002-2003 The OSSP Project + Copyright (c) 2002-2003 Ralf S. Engelschall + + This file is part of OSSP sio, a layered stream I/O library + which can be found at http://www.ossp.org/pkg/lib/sio/. Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/THANKS RCS File: /v/ossp/cvs/ossp-pkg/sio/THANKS,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/THANKS,v' 2>/dev/null --- THANKS 2002/12/18 14:58:29 1.1 +++ THANKS 2003/01/06 19:04:56 1.2 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O Index: ossp-pkg/sio/TODO RCS File: /v/ossp/cvs/ossp-pkg/sio/TODO,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sio/TODO,v' 2>/dev/null --- TODO 2003/01/06 16:36:59 1.2 +++ TODO 2003/01/06 19:04:56 1.3 @@ -1,8 +1,8 @@ - _ ___ ____ ____ ____ _ - |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ - _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ + _ ___ ____ ____ ____ _ + |_|_ _ / _ \/ ___/ ___|| _ \ ___(_) ___ + _|_||_| | | | \___ \___ \| |_) | / __| |/ _ \ |_||_|_| | |_| |___) |__) | __/ \__ \ | (_) | - |_|_|_| \___/|____/____/|_| |___/_|\___/ + |_|_|_| \___/|____/____/|_| |___/_|\___/ OSSP sio - Stream I/O @@ -34,7 +34,7 @@ SIO_XSTREAM Invoke Crossstream Stage SIO_LOOP Loop through current Stage - o sio.h haengt von al.h ab wegen References to al_t! + o sio.h haengt von al.h ab wegen References to al_t! Suggestion: forward declaration in sio.h for al_t. o sio_push: I expected a different operation by reading "push" here. @@ -51,7 +51,7 @@ o sios->{open,close}{r,w}(): any reason why it's four functions and not just two? I intuitively expected just sios->{open,close}() with an additional parameter indicating read or write operation. - + o sio_configure_stage is unneccesary restrictive in passed data: < sio_rc_t sio_configure_stage(sio_t *sio, sio_stage_t *sios, void *o, void *v); > sio_rc_t sio_configure_stage(sio_t *sio, sio_stage_t *sios, void *v, ...); @@ -59,7 +59,7 @@ > sio_rc_t (*configure) (sio_t *, void *, void *, va_list ap); This way the application can decide itself how it is configured and with which parameter stypes and with how much parameters. - + o Additionally to make sios->configure implementations easier and to reduce complexity and redundancy, I suggest to provide a sio_setparams() function which is similar to l2_util_setparams() in Index: ossp-pkg/sio/aclocal.m4 RCS File: /v/ossp/cvs/ossp-pkg/sio/aclocal.m4,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/aclocal.m4,v' 2>/dev/null --- aclocal.m4 2002/12/18 14:58:29 1.1 +++ aclocal.m4 2003/01/06 19:04:56 1.2 @@ -1,13 +1,11 @@ dnl ## -dnl ## sio - OSSP Assembly Line -dnl ## Copyright (c) 2002 Ralf S. Engelschall -dnl ## Copyright (c) 2002 The OSSP Project -dnl ## Copyright (c) 2002 Cable & Wireless Deutschland -dnl ## Copyright (c) 2002 Michael van Elst +dnl ## OSSP sio - Stream I/O +dnl ## Copyright (c) 2002-2003 Cable & Wireless Deutschland +dnl ## Copyright (c) 2002-2003 The OSSP Project +dnl ## Copyright (c) 2002-2003 Ralf S. Engelschall dnl ## -dnl ## This file is part of OSSP sio, an abstract data type of -dnl ## a pair of half-duplex data pipes which can be found at -dnl ## http://www.ossp.org/pkg/lib/sio/. +dnl ## This file is part of OSSP sio, a layered stream I/O library +dnl ## which can be found at http://www.ossp.org/pkg/lib/sio/. dnl ## dnl ## Permission to use, copy, modify, and distribute this software for dnl ## any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/sio/configure.ac,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sio/configure.ac,v' 2>/dev/null --- configure.ac 2002/12/18 15:41:50 1.2 +++ configure.ac 2003/01/06 19:04:56 1.3 @@ -1,13 +1,11 @@ dnl ## dnl ## OSSP sio - Stream I/O -dnl ## Copyright (c) 2002 Ralf S. Engelschall -dnl ## Copyright (c) 2002 The OSSP Project -dnl ## Copyright (c) 2002 Cable & Wireless Deutschland -dnl ## Copyright (c) 2002 Michael van Elst +dnl ## Copyright (c) 2002-2003 Cable & Wireless Deutschland +dnl ## Copyright (c) 2002-2003 The OSSP Project +dnl ## Copyright (c) 2002-2003 Ralf S. Engelschall dnl ## -dnl ## This file is part of OSSP sio, an abstract data type of -dnl ## a pair of half-duplex data pipes which can be found at -dnl ## http://www.ossp.org/pkg/lib/sio/. +dnl ## This file is part of OSSP sio, a layered stream I/O library +dnl ## which can be found at http://www.ossp.org/pkg/lib/sio/. dnl ## dnl ## Permission to use, copy, modify, and distribute this software for dnl ## any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/devtool RCS File: /v/ossp/cvs/ossp-pkg/sio/devtool,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/devtool,v' 2>/dev/null --- devtool 2002/12/18 14:58:29 1.1 +++ devtool 2003/01/06 19:04:56 1.2 @@ -1,7 +1,7 @@ #!/bin/sh ## ## devtool -- Development Tool -## Copyright (c) 2001 Ralf S. Engelschall +## Copyright (c) 2001 Ralf S. Engelschall ## if [ $# -eq 0 ]; then Index: ossp-pkg/sio/devtool.func RCS File: /v/ossp/cvs/ossp-pkg/sio/devtool.func,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/devtool.func,v' 2>/dev/null --- devtool.func 2002/12/18 14:58:29 1.1 +++ devtool.func 2003/01/06 19:04:56 1.2 @@ -1,6 +1,6 @@ ## ## devtool.func -- Development Tool Functions -## Copyright (c) 2001-2002 Ralf S. Engelschall +## Copyright (c) 2001-2002 Ralf S. Engelschall ## devtool_require () { Index: ossp-pkg/sio/list.h RCS File: /v/ossp/cvs/ossp-pkg/sio/list.h,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/sio/list.h,v' 2>/dev/null --- list.h 2002/12/18 14:58:29 1.6 +++ list.h 2003/01/06 19:04:56 1.7 @@ -1,13 +1,11 @@ /* -** OSSP sio -- Stream I/O -** Copyright (c) 2002 The OSSP Project -** Copyright (c) 2002 Cable & Wireless Deutschland -** Copyright (c) 2002 Ralf S. Engelschall -** Copyright (c) 2002 Michael van Elst +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall ** -** This file is part of OSSP sio, an abstract data type of -** a pair of half-duplex data pipes which can be found at -** http://www.ossp.org/pkg/lib/sio/. +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/sio-config.in RCS File: /v/ossp/cvs/ossp-pkg/sio/sio-config.in,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/sio-config.in,v' 2>/dev/null --- sio-config.in 2002/12/18 15:38:49 1.1 +++ sio-config.in 2003/01/06 19:04:56 1.2 @@ -1,14 +1,12 @@ #!/bin/sh ## ## OSSP sio - Stream I/O -## Copyright (c) 2002 Ralf S. Engelschall -## Copyright (c) 2002 The OSSP Project -## Copyright (c) 2002 Cable & Wireless Deutschland -## Copyright (c) 2002 Michael van Elst +## Copyright (c) 2002-2003 Cable & Wireless Deutschland +## Copyright (c) 2002-2003 The OSSP Project +## Copyright (c) 2002-2003 Ralf S. Engelschall ## -## This file is part of OSSP sio, an abstract data type of -## a pair of half-duplex data pipes which can be found at -## http://www.ossp.org/pkg/lib/sio/. +## This file is part of OSSP sio, a layered stream I/O library +## which can be found at http://www.ossp.org/pkg/lib/sio/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/sio.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio.c,v rcsdiff -q -kk '-r1.19' '-r1.20' -u '/v/ossp/cvs/ossp-pkg/sio/sio.c,v' 2>/dev/null --- sio.c 2002/12/18 15:51:35 1.19 +++ sio.c 2003/01/06 19:04:56 1.20 @@ -1,11 +1,11 @@ /* -** OSSP sio -- stream I/O -** Copyright (c) 2002 The OSSP Project -** Copyright (c) 2002 Cable & Wireless Deutschland -** Copyright (c) 2002 Ralf S. Engelschall -** Copyright (c) 2002 Michael van Elst +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall ** -** This file is part of OSSP sio, a library implementing layered I/O +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/sio.h RCS File: /v/ossp/cvs/ossp-pkg/sio/sio.h,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/sio/sio.h,v' 2>/dev/null --- sio.h 2002/11/29 13:03:40 1.9 +++ sio.h 2003/01/06 19:04:56 1.10 @@ -1,11 +1,11 @@ /* -** OSSP sio -- Stream I/O -** Copyright (c) 2002 The OSSP Project -** Copyright (c) 2002 Cable & Wireless Deutschland -** Copyright (c) 2002 Ralf S. Engelschall -** Copyright (c) 2002 Michael van Elst +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall ** -** This file is part of OSSP sio, a library implementing layered I/O +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that Index: ossp-pkg/sio/sio.pod RCS File: /v/ossp/cvs/ossp-pkg/sio/sio.pod,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/sio/sio.pod,v' 2>/dev/null --- sio.pod 2002/12/18 14:58:29 1.9 +++ sio.pod 2003/01/06 19:04:56 1.10 @@ -1,13 +1,11 @@ ## ## OSSP sio - Stream I/O -## Copyright (c) 2002 The OSSP Project -## Copyright (c) 2002 Cable & Wireless Deutschland -## Copyright (c) 2002 Ralf S. Engelschall -## Copyright (c) 2002 Michael van Elst +## Copyright (c) 2002-2003 Cable & Wireless Deutschland +## Copyright (c) 2002-2003 The OSSP Project +## Copyright (c) 2002-2003 Ralf S. Engelschall ## -## This file is part of OSSP sio, an abstract data type of -## a pair of half-duplex data pipes which can be found at -## http://www.ossp.org/pkg/lib/sio/. +## This file is part of OSSP sio, a layered stream I/O library +## which can be found at http://www.ossp.org/pkg/lib/sio/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -562,7 +560,7 @@ sio_rc_t XXX_openr(sio_t *sio, al_t *al, void *u) { private_t *my = (private_t *)u; - ... + ... /* cache reference to input assembly line */ my->al_in = al; my->state = INIT; @@ -571,7 +569,7 @@ sio_rc_t XXX_openw(sio_t *sio, al_t *al, void *u) { private_t *my = (private_t *)u; - ... + ... /* cache reference to output assembly line */ my->al_out = al; my->state = INIT; Index: ossp-pkg/sio/sio_bio.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_bio.c,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/sio/sio_bio.c,v' 2>/dev/null --- sio_bio.c 2002/12/18 15:51:02 1.8 +++ sio_bio.c 2003/01/06 19:04:56 1.9 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_bio.c: OpenSSL BIO stage +*/ + #include #include #include @@ -189,7 +219,7 @@ sio_rc_t siobio_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_buffer.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_buffer.c,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/sio/sio_buffer.c,v' 2>/dev/null --- sio_buffer.c 2002/11/29 13:00:18 1.8 +++ sio_buffer.c 2003/01/06 19:04:56 1.9 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_buffer.c: buffer stage +*/ + #include #include #include @@ -21,7 +51,7 @@ sio_rc_t buffer_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_fd.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_fd.c,v rcsdiff -q -kk '-r1.12' '-r1.13' -u '/v/ossp/cvs/ossp-pkg/sio/sio_fd.c,v' 2>/dev/null --- sio_fd.c 2002/11/29 14:50:21 1.12 +++ sio_fd.c 2003/01/06 19:04:56 1.13 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_fd.h: filedescriptor stage +*/ + #include #include #include @@ -32,7 +62,7 @@ sio_rc_t fd_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_hello.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_hello.c,v rcsdiff -q -kk '-r1.12' '-r1.13' -u '/v/ossp/cvs/ossp-pkg/sio/sio_hello.c,v' 2>/dev/null --- sio_hello.c 2002/11/29 14:27:44 1.12 +++ sio_hello.c 2003/01/06 19:04:56 1.13 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_hello.c: hello world stage +*/ + #include #include #include @@ -47,7 +77,7 @@ sio_rc_t hello_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_hole.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_hole.c,v rcsdiff -q -kk '-r1.7' '-r1.8' -u '/v/ossp/cvs/ossp-pkg/sio/sio_hole.c,v' 2>/dev/null --- sio_hole.c 2002/11/29 13:00:18 1.7 +++ sio_hole.c 2003/01/06 19:04:56 1.8 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_hole.c: black hole stage +*/ + #include #include @@ -17,7 +47,7 @@ sio_rc_t hole_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_null.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_null.c,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/sio/sio_null.c,v' 2>/dev/null --- sio_null.c 2003/01/06 16:35:40 1.9 +++ sio_null.c 2003/01/06 19:04:56 1.10 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_null.c: /dev/null stage +*/ + #include #include @@ -19,7 +49,7 @@ sio_rc_t null_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_sa.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_sa.c,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/sio/sio_sa.c,v' 2>/dev/null --- sio_sa.c 2002/11/29 13:00:18 1.6 +++ sio_sa.c 2003/01/06 19:04:56 1.7 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_sa.c: OSSP sa socket I/O stage +*/ + #include #include #include @@ -35,7 +65,7 @@ sio_rc_t saw_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_sillymux.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_sillymux.c,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/sio/sio_sillymux.c,v' 2>/dev/null --- sio_sillymux.c 2002/11/29 15:45:25 1.1 +++ sio_sillymux.c 2003/01/06 19:04:56 1.2 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_sillymux.c: silly multiplexing stage +*/ + #include #include #include @@ -23,7 +53,7 @@ sio_rc_t sillymux_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_sio.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_sio.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sio/sio_sio.c,v' 2>/dev/null --- sio_sio.c 2002/11/29 13:00:19 1.2 +++ sio_sio.c 2003/01/06 19:04:56 1.3 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_sio.c: OSSP sio to OSSP sio stage +*/ + #include #include #include @@ -26,7 +56,7 @@ sio_rc_t siosio_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM; Index: ossp-pkg/sio/sio_test.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_test.c,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/sio/sio_test.c,v' 2>/dev/null --- sio_test.c 2002/11/24 19:36:48 1.5 +++ sio_test.c 2003/01/06 19:04:56 1.6 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_test.c: test suite +*/ + #include #include "al.h" Index: ossp-pkg/sio/sio_zlib.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_zlib.c,v rcsdiff -q -kk '-r1.4' '-r1.5' -u '/v/ossp/cvs/ossp-pkg/sio/sio_zlib.c,v' 2>/dev/null --- sio_zlib.c 2002/12/18 14:58:29 1.4 +++ sio_zlib.c 2003/01/06 19:04:56 1.5 @@ -1,3 +1,33 @@ +/* +** OSSP sio - Stream I/O +** Copyright (c) 2002-2003 Cable & Wireless Deutschland +** Copyright (c) 2002-2003 The OSSP Project +** Copyright (c) 2002-2003 Ralf S. Engelschall +** +** This file is part of OSSP sio, a layered stream I/O library +** which can be found at http://www.ossp.org/pkg/lib/sio/. +** +** 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. +** +** sio_zlib.c: zlib compression stage +*/ + #include #include #include @@ -36,7 +66,7 @@ sio_rc_t zlib_init(sio_t *sio, void **up) { private_t *my; - + my = (private_t *)malloc(sizeof(private_t)); if (my == NULL) return SIO_ERR_MEM;