summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-07-13update our recommended hash function to sha256 and note md5 is broken.Ted Unangst
ok deraadt jmc millert sobrado
2010-07-13no more rmd160(1);Jason McIntyre
2010-07-13Fix PR 6417: if we're starting a thread and there's no other threadsPhilip Guenthe
running, then we need to start a gc thread...except when this is the very call to start a gc thread! "This works for me" marc@
2010-07-13Fix PR 6376: restore more thread library state if execve fails,Philip Guenthe
including the scheduling timer, sigmask, fd nonblocking status, and handling of the signals used by the thread library. ok marc@, additional testing by ajacoutot@
2010-07-12Update to 1.4.14b.Nicholas Marriott
From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
2010-07-12After forking, clear the 'thread joining this one' pointer in the child,Philip Guenthe
as the child only has the one thread remaining. ok marc@
2010-07-08Switch hppa, i386 and powerpc to gcc4. Bump libc major to handle ABI cornerMark Kettenis
cases fixed in gcc4.
2010-07-06Document new unsetenv() error returns.Christian Weisgerber
From Nicolas Legrand <nlegrand@ethelred.fr>; ok jmc@
2010-07-06Handle all streams the same way because there's no actualAlexandre Ratchov
difference between audio files and client connections. Clean up the way command line options are handled and clarify this in the manual page: stream parameters (-Ccehjmrtvx) must precede stream definitions (-ios) and per-device parameters (-abz) and stream definitions (-ios) must precede device definitions (-f). Since there's no ``server'' and ``non-server'' modes anymore, make the -l option just detach the process. ok and help from jakemsr and jmc
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
2010-07-02Constipate init_hash() to eliminate a warning and remove a cast that isPhilip Guenthe
thereby rendered superfluous ok blambert@
2010-07-01sort SEE ALSO;Jason McIntyre
2010-07-01getpeereid() can now be a library routine using getsockopt() withTheo de Raadt
SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return EFAULT for a page fault. The kernel code will soon be put into compat, and then in 10 years or so tedu will delete it. ok guenther millert
2010-07-01oops. Missed this from my aes-ni commit.Thordur I. Bjornsson
2010-07-01import OpenSSL-1.0.1cThordur I. Bjornsson
2010-07-01AES-NI engine support for OpenSSL.Thordur I. Bjornsson
This is code mostly picked up from upstream OpenSSL, or to be more exact a diff from David Woodhouse <dwmw2 at infradead dot org>. Remember to make includes before doing a build! no objections from djm@ OK deraadt@, reyk@ (AES is about 4.25x faster on his x201 now)
2010-07-01zap trailing whitespace;Jason McIntyre
2010-07-01libkeynote development has been paused for a while. ok deraadtTed Unangst
2010-06-30Add getsockopt SOL_SOCKET SO_PEERCRED support. This behaves similar toTheo de Raadt
getpeereid(2), but also supplies the remote pid. This is supplied in a 'struct sockpeercred' (unlike Linux -- they showed how little they know about real unix by calling theirs 'struct ucred'). ok guenther ajacoutot
2010-06-30Use __attribute__ ((aligned (16)), to make sure the FPU state is alignedMark Kettenis
on a 128-bit boundary like we do on amd64. The padding within the struct made sure the state was properly aligned *within* the struct, but since the alignment restriction on the struct itself was only 64-bit, the required alignment was not guaranteed. We just got lucky. ok oga@, guenther@
2010-06-30there's no tcsh page in base, so don;t bother xr'ing it;Jason McIntyre
2010-06-30tweak previous;Jason McIntyre
2010-06-30Update libedit to bring it into sync with the latest version from NetBSD.Nicholas Marriott
ok deraadt
2010-06-29use a union to align the dns answer buffer until gcc4 is fixedTheo de Raadt
2010-06-29RTHREADS option is gone, now it's a sysctl. spotted by jmcTed Unangst
2010-06-29briefly document kern.rthreadsTed Unangst
2010-06-29Fail instead of lying if a process asks sysctl()'s KERN_PROC2 orPhilip Guenthe
KERN_FILE2 (or their libkvm wrappers) for more information than the running implementation knows how to provide. ok millert@ deraadt@
2010-06-29use a union to align the dns answer buffer until gcc4 is fixedTheo de Raadt
2010-06-29Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX. ok deraadt@Christian Weisgerber
2010-06-29VIA xcrypt for amd64, simpler version of a diff from deraadtJonathan Gray
with suggestions from miod. The codepath doesn't seem to be called yet, this will be investigated later. looks good miod@, ok deraadt@
2010-06-28add missing headers needed for close() and ioctl().Charles Longeau
ok krw@ millert@
2010-06-27Instead of (manually) closing the _thread_kern_pipe before callingPhilip Guenthe
execve(), just set the close-on-exec flag. Fixes PRs 6183 and 6376. ok marc@, "seems clearly better" tedu@
2010-06-26Add the extendedKeyUsage flags serverAuth and clientAuth. Newer WindowsReyk Floeter
version require these flags to accept the X.509 certificates from the gateway or client; I just add both flags to make it work in both cases and verified it with win7, for example when authenticating against iked. go ahead beck@
2010-06-26sync libexpat with upstream. mostly formating cleanup, no binary change.Eric Faurot
ok deraadt nicm
2010-06-26remove support for the old pflog format, replaced in 2003Henning Brauer
ok ryan theo & herr reyksminister
2010-06-23Protect against multiple inclusion, from Christiano F. Haesbaert.Nicholas Marriott
ok deraadt@
2010-06-18If a request to opendev(3) is given in the form of a disklabel UID,Joel Sing
open /dev/diskmap and perform a DIOCMAP ioctl in order to open the actual device. As a result, all programs which make use of opendev(3) can now operate with disklabel UIDs. Feedback from millert@ ok millert@ krw@ thib@
2010-06-05don't prime server buffers, because it's ugly and conceptuallyAlexandre Ratchov
complicated. Instead, request clients to provide enough samples and start with buffers full.
2010-06-05don't send clock ticks while buffers are being primedAlexandre Ratchov
2010-06-05Don't send the initial position as a clock tick with a negative delta.Alexandre Ratchov
Add a new ``initial position'' message which is simpler. No bahaviour change, except effects of the protocol version crank.
2010-06-03typo in a commentTheo de Raadt
2010-06-02Avoid using and end pointer since strnlen(string, -1) is legalTodd C. Miller
and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@
2010-05-31Hide the timeout_* macros under an EVENT_DEPRECATED ifdef. These namesNicholas Marriott
invite conflicts, they are rarely used, can trivially be replaced by evtimer_*, and are deprecated and removed from event.h in later libevent versions. ok guenther deraadt
2010-05-28typo; Ian McWilliamStuart Henderson
2010-05-26If the stack size attribute isn't larger than the guard-page sizePhilip Guenthe
attribute then make pthread_create() return EINVAL instead of whatever was in errno on entry (possibly making it appear it succeeded when it really failed). Encountered by Jung (moorang at gmail.com).
2010-05-26Move imsg into libutil and add a man page.Nicholas Marriott
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
2010-05-26Switch amd64 and sparc64 over to gcc4; bump libc major to deal with the ABIMark Kettenis
corner cases that were fixed in gcc4, and changes in libgcc that we may have missed. ok kettenis@
2010-05-26oops - forgot to check for trailing whitespace;Jason McIntyre
2010-05-26reword the 'D' dump bit to make it clear that the malloc.out file needsThordur I. Bjornsson
to exist before exit for malloc to dump stats in it. tweaks from jmc@ ok otto@,jmc@
2010-05-25Make sure that we really mark the FPU registers clean.Mark Kettenis
ok deraadt@