| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
pthread_mutex_timedlock() in that same page
ok fgsch@, brad@, as well as jmc@, who also fixed a bunch of nits
|
|
|
|
|
| |
That deadlock can be exited via a timeout for pthread_mutex_timedlock().
Unwind all the state when pthread_mutex_timedlock() times out
|
|
|
|
| |
Add pthread_mutex_timedlock(), requested by dcoppa@
|
|
|
|
| |
of doing the Wrong Thing.
|
|
|
|
|
|
|
| |
hid_dispose_report_desc() returns void, it can't return NULL on failure.
hid_get_report_desc() and hid_use_report_desc() return NULL on failure but
this was not documented.
ok jmc
|
| |
|
| |
|
|
|
|
| |
Ulmer). Only pull in bsd.lib.mk once to avoid linking objects twice
|
|
|
|
| |
lint doesn't understand designated initializers, so hide them from it
|
|
|
|
| |
the requested new value
|
|
|
|
| |
Improve consistency of error naming
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
don't try to merge values, round the sizes separately, and don't try to
unmap application-supplied stacks.
Copy from uthread the caching of default-sized stacks.
Have pthread_attr_init() and pthread_create() get the default attributes
from staticly allocated pthread_attr_t.
Cache the pagesize in _rthread_init() and provide a macro for rounding to it
based on suggestions from kettenis@ and tedu@, ok kettenis@
|
| |
|
| |
|
|
|
|
| |
input/ok krw@ thib@ jmc@
|
|
|
|
|
|
| |
so that their pthread_attr_get* don't return bogus values.
issue noted and tested by aja@
|
| |
|
|
|
|
|
|
|
|
| |
properly represents whether a process is multi-threaded or not. This fixes
a bug where if a forked child would create a new thread we would not set
__isthreaded.
ok guenther@
|
| |
|
|
|
|
|
| |
If we have to revert to user-space threads, we'll do another major bump of
libpthread going back
|
|
|
|
|
|
| |
pthread_mutexattr_{get,set}kind_np()
tweaked diff from brad
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(and several other things, particularly EPIPE) on a file
descriptor. This causes Google Chrome to die (probably due to a bug in
Chrome but finding that is next to impossible at the moment).
It's not really clear what libevent should when an invalid fd is added -
the poll backend doesn't fire an event and select exits the event
loop. Until this is settled, change kqueue to match poll and ignore
EBADF, keeping the behaviour r1.27 fixed on EPIPE.
Fix from robert@.
|
|
|
|
|
|
|
| |
the last node is deleted. Instead, resolve the Coverity warning
by returning (node *)1 when you delete the root node.
based an idea from millert@. ok otto@
|
|
|
|
|
|
| |
just look like end-of-directory.
ok krw@ otto@ miod@
|
|
|
|
|
|
|
|
| |
prevents libevent exiting the event loop when getting EPIPE. Problem
first seen by drahn@ and more recently hit by gilles@, fix based on one
by Nick Mathewson.
ok gilles
|
|
|
|
| |
moved. Unlocking a spinlock twice is bad, mmkay?
|
|
|
|
|
| |
access; information found in the 2bsd directory of the CSRG archive CDs.
feedback and ok jmc@
|
|
|
|
|
| |
while here, failed stats should count against the limit too.
ok deraadt sthen stsp
|
|
|
|
| |
ok jmc@, millert@
|
|
|
|
| |
ok guenther@
|
|
|
|
| |
ok stsp@
|
|
|
|
|
|
| |
Based on code from FreeBSD.
Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot.
Man page help from jmc.
|
|
|
|
|
|
|
| |
up to 3 times slower than the C code most of the time. This was
brought up by DragonflyBSD guys initially.
ok deraadt, guenther. miod will not miss it.
|
| |
|
| |
|
|
|
|
|
|
| |
points.
ok fgsch@
|
|
|
|
|
|
| |
Includes friendly linker warning to wake up those dumb enough to use it.
Committing for kettenis@, who ran away to the hills after writing it
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
particularly the "consume the signal you just sent" hang, and putting
the wait queues in userspace.
Do cancellation handling in pthread_cond_*wait(), pthread_join(),
and sem_wait().
Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add
'abort" argument to thrsleep to close cancellation race; make
thr{sleep,wakeup} return errno values via *retval to avoid touching
userspace errno.
|
|
|
|
| |
ok guenther
|
|
|
|
|
|
| |
explicitly set. We can compute tm_yday, tm_wday, tm_mon and tm_mday
based on the values that were specified if possible. Some logic
borrowed from localtime.c. OK espie@ deraadt@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
manuals; however, it turned out all of these actually predate 2BSD.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl.
ok jmc@ sobrado@
|
|
|
|
| |
okay jmc@
|
| |
|
|
|
|
| |
okay millert@
|
|
|
|
|
|
|
|
|
|
|
| |
and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2
and make fstat display socket splice information.
Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major
Socket splice info and corrections from bluhm@ "Lovely" deraadt@
|
| |
|
| |
|