Subject: CVS commit: pkgsrc/devel/pth
To: None <pkgsrc-changes@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: pkgsrc-changes
Date: 10/14/2002 14:49:57
Module Name:	pkgsrc
Committed By:	skrll
Date:		Mon Oct 14 11:49:57 UTC 2002

Modified Files:
	pkgsrc/devel/pth: Makefile distinfo
	pkgsrc/devel/pth/patches: patch-ab patch-ac patch-ad patch-ae patch-af
	    patch-ag
Added Files:
	pkgsrc/devel/pth/patches: patch-ah patch-ai

Log Message:
Various updates and fixes that I've collected recently:

	* 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.


To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 pkgsrc/devel/pth/Makefile
cvs rdiff -r1.7 -r1.8 pkgsrc/devel/pth/distinfo
cvs rdiff -r1.13 -r1.14 pkgsrc/devel/pth/patches/patch-ab
cvs rdiff -r1.1 -r1.2 pkgsrc/devel/pth/patches/patch-ac \
    pkgsrc/devel/pth/patches/patch-ad pkgsrc/devel/pth/patches/patch-ae \
    pkgsrc/devel/pth/patches/patch-af
cvs rdiff -r1.2 -r1.3 pkgsrc/devel/pth/patches/patch-ag
cvs rdiff -r0 -r1.1 pkgsrc/devel/pth/patches/patch-ah \
    pkgsrc/devel/pth/patches/patch-ai

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.