summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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@
2009-10-21Change libpthread's f*lockfile() routines to stop acting as no-opsPhilip Guenthe
for FILEs that don't have real file-descriptors: the fake FILEs used internally by snprintf/asprintf/vfprintf and friends now avoid unnecessary locking by calling the internal __vfprintf() routine directly and we do want to do locking on FILEs created with funopen(). ok kurt@
2009-10-21Fix the handle locking in stdio to use flockfile/funlockfilePhilip Guenthe
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. ok kurt@, earlier version tested by sthen@ and jj@
2009-10-21After forking, the child is single threaded, so tell libc that. ThisPhilip Guenthe
is needed to avoid deadlocks in popen() on FILE locking. ok kurt@
2009-10-20Check mmap return value against MAP_FAILED not NULL.Paul Irofti
Okay deraadt@, otto@.
2009-10-18terminfo supports the use= capability (tc= in termcap), to allow oneNicholas Marriott
description to reference another. If this is used, any capabilities in the parent terminal description should override those pulled in by use=. When cap_mkdb is building terminfo.db, it concatenates any use= references together so each description is self-contained. However, the ncurses terminfo implementation doesn't expect this - it assumes it will have to resolve use= itself, and picks the last entry in the description created by cap_mkdb rather than the first. read_bsd_terminfo.c already makes some transformations to make ncurses happy with the format in the database. So, extend this to trim out duplicate entries, leaving only the first. (Interestingly, ncurses already has code to correctly handle merged tc= capabilities in termcap.db (used if terminfo.db is missing).) "go ahead" deraadt@
2009-10-17Add version number to aucat protocol. It's not used yet,Alexandre Ratchov
but later, it will permit aucat to reject connections from clients statically linked to a unsupported version of libsndio. idea from kittenis, otto and sthen
2009-10-16teach gdtoa & its subroutines that malloc can fail; in which caseMartynas Venckus
ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
2009-10-13In evbuffer_readline, do not lose data upon malloc failure. From mainstream:Jacek Masiulaniec
http://levent.svn.sourceforge.net/viewvc/levent?view=rev&revision=1436 ok gilles@
2009-10-12another cert that makes godaddy.com and launchpad.net (among others) happy.Federico G. Schwindt
found by Guillaume Protet (guillaume dot protet at mortheres dot info) while testing bzr update. deraadt@ ok
2009-10-10rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@Otto Moerbeek
2009-10-10when setting parameters of sun devices, check that selected encodingAlexandre Ratchov
is actually linear
2009-10-10at initialization of sun devices, use sio_setpar(3) instead ofAlexandre Ratchov
AUDIO_SETINFO() to set the initial parameters, since AUDIO_SETINFO() can fail.
2009-10-10since AUDIO_INITINFO() may set parameters to whatever is supportedAlexandre Ratchov
by the device, we may end up with different recording and playback parameters, which will break almost all full duplex apps on such devices. For instance, this should fix full-duplex apps not working on devices that can record at any sample rate but can play at 48kHz only.
2009-10-04Add (again) support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 1 A lot of discussion have happened since my last commit that resulted in many changes and improvements. I would *really* like to thank everyone who took part in the discussion especially canacar@ who spotted out which are the limitations of this approach. OpenBSD divert(4) is meant to be compatible with software running on top of FreeBSD's divert sockets even though they are pretty different and will become even more with time. discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@ tested by reyk@ and myself ok reyk@ claudio@ beck@ manpage help and ok by jmc@
2009-10-01Do not `return' in void functions.Miod Vallat
Amazingly, compiler does not complain (lint does).
2009-09-29remove unsupported LIBRARY section; from Alan R. S. BuenoJason McIntyre
2009-09-27rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationPhilip Guenthe
pointed out by brad, ok djm@
2009-09-27Minor bump for safety, due to the mips cachectl() addition.Miod Vallat
2009-09-27Add an implementation of IRIX-compatible cacheflush() routine to mips ports,Miod Vallat
needed for gcc -ftrampoline operation as well as by some third-party software. Although the implementation uses the sysarch() sysctl, the wrapper is added to libc as it was a direct system call (which it is on IRIX).
2009-09-24Test for MACHINE_ARCH to decide whether to build stuff in libarch/arm, insteadMiod Vallat
of an incomplete MACHINE list.
2009-09-24rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationPhilip Guenthe
ok kettenis@, art@
2009-09-18Zero out IPv6 mask before using it. This fixes expressions likeAlexander Bluhm
'net 2002::/16', which were previously non-deterministic based on the previous contents of memory. from upstream; ok claudio@
2009-09-10cvs log message from ed@freebsd, revision 197045:Jason McIntyre
Make the description of `b' a little better. If you have a one-byte sequence, `w', `b' is the second character. Not the third. Submitted by: Christoph Mallon checked by otto
2009-09-09Palm: Integration into the treeMarek Vasut
OK deraadt@
2009-09-09maxzis -> maxsize; from Han BoetesJason McIntyre
2009-09-08I had not enough oks to commit this diff.Michele Marchetto
Sorry.
2009-09-08Add support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 8000 test, bugfix and ok by reyk@ manpage help and ok by jmc@ no objections from many others.
2009-09-02make getaddrinfo(3) accept numeric servname when ai_socktype is notFederico G. Schwindt
specified in hint or hints is NULL. claudio@ ok
2009-08-28Change cap_mkdb and curses to be a better about reformatting terminfo entriesNicholas Marriott
into the cap database format and back: rather than replacing all colons with commas, only touch real separators (skip those with a leading \ or ^) and replace an unadorned colon with a literal "\072". Fixes problems with quite a few caps including acsc in "screen" (:s instead of ,s) and setab/initc in "xterm-256color" (wrongly concatenated together). ok millert
2009-08-28don't consider calling sio_close() without calling sio_stop() firstAlexandre Ratchov
as a programming error. At any stage the program should be alble to cleanly free resources and close the device.
2009-08-28when using aucat backend, wait for the server to drop the connectionAlexandre Ratchov
on sio_close()
2009-08-28add a new AMSG_BYE, sent by the client to requst the server toAlexandre Ratchov
free resources and drop the connection. This allows the client to ensuire that at any time it's using only one connection, thus only one MIDI control channel.