Index: ossp-pkg/pth/ANNOUNCE RCS File: /v/ossp/cvs/ossp-pkg/pth/ANNOUNCE,v co -q -kk -p'1.14' '/v/ossp/cvs/ossp-pkg/pth/ANNOUNCE,v' | diff -u /dev/null - -L'ossp-pkg/pth/ANNOUNCE' 2>/dev/null --- ossp-pkg/pth/ANNOUNCE +++ - 2024-05-14 09:17:30.520746352 +0200 @@ -0,0 +1,56 @@ + ____ _ _ + | _ \| |_| |__ + | |_) | __| '_ \ ``Only those who attempt + | __/| |_| | | | the absurd can achieve + |_| \__|_| |_| the impossible.'' + + GNU Pth - The GNU Portable Threads + Version 1.4 + + Pth is a very portable POSIX/ANSI-C based library for Unix platforms + which provides non-preemptive priority-based scheduling for multiple + threads of execution (aka "multithreading") inside event-driven + applications. All threads run in the same address space of the server + application, but each thread has its own individual program-counter, + run-time stack, signal mask and errno variable. + + The thread scheduling itself is done in a cooperative way, i.e., the + threads are managed and dispatched by a priority- and event-driven + non-preemptive scheduler. The intention is that this way both better + portability and run-time performance is achieved than with preemptive + scheduling. The event facility allows threads to wait until various + types of internal and external events occur, including pending I/O on + file descriptors, asynchronous signals, elapsed timers, pending I/O + on message ports, thread and process termination, and even results of + customized callback functions. + + Pth also provides an optional emulation API for POSIX.1c threads + ("Pthreads") which can be used for backward compatibility to existing + multithreaded applications. + + Pth 1.4 has an even more extensive support for auto-configuring + the package to work on the different Unix platforms without the + requirement for the end user to manually adjust the package. + Additionally the underlying thread creation and dispatching mechanism + was greatly enhanced and cleaned up, too. With this, version 1.4 now + was successfully built and tested on numerous Unix platforms, ranging + from the major ones like GNU/Linux, FreeBSD, NetBSD, OpenBSD, BSDI, + Solaris, HPUX, Tru64, AIX, IRIX, UnixWare and SCO, to more esoteric + flavors like SINIX, ReliantUNIX, ISC, SCO, NCR, AmigaOS, Rhapsody + (MacOS X), FTX, AUX and Win32/Cygwin. + + Additionally the auto-configuration mechanism allows GNU Pth to + automatically adjusts itself to run also on mostly all remaining Unix + platforms, including ancient versions for which a multi-threading + environment never existed before. This is especially achieved in Pth + by not using any assembly code or platform specific solutions and by + using a very tricky but portable thread creation fallback approach + which will be published in great detail on the USENIX 2000 Annual + Conference this summer. + + http://www.gnu.org/software/pth/ + ftp://ftp.gnu.org/gnu/pth/ + Ralf S. Engelschall + rse@engelschall.com + www.engelschall.com + Index: ossp-pkg/pth/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/pth/ChangeLog,v rcsdiff -q -kk '-r1.568' '-r1.569' -u '/v/ossp/cvs/ossp-pkg/pth/ChangeLog,v' 2>/dev/null --- ChangeLog 2002/10/15 18:24:34 1.568 +++ ChangeLog 2002/10/15 20:34:22 1.569 @@ -13,15 +13,15 @@ of just the user-visible and/or major changes please have a look at the NEWS file. - _ ____ - / | | ___| - | | |___ \ + _ ____ + / | | ___| + | | |___ \ | |_ ___) | __|_(_)____/____________________________________________________________ Changes between 1.4.1 and 1.5.0 (27-Jan-2002 to xx-Sep-2002) - *) Fixed a long-standing termination bug in pth_exit(3): + *) Fixed a long-standing termination bug in pth_exit(3): The event handler of pth_exit(3) didn't let pth_exit(3) finish if there were any threads on the "dead queue" (where non-detached terminated threads are put). Instead it re-entered the scheduler @@ -36,7 +36,7 @@ implementation. [Jonathan Schilling ] - *) Add #define _PTHREAD_T to pthread.h to guard under SCO UnixWare 7 + *) Add #define _PTHREAD_T to pthread.h to guard under SCO UnixWare 7 and OpenUNIX 8. [Jonathan Schilling ] @@ -58,12 +58,12 @@ Switched to Autoconf 2.52 and Libtool 1.4.2 environment. [Ralf S. Engelschall] - _ _ _ - / || || | - | || || |_ + _ _ _ + / || || | + | || || |_ | ||__ _| - __|_(_) |_|_____________________________________________________________ - + __|_(_) |_|_____________________________________________________________ + Changes between 1.4.0 and 1.4.1 (24-Mar-2001 to 27-Jan-2002) *) Internally make sure an invalid file-descriptor (integer not @@ -74,13 +74,13 @@ if an fd in the "struct pollfd" is invalid. [Ralf S. Engelschall, Archie Cobbs ] - *) Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. + *) Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. [Archie Cobbs ] *) Fixed typos in manual page. - [Michael Schloh v. Bennewitz , + [Michael Schloh v. Bennewitz , Takashi Ishihara ] - + *) For portability reasons changed definition of PTH_EXT_SFIO to 0/1 instead of FALSE/TRUE because some external definitions use a casted value and hence make trouble on plain #if constructs. @@ -97,7 +97,7 @@ PTH_ATTR_JOINABLE references in the manual page. [Takashi Ishihara ] - *) Fixed a (not very subtle) bug in pth_writev_ev() that screwed up + *) Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. [Mark Burton ] @@ -136,7 +136,7 @@ [Ralf S. Engelschall, Bill Apt ] *) Added ENOSYS-stubs for pthread_attr_{set,get}guardsize() - to the Pthread API to be more complete with POSIX/SUSv2 specs. + to the Pthread API to be more complete with POSIX/SUSv2 specs. [Ralf S. Engelschall, Bill Apt ] *) Added still missing soft system call mapping to Pth and Pthread @@ -151,11 +151,11 @@ [Archie Cobbs ] *) Added `#define _BITS_SIGTHREAD_H' to pthread.h to avoid inclusion - of bits/sigthread.h (from signal.h) on Linux running glibc6 2.2. + of bits/sigthread.h (from signal.h) on Linux running glibc6 2.2. [Tomas Pihl ] *) Added support to Makefile.in for DESTDIR variable. This allows - easier rolling of installation tarballs (for instance from within + easier rolling of installation tarballs (for instance from within RPM or similar facilities) by using "make install DESTDIR=/tmp/pth". [Brad Smith , Ralf S. Engelschall] @@ -201,7 +201,7 @@ *) Fixed (unused) pth_time_mul() function: operator & replaced by % [Tim Harris ] - + *) Use --disable-lock for ltconfig. [Ralf S. Engelschall] @@ -219,7 +219,7 @@ *) Upgraded rse-pmt.ps paper to latest version as it was published on USENIX 2000. [Ralf S. Engelschall] - + *) Stack boundary fixes for Interactive Unix support (--with-mctx-dsp=sjljisc). This allows one also to use this variant for Interix on Window-NT (a POSIX.1 compliant subsystem). @@ -278,7 +278,7 @@ [Ralf S. Engelschall] *) Added a RPM spec file pth.spec which allows one to build RPM - packages directly from the Pth distribution tarball through a + packages directly from the Pth distribution tarball through a simple `rpm -tb pth-1.X.Y.tar.gz' call. [Daniel Richard G. ] @@ -293,7 +293,7 @@ not all users have /sbin in their $PATH. [Jeff Trawick ] - *) Added eight new I/O functions pth_{recv,recvfrom,send,sendto}[_ev](3) + *) Added eight new I/O functions pth_{recv,recvfrom,send,sendto}[_ev](3) which correspond to the counterparts in UNIX98 (SUSv2). [Ralf S. Engelschall] @@ -318,36 +318,36 @@ Changes between 1.3.6 and 1.3.7 (01-Jul-2000 to 29-Jul-2000) - *) Backport from GNU Pth 1.4a3: + *) Backport from GNU Pth 1.4a3: Upgraded to GNU shtool 1.5.1. This fixes especially the compilation problems under Solaris which were caused by a too unportable `shtool version' command from 1.5.0. [Ralf S. Engelschall] - *) Backport from GNU Pth 1.4a3: + *) Backport from GNU Pth 1.4a3: Fixed (unused) pth_time_mul() function: operator & replaced by % [Tim Harris ] Changes between 1.3.5 and 1.3.6 (17-Apr-2000 to 01-Jul-2000) - *) Backport from GNU Pth 1.4a2: + *) Backport from GNU Pth 1.4a2: Upgraded to GNU Shtool 1.5.0 [Ralf S. Engelschall] - *) Backport from GNU Pth 1.4a2: + *) Backport from GNU Pth 1.4a2: Added OS/390 support to config.sub. [Greg Ames ] - *) Backport from GNU Pth 1.4a2: + *) Backport from GNU Pth 1.4a2: Upgraded rse-pmt.ps paper to latest version as it was published on USENIX 2000. [Ralf S. Engelschall] - *) Backport from GNU Pth 1.4a2: + *) Backport from GNU Pth 1.4a2: Upgraded to GNU libtool 1.3.5 [Ralf S. Engelschall] - *) Backport from GNU Pth 1.4a2: + *) Backport from GNU Pth 1.4a2: Allow for convinience reasons pth_usleep() to accept also arguments greater than 1000000. [Harvinder Sawhney ] @@ -364,7 +364,7 @@ *) Merged from Pth 1.4a1: Fixed usage of `volatile' qualifier in pointer context. [Ralf S. Engelschall] - + *) Merged from Pth 1.4a1: Now pth.h and pthread.h include the non-standard header on brain-dead platforms (like AIX) to get the definition of @@ -530,7 +530,7 @@ different), it was decided to kick it out at all. [Ralf S. Engelschall] - *) Make sure pth_connect[_ev]() doesn't block by internally + *) Make sure pth_connect[_ev]() doesn't block by internally switching to non-blocking mode temporarily if necessary. [Chris Leishman , Ralf S. Engelschall] @@ -567,7 +567,7 @@ [Eric Hanchrow ] *) Use SYS__newselect instead of SYS_select under Linux and - --enable-syscall-hard because SYS_select is a dummy stub which + --enable-syscall-hard because SYS_select is a dummy stub which always just returns -1 and errno = EFAULT. [Artem Gr , Ralf S. Engelschall] @@ -642,14 +642,14 @@ [Ralf S. Engelschall] *) Adjusted all copyright messages to include the forthcoming - new year 2000, too. + new year 2000, too. [Ralf S. Engelschall] *) Fixed $DIFS in pth-config.in and pthread-config.in (the tab was lost) and cleaned up pth-config.in a little bit. [Ralf S. Engelschall] - *) Upgraded from GNU libtool 1.3.3 to 1.3.4 + *) Upgraded from GNU libtool 1.3.3 to 1.3.4 and from GNU shtool 1.4.6 to 1.4.7. [Ralf S. Engelschall] @@ -746,7 +746,7 @@ *) Backport from Pth 1.3b1: Use SYS__newselect instead of SYS_select under Linux and - --enable-syscall-hard because SYS_select is a dummy stub which + --enable-syscall-hard because SYS_select is a dummy stub which always just returns -1 and errno = EFAULT. [Artem Gr , Ralf S. Engelschall] @@ -758,7 +758,7 @@ Added a workround in Makefile.in (replaced "rm -r" with "rm" + "rmdir") for brain-dead AmigaOS. [Kriton Kyrimis ] - + *) Backport from Pth 1.3a5: Fixed example in Pth manual page: peer_len wasn't initialized. [Sami Niemi , Ralf S. Engelschall] @@ -789,7 +789,7 @@ [Igor A. Minyukoff, Ralf S. Engelschall] *) Backport from Pth 1.3a2: - Upgraded from GNU libtool 1.3.3 to 1.3.4 + Upgraded from GNU libtool 1.3.3 to 1.3.4 and from GNU shtool 1.4.6 to 1.4.7. [Ralf S. Engelschall] @@ -804,7 +804,7 @@ Fixed return code semantics for error situation in both pth_write(3) and pth_writev(3). [Rob Quinn , Ralf S. Engelschall] - + *) Backport from Pth 1.3a1: Changed AC_CHECK_STRUCTATTR macro from a too weak AC_TRY_EGREP to a AC_TRY_LINK based approach to make sure the ss_sp/ss_base checks do not Index: ossp-pkg/pth/HACKING RCS File: /v/ossp/cvs/ossp-pkg/pth/HACKING,v rcsdiff -q -kk '-r1.14' '-r1.15' -u '/v/ossp/cvs/ossp-pkg/pth/HACKING,v' 2>/dev/null --- HACKING 2002/09/12 09:02:04 1.14 +++ HACKING 2002/10/15 20:34:22 1.15 @@ -1,7 +1,7 @@ ____ _ _ | _ \| |_| |__ | |_) | __| '_ \ - | __/| |_| | | | ``Real hackers can write assembly + | __/| |_| | | | ``Real hackers can write assembly |_| \__|_| |_| code in any language.'' GNU Pth - The GNU Portable Threads @@ -87,7 +87,7 @@ USERS ................. List of packages utilizing Pth acconfig.h ............ Autoconf header (the input for pth_acdef.h.in) - acheader.m4 ........... Autoconf macros for use with autoheader + acheader.m4 ........... Autoconf macros for use with autoheader aclocal.m4 ............ Autoconf macros (for configure) config.guess .......... Autoconf platform guessing tool (part I) config.param .......... Autoconf command line parameter collections Index: ossp-pkg/pth/HISTORY RCS File: /v/ossp/cvs/ossp-pkg/pth/HISTORY,v rcsdiff -q -kk '-r1.10' '-r1.11' -u '/v/ossp/cvs/ossp-pkg/pth/HISTORY,v' 2>/dev/null --- HISTORY 2002/01/27 13:16:20 1.10 +++ HISTORY 2002/10/15 20:34:22 1.11 @@ -1,14 +1,14 @@ ____ _ _ | _ \| |_| |_ - | |_) | __| '_ \ + | |_) | __| '_ \ | __/| |_| | | | ``Release early and often.'' |_| \__|_| |_| -- Eric S. Raymond - + GNU Pth - The GNU Portable Threads HISTORY ======= - + The following list provides an overview of the released GNU Pth versions and this way shows its history and evolution. Index: ossp-pkg/pth/INSTALL RCS File: /v/ossp/cvs/ossp-pkg/pth/INSTALL,v rcsdiff -q -kk '-r1.31' '-r1.32' -u '/v/ossp/cvs/ossp-pkg/pth/INSTALL,v' 2>/dev/null --- INSTALL 2002/01/30 13:07:08 1.31 +++ INSTALL 2002/10/15 20:34:22 1.32 @@ -133,7 +133,7 @@ sjlje ... setjmp(3)/longjmp(3) [emulated = plus sigprocmask(2)] sjljlx .. setjmp(3)/longjmp(3), specific for anchient Linux version sjljisc . setjmp(3)/longjmp(3), specific for Interactive Unix (ISC) - sjljw32 . setjmp(3)/longjmp(3), specific for Win32/CygWin + sjljw32 . setjmp(3)/longjmp(3), specific for Win32/CygWin --with-mctx-stk=ID [EXPERTS ONLY] This forces Pth to use a particular machine context stack setup @@ -214,5 +214,5 @@ for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to - the location of the site script. + the location of the site script. Index: ossp-pkg/pth/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/pth/Makefile.in,v rcsdiff -q -kk '-r1.146' '-r1.147' -u '/v/ossp/cvs/ossp-pkg/pth/Makefile.in,v' 2>/dev/null --- Makefile.in 2002/01/30 13:15:33 1.146 +++ Makefile.in 2002/10/15 20:34:22 1.147 @@ -45,7 +45,7 @@ mandir = @mandir@ datadir = @datadir@ -DESTDIR = +DESTDIR = ## ## ____ TOOL DEFINITIONS ___________________________________________ Index: ossp-pkg/pth/THANKS RCS File: /v/ossp/cvs/ossp-pkg/pth/THANKS,v rcsdiff -q -kk '-r1.85' '-r1.86' -u '/v/ossp/cvs/ossp-pkg/pth/THANKS,v' 2>/dev/null --- THANKS 2002/09/24 14:52:49 1.85 +++ THANKS 2002/10/15 20:34:22 1.86 @@ -74,7 +74,7 @@ o Giwon On o Takeshi OTOFUJI o Kent Overstreet - o Staehli Patrik + o Staehli Patrik o Pete o Michael Petuschak o Tomas Pihl Index: ossp-pkg/pth/USERS RCS File: /v/ossp/cvs/ossp-pkg/pth/USERS,v co -q -kk -p'1.4' '/v/ossp/cvs/ossp-pkg/pth/USERS,v' | diff -u /dev/null - -L'ossp-pkg/pth/USERS' 2>/dev/null --- ossp-pkg/pth/USERS +++ - 2024-05-14 09:17:30.568338881 +0200 @@ -0,0 +1,32 @@ + ____ _ _ + | _ \| |_| |_ + | |_) | __| '_ \ + | __/| |_| | | | ``DejaGNU: The strong feeling that there + |_| \__|_| |_| is already a GNU-tool for your problem.'' + + GNU Pth - The GNU Portable Threads + + USERS + ===== + + This is a list of software packages known to utilize GNU Pth. + If you know more, please drop pth-users@gnu.org a quick note. Thanks. + + __Used API__ + Package_____ Version____ pth pthread _URL______________________________ + OpenLDAP 2.0-dev yes yes http://www.openldap.org/ + Jabber 0.9 yes yes http://www.jabber.org/ + PHP 4.0b4 yes yes http://www.php.net/ + NewKRN 0.1 yes no http://ultra7.unl.edu.ar/newkrn/ + LIQC 0.76 no yes http://www.licq.com/ + MRT 2.2.1 no yes http://www.mrtd.net/ + Apache 2.0-dev no yes http://www.apache.org/ + MySQL 3.22.32 no yes http://www.mysql.com/ + pidentd 3.1a14 no yes ftp://ftp.lysator.liu.se/pub/unix/ident/servers/ + Perl 5.005_03 no yes http://www.perl.com/ + Python 1.5.2 no yes http://www.python.org/ + gFTP 2.0.5a no yes http://gftp.seul.org/ + NakenChat 1.10 no yes http://home.i1.net/~naken/nakenchat/ + APE 1.1.3 no yes http://www.voxilla.org/projects/projape.html + Threads 2.0 no yes http://user.tninet.se/~dpn659b/threads.html + Index: ossp-pkg/pth/aclocal.m4 RCS File: /v/ossp/cvs/ossp-pkg/pth/aclocal.m4,v rcsdiff -q -kk '-r1.95' '-r1.96' -u '/v/ossp/cvs/ossp-pkg/pth/aclocal.m4,v' 2>/dev/null --- aclocal.m4 2002/07/01 12:54:54 1.95 +++ aclocal.m4 2002/10/15 20:34:22 1.96 @@ -23,8 +23,8 @@ dnl ## aclocal.m4: Pth Autoconf macros dnl ## dnl # ``"Reuse an expert's code" is the right - dnl # advice for most people. But it's a useless - dnl # advice for the experts writing the code + dnl # advice for most people. But it's a useless + dnl # advice for the experts writing the code dnl # in the first place.' dnl # -- Dan J. Bernstein @@ -331,9 +331,9 @@ #include ],[ long long X = 2, Y = 1, Z; - Z = X / Y; + Z = X / Y; ], - ac_cv_type_longlong=yes, + ac_cv_type_longlong=yes, ac_cv_type_longlong=no )dnl ])dnl @@ -350,9 +350,9 @@ #include ],[ long double X = 2, Y = 1, Z; - Z = X / Y; + Z = X / Y; ], - ac_cv_type_longdouble=yes, + ac_cv_type_longdouble=yes, ac_cv_type_longdouble=no )dnl ])dnl Index: ossp-pkg/pth/config.param RCS File: /v/ossp/cvs/ossp-pkg/pth/config.param,v rcsdiff -q -kk '-r1.17' '-r1.18' -u '/v/ossp/cvs/ossp-pkg/pth/config.param,v' 2>/dev/null --- config.param 2002/01/27 11:03:40 1.17 +++ config.param 2002/10/15 20:34:22 1.18 @@ -28,7 +28,7 @@ common { } -# build for testing +# build for testing # (done on all testing platforms) test { --prefix=/tmp/pth Index: ossp-pkg/pth/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/pth/configure.ac,v rcsdiff -q -kk '-r1.4' '-r1.5' -u '/v/ossp/cvs/ossp-pkg/pth/configure.ac,v' 2>/dev/null --- configure.ac 2002/09/04 14:51:56 1.4 +++ configure.ac 2002/10/15 20:34:22 1.5 @@ -579,7 +579,7 @@ AC_SUBST(TEST_PTHREAD) dnl # whether to build against OSSP ex library -AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h, +AC_CHECK_EXTLIB(OSSP ex, ex, __ex_ctx, ex.h, AC_DEFINE(PTH_EX, 1, [define if using OSSP ex in GNU pth])) dnl # whether to build against Sfio library @@ -588,7 +588,7 @@ AC_SUBST(PTH_EXT_SFIO) dnl # whether to build against Dmalloc library -AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h, +AC_CHECK_EXTLIB(Dmalloc, dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(PTH_DMALLOC, 1, [define if using Dmalloc in GNU pth])) dnl ## Index: ossp-pkg/pth/devtool RCS File: /v/ossp/cvs/ossp-pkg/pth/devtool,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/pth/devtool,v' 2>/dev/null --- devtool 2002/01/30 12:54:22 1.1 +++ devtool 2002/10/15 20:34:22 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/pth/devtool.func RCS File: /v/ossp/cvs/ossp-pkg/pth/devtool.func,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/pth/devtool.func,v' 2>/dev/null --- devtool.func 2002/07/01 12:54:54 1.2 +++ devtool.func 2002/10/15 20:34:22 1.3 @@ -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/pth/pth-config.in RCS File: /v/ossp/cvs/ossp-pkg/pth/pth-config.in,v rcsdiff -q -kk '-r1.23' '-r1.24' -u '/v/ossp/cvs/ossp-pkg/pth/pth-config.in,v' 2>/dev/null --- pth-config.in 2002/01/27 11:03:40 1.23 +++ pth-config.in 2002/10/15 20:34:22 1.24 @@ -24,7 +24,7 @@ ## pth-config.in: Pth library build utility ## -DIFS=' +DIFS=' ' prefix="@prefix@" Index: ossp-pkg/pth/pth.pod RCS File: /v/ossp/cvs/ossp-pkg/pth/pth.pod,v rcsdiff -q -kk '-r1.153' '-r1.154' -u '/v/ossp/cvs/ossp-pkg/pth/pth.pod,v' 2>/dev/null --- pth.pod 2002/04/27 11:18:57 1.153 +++ pth.pod 2002/10/15 20:34:22 1.154 @@ -552,8 +552,8 @@ a thread never directly switches to another thread. A thread always yields execution to the scheduler and the scheduler dispatches to the next thread. So a freshly spawned thread has to be kept somewhere until -the scheduler gets a chance to pick it up for scheduling. That is -what the B queue is for. +the scheduler gets a chance to pick it up for scheduling. That is +what the B queue is for. The purpose of the B queue is to support thread joining. When a thread is marked to be unjoinable, it is directly kicked out of the @@ -799,13 +799,13 @@ This sets the attribute field I in I to a value specified as an additional argument on the variable argument list. The following attribute I and argument pairs can -be used: +be used: PTH_ATTR_PRIO int PTH_ATTR_NAME char * PTH_ATTR_JOINABLE int PTH_ATTR_CANCEL_STATE unsigned int - PTH_ATTR_STACK_SIZE unsigned int + PTH_ATTR_STACK_SIZE unsigned int PTH_ATTR_STACK_ADDR char * =item int B(pth_attr_t I, int I, ...); @@ -1644,7 +1644,7 @@ This is a variant of the 4.2BSD connect(2) function. It establishes a connection on a socket I to target specified in I and I. -The difference between connect(2) and pth_connect(3) is that +The difference between connect(2) and pth_connect(3) is that pth_connect(3) suspends only the execution of the current thread and not the whole process. For more details about the arguments and return code semantics see connect(2). Index: ossp-pkg/pth/pth.spec RCS File: /v/ossp/cvs/ossp-pkg/pth/pth.spec,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/pth/pth.spec,v' 2>/dev/null --- pth.spec 2002/01/27 16:14:02 1.9 +++ pth.spec 2002/10/15 20:34:22 1.10 @@ -20,7 +20,7 @@ ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ## USA, or contact Ralf S. Engelschall . ## -## pth.spec: RPM specification +## pth.spec: RPM specification ## # This is a specification file for the RedHat Package Manager (RPM). Index: ossp-pkg/pth/pth_debug.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_debug.c,v rcsdiff -q -kk '-r1.26' '-r1.27' -u '/v/ossp/cvs/ossp-pkg/pth/pth_debug.c,v' 2>/dev/null --- pth_debug.c 2002/01/27 11:03:40 1.26 +++ pth_debug.c 2002/10/15 20:34:22 1.27 @@ -86,7 +86,7 @@ pth_dumpqueue(fp, "NEW", &pth_NQ); pth_dumpqueue(fp, "READY", &pth_RQ); fprintf(fp, "| Thread Queue RUNNING:\n"); - fprintf(fp, "| 1. thread 0x%lx (\"%s\")\n", + fprintf(fp, "| 1. thread 0x%lx (\"%s\")\n", (unsigned long)pth_current, pth_current->name); pth_dumpqueue(fp, "WAITING", &pth_WQ); pth_dumpqueue(fp, "SUSPENDED", &pth_SQ); Index: ossp-pkg/pth/pth_high.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_high.c,v rcsdiff -q -kk '-r1.83' '-r1.84' -u '/v/ossp/cvs/ossp-pkg/pth/pth_high.c,v' 2>/dev/null --- pth_high.c 2002/01/27 13:15:28 1.83 +++ pth_high.c 2002/10/15 20:34:22 1.84 @@ -152,7 +152,7 @@ for (;;) { /* do a non-blocking poll for the pid */ - while ( (pid = pth_sc(waitpid)(wpid, status, options|WNOHANG)) < 0 + while ( (pid = pth_sc(waitpid)(wpid, status, options|WNOHANG)) < 0 && errno == EINTR) ; /* if pid was found or caller requested a polling return immediately */ @@ -1008,7 +1008,7 @@ /* advance the virtual pointer of a struct iov */ intern void pth_writev_iov_advance(const struct iovec *riov, int riovcnt, size_t advance, - struct iovec **liov, int *liovcnt, + struct iovec **liov, int *liovcnt, struct iovec *tiov, int tiovcnt) { int i; Index: ossp-pkg/pth/pth_lib.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_lib.c,v rcsdiff -q -kk '-r1.49' '-r1.50' -u '/v/ossp/cvs/ossp-pkg/pth/pth_lib.c,v' 2>/dev/null --- pth_lib.c 2002/10/15 18:17:28 1.49 +++ pth_lib.c 2002/10/15 20:34:22 1.50 @@ -88,7 +88,7 @@ pth_attr_set(t_attr, PTH_ATTR_STACK_ADDR, NULL); pth_sched = pth_spawn(t_attr, pth_scheduler, NULL); if (pth_sched == NULL) { - errno_shield { + errno_shield { pth_attr_destroy(t_attr); pth_scheduler_kill(); } @@ -104,7 +104,7 @@ pth_attr_set(t_attr, PTH_ATTR_STACK_ADDR, NULL); pth_main = pth_spawn(t_attr, (void *(*)(void *))(-1), NULL); if (pth_main == NULL) { - errno_shield { + errno_shield { pth_attr_destroy(t_attr); pth_scheduler_kill(); } @@ -130,7 +130,7 @@ /* kill the package internals */ int pth_kill(void) { - if (pth_current != pth_main) + if (pth_current != pth_main) return_errno(FALSE, EPERM); pth_debug1("pth_kill: enter"); pth_thread_cleanup(pth_main); @@ -163,7 +163,7 @@ rc += 1; /* pth_current only */ if (query & PTH_CTRL_GETTHREADS_WAITING) rc += pth_pqueue_elements(&pth_WQ); - if (query & PTH_CTRL_GETTHREADS_SUSPENDED) + if (query & PTH_CTRL_GETTHREADS_SUSPENDED) rc += pth_pqueue_elements(&pth_SQ); if (query & PTH_CTRL_GETTHREADS_DEAD) rc += pth_pqueue_elements(&pth_DQ); @@ -240,8 +240,8 @@ t->prio = pth_current->prio; t->joinable = pth_current->joinable; t->cancelstate = pth_current->cancelstate; - pth_snprintf(t->name, PTH_TCB_NAMELEN, "%s.child@%d=0x%lx", - pth_current->name, (unsigned int)time(NULL), + pth_snprintf(t->name, PTH_TCB_NAMELEN, "%s.child@%d=0x%lx", + pth_current->name, (unsigned int)time(NULL), (unsigned long)pth_current); } else { @@ -432,10 +432,10 @@ abort(); /* not reached! */ } else { - /* - * main thread is special: exit the _process_ - * [double-cast to avoid warnings because of size] - */ + /* + * main thread is special: exit the _process_ + * [double-cast to avoid warnings because of size] + */ pth_kill(); exit((int)((long)value)); abort(); /* not reached! */ Index: ossp-pkg/pth/pth_ring.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_ring.c,v rcsdiff -q -kk '-r1.21' '-r1.22' -u '/v/ossp/cvs/ossp-pkg/pth/pth_ring.c,v' 2>/dev/null --- pth_ring.c 2002/01/27 11:03:41 1.21 +++ pth_ring.c 2002/10/15 20:34:23 1.22 @@ -44,7 +44,7 @@ /* initialize ring; O(1) */ intern void pth_ring_init(pth_ring_t *r) { - if (r == NULL) + if (r == NULL) return; r->r_hook = NULL; r->r_nodes = 0; Index: ossp-pkg/pth/pth_string.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_string.c,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/pth/pth_string.c,v' 2>/dev/null --- pth_string.c 2002/01/27 11:03:41 1.6 +++ pth_string.c 2002/10/15 20:34:23 1.7 @@ -22,7 +22,7 @@ ** ** pth_string.c: Pth replacement string functions */ - /* ``A new release is where old bad + /* ``A new release is where old bad assumptions are replaced by new bad assumptions.'' */ @@ -646,9 +646,9 @@ intern int pth_vsnprintf( - char *str, - size_t count, - const char *fmt, + char *str, + size_t count, + const char *fmt, va_list args) { size_t retlen; Index: ossp-pkg/pth/pthread-config.in RCS File: /v/ossp/cvs/ossp-pkg/pth/pthread-config.in,v rcsdiff -q -kk '-r1.19' '-r1.20' -u '/v/ossp/cvs/ossp-pkg/pth/pthread-config.in,v' 2>/dev/null --- pthread-config.in 2002/01/27 11:03:41 1.19 +++ pthread-config.in 2002/10/15 20:34:23 1.20 @@ -24,7 +24,7 @@ ## pthread-config.in: Pth library build utility [Pthread API] ## -DIFS=' +DIFS=' ' prefix="@prefix@" Index: ossp-pkg/pth/pthread.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pthread.c,v rcsdiff -q -kk '-r1.58' '-r1.59' -u '/v/ossp/cvs/ossp-pkg/pth/pthread.c,v' 2>/dev/null --- pthread.c 2002/10/15 17:23:19 1.58 +++ pthread.c 2002/10/15 20:34:23 1.59 @@ -385,7 +385,7 @@ /* ** CONCURRENCY ROUTINES -** +** ** We just have to provide the interface, because SUSv2 says: ** "The pthread_setconcurrency() function allows an application to ** inform the threads implementation of its desired concurrency Index: ossp-pkg/pth/pthread.pod RCS File: /v/ossp/cvs/ossp-pkg/pth/pthread.pod,v rcsdiff -q -kk '-r1.22' '-r1.23' -u '/v/ossp/cvs/ossp-pkg/pth/pthread.pod,v' 2>/dev/null --- pthread.pod 2002/01/27 11:03:41 1.22 +++ pthread.pod 2002/10/15 20:34:23 1.23 @@ -28,7 +28,7 @@ ## Copyright (C) 1997 The Open Group, All Rights Reserved. ## ## - # ``The trouble with computers is that they + # ``The trouble with computers is that they # do what you tell them, not what you want.'' =pod Index: ossp-pkg/pth/striptease.mk RCS File: /v/ossp/cvs/ossp-pkg/pth/striptease.mk,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/pth/striptease.mk,v' 2>/dev/null --- striptease.mk 2002/01/27 11:03:41 1.6 +++ striptease.mk 2002/10/15 20:34:23 1.7 @@ -22,7 +22,7 @@ ## ## striptease.mk: Pth Makefile input for stripped down version ## - # ``The "micro" in "microkernel" was + # ``The "micro" in "microkernel" was # originally intended to mean 'small': # Believe it or not.'' -- Ripley @SET_MAKE@ Index: ossp-pkg/pth/striptease.pl RCS File: /v/ossp/cvs/ossp-pkg/pth/striptease.pl,v rcsdiff -q -kk '-r1.13' '-r1.14' -u '/v/ossp/cvs/ossp-pkg/pth/striptease.pl,v' 2>/dev/null --- striptease.pl 2002/01/27 10:59:41 1.13 +++ striptease.pl 2002/10/15 20:34:23 1.14 @@ -22,7 +22,7 @@ ## ## striptease.pl: Strip down the Pth source tree to its minimum ## - # ``Mobius strippers never + # ``Mobius strippers never # show you their back side.'' require 5.000; Index: ossp-pkg/pth/test_philo.c RCS File: /v/ossp/cvs/ossp-pkg/pth/test_philo.c,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/pth/test_philo.c,v' 2>/dev/null --- test_philo.c 2002/01/27 11:03:41 1.18 +++ test_philo.c 2002/10/15 20:34:23 1.19 @@ -181,7 +181,7 @@ /* spawn the philosopher threads */ for (i = 0; i < PHILNUM; i++) { if (((tab->tid)[i] = - pth_spawn(PTH_ATTR_DEFAULT, philosopher, + pth_spawn(PTH_ATTR_DEFAULT, philosopher, &((tab->self)[i]))) == NULL) { perror("pth_spawn"); exit(1);