summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-01-18Add support for C99 %ls, %lc, and %l[ format directives to scanf(3).Stefan Sperling
Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc.
2012-01-17Remove assembly version of strlen from i386 and amd64, where it'sMike Belopuhov
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.
2012-01-17Bump minor for addition of openat/pread/preadv/pwrite/pwritevPhilip Guenthe
2012-01-17fix SEE ALSO;Jason McIntyre
2012-01-17Make openat(), pread(), preadv(), pwrite(), and pwritev() cancellationPhilip Guenthe
points. ok fgsch@
2012-01-17Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.Philip Guenthe
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
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
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.
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2012-01-16POSIX indicates that some fields should be computed even if notTodd C. Miller
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@
2012-01-16Document the \-C output format generated by VIS_ALLPhilip Guenthe
ok deraadt@
2012-01-15Document early history of a few functions specifically mentioned in 2BSDIngo Schwarze
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@
2012-01-14many ways to get a log2... clue newbs.Marc Espie
okay jmc@
2012-01-14grammar;Jason McIntyre
2012-01-14this is sparta^WPOSIX 2008Marc Espie
okay millert@
2012-01-07Add rtable id and thread id to struct kinfo_proc (and fix process id)Philip Guenthe
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@
2012-01-05OpenSSL 1.0.0f: crank minorDamien Miller
2012-01-05OpenSSL 1.0.0f: mergeDamien Miller
2012-01-05OpenSSL 1.0.0f: import upstream sourceDamien Miller
2012-01-04Fix $OpenBSD tagPhilip Guenthe
2012-01-04Add some sanity checks, set errno accordingly to POSIX and add the namedMartin Pieuchot
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@
2012-01-04Split out the semaphore functions.Martin Pieuchot
ok guenther@
2012-01-04Delete some parameter names and extra semicolons that slipped throughPhilip Guenthe
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