summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-01-03The prototype for pthread_sigmask(2) is supposed to live in <signal.h>Mark Kettenis
instead of <pthread.h>. ok guenther@, millert@
2012-01-03draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted byJason McIntyre
Poul-Henning Kamp, freebsd pr docs/163771; ok sthen
2012-01-01Updates regarding fts_close(3):Ingo Schwarze
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@
2011-12-28pthread_self() may be much cheaper and never more expensive than getthrid()Philip Guenthe
so prefer it for identifying the current thread
2011-12-27Don't let applications block, wait for, or handle SIGTHR, as thePhilip Guenthe
thread library uses it internally for cancellation.
2011-12-27On failure, pthread_kill() should return the errno, not -1Philip Guenthe
2011-12-25Missing architecture on the .Dt line; found with mandocdb(8); ok jmc@.Ingo Schwarze
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-12-22Add pthread_mutex_{get,set}prioceiling()Philip Guenthe
2011-12-21Split out the pthread_rwlock* and pthread_once() functions from rthread_sync.cPhilip Guenthe
to new files rthread_rwlock.c, rthread_rwlockattr.c, and rthread_once.c
2011-12-21Split out the pthread_mutexattr_* functions from rthread_sync.c toPhilip Guenthe
new file rthread_mutexattr.c. Add basic implementations of pthread_mutexattr_{set,get}{protocol,prioceiling} Requested by aja
2011-12-14The ktrace vnode has moved to struct process and changed name.Philip Guenthe
Missed commit pointed out by mikeb@
2011-12-09Add new KERN_PROC_CWD sysctl to get the current working directory of a process.Nicholas Marriott
ok guenther deraadt
2011-12-09mention sndiod rather than aucat when talking about the serverAlexandre Ratchov
2011-12-08strdup and strndup both use malloc. Make this fact explicit.lum
ok jmc@
2011-12-06New fnmatch(3) implementation which is not recursive.Stefan Sperling
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
2011-12-05Mark sigthr()'s sig argument as __unusedPhilip Guenthe
2011-12-05Implement cancelation for the basic syscall cancelation points,Philip Guenthe
using previously allocated SIGTHR to interrupt in-process syscalls and fixing the spelling of "cancelled" along the way. Modeled on FreeBSD's libthr
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
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@
2011-12-03document MSG_NOSIGNAL.Federico G. Schwindt
2011-11-27Don't segfault when trying to bind to an invalid command. While here,Pascal Stumpf
kill a C++-style comment. ok nicm@
2011-11-27Set the initfirst and nodelete flags on the shared library, in anticipationPhilip Guenthe
of support in ld.so
2011-11-22sigstack() is long dead, and the compat sigaltstack syscall is gone too.Philip Guenthe
Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
2011-11-17Calculate the size for the wchar_t argv correctly, fixes memoryNicholas Marriott
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
2011-11-17Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX.Ingo Schwarze
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).
2011-11-17Fix HISTORY:Ingo Schwarze
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@
2011-11-16Fix mbstowcs return value documentation. New text based on mbsrtowcs page.Stefan Sperling
ok jmc
2011-11-15Add a "device number" component in sndio(7) device names, allowing aAlexandre Ratchov
single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
2011-11-14Unbreak build of libpthread on hppa/hppa64 by using correct type inJoel Sing
_atomic_lock() declaration. ok deraadt@
2011-11-09Add the __cerror asm bits for per-thread errno support for powerpc.Mark Kettenis
ok guenther@
2011-11-09Oh yeah, with TLS-lite we can get the thread handle without walking thePhilip Guenthe
thread list reminded by dhill@
2011-11-08Make __svfscanf() the unlocked, core of vfscanf() and use it inPhilip Guenthe
sscanf()/vsscanf() where locking is unnecessary. ok millert@
2011-11-08Add the __cerror asm bits for per-thread errno support for hppa.Mark Kettenis
ok guenther@
2011-11-08Include <stddef.h> to make sure offsetof() is defined.Mark Kettenis
ok guenther@
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2011-11-07Expand HISTORY; feedback and ok jmc@ sobrado@.Ingo Schwarze
This one is tricky, so i'm giving the sources: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/u2.s http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/nsys/ken/sys3.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys4.c http://www.openbsd.org/plus21.html (lchown)
2011-11-07More .At v1 HISTORY.Ingo Schwarze
All information from http://minnie.tuhs.org/cgi-bin/utree.pl . All facts checked by sobrado@. Feedback and ok on an earlier version jmc@.
2011-11-07don't handle out-of-mem conditions using compiled out asserts (ugh). FromOtto Moerbeek
netbsd; ok deraadt@
2011-11-06Commemorate research!dmr by documenting the history of allIngo Schwarze
system calls existing since Version 1 AT&T UNIX (first batch). All information taken from primary sources at the UNIX tree of the UNIX heritage society, http://minnie.tuhs.org/cgi-bin/utree.pl . The number of errors in the existing manuals is astonishing. All facts checked by sobrado@. Feedback and ok on wording and formatting by jmc@.
2011-11-06Copy support for sched_get_priority_{min,max} from libpthread.Philip Guenthe
Requested by many to ease substitution of librthread for libpthread
2011-11-06.Ev -> .DvTheo de Raadt
2011-11-06repair documentation offset in the p*() versions of the calls and EINVAL;Theo de Raadt
plus merge differences between two pages. ok guenther jmc
2011-11-06Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesPhilip Guenthe
2011-11-05Move around the error cases to make clear that some don't apply to thePhilip Guenthe
p* versions, as well as fix a couple other cases
2011-11-03crank major for openssl-1.0.0eDamien Miller
2011-11-03openssl-1.0.0e: resolve conflictsDamien Miller
2011-11-03import OpenSSL 1.0.0eDamien Miller
2011-11-02Sync scanf(3) to wscanf(3), and a few bits the opposite way:Ingo Schwarze
.Fd -> .In, .Li -> .Vt, and remove various other gratuitous differences. feedback and ok stsp@, ok jmc@
2011-10-27Allow segments to be used even after they were marked for deletion withRobert Nagy
the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. Because compat_linux(8) was emulating this already, remove that code since now this is the default. input from oga@, guenther@, jmc@, deraadt@ ok deraadt@