summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2009-11-23Make the code example fit on an 80 char screen without wrapping.Michael Knudsen
ok guenther (no word from the sunshine girls on the matter, though)
2009-11-22Oops, KSEG -> CKSEG.Miod Vallat
2009-11-22Fixed typo in function name.Tobias Stoeckmann
ok jmc
2009-11-22Allow mips ports to override VM_{MIN,MAX}_KERNEL_ADDRESS, and provide theMiod Vallat
address as a kernel variable for use by libkvm. On sgi IP27 and IP30 kernels, use XKSEG instead of CKSSEG; this will allow kernel KVM size to grow in the future if necessary.
2009-11-21replacing malloc/realloc dance, by only one reallocCharles Longeau
ok millert@
2009-11-21remove unused variableCharles Longeau
ok deraadt@
2009-11-21remove unused variableCharles Longeau
ok guenther@
2009-11-21Ooops, committed an unbaked changePhilip Guenthe
2009-11-21Several stdio functions were failing to set the stream orientationPhilip Guenthe
to 'narrow' as they should. "looks correct" millert@ "makes sense" blambert@
2009-11-19pthread_rwlock_wrlock() should increment the count of writers justPhilip Guenthe
once and not on every wakeup. ok kurt@
2009-11-18More shrinkage, a bit for ramdisks but mostly for static binaries:Philip Guenthe
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@
2009-11-12simplify the code looking for + in the password database, after analysisTheo de Raadt
of a false positive made by parfait; ok millert
2009-11-12change back to preferring kqueue, now that nicm, tedu and i haveTheo de Raadt
fixed it (or, all the issues we are aware of so far). discussed with nicm
2009-11-11fix leaks in error cases found by parfaitJonathan Gray
ok blambert@ miod@ deraadt@
2009-11-11memory leaks, found by parfait; ok millertTheo de Raadt
2009-11-11obvious use after free, found by parfaitTheo de Raadt
2009-11-10pull Ben Lauries blind prefix injection fix for CVE-2009-3555 fromMarkus Friedl
openssl 0.9.8l; crank minor version; ok djm@ deraadt@; initially from jsg@
2009-11-10ctim -> ctime; from ca (pr #6256)Jason McIntyre
2009-11-09mbrlen returns size_t not int.Nicholas Marriott
ok espie
2009-11-09Fix the handle locking in stdio to use flockfile/funlockfileKurt Miller
internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
2009-11-08ansifyStefan Sperling
ok deraadt
2009-11-07remove gcc 1 workaround we no longer care about whichJonathan Gray
was breaking non GNUC defining compilers. Came up during a conversation with ragge@, positive comments from several.
2009-11-06Provide assembly version of sqrtl(3).Mark Kettenis
ok pirofti@
2009-11-05Provide assembly version of sqrtl(3).Mark Kettenis
ok otto@
2009-11-03in block size calculations, use SIO_BPS(precision) instead ofAlexandre Ratchov
precision / 8. Fixes sio_setpar() requesting smaller block sizes on 24-bit devices.
2009-11-02permit -DMALLOC_STATS to compile againTodd T. Fries
noticed by Jonathan Armani & Fabien Romano ugh+ok otto@
2009-11-01Use a local numeric label to branch to the start of the function, instead ofMiod Vallat
referencing it by name; silences a linker warning; no functional change.
2009-11-01Two minor bug fixes rotting in my tree:Ingo Schwarze
(1) When the second malloc in yp_next fails, do not leak the memory allocated by the first one. Same fix as yp_first.c rev. 1.9. (2) When compiled with YPMATCHCACHE, do not fail the lookup when reserving memory for the cache fails. Instead, just return the correct result without caching it. ok millert@
2009-10-31s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).Igor Sobrado
2009-10-30stop using kqueue.Theo de Raadt
2009-10-28a few leftovers from yesterday's SCCS/RCS-ID removal;Ingo Schwarze
survived a full make build on i386; "sure" deraadt@
2009-10-28skip the \' formatting flag, grouping is not implemented; ok deraadt@Christian Weisgerber
2009-10-28more fallout from jasper's commit.Jonathan Gray
Changing the size of the _sys_errlist array changes a libc interface so we need to crank major. kettenis@ agrees
2009-10-28Remove mutext from list of held mutexes in _mutex_reinit(). CorrectsKurt Miller
a failure to lock the _atfork_mutex after forking. Tested by ajacoutot@ and myself. okay guenther@
2009-10-28more rcsid/sccs cleanupTheo de Raadt
2009-10-28Do not need -DLIBC_SCCS anymoreTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-27- bump the majors of libpthread and librthread, as they used to return anJasper Lievisse Adriaanse
aliased ENOTSUP. i should've done this earlier, but missed it. my bad. as discussed with deraadt@ guenther@
2009-10-27define ENOTSUP EOPNOTSUPP is no longer neededTheo de Raadt
2009-10-27reorder the log functions slightly; from thomas pfaffJason McIntyre
2009-10-27We don't have an "Ap" macro so ".Fn execve() Ap d" is wrong, reword to removeNicholas Marriott
it. ok jmc
2009-10-26add ENOTSUP and bump libc minorJasper Lievisse Adriaanse
discussed with a few ok deraadt@
2009-10-26Add man pages for the fdim/fmin/fmax family of functions and make sure fdimlMark Kettenis
is defined on all architectures. ok jmc@ (man pages) and martynas@
2009-10-26reader state cannot be IDLE, terminate the stream if so ratherAlexandre Ratchov
entering a busy loop
2009-10-24document log2() and log2f(); from thomas pfaffJason McIntyre
ok otto millert martynas
2009-10-24Flow control blocks the client in sio_write(3). Split the dataAlexandre Ratchov
stream in a way that the pause never occurs in the middle of data chunks. Beside being more natural, this allows the client to send non-data messages during the pause (set the volume, stop playback...), rather than delaying them until the end of the pause. It's about few milliseconds only.
2009-10-22set protocol version number for midi too. Fixes aucat refusingAlexandre Ratchov
control connections.
2009-10-22When starting playback, the client tries to write ``bufsz'' framesAlexandre Ratchov
instead of ``appbufsz'', which violates the flow control mechanism. Fix this longstanding bug by enabling negative values in AMSG_MOVE messages, this way the client is notified when its stream is attached to the mixer, and can update its max transfer limit. Since this fix changes the AMSG_MOVE message format, we crank the protocol version, and thus remove code specific to the old protocol.
2009-10-22Back out previous commit, as it caused too much growth for the installPhilip Guenthe
media to fit
2009-10-21Add f*lockfile() routines to librthreadPhilip Guenthe
ok kurt@