head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.158 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.156 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.154 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.152 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.150 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.148 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.146 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.144 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.142 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.140 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.138 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.136 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.134 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.132 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.130 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.128 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.126 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.124 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.122 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.120 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.118 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.116 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.114 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.110 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.90 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.112 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.108 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.106 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.104 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.102 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.100 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.98 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.96 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.94 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.92 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.88 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.86 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.84 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.82 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.80 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.78 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.76 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.74 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.72 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.70 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.68 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.66 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.64 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.62 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.60 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.58 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.56 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.54 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.52 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.50 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.48 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.46 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.44 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.42 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.40 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.38 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.36 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.34 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.32 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.30 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.28 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.26 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.24 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.22 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.20 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.18 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.16 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.14 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.12 pkgsrc-2008Q1:1.4.0.10 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.8 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.6 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.4 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.2 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.2.0.2 netbsd-1-6-1-base:1.2 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.4 date 2007.02.18.11.40.10; author wiz; state Exp; branches; next 1.3; 1.3 date 2003.05.02.11.49.48; author wiz; state Exp; branches; next 1.2; 1.2 date 2002.10.14.11.49.56; author skrll; state Exp; branches; next 1.1; 1.1 date 2001.05.14.20.21.20; author skrll; state Exp; branches; next ; desc @@ 1.4 log @Update to 2.0.7: Changes between 2.0.6 and 2.0.7 (22-Nov-2005 to 08-Jun-2006) *) Let AC_CHECK_PTH use "pth-config --libs --all" instead of just "pth-config --libs" to allow it to work under platforms like Solaris where additional libraries are required. [Ralf S. Engelschall] Changes between 2.0.5 and 2.0.6 (05-Oct-2005 to 22-Nov-2005) *) Add a missing "break" in pth_attr.c:pth_attr_ctrl(). [Stefan Schippers ] *) Return an error if pth_kill() is called before pth_init(). [Martin Kraemer ] Changes between 2.0.3 and 2.0.4 (03-Dec-2004 to 18-Feb-2005) *) Fix internal determination of maximum number in a size_t in the string formatter engine. [Ralf S. Engelschall] *) Add quotes around function names for AC_DEFUN in pth.m4 to avoid warnings about "underquoted definitions". [Stephane Loeuillet ] *) Do not insist on writing to the source directory on "make install" in order to more closely follow GNU standards. [Bruno Haible ] *) Remove "*.bak" and "*~" files under "make distclean" instead of "make clean". [Bruno Haible ] Changes between 2.0.2 and 2.0.3 (12-Sep-2004 to 03-Dec-2004) *) Resurrect the old "make striptease" command by fixing the configure run-time in the stripped down source tree and fixing the list of source files. [Ralf S. Engelschall] *) The pth_uctx_save() and pth_uctx_restore() API functions unfortunately were broken by design because they are C _functions_. This leads to one more deadly nesting on the run-time stack which effectively caused the pth_mctx_restore() in pth_uctx_restore() to return to the end of pth_uctx_save() but then the control flow unfortunately returns to the pth_uctx_restore() caller instead of the pth_uctx_save() caller because the call to pth_uctx_restore() had already overwritten the run-time stack position where the original return address for the pth_uctx_save() call was stored. The only workaround would be to #define pth_uctx_save() and pth_uctx_restore() as C _macros_, but this then would require that lots of the GNU Pth internals from pth_mctx.c would have to be exported in the GNU Pth API (which in turn is not acceptable). So, the only consequence is to remove the two functions again from the GNU Pth API. [Ralf S. Engelschall, Stefan Brantschen ] *) Enhance internal pth_mctx_save() if getcontext(3) is used for the machine context saving by better emulating the setjmp(3) style return code semantics. [Ralf S. Engelschall] *) Do not break in pth_msgport_find() if a message port was created with a NULL name. [Ralf S. Engelschall] *) Better error checking in pth_key_xxx() functions. [Ralf S. Engelschall] *) Added PTH_CTRL_FAVOURNEW control which allows the user to disable the favouring of new threads on scheduling to get more strict priority based scheduling behavior. [Ralf S. Engelschall, Vinu V ] Changes between 2.0.1 and 2.0.2 (13-Jul-2004 to 12-Sep-2004) *) Added hard syscall wrappers for send(2) and recv(2). [NetBSD pkgsrc patches] *) Internally handle errors returned from pth_event() in order to pass them upstream to the caller in pth_high.c functions. [Ralf S. Engelschall, NetBSD pkgsrc patches] *) Fix syscall wrapper for sendto(2). [NetBSD pkgsrc patches] *) Use "(char *)NULL" instead of plain "NULL" in last argument to execl(2) to avoid GCC 3.5's "warning: missing sentinel in function call". [Ralf S. Engelschall] *) Workaround Autoconf/m4 problems in pth.m4 by using "m4_define" instead of just "define" and no using m4_undefine at all. [Dr. Andreas Mueller ] *) Avoid side-effects by defining _XOPEN_SOURCE only temporarily for inclusion of instead of permanently. [Graham Nash ] *) Workaround GCC 2.x and 3.5 (3.4 worked fine) macro parsing behaviour by using a pre-declared function pointer type "typedef int (*pth_event_func_t)(void *);" instead of using an inlined "int (*)(void *)". [Ralf S. Engelschall, Robert Anderson ] *) Fixed prototype for pthread_attr_setschedparam(3) from to use a "const struct sched_param *" argument. [Rafael Ávila de Espíndola ] Changes between 2.0.0 and 2.0.1 (17-Feb-2003 to 13-Jul-2004) *) Fix handling/casting of "int (*)(void *)" callback functions. [Ralf S. Engelschall] *) Resolve symbol conflict in pth_string.c between pow10/round and GCC builtins. [Ralf S. Engelschall] *) Use GCC 3.3 option "-fno-strict-aliasing" (if available) under Autoconf option "--enable-debug" because mainly pth_mctx.c contains important and correct pointer casting constructs which are not acceptable in "strict aliasing" for GCC. [Ralf S. Engelschall] *) Fixed implementation so that --enable-pthread now correctly implies --enable-syscall-soft. [Steve Alstrin , Ralf S. Engelschall] *) Replace some 0 by more politically correct NULL in pth_string.c [Ralf S. Engelschall] @ text @$NetBSD: patch-ae,v 1.3 2003/05/02 11:49:48 wiz Exp $ --- configure.ac.orig 2006-06-08 17:54:01.000000000 +0000 +++ configure.ac @@@@ -191,7 +191,7 @@@@ dnl # check for various other functions AC_CHECK_FUNCS(usleep strerror) dnl # check for various other headers which we might need -AC_HAVE_HEADERS(sys/resource.h net/errno.h paths.h) +AC_HAVE_HEADERS(net/errno.h paths.h) dnl # at least the test programs need some socket stuff AC_CHECK_LIB(nsl, gethostname) @@@@ -209,6 +209,15 @@@@ if test ".$ac_cv_header_sys_select_h" != fi AC_SUBST(EXTRA_INCLUDE_SYS_SELECT_H) +dnl # check whether we've to use a non-standard #include to get +dnl # the definition for struct rusage on platforms that support it. +AC_HAVE_HEADERS(sys/resource.h) +EXTRA_INCLUDE_SYS_RESOURCE_H="#include " +if test ".$ac_cv_header_sys_resource_h" != .yes; then + EXTRA_INCLUDE_SYS_RESOURCE_H="/* $EXTRA_INCLUDE_SYS_RESOURCE_H */" +fi +AC_SUBST(EXTRA_INCLUDE_SYS_RESOURCE_H) + dnl # check whether we've to define sig_atomic_t AC_CHECK_TYPEDEF(sig_atomic_t, signal.h) FALLBACK_SIG_ATOMIC_T="typedef int sig_atomic_t;" @@@@ -620,6 +629,7 @@@@ fi AC_SUBST(PTHREAD_O) AC_SUBST(LIBPTHREAD_A) AC_SUBST(LIBPTHREAD_LA) +AC_SUBST(LIBTOOL) AC_SUBST(PTHREAD_CONFIG_1) AC_SUBST(PTHREAD_3) AC_SUBST(INSTALL_PTHREAD) @ 1.3 log @Update to 2.0.0, supplied by skrll@@netbsd. 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. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- configure.ac.orig Wed Jan 1 15:45:06 2003 d5 1 a5 1 @@@@ -190,7 +190,7 @@@@ dnl # check for various other functions d14 1 a14 1 @@@@ -208,6 +208,15 @@@@ if test ".$ac_cv_header_sys_select_h" != d30 1 a30 1 @@@@ -618,6 +627,7 @@@@ fi @ 1.2 log @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. @ text @d3 4 a6 31 --- configure.in.orig Sun Jan 27 11:03:40 2002 +++ configure.in @@@@ -148,6 +148,26 @@@@ AC_MSG_PART(Optional Platform Environmen dnl # check for the number of signals AC_CHECK_NSIG(PTH_NSIG) +dnl # check for value of FD_SETSIZE +AC_FDSETSIZE(PTH_FDSETSIZE) + +dnl # +dnl # Allow value of PTH_FDSETSIZE to be overridden by user +dnl # + +AC_ARG_WITH(fdsetsize,dnl +[ --with-fdsetsize=NUM set FD_SETSIZE],[ +case $withval in + [[1-9]][[0-9]]) PTH_FDSETSIZE=$withval ;; + [[0-9]][[0-9]][[0-9]]) PTH_FDSETSIZE=$withval ;; + [[0-9]][[0-9]][[0-9]][[0-9]]) PTH_FDSETSIZE=$withval ;; + * ) AC_ERROR([invalid FD_SETSIZE specified -- allowed: 10-9999]) ;; +esac +CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PTH_FDSETSIZE"; +AC_MSG_RESULT([Overriding FD_SETSIZE with $PTH_FDSETSIZE]); +])dnl +AC_SUBST(PTH_FDSETSIZE) + dnl # check whether poll(2)'s input stuff has to be faked AC_CHECK_FUNCTIONS(poll) AC_CHECK_DEFINE(POLLIN, poll.h) @@@@ -178,7 +198,7 @@@@ dnl # check for various other functions AC_CHECK_FUNCTIONS(usleep strerror) d14 1 a14 1 @@@@ -196,6 +216,15 @@@@ if test ".$ac_cv_header_sys_select_h" != d30 1 a30 1 @@@@ -563,6 +592,7 @@@@ fi @ 1.1 log @When --enable-syscall-hard is specified actually provide wrappers for all the syscalls that are documented as having wrappers. The ones missing were wait4 and sigprocmask. Patches have been sent to package maintainer. @ text @d3 1 a3 1 --- configure.in.orig Sat Mar 24 14:49:45 2001 d5 28 a32 1 @@@@ -178,7 +178,7 @@@@ d41 1 a41 1 @@@@ -196,6 +196,15 @@@@ d57 1 a57 1 @@@@ -563,6 +572,7 @@@@ @