Age | Commit message (Collapse) | Author |
|
was incorrectly named. there should be no sched_prio(3) page; it is
misleading.
|
|
|
|
|
|
input and ok from phessler@ and guenther@
|
|
so it works correctly with large offsets (and matches other systems).
This requires adding a new getdirentries syscall, with the old one
renamed to ogetdirentries. All in-tree consumers of getdirentries()
have been updated. Bump libc and libpthread major numbers.
OK and with deraadt@
|
|
running, then we need to start a gc thread...except when this is
the very call to start a gc thread!
"This works for me" marc@
|
|
including the scheduling timer, sigmask, fd nonblocking status, and
handling of the signals used by the thread library.
ok marc@, additional testing by ajacoutot@
|
|
as the child only has the one thread remaining.
ok marc@
|
|
on a 128-bit boundary like we do on amd64. The padding within the struct
made sure the state was properly aligned *within* the struct, but since the
alignment restriction on the struct itself was only 64-bit, the required
alignment was not guaranteed. We just got lucky.
ok oga@, guenther@
|
|
execve(), just set the close-on-exec flag. Fixes PRs 6183 and 6376.
ok marc@, "seems clearly better" tedu@
|
|
ok deraadt@
|
|
ok guenther
|
|
from brad. ok kurt, who's too busy to commit
|
|
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@
|
|
the issues seen with www/varnish.
With input and help from guenther@ and kurt@. guenther@ ok
|
|
the use of spinlocks and malloc. All needed memory is allocated upfront
and _thread_kern_sig_defer/undefer() is now used to protect critical
sections. okay guenther@
|
|
internally when and where required. Macros in <stdio.h> are updated
to automatically call the underlying functions when the process is
threaded to obtain the necessary locking. A private mutex is added
to protect __sglue, the internal list of FILE handles, and another
to protect the one-time initialization. Some routines in libc that
use getc() change to use getc_unlocked() as they're either protected
by their own lock or aren't thread-safe routines anyway.
committing on behalf of and okay guenther@ now that we have install
media space available.
|
|
a failure to lock the _atfork_mutex after forking. Tested by ajacoutot@
and myself. okay guenther@
|
|
aliased ENOTSUP. i should've done this earlier, but missed it. my bad.
as discussed with deraadt@ guenther@
|
|
|
|
media to fit
|
|
for FILEs that don't have real file-descriptors: the fake FILEs
used internally by snprintf/asprintf/vfprintf and friends now avoid
unnecessary locking by calling the internal __vfprintf() routine
directly and we do want to do locking on FILEs created with funopen().
ok kurt@
|
|
is needed to avoid deadlocks in popen() on FILE locking.
ok kurt@
|
|
ok kettenis@
|
|
been noticed much time ago, but better late than never.
|
|
|
|
when compiling without optimization; fix copied from the kernel's atomic.h
ok miod@
|
|
64bit archs to accommodate the growing number of ports that put large
buffers on the stack. Supported by many with no objections.
|
|
ok marc@, guenther@
|
|
|
|
Bump lib minor
ok otto@ kurt@ marc@; doc review by jmc@
|
|
calls to close(), closefrom(), and dup2() don't change it.
ok tedu@, deraadt@, kurt@, millert@, art@, marco@
(miscommit: originally by guenther@)
|
|
|
|
|
|
because it treated the supplied memory as holding an internal data
structure instead of as the stack space itself
ok kurt@, "looks ok" otto@, tested on hppa by kettenis@
|
|
- new sentence, new line
|
|
Correct misnaming in STANDARDS section
ok brad@ otto@
|
|
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
now that we support all the _r functions required by POSIX 1003.1-2001.
Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
|
|
segfaulting.
okay marc@ todd@
|
|
|
|
|
|
getpeername(2) or getsockname(2). Its not needed and causes
threads to block when another thread is blocked and holding the
read lock. Instead just protect against fd state transitions.
Blocking problem reported by David S H Rosenthal from lockss.org
okay beck@ "looks sane" deraadt@
|
|
sigprocmask(2) in threaded programs.
From Philip Guenther <guenther at sendmail.com> via PR library/5795.
okay marc@
|
|
calls vfork(2). "untested, but looks OK" marc@
- document vfork(2), popen(3) and system(3) don't call atfork handlers
in multithreaded programs. okay jmc@
|
|
|
|
|
|
bsd_auth(2) issue when compiled with threads. Reported by Joachim Wieland
<joachim.wieland at credativ.de>. okay otto@ marc@
|
|
ok espie@, beck@
|
|
if a syscall is OBSOL..
|