summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2007-10-02fix a libpthread PANIC in seekdir(3) caused by a recursive mutex lock.Kurt Miller
remove the recursive lock in __seekdir() and ensure all callers properly lock dd_lock prior to calling. reported and tested by bernd@ okay marc@ tedu@
2007-09-28implement SNDCTL_DSP_[G|S]ETTRIGGERJacob Meuser
SNDCTL_DSP_SETTRIGGER is used to pause and unpause recording and playback data transfers. SNDCTL_DSP_GETTRIGGER returns the paused states. this implementation of SNDCTL_DSP_SETTRIGGER also sets the audio(4) mode (AUMODE_[PLAY|RECORD]), depending on which direction (play, record or both) is to be triggered. this can be used allow OSS audio programs to work in full-duplex mode without changing the audio(4) layer itself. according to OSS docs, SNDCTL_DSP_SETTRIGGER is a fairly important ioctl, and should be used "when even the first read() cannot block." tested to not break any ports currently using SNDCTL_DSP_SETTRIGGER which has been a no-op for quite some time. ok ratchov
2007-09-27Fix off-by-one buffer overflow in SSL_get_shared_ciphers().Moritz Jodeit
From OpenSSL_0_9_8-stable branch. ok djm@
2007-09-27strtol -> strtonumBret Lambert
assign values to struct members directly remove now-unused variable ok otto@ ok & input millert@
2007-09-25tweak previous; ok claudio henningJason McIntyre
2007-09-24updatecomment and manpage toemtion optional seventh level (rtable id)Henning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-21Add some more truncation checks for path construction in tmpnam(3).Moritz Jodeit
ok ray@
2007-09-19add HISTORY; shortened version of diff from Ilya A. KovalenkoJason McIntyre
ok millert
2007-09-17Fix comment typos; ok ray@, jmc@Bret Lambert
2007-09-17Prevent out-of-bounds memory access in tempnam(3), if the environmentMoritz Jodeit
variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@
2007-09-17Check snprintf(3) return value for error or truncation.Moritz Jodeit
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-09-16for get the flags arg must be 0; from Tamas TEVESZ; ok millert@Otto Moerbeek
2007-09-12Remove wrong snprintf(3) truncation checks, which can't beMoritz Jodeit
triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-09Add lint stubs for the longjmp family of functions which are defined inOtto Moerbeek
assembly on all platforms. ok deraadt@
2007-09-09Silence erroneous "environ used, but not defined" lint warning byOtto Moerbeek
providing a stub. ok deraadt@
2007-09-09comment inside commentTheo de Raadt
2007-09-08typo; ok deraadt@Otto Moerbeek
2007-09-08it's MAXNAMLEN, not MAXNAMELEN; spotted by Igor Zinovi.Otto Moerbeek
2007-09-07IPv6 is not an ARPA protocol;Jason McIntyre
from Robert Elz, netbsd-bugs pr#36933 ok otto deraadt
2007-09-07Say NUL when referring to \0Chad Loder
2007-09-06_xpg4_setrunelocale() returns an errno(2) value in the failureMoritz Jodeit
case and 0 if the locale was found. So checking against -1 makes no sense. ok millert@
2007-09-05Add missing header to avoid warningCharles Longeau
ok millert@ ray@
2007-09-05Fix debugging code, which tried to print the netgroup nameMoritz Jodeit
using the return value of _ng_print(), which returns void. ok millert@
2007-09-05no need to talk about bits; ok millert jmcTheo de Raadt
2007-09-03Update free(3) section--we use mmap()/munmap(), not brk().Todd C. Miller
Based on a diff from Mike Belopuhov. OK jmc@
2007-09-03remove trailing whitespace;Jason McIntyre
2007-09-03crank libc and libstdc++ majorsTodd C. Miller
2007-09-03Add __cxa_atexit() support for gcc3. This provides support for shared ↵Todd C. Miller
object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
2007-09-03Add ENOMSG and EIDRM; from jsg@Todd C. Miller
2007-09-03add recaloc(3)Todd C. Miller
2007-09-03add memrchr(3)Todd C. Miller
2007-09-03malloc(n * m) -> calloc(n, m); ok espieTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-30Update to expat 2.0.1. ok deraadt@Matthieu Herrb
2007-08-22Update to tzcode2007f grom elsie.nci.nih.gov; no actual code changesTodd C. Miller
2007-08-21http://openssl.org/news/patch-CVE-2007-3108.txt; ok pval, deraadtMarkus Friedl
2007-08-14'shall be' was changed to 'is' in sysctl.3#rev1.164, now let's change it to ↵Constantine A. Murenin
'are'; ok jmc@; approved deraadt@
2007-08-08Let realloc handle NULL. Initial diff from Charles Longeau.Ray Lai
OK millert and jaredy.
2007-08-08Clarify the example about avoiding overflow. OK ray@ deraadt@Todd C. Miller
2007-08-08Show how to use strcspn(3) to trim newlines.Ray Lai
OK jmc and millert.
2007-08-08realloc can handle NULL values. From Charles Longeau.Ray Lai
OK jaredy.
2007-08-07Let realloc handle NULL pointers, plus a spacing fix.Ray Lai
OK millert and moritz.
2007-08-06Correctly NUL terminate the message buffer that is used with theClaudio Jeker
-starttls option. Without this openssl s_client -starttls crashed with malloc.conf -> J. OK deraadt@, hshoexer@
2007-08-05/*FALLTHRU*/ -> /* FALLTHROUGH */Ray Lai
2007-08-03Update URL of the keynote webpage. While there, update angelos' emailHans-Joerg Hoexer
address. Noticed by qgiovanni@gmail.co, thanks! ok jmc@ (URL snippet), angelos@
2007-08-01More cats stuff leaving the boat to join the boat anchor.Miod Vallat
2007-07-26apparently this function cannot return EBUSY, so back out -r1.7;Jason McIntyre
from pjanzen; ok marc
2007-07-21- this page describes getpgid.2 tooJason McIntyre
- describe when "pid" is zero; from Kristaps Dzonsons ok millert
2007-07-20Initialize the locks in key_table. On hppa _SPINLOCK_LOCKED is 0, so anMark Kettenis
uninitialized lock ends up in a locked state. This lead to a deadlock if we called pthread_key_create(). ok marc@, kurt@