History log of /dragonfly/include/pthread.h (Results 1 – 25 of 33)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0
# dcaf745f 08-Dec-2020 zrj <rimvydas.jasinskas@gmail.com>

<pthread.h>: Provide pthread_*_np() prototypes too.

Based on review in DPorts what some of software packages expect.


# 399d0512 08-Dec-2020 zrj <rimvydas.jasinskas@gmail.com>

pthreads: Remove <sys/signal.h> from <pthread.h>.

Seems to be legacy remnant for no longer required pthread_kill() and
pthread_sigmask(). Use lighter types header in <pthread_np.h>, because
size

pthreads: Remove <sys/signal.h> from <pthread.h>.

Seems to be legacy remnant for no longer required pthread_kill() and
pthread_sigmask(). Use lighter types header in <pthread_np.h>, because
size_t must be provided by <time.h> and <pthread.h> must include it.

show more ...


Revision tags: v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# 450d7318 31-Oct-2019 Sascha Wildner <saw@online.de>

<pthread.h>: Fix typo: __restict -> __restrict.

Reported-by: zrj


Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc
# 3337d96b 03-Mar-2018 Sascha Wildner <saw@online.de>

<pthread.h>: Add missing 'const' to four functions.


# 062b1e8a 15-Feb-2018 Sascha Wildner <saw@online.de>

<pthread.h>: Note that we are missing some functions in #if 0'd protos.


# d33005aa 15-Feb-2018 Sascha Wildner <saw@online.de>

Add missing restrict qualifiers in POSIX function definitions/declarations.

This creates no further -Wrestrict warnings with gcc80 in buildworld.


# 466b1c70 26-Jan-2018 Sascha Wildner <saw@online.de>

<sys/cdefs.h>: Make __nonnull variadic.

Make use of it in the remaining __nonnull decorations we have.


# 0f037c78 19-Jan-2018 Sascha Wildner <saw@online.de>

libthread_xu: Fix issues detected by gcc80.

The changes to <pthread.h> all deal with -Wnonnull-compare warnings,
which are issued when a function has a NULL check for a parameter that
at the same ti

libthread_xu: Fix issues detected by gcc80.

The changes to <pthread.h> all deal with -Wnonnull-compare warnings,
which are issued when a function has a NULL check for a parameter that
at the same time is marked with __attribute__((nonnull(...))), aka
__nonnull(...).

Such __nonnull() decoration only ever catches those cases where NULL is
passed directly to the function, but not any more indirect ways. What
makes matters worse is that in higher optimization levels (-O >= 2),
GCC will happily optimize out any NULL checks within the function for
these parameters.

This means that __nonnull() is generally inferior to a direct NULL check
in the function itself and if we have both, which newer GCCs warn about
with -Wnonnull-compare (that is part of -Wall), we should remove the
__nonnull().

This commit does that for all parameters which our libthread_xu checks
directly in the function. What remains are __nonnull() for parameters
which are _not_ checked in the functions, to at least catch cases where
NULL is passed directly. We should think about adding real checks for
those parameters too.

While here, add a "/* FALLTHROUGH */" comment in thr_printf.c which
fixes a -Wimplicit-fallthrough warning.

show more ...


Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1
# 725edadf 26-Jul-2017 Sascha Wildner <saw@online.de>

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME, although we should
really support values obtained by these functions in clock_settime()
too.

Based on and taken from FreeBSD's code.

Reviewed-by: sephe

show more ...


# 136f1381 04-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

pthreads - Change PTHREAD_STACK_MIN

* Change PTHREAD_STACK_MIN from 1024 to 16384. Most other platforms
seems to use 16384. Even 4096 can cause rtld failures.

* Fixes 'node', which defaults to

pthreads - Change PTHREAD_STACK_MIN

* Change PTHREAD_STACK_MIN from 1024 to 16384. Most other platforms
seems to use 16384. Even 4096 can cause rtld failures.

* Fixes 'node', which defaults to configuring the pthreads stacksize to
PTHREAD_STACK_MIN and then proceeded to implode.

Reported-by: tautology

show more ...


Revision tags: v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1
# b8ee06c5 22-Sep-2016 zrj <rimvydas.jasinskas@gmail.com>

<pthread.h>: Avoid namespace pollution.

Rename MUTEX_TYPE_MAX -> PTHREAD_MUTEX_TYPE_MAX to avoid clashes
with types in user source codes. Adjust all use cases.

While there, remove deprecated unused

<pthread.h>: Avoid namespace pollution.

Rename MUTEX_TYPE_MAX -> PTHREAD_MUTEX_TYPE_MAX to avoid clashes
with types in user source codes. Adjust all use cases.

While there, remove deprecated unused compat mutex types.

show more ...


# 006484f4 22-Sep-2016 zrj <rimvydas.jasinskas@gmail.com>

<pthread.h>: Mark some __nonnull(x) cases.


# fc84f547 22-Sep-2016 zrj <rimvydas.jasinskas@gmail.com>

<pthread.h>: Visibility changes.

While there, remove prototypes of pthread_attr_{get,set}floatstate()
looks like they never were implemented, so do not advertise them.


# d068bc21 22-Sep-2016 zrj <rimvydas.jasinskas@gmail.com>

<pthread.h>: Perform some style(9) cleanup.

Change indentation to a single tab, since both protype names and arguments
are quite long and later added attribute decorations will only make it worse.

<pthread.h>: Perform some style(9) cleanup.

Change indentation to a single tab, since both protype names and arguments
are quite long and later added attribute decorations will only make it worse.

Strictly no functional change, just shifting stuff around for readability and
upcoming changes.

show more ...


Revision tags: v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0
# 32cb8272 04-Jul-2016 Sascha Wildner <saw@online.de>

<pthread.h>: Include <machine/limits.h> instead of <limits.h> for ULONG_MAX.

Also include <limits.h> in a couple of files that were missing it.

This commit will break 4 ports:

devel/clanlib1
games

<pthread.h>: Include <machine/limits.h> instead of <limits.h> for ULONG_MAX.

Also include <limits.h> in a couple of files that were missing it.

This commit will break 4 ports:

devel/clanlib1
games/orbital_eunuchs_sniper
games/zatacka
sysutils/cdargs

These will be fixed in the next time.

show more ...


Revision tags: v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3, v3.4.2
# 6301cf73 30-Apr-2013 Sascha Wildner <saw@online.de>

<pthread.h>: Adjust the visibility of pthread_{get,set}stackaddr() protos.

The functions were removed from issue 7 of the specification.

http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_

<pthread.h>: Adjust the visibility of pthread_{get,set}stackaddr() protos.

The functions were removed from issue 7 of the specification.

http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap01.html

show more ...


Revision tags: v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2
# a1671b4d 11-Mar-2012 Sascha Wildner <saw@online.de>

<sys/cdefs.h>: For C++, unhide our interfaces via __{BEGIN,END}_DECLS.

This follows up on a previous (pthread specific) commit by alexh
(e7322b09faff75b1298e9bfe444633425d173536) that used a per-pro

<sys/cdefs.h>: For C++, unhide our interfaces via __{BEGIN,END}_DECLS.

This follows up on a previous (pthread specific) commit by alexh
(e7322b09faff75b1298e9bfe444633425d173536) that used a per-proto
macro. Revert this commit, too. In principle, we do it like NetBSD
now.

See http://gcc.gnu.org/wiki/Visibility in the GCC wiki for details
on the issue.

This solution was suggested by Martin Husemann in a thread about
xulrunner building issues:

http://mail-index.netbsd.org/tech-pkg/2012/03/11/msg008680.html

Reported-and-tested-by: marino and others

show more ...


Revision tags: v3.0.1, v3.1.0, v3.0.0
# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0
# e7322b09 31-Jul-2011 Alex Hornung <ahornung@gmail.com>

pthread - adjust visibility to 'default'

* This fixes pkgsrc build issues that think the symbols are hidden.

* It's not the most elegant solution, and it would be nicer if this
could somehow b

pthread - adjust visibility to 'default'

* This fixes pkgsrc build issues that think the symbols are hidden.

* It's not the most elegant solution, and it would be nicer if this
could somehow be merged into BEGIN_DECLS/END_DECLS, but I couldn't
find a way to do that.

* See http://gcc.gnu.org/wiki/Visibility for more details

show more ...


Revision tags: v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2
# 0490f058 06-Jul-2009 Hasso Tepper <hasso@estpak.ee>

"Sync" threading libaries.

* Introduce stubs returning error into libc_r for functions which don't
exist there, but are there in libthread_xu.
* Compile POSIX spinlocks implementation in libthread

"Sync" threading libaries.

* Introduce stubs returning error into libc_r for functions which don't
exist there, but are there in libthread_xu.
* Compile POSIX spinlocks implementation in libthread_xu.
* Define _POSIX_BARRIERS and _POSIX_SPIN_LOCKS and modify sysconf(3)
accordingly.

show more ...


# 4903c8a0 16-May-2009 Hasso Tepper <hasso@estpak.ee>

Make pthread types visible via sys/types.h to conform SUSv3.

Move declarations of pthread related types to the _pthreadtypes.h and
include it from sys/types.h. pthread.h should do the same, but as i

Make pthread types visible via sys/types.h to conform SUSv3.

Move declarations of pthread related types to the _pthreadtypes.h and
include it from sys/types.h. pthread.h should do the same, but as it
includes the sys/types.h anyway at the moment, don't touch it yet.

Inspired-by: FreeBSD

show more ...


Revision tags: v2.3.1, v2.2.1, v2.2.0, v2.3.0, v2.1.1, v2.0.1
# c4dd4100 26-Jun-2007 Joe Talbott <josepht@dragonflybsd.org>

Fix files that included the posix scheduling headers that were merged earlier.


# cc4e7857 06-Apr-2006 David Xu <davidxu@dragonflybsd.org>

Add function prototypes: pthread_atfork, pthread_attr_getguardsize,
pthread_attr_setguardsize.


# 7c8e0620 05-Apr-2006 David Xu <davidxu@dragonflybsd.org>

Unbreak buildworld.


# d37da2ab 15-Mar-2005 David Xu <davidxu@dragonflybsd.org>

Add following prototypes:
pthread_mutex_timedlock
pthread_rwlock_timedrdlock
pthread_rwlock_timedwrlock


12