summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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@
2010-01-13New options 'S', as a shorthand for the options most suitable as anOtto Moerbeek
extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@
2010-01-13If a process receives two different signals while in readpassphrase, onlyDarren Tucker
the most recent one will be stored for later re-delivery. When the signal handlers are restored, all except the most recent signal will be lost. Replace the single variable with an array so signals are not lost. ok deraadt@
2010-01-12Update to ncurses 5.7, with local changes reapplied.Nicholas Marriott
This is around eight years worth of changes (previously we were around ncurses 5.2), too many to list - many bug fixes and also a few new functions. A major bump for libcurses, libpanel, libform and libmenu. ok deraadt
2010-01-12the comment is right, this can indeed go away.Jasper Lievisse Adriaanse
it's unused inside libkvm, and nothing else is allowed to use it. ok guenther@ "sure" deraadt@
2010-01-11encourage use of setreseuid(), and warn there are other privs; ok henningTheo de Raadt
2010-01-10Reimplement kvm_getproc2()'s support for reading crash dumps andPhilip Guenthe
/dev/mem to be direct instead of going through kvm_getprocs(), as that function is going to get more an more broken as we move stuff from struct proc to struct process for rthreads. To minimize the code copying, put the common logic of filling in a kinfo_proc2 structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from both the kernel and user-space. This also hides the KERN_PROC #define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's deprecated. Positive feedback from millert and blambert; so committing to unblock further rthreads work.
2010-01-10Fix evsignal_del()'s use of sigaction(): fill in a sigaction structPhilip Guenthe
and pass a pointer to that instead of passing SIG_DFL directly. (Probably the result of a bad signal()-->sigaction() translation...) ok deraadt@, nicm@, miod@
2010-01-08plug a file descriptor leak in HASHFileChunk().Owain Ainsworth
From Igor Zinovik; thanks! ok millert@
2010-01-04Stop installing many of the incredibly dated and un-authoritative share/docTheo de Raadt
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther
2010-01-03Make SO_RCVTIMEO and SO_SNDTIMEO work with pthreads. Fixes at least some ofFederico G. Schwindt
the issues seen with www/varnish. With input and help from guenther@ and kurt@. guenther@ ok
2010-01-03Neither .Pp nor unqualified text are allowed at the top level of .Bl;Ingo Schwarze
instead, .It is required. Thus, move .Pp and text before the .Bl, and remove the .Pp altogether where it is not needed. Syntax errors found by mandoc(1), also required to fix the mandoc build; feedback and ok jmc@, and sobrado@ also supports the direction.
2010-01-03.Bl always requires .It, even in .Bl -column;Ingo Schwarze
syntax errors found by mandoc(1), also required to fix the mandoc build; feedback and ok jmc@ and sobrado@
2010-01-03blank lines not allowed outside literal context;Ingo Schwarze
syntax errors found by mandoc(1), also required to fix the mandoc build; ok jmc@
2009-12-31new ipsca root.David Gwynne
2009-12-31ipsca has expiredDavid Gwynne
2009-12-30Document ESPIPE and make EFAULT cover all functions.Federico G. Schwindt
jmc@ deraadt@ ok
2009-12-30explain what sio_close() drains play buffers as if sio_close() wasAlexandre Ratchov
called. Since sio_onmove() callback doesn't return negative deltas anymore, slightly simplify related paragraphs. siggested by espie@, ok jakemsr@
2009-12-29move this file to Attic; the swapon(2) system call cannot be accessedIgor Sobrado
from userland since April 2003 and, of course, the manual page is not built either. see miod@'s change in r1.66 of src/lib/libc/sys/Makefile.inc. i would like to acknowledge the excellent advice from jmc@ and fgsch@ with relation to this change. ok miod@
2009-12-29add missing paragraph break (.Pp) macro.Igor Sobrado
2009-12-29replace a few remaining UNIX terms with .Ux macros; this diffIgor Sobrado
completes the changes from Oct 22.
2009-12-27Security fix for CVE-2009-3560, which could allow attackers to causeJasper Lievisse Adriaanse
a DoS using a specially crafted XML document with malformed UTF-8 sequences. Patch taken from upstream CVS.
2009-12-19Implement proper error handling for getgrent(3), getgrnam(3) and getgrgid(3).Ingo Schwarze
1) Distinguish normal end of data (like eof, YPERR_NOMORE, YPERR_KEY) from error conditions. 2) Save errno(2) and restore it in case of success, as suggested by deraadt@ and beck@. While this code is touched, * move the common code for the yp_first and yp_next calls after the respective if/else-block; note that free(data) is not needed in case of failure and that __ypcurrent = NULL does no harm after failing yp_first. * return 0, not NULL: the return value of grscan is int, not a pointer. This is the last part of the work done on getgrent.c during c2k9, heavily relying on the other improvements done at that time. This has been rotting in my tree far too long. "get it in" deraadt@; also lightly tested by simon@ some time ago
2009-12-16save calls to arc4random() by using a nibble at a time; not becauseOtto Moerbeek
arc4random() is slow, but it induces getpid() calls; also saves a bit on stirring efforts