summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-04-14Mention that kern.somaxconn is the real upper limit to the listenTodd C. Miller
queue depth. OK deraadt@ kettenis@
2010-04-14Security fix for CVE-2010-0740Jasper Lievisse Adriaanse
"In TLS connections, certain incorrectly formatted records can cause an OpenSSL client or server to crash due to a read attempt at NULL." http://openssl.org/news/secadv_20100324.txt ok deraadt@ djm@ sthen@
2010-04-12New functions: bump the minorPhilip Guenthe
2010-04-12Add pthread_rwlock_timed{rd,wr}lock().Philip Guenthe
Avoid missed wakeups in pthread_rwlock_{rd,wr}lock() by linking the spinlocks. ok tedu@
2010-04-12Add support for pthread_rwlock_timed locks.Ted Unangst
from brad. ok kurt, who's too busy to commit
2010-04-12clarify that strptime reads, not writes, strings when handling %%.Ted Unangst
ok deraadt jmc
2010-04-11audio(4) doesn't require to be started explicitely, so the device isAlexandre Ratchov
started immediately after it's opened in record only mode. Pause it in sio_open() and sio_stop(), since libsndio requires an explicit call to sio_start(). discussed with jakemsr
2010-04-07- nuke some unneeded Pp; from kristapsJason McIntyre
- small tweak while here
2010-04-06aucat (server):Alexandre Ratchov
- make the ``-m mode'' option per subdevice, allowing subdevices to be play-only or rec-only even if the server is full-duplex - add ``monitoring'' mode (with ``-m mon''). This is a record-only stream from which played streams can be recorded (kind of ``record what you hear''). - allow MIDI devices to be subscribed to the controlling MIDI port of the server, ie what midicat does (with -f option), but using the -q option. - add flow control to the protocol, and serialize clock ticks (sio_onmove() calls) and data chunks. This should fix certain full-duplex programs, broken with ``magic'' block/buffer size combinations. - enable 3 block latency which is the minimum theoretical. Make -z and -b options correspond to device parameters. - make sio_getcap(3) the same for aucat and sun backends, ie return whatever is supported (``everything'' in the aucat case, since everything is actulally supported). aucat (player): - enable ``-m mode'' option to select between monitoring and recording when ``-o file'' is used. - plug MIDI code to non-server codepath. The MIDI control device is specified with the ``-q device'' option, as in server mode. - impliment lseek()'ing within files (controlled through MIDI). Necessary to use aucat with a MIDI sequencer. midicat (thrubox): - rename ``-f'' flag to ``-q'', so it has the same name as in aucat (-f is still working) ok jakemsr@, tweaks from jmc@
2010-04-03Build all manual pages in base with mandoc(1) instead of groff,Ingo Schwarze
excepting the tbl(1) pages, which are less than twenty. "commit the diff that enables it, now" deraadt@
2010-04-03Add missing documention:Philip Guenthe
- fork1() flags: FORK_SIGHAND, FORK_PTRACE, and FORK_THREAD - RTHREADS kernel option - rfork() RFTHREAD flag (with a BUGS entry that it's not usable from C) ok tedu@
2010-04-02fix a potential memory leak found by zinovik@Ingo Schwarze
while here, make sure each error path sets YP_YPERR and make the function shorter and easier to read by using the idiom "if (error) goto fail" everywhere in the loop and by putting xdr_free in exactly one place near the end ok deraadt@
2010-04-01WARNINGS -> CAVEATS, and a little neccessary cleanup;Jason McIntyre
2010-04-01typoTheo de Raadt
2010-04-01document that setting the time of the machine is unsafe. explain why,Theo de Raadt
and suggest workarounds ok guenther
2010-03-30describe better what KERN_PROC_ARGV and KERN_PROC_ENV return; ok jmc@Otto Moerbeek
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2010-03-24Modify example not to use an assignment in the if statement. We shouldn'tMark Kettenis
teach people bad habits! ok krw@, jmc@, dlg@, thib@
2010-03-23Fix glob(3) to correctly return an error when its buffer space isNicholas Marriott
exhausted and GLOB_BRACE is given. globexp2() was ignoring errors returned from lower levels. While here, change globexp2() to return its return value normally rather putting it in a int pointer then always returning 0. ok otto
2010-03-22Various improvements, mainly regarding ERRORS.Ingo Schwarze
* Document EINVAL and EEXIST. * Neither mkstemp nor mkdtemp use lstat, but mktemp does. * Documenting ENOTDIR is useless, it is documented in lstat(2), mkdir(2) and open(2), and it's just one thing out of several that could go wrong. * Refer to lstat(2) instead of stat(2), which is actually used here. * State that two of these functions are standardized in the XPG. * Move the sentence about mkdtemp and mkstemps to the new STANDARDS section. * Get rid of the ugly ".So Li X Sc Ns s", just use "Xs" (suggested by jmc@). tweaks and ok jmc@ millert@
2010-03-21When all tried file names already existed, mktemp(3) returned withoutIngo Schwarze
setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp. ok guenther deraadt
2010-03-12document PF_KEY; from sthen and myselfJason McIntyre
issue reported by Toni Mueller ok markus
2010-03-10It's unsetenv() that doesn't like `=' in the argument, not putenv().Matthias Kilian
ok millert@
2010-03-04cherrypick patch from OpenSSL 0.9.8m:Damien Miller
*) Always check bn_wexpend() return values for failure. (CVE-2009-3245) [Martin Olsson, Neel Mehta]
2010-03-01explain KERN_NOSUIDCOREDUMP with less words and more precisionIngo Schwarze
ok jmc@ deraadt@ guenther@
2010-02-25Do not attempt to silently continue text for the last column of tablesIngo Schwarze
generated by .Bl -column .It <tab> on following lines. This is a workaround; fixing it properly in a way compatible with our old groff would require .Xo support for .Bl -column phrases in mandoc(1), which is too much work right now just to fix exactly this one place in our tree. ok jmc@ This commit fixes the last issue i'm aware of which prevented building our whole tree with mandoc. Not all pages format nicely yet, but none kill the build any more.
2010-02-22fix the description of _SC_GETPW_R_SIZE_MAX; from Tim van der MolenJason McIntyre
2010-02-20Multiple issues were killing the build with mandoc(1), thus:Ingo Schwarze
* do not use low-level roff macros like .if and .ds * add the missing .Os to the preamble * move unqualified text out of .Bl ok jmc@
2010-02-18Every .Bl requires .It, even when using -column.Ingo Schwarze
Found by and unbreaking the build with mandoc(1). While here, properly escape blanks inside columns and use "backslash" instead of "back slash". OK jmc@
2010-02-17The .TP man(7) macro requires text on the following line, to be used asIngo Schwarze
a label, so having .TP before an .SH section header is a syntax error. Fixing this to unbreak the build with mandoc(1). I will also send this patch upstream. OK nicm@
2010-02-12typo; ok ogaJason McIntyre
(sorry, i can't actually find where this started....)
2010-02-11The previous commit didn't use the first X in the template if thePhilip Guenthe
entire template was Xs. Test suite written now to keep this from happening again. Problem caught by Vadim Zhukov again. ok millert@
2010-02-10Fix sio_getcap() for audio(4) devices exposing encodingsAlexandre Ratchov
with precision other than 8, 16 or 32 bits. Found by Jan Stary <hans at stare.cz>, thanks!
2010-02-08Don't underrun the buffer when the template is all X's.Philip Guenthe
Also, remove a duplicate preconditions check. Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com) ok millert@
2010-02-08Use size_t in appropriate places; fixes sorting of big arrays;Otto Moerbeek
after the diff was written, I made it similar to the freebsd fix of the same code; pr6287 ok millert@ guenther@
2010-02-08use size_t to index arrays; avoids big array bugs; ok millert@ guenther@Otto Moerbeek
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentMiod Vallat
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@
2010-01-31add a fix from OpenSSL CVS for SA38200.Jasper Lievisse Adriaanse
"Modify compression code so it avoids using ex_data free functions. This stops applications that call CRYPTO_free_all_ex_data() prematurely leaking memory." looks ok to markus@
2010-01-28Update translations: fix EREMOTE and add a bunch of error codes too.Philip Guenthe
From Vadim Zhukov (persgray at gmail.com)
2010-01-25stucture -> structure;Jason McIntyre
2010-01-25ellipses are not optional arguments; while here, fix a double .Ar/.ArIgor Sobrado
in the roff source. ok jmc@
2010-01-25fix double full stop, find out by jmc@ when looking into another issue.Igor Sobrado
2010-01-23Give little-endian fp on mips a change to be handled correctly.Miod Vallat
2010-01-20back out last commit. breaks half-duplex playback with poll().Jacob Meuser
ok ratchov
2010-01-19Better ERRORS section info; from Tim van der Molen. POSIX documentsTodd C. Miller
other common errno values for opendir() whereas we just point the user to open() et al. OK jmc@
2010-01-19Leave errno as-is if fstat(2) fails instead of masking the realTodd C. Miller
errno with ENOTDIR. From Tim van der Molen.
2010-01-15Keep in memory whether the socket is writable. This way sio_revents()Alexandre Ratchov
can return POLLOUT (if requested), even the handle was not writable when sio_pollfd() was called but become writable somewhere in the code path of sio_revents(). This should improve stability of programs using very small buffers.
2010-01-15Add support to sysconf(3) for the variables _SC_NPROCESSORS_CONF andStuart Henderson
_SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD. Bump libc minor. From Brad, ok deraadt@ guenther@
2010-01-14Restore an if that got lost in the update.Nicholas Marriott
Fixes problems with editors/joe reported by benoit@.
2010-01-14Document hw.ncpufound and HW_NCPUFOUND.Philip Guenthe
Document the interpretation of the third and fourth levels of KERN_FILE2. Document that KERN_FILE and KERN_PROC are deprecated in favor of KERN_FILE2 and KERN_PROC2. ok and tweaks jmc@