Age | Commit message (Collapse) | Author |
|
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@
|
|
|
|
|
|
|
|
|
|
semaphore stubs already provided by libpthread. We may move them in their
own file in the future when we figure out a real implementation.
Discussed with and looks ok to guenther@
|
|
ok guenther@
|
|
|
|
instead of <pthread.h>.
ok guenther@, millert@
|
|
Poul-Henning Kamp, freebsd pr docs/163771;
ok sthen
|
|
1) The close(2) return value and errno are ignored.
2) The errno is set by fchdir(2), not by chdir(2),
which has much less potential for errors.
3) Use .Rv -std.
While here, remove STANDARDS. Keith Bostic added that hope in 1990
and tweaked the wording in 1993, but it didn't come true since then.
ok kettenis@ jmc@
|
|
so prefer it for identifying the current thread
|
|
thread library uses it internally for cancellation.
|
|
|
|
|
|
|
|
|
|
|
|
to new files rthread_rwlock.c, rthread_rwlockattr.c, and rthread_once.c
|
|
new file rthread_mutexattr.c. Add basic implementations of
pthread_mutexattr_{set,get}{protocol,prioceiling}
Requested by aja
|
|
Missed commit pointed out by mikeb@
|
|
ok guenther deraadt
|
|
|
|
ok jmc@
|
|
Written and provided under BSD licence by William A. Rowe Jr.
Originally released in Apache APR-1.4.5.
Merged class matching code from r1.14 and PATH_MAX check from r1.15.
ok miod millert
|
|
|
|
using previously allocated SIGTHR to interrupt in-process syscalls
and fixing the spelling of "cancelled" along the way.
Modeled on FreeBSD's libthr
|
|
and make it compatible with bsd.lv mandoc and with groff-1.21.
This tweak was originally added for compatibility with groff-1.15,
which is no longer needed.
ok jmc@ kristaps@
|
|
|
|
kill a C++-style comment.
ok nicm@
|
|
of support in ld.so
|
|
Correct the namespace protections for sigreturn(), sigwait(), and psignal()
ok millert@
|
|
corruption reported by LEVAI Daniel <leva at ecentrum dot hu>. Also
rename "bytes" to "wlen" since bytes is not accurate, suggested by
stsp@.
ok stsp oga
|
|
All facts from http://minnie.tuhs.org/cgi-bin/utree.pl, checked by sobrado@.
Feedback and ok jmc@ jmc@ (sic, Jason checked and ok'ed this twice).
|
|
Mention the predecessor exec() in v1, and remove the bogus "appeared
in 3BSD", just leave "execve() appeared in v7", because:
(1) There is a direct line of inheritance from v7 (Bell, Jan 1979)
via 32v (Bell, May 1979) to 3BSD (UCB, Feb 1980), and it goes without
saying that children include code from their grandparents.
(2) It is impossible that there was parallel development of execve()
at Bell and UCB. The only UCB release before v7 was 1BSD (May 1978),
and even 2BSD (May 1979) did not include any kernel parts but fully
relied on the Bell v6 kernel. When Bell released 32v, the UCB did
not even own a VAX, and Bill Joy was still are pure userland hacker.
Only after the original UCBVAX arrived at Berkeley, Richard Fateman
involved Domenico Ferrari who involved Ozalp Babaoglu who started
kernel work at UCB, based on Bell 32v, later involving Bill Joy.
(3) Genetic analysis of the source code confirms this.
All kernel code involved is in sys1.c. Regarding this file,
the first two UCB releases, VAX 3BSD (based on Bell 32v)
and PDP-11 2.8BSD (Dec 1981, based on Bell v7) are more similar
to their respective Bell parents than to each other.
The Berkeley versions are cousins, not siblings:
v7 -> 32v: 523 +71 -60 = 534
v7 -> 2.8: 523 +305 -24 = 804
32v -> 3: 534 +169 -110 = 593
3 -> 2.8: 593 +413 -202 = 804
References:
http://oreilly.com/catalog/opensources/book/kirkmck.html
http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys1.c
http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V/usr/src/sys/sys/sys1.c
http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/sys/sys/sys1.c
https://www.mckusick.com/csrg/ - /cdrom1/2.8/usr/kernel/sys/sys/sys1.c
facts checked and ok sobrado@, style and formatting ok jmc@
|
|
ok jmc
|