summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-01-25@($*& Merging patches resulted in a line being duplicated instead ofPhilip Guenthe
moved. Unlocking a spinlock twice is bad, mmkay?
2012-01-22Credit Keith Sklower and 2BSD for the first implementation of read-writeIngo Schwarze
access; information found in the 2bsd directory of the CSRG archive CDs. feedback and ok jmc@
2012-01-20the glob stat limit is way too low. bump to 2048.Ted Unangst
while here, failed stats should count against the limit too. ok deraadt sthen stsp
2012-01-19symetryMarc Espie
ok jmc@, millert@
2012-01-18remove unused variableCharles Longeau
ok guenther@
2012-01-18Add missing header needed by iswspace()Charles Longeau
ok stsp@
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@