summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use a local numeric label to branch to the start of the function, instead ofmiod2009-11-011-2/+3
| | | | referencing it by name; silences a linker warning; no functional change.
* Two minor bug fixes rotting in my tree:schwarze2009-11-011-11/+8
| | | | | | | | | (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@
* s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).sobrado2009-10-314-8/+8
|
* stop using kqueue.deraadt2009-10-301-4/+4
|
* a few leftovers from yesterday's SCCS/RCS-ID removal;schwarze2009-10-282-7/+2
| | | | | survived a full make build on i386; "sure" deraadt@
* skip the \' formatting flag, grouping is not implemented; ok deraadt@naddy2009-10-281-1/+5
|
* more fallout from jasper's commit.jsg2009-10-281-2/+2
| | | | | | | Changing the size of the _sys_errlist array changes a libc interface so we need to crank major. kettenis@ agrees
* Remove mutext from list of held mutexes in _mutex_reinit(). Correctskurt2009-10-281-2/+9
| | | | | a failure to lock the _atfork_mutex after forking. Tested by ajacoutot@ and myself. okay guenther@
* more rcsid/sccs cleanupderaadt2009-10-2842-223/+18
|
* Do not need -DLIBC_SCCS anymorederaadt2009-10-283-6/+3
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-27249-1270/+135
| | | | | | | 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
* - bump the majors of libpthread and librthread, as they used to return anjasper2009-10-272-3/+3
| | | | | | aliased ENOTSUP. i should've done this earlier, but missed it. my bad. as discussed with deraadt@ guenther@
* define ENOTSUP EOPNOTSUPP is no longer neededderaadt2009-10-271-6/+1
|
* reorder the log functions slightly; from thomas pfaffjmc2009-10-271-10/+10
|
* We don't have an "Ap" macro so ".Fn execve() Ap d" is wrong, reword to removenicm2009-10-271-16/+15
| | | | | | it. ok jmc
* add ENOTSUP and bump libc minorjasper2009-10-263-4/+7
| | | | | discussed with a few ok deraadt@
* Add man pages for the fdim/fmin/fmax family of functions and make sure fdimlkettenis2009-10-265-10/+195
| | | | | | is defined on all architectures. ok jmc@ (man pages) and martynas@
* reader state cannot be IDLE, terminate the stream if so ratherratchov2009-10-261-3/+4
| | | | entering a busy loop
* document log2() and log2f(); from thomas pfaffjmc2009-10-242-5/+22
| | | | ok otto millert martynas
* Flow control blocks the client in sio_write(3). Split the dataratchov2009-10-241-3/+7
| | | | | | | | 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.
* set protocol version number for midi too. Fixes aucat refusingratchov2009-10-221-1/+2
| | | | control connections.
* When starting playback, the client tries to write ``bufsz'' framesratchov2009-10-221-4/+19
| | | | | | | | | | 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.
* Back out previous commit, as it caused too much growth for the installguenther2009-10-2248-405/+270
| | | | media to fit
* Add f*lockfile() routines to librthreadguenther2009-10-213-3/+311
| | | | ok kurt@
* Change libpthread's f*lockfile() routines to stop acting as no-opsguenther2009-10-211-131/+122
| | | | | | | | | 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@
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-2147-139/+283
| | | | | | | | | | | | 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@
* After forking, the child is single threaded, so tell libc that. Thisguenther2009-10-212-2/+8
| | | | | | is needed to avoid deadlocks in popen() on FILE locking. ok kurt@
* Check mmap return value against MAP_FAILED not NULL.pirofti2009-10-201-2/+2
| | | | Okay deraadt@, otto@.
* terminfo supports the use= capability (tc= in termcap), to allow onenicm2009-10-181-18/+73
| | | | | | | | | | | | | | | | | | | | 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@
* Add version number to aucat protocol. It's not used yet,ratchov2009-10-171-1/+2
| | | | | | | 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
* teach gdtoa & its subroutines that malloc can fail; in which casemartynas2009-10-1646-2989/+408
| | | | | | 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
* In evbuffer_readline, do not lose data upon malloc failure. From mainstream:jacekm2009-10-131-2/+1
| | | | | http://levent.svn.sourceforge.net/viewvc/levent?view=rev&revision=1436 ok gilles@
* another cert that makes godaddy.com and launchpad.net (among others) happy.fgsch2009-10-121-0/+51
| | | | | found by Guillaume Protet (guillaume dot protet at mortheres dot info) while testing bzr update. deraadt@ ok
* rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@otto2009-10-101-25/+28
|
* when setting parameters of sun devices, check that selected encodingratchov2009-10-101-4/+23
| | | | is actually linear
* at initialization of sun devices, use sio_setpar(3) instead ofratchov2009-10-101-11/+10
| | | | | AUDIO_SETINFO() to set the initial parameters, since AUDIO_SETINFO() can fail.
* since AUDIO_INITINFO() may set parameters to whatever is supportedratchov2009-10-101-24/+59
| | | | | | | | 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.
* Add (again) support for divert sockets. They allow you to:michele2009-10-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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@
* Do not `return' in void functions.miod2009-10-011-4/+4
| | | | Amazingly, compiler does not complain (lint does).
* remove unsupported LIBRARY section; from Alan R. S. Buenojmc2009-09-291-4/+2
|
* rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationguenther2009-09-271-1/+8
| | | | pointed out by brad, ok djm@
* Minor bump for safety, due to the mips cachectl() addition.miod2009-09-271-1/+1
|
* Add an implementation of IRIX-compatible cacheflush() routine to mips ports,miod2009-09-275-3/+135
| | | | | | | 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).
* Test for MACHINE_ARCH to decide whether to build stuff in libarch/arm, insteadmiod2009-09-241-2/+2
| | | | of an incomplete MACHINE list.
* rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationguenther2009-09-241-1/+6
| | | | ok kettenis@, art@
* Zero out IPv6 mask before using it. This fixes expressions likebluhm2009-09-181-1/+2
| | | | | | 'net 2002::/16', which were previously non-deterministic based on the previous contents of memory. from upstream; ok claudio@
* cvs log message from ed@freebsd, revision 197045:jmc2009-09-101-3/+3
| | | | | | | | | | | 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
* Palm: Integration into the treemarex2009-09-091-2/+2
| | | | OK deraadt@
* maxzis -> maxsize; from Han Boetesjmc2009-09-091-3/+3
|
* I had not enough oks to commit this diff.michele2009-09-081-7/+1
| | | | Sorry.