summaryrefslogtreecommitdiff
path: root/devel/pth
AgeCommit message (Collapse)AuthorFilesLines
2003-05-06Drop trailing whitespace. Ok'ed by wiz.jmmv1-5/+5
2003-05-02Update to 2.0.0, supplied by skrll@netbsd.wiz14-901/+372
Changes: *) Make pth_poll(3) more compliant to POSIX.1-2001/SUSv3 poll(2). *) Make pth_select(3) more compliant to POSIX.1-2001/SUSv3 select(2). *) Replaced pth_event_occurred() with pth_event_status(). *) Add Autoconf option --with-fdsetsize=NUM for enlarging FD_SETSIZE. *) Added thread attribute PTH_ATTR_DISPATCHES. *) Added sub-API pth_uctx_* for user-space context switching. *) Add a Pth variant of the new POSIX pselect(2) function. *) Internally cleaned up the error handling macros. *) Added POSIX-compliant sanity checks for bad fds. *) Added pth_nanosleep() function. *) Allow a NULL name for pth_msgport_create() *) Completely rewrote the "hard syscall mapping". *) Added support to pth_poll(3) for POLLD{RD,WR}{NORM,BAND}. *) Fixed a long-standing termination bug in pth_exit(3). *) Upgraded to Autoconf 2.57, Shtool 1.6.2 and Libtool 1.4.3. *) Add optional support for OSSP ex based exception handling.
2003-02-04PTH_SYSCALL_HARD's fork() replacement didn't work on archs where thedrochner3-10/+19
system call's return values are postprocessed by the libc stub (eg alpha). Change pth to call libc's internal _fork(). This is only available since NetBSD-1.5, older releases are SOL -- sorry, but we need something working for 1.6.1. We should audit all the PTH_SYSCALL_HARD plugins whether they neglect libc assembler magic... bump PKGREVISION
2002-12-24Unused.wiz1-59/+0
2002-12-10add a commented out switch to build a debugging versiondrochner1-1/+2
2002-11-26Improve error handling. Patches backported from pth -current.skrll5-27/+187
PKGREVISION++ This fixes PR 19162 from Ingolf Steinbach.
2002-11-01Bump the pth dependency to pth>=1.4.1nb5, which ensures that we have thejlam2-4/+4
latest set of fixes and changes to pth to make it look more like a real pthreads package.
2002-10-23a serious bug was fixed, so bump PKGREVISIONdrochner1-2/+2
(suggested by Thomas Klausner and Martti Kuparinen)
2002-10-23fix botch in a fd_set boundary check which broke uses ofdrochner2-19/+19
select(0,0,0,0,&to) as finegrained delay
2002-10-21Correct the logic around --enable-syscall-hardskrll1-6/+4
Bump PKGREVISION++ Thanks to Rhialto <rhialto at azenomei at knuffel at net> for pointing this out. This will probably fix the xmms problems as well.
2002-10-18Fix checks for disabling syscall-hard and properly emit a message for thatjlam1-4/+7
case.
2002-10-14Arrrgh. Missed in previous commit.skrll1-0/+30
2002-10-14Various updates and fixes that I've collected recently:skrll10-1345/+596
* Provide nanosleep(2) and usleep(3) wrappers. * Make sure sigprocmask syscalls are used in pth_system. * "Fix" FD_SET handling in the select(2) wrapper so that mismatches between pth FD_SETSIZE and user program FD_SETSIZE don't cause problems. * Update poll(2) wrapper to be more poll(2) like - in particular never return EINVAL for bad file descriptors Thanks to Matthias Drochner for this. * Improve error handling in connect(2) wrapper so that we don't confuse the scheduler. This fixes pkg/17944 from Christian Biere (ChristianBiere at gmx dot de) * Introduce autoconf handling of the value of FD_SETSIZE used by pth. If we have to hard code a value we might as well make it easy to change and make the inclusion of pth.h or pthread.h by a program that re-defines FD_SETSIZE an error. Inspired by pkg/17944. * Fix a compiler warning that I introduced a little while ago. * Disable --enable-syscall-hard for non-NetBSD platforms and for pre-1.6/m68k. Make a note of the PRs that need fixing. This closes pkg/18236 from Klaus Heinz (k dot heinz dot sep dot zwei at onlinehome dot de) The FD_SETSIZE problems would be handled better if pth was changed to use poll(2), and not select(2), internally.
2002-10-13We still need this a bit longer.wiz1-0/+59
2002-10-13Unused.wiz1-59/+0
2002-08-29Fix merge botch after buildlink2 merge.skrll1-5/+1
2002-08-25Merge changes in packages from the buildlink2 branch that havejlam5-5/+30
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
2002-08-01Apply a fix to the initialization routine so that make test works withskrll3-6/+86
--enable-syscall-hard. Allow -O2 optimisation of i386 - the reason this was removed is somewhat bogus. Bump PKGREVISION.
2002-08-01Really bump the PKGREVISION this time.jlam1-1/+2
2002-08-01Merge changes to enable hard sycalls from devel/pth-syscall into devel/pth.jlam2-1/+6
Bump the PKGREVISION to 1.
2002-07-28Use canonical pkgsrc config.guess and config.sub to build on Darwin.schmonz1-1/+3
2002-07-24Relax the CONFLICT with pth-syscall now that Al has changed pth-syscall.skrll1-2/+2
2002-05-311.4.0 incremented major (Makefile v1.34), bump buildlink depends to 1.4.0.grant1-2/+2
reported by Kevin P. Neal in pkg/16820.
2002-05-29Add a new variation on the pth package that has --enable-syscall-hardskrll1-2/+2
as part of the configure options. A pth with this option enabled provides some semblance of pre-emptive threads - enough for things like xmms and knode to actually work. Add the necessary glue to pthread.buildlink.mk and appropriate CONFLICT into pth. It is hoped that the pkgs that currently use -D_POSIX_THREAD_SYSCALL_SOFT=1 will be tested against pth-syscall and changed to use it. The goal is to be able to add --enable-syscall-hard to devel/pth and retire pth-syscall. Baby steps...
2002-03-24update to 1.4.1 from 1.4 This is a bugfix release.dmcmahill3-384/+795
- Internally make sure an invalid file-descriptor (integer not between 0 and (FD_SETSIZE-1) does not lead to any segfaults or other undefined behaviour. Instead an error is returned and errno is set to EBADF, similar to what the OS functions do. Especially pth_poll() now return with this error (instead of skipping the fd) if an fd in the "struct pollfd" is invalid. [Ralf S. Engelschall, Archie Cobbs <archie@packetdesign.com>] - Correctly support PTH_FDMODE_NONBLOCK in pth_connect and pth_accept. [Archie Cobbs <archie@packetdesign.com>] - Fixed typos in manual page. [Michael Schloh v. Bennewitz <michael.schloh@de.cw.net>, Takashi Ishihara <tishihara@ucdavis.edu>] - 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. [Staehli Patrik <patrik.staehli@siemens.ch>] - Fixed return value (number of occurred events) of pth_wait(). [David Dureau <david.dureau@cea.fr>] - Replaced thread-unsafe usage of a static struct iovec in pth_writev_ev() with a thread-safe stack/heap-based solution. [Ralf S. Engelschall, Mark Burton <markb@ordern.com>] - Replaced antiquated PTH_FLAG_NOJOIN references with the correct PTH_ATTR_JOINABLE references in the manual page. [Takashi Ishihara <tishihara@ucdavis.edu>] - Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. [Mark Burton <markb@ordern.com>] - Fixed static initializers PTH_BARRIER_INIT and PTH_COND_INIT. [Shawn Wagner <shawnw@speakeasy.org>] - Typo fixes in pth.pod [<collver@linuxfreemail.com>] - Upgraded to GNU shtool, version 1.5.4. [Ralf S. Engelschall] - Fixed "make striptease": pth_string.c was not included and some commands which were removed at all (and this way causes syntax errors) will be now correctly commented out with ":" commands. [Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>]
2002-03-21add missing build dependency to the test targetdmcmahill1-2/+2
2002-02-12The check for -O2 in the last commit didn't catch the possibility ofmrauch1-3/+3
multiple flags in ${CFLAGS}. Fixed.
2002-02-12Disable optimization for i386 because it can cause segfaults with amrauch1-1/+5
completely thrashed stack.
2001-11-01Move pkg/ files into package's toplevel directoryzuntum2-1/+1
2001-10-03Substitute the real config script for the config wrapper script injlam1-1/+5
installed files. We don't want buildlink references to escape into the install directory.
2001-09-27Mechanical changes to 375 files to change dependency patterns of the formjlam1-2/+2
foo-* to foo-[0-9]*. This is to cause the dependencies to match only the packages whose base package name is "foo", and not those named "foo-bar". A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net. Also change dependency examples in Packages.txt to reflect this.
2001-08-17If USE_CONFIG_WRAPPER is defined (implied by USE_BUILDLINK_ONLY), thenjlam1-2/+4
set FOO_CONFIG=${BUILDLINK_CONFIG_WRAPPER.foo} in both CONFIGURE_ENV and MAKE_ENV. We remove the check for GNU_CONFIGURE because if a package Makefile includes the buildlink.mk file, then it most likely wants to use the config script wrappers as well. Change suggested by Hubert Feyrer (hubertf) and Tomasz Luchowski (zuntum).
2001-07-27Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the defaultjlam1-1/+2
installation directory in case the package isn't installed.
2001-07-20Mechanical changes to buildlink.mk files to use EVAL_PREFIX to setjlam1-4/+4
BUILDLINK_PREFIX.<pkgname>. This allows buildlink to find X11BASE packages regardless of whether they were installed before or after xpkgwedge was installed. Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-02Define PTH_CONFIG and PTHREAD_CONFIG and pass them to CONFIGURE_ENV ifjlam1-1/+8
USE_CONFIG_WRAPPER is defined.
2001-07-01Move inclusion of bsd.buildlink.mk to start of file.jlam1-3/+3
2001-06-23Generalize how the dependency pattern may be specified. Instead of justjlam1-4/+5
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify the dependency pattern as FOO_DEPENDS=foo>=1.0. This allows things like JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib. Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-19Mark as USE_BUILDLINK_ONLY.jlam1-1/+2
2001-06-18Add libpthread.* to BUILDLINK_FILES, and create buildlink config wrappersjlam1-1/+12
for pth-config and pthread-config.
2001-06-15buildlink.mk file for pth for use by other packagesjlam1-0/+33
2001-05-14When --enable-syscall-hard is specified actually provide wrappers for allskrll6-6/+1183
the syscalls that are documented as having wrappers. The ones missing were wait4 and sigprocmask. Patches have been sent to package maintainer.
2001-04-21Move to sha1 digests, and/or add distfile sizes.wiz1-1/+1
2001-04-18Add distfile size, use sha1 digestagc1-1/+2
2001-04-17+ move the distfile digest/checksum value from files/md5 to distinfoagc3-7/+5
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-05Update pth to 1.4.0rh4-25/+25
Changes between 1.4a3 and 1.4.0 (29-Jul-2000 to 24-Mar-2001) *) Added PTHREAD_PRIO_XXXX definitions to pthread.h for conformance to the POSIX/SUSv2 Pthread API. *) Implemented the pthread_{set,get}concurrency() API parts of POSIX/SUSv2, although internally we are (allowed to be) free to not do anything based on the requested level. *) Adjusted all pthread_attr_getXXXX() functions to use a "const pthread_attr_t *" as the first argument instead of "pthread_attr_t *" to fully-conform to POSIX/SUSv2. *) Added ENOSYS-stubs for pthread_attr_{set,get}guardsize() to the Pthread API to be more complete with POSIX/SUSv2 specs. *) Added still missing soft system call mapping to Pth and Pthread APIs for functions recv(2), send(2), recvfrom(2) and sendto(2). *) Upgraded to GNU shtool 1.5.2 *) Fixed an even-manager bug which causes a thread that calls pth_nap() to never woke up if the only elapsed event was a timer. *) Added `#define _BITS_SIGTHREAD_H' to pthread.h to avoid inclusion of bits/sigthread.h (from signal.h) on Linux running glibc6 2.2. *) Added support to Makefile.in for DESTDIR variable. This allows easier rolling of installation tarballs (for instance from within RPM or similar facilities) by using "make install DESTDIR=/tmp/pth". *) Implemented a pth_system(3) function which is a thread-aware clone of the POSIX system(2) function. *) Fixed typos in pth.pod: "fd" -> "s" for pth_connect/pth_accept. *) Make --disable-shared the default under Solaris-2.[78]/x86, because it is known to segfault sporadically if Pth is built as a DSO. As traces showed, it is not a Pth problem, but it looks like a problem with the dynamic linker on Solaris/x86. The same Solaris versions on SPARC don't have this problem. *) Updated copyright messages to cover new year 2001. *) Fixed quoting in configure.in *) Let pth_sleep(3) and pth_usleep(3) immediately return if an argument of zero is given. *) Fixed pthread.pod: the newer pod2man versions seems to dislike embedded comments, so I moved them to the top of the file. *) Changed CVS URL in HACKING document. *) Mention http://www.mail-archive.com/pth-users@gnu.org/ in pth.pod and SUPPORT document. Changes between 1.4a2 and 1.4a3 (01-Jul-2000 to 29-Jul-2000) *) Upgraded to GNU shtool 1.5.1 *) Fixed (unused) pth_time_mul() function: operator & replaced by % *) Use --disable-lock for ltconfig. *) Fixed a few typos in pth.pod. Changes between 1.4a1 and 1.4a2 (16-Apr-2000 to 01-Jul-2000) *) Upgraded to GNU Shtool 1.5.0 *) Added OS/390 support to config.sub. *) Upgraded rse-pmt.ps paper to latest version as it was published on USENIX 2000. *) 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). *) Upgraded to GNU Libtool 1.3.5 *) Fixed config.param parsing: IF is now also allowed on VARIABLE=VALUE lines. *) Allow for convinience reasons pth_usleep() to accept also arguments greater than 1000000. *) Updated HACKING document. *) Fixed warnings in pth_string.c related to va_arg() usage and implicit type conversions. *) Merge from Pth 1.3.5: Fixed the <sys/select.h> checks in Autoconf: the logic was reversed and this way <sys/select.h> wasn't included on platforms were it existed and included where it wasn't present. Changes between 1.3.3 and 1.4a1 (10-Mar-2000 to 16-Apr-2000) *) Added a new feature to config.param: parameters can be extended with ``<space>IF<space><shell-test>''. Then the preceeding parameter is only added to the command line if the <shell-test> returns 0. <shell-test> can be anything which is possible in a Bourne-Shell `if' construct's expression. *) Fixed usage of `volatile' qualifier in pointer context. *) Now check also for -Wno-long-long compiler option under --enable-debug, because pth_string.c contains `long long' stuff. *) Now pth.h and pthread.h include the non-standard <sys/select.h> header on brain-dead platforms (like AIX) to get the definition of fd_set (which is required for the pth_select prototype). *) Fixed auto-configuration for ISC and Win32/Cygwin platforms. *) Removed -L. from $(LDFLAGS) in Makefile.in, because this is not required (libtool already takes care of this). *) Added a RPM spec file pth.spec which allows one to build RPM packages directly from the Pth distribution tarball through a simple `rpm -tb pth-1.X.Y.tar.gz' call. *) Removed the too explicit `-m 644' from the libtool/shtool installation command for libpth.la and instead use a `umask 022'. The reason is because some platforms require the shared libraries to be executable, so we cannot use an explicit mode. But we use the umask to make sure we don't result in world or group writeable files. *) Use full-path /sbin/sysctl in config.guess on FreeBSD because not all users have /sbin in their $PATH. *) Added eight new I/O functions pth_{recv,recvfrom,send,sendto}[_ev](3) which correspond to the counterparts in UNIX98 (SUSv2). *) Replaced for security reasons sprintf() and vsprintf() calls with own pth_snprintf() and pth_vsnprintf() functions from the new pth_string.c source. *) Speeded up pth_ring_t handling by inlining code and by maintaining number of contained nodes explicitly to avoid an O(n) operation when the number of elements are requested. *) Upgraded to GNU shtool 1.4.9
2001-02-16Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.wiz2-2/+2
2001-01-08Make library majors/minors in PLIST updatable from Makefile again.wiz2-9/+11
2001-01-04The way that shared objects were handled in the PLISTs and bsd.pkg.mk wasagc1-3/+7
out of date - it was based on a.out OBJECT_FMT, and added entries in the generated PLISTs to reflect the symlinks that ELF packages uses. It also tried to be clever, and removed and recreated any symbolic links that were created, which has resulted in some fun, especially with packages which use dlopen(3) to load modules. Some recent changes to our ld.so to bring it more into line with other Operating Systems also exposed some cracks. + Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain the ELF symlinks. + Don't mess about with file system entries when handling shared objects in bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will have got it right, and have a much better idea than we do. + Modify PLISTs to contain "ELF symlinks" + On a.out platforms, delete any "ELF symlinks" from the generated PLISTs + On ELF platforms, no extra processing needs to be done in bsd.pkg.mk + Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on a.out platforms + Update the documentation in Packages.txt With many thanks to Thomas Klausner for keeping me honest with this.
2000-10-06Add a "test" target to check that the thread library actually works byjlam1-1/+4
calling the library's own test target.
2000-07-30Update pth to 1.3.7. Changes are: back-ports of bugfixes from the 1.4rh2-5/+5
development branch. This especially upgrades to GNU Shtool 1.5.1 to fix compilation problems under Solaris, which were introduced in 1.3.6.