summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-11-11tweak previous;Jason McIntyre
2008-11-11expose a volume knob in the sndio API: add sio_setvol(3) andAlexandre Ratchov
sio_onvol(3) functions. The audio(4) backend tries to use the inputs.dac, outputs.dac, outputs.output and outputs.master controls (in this order). Add a sample file in regress/lib/libsndio/vol/vol.c
2008-11-09typos; ok ratchov@ jmc@Christian Weisgerber
2008-11-09if the device is not started, make sio_pollfd() pass 0 events bitmapAlexandre Ratchov
to the backend to avoid reporing the device as writable when it's stopped. Solves 100% CPU usage of apps poll()ing a stopped device.
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-11-09sio_revents() should return 0 poll events if the device isn't startedAlexandre Ratchov
2008-11-09tweak previous;Jason McIntyre
2008-11-08Document the ddb.trigger sysctl.Chris Kuethe
feedback and ok mpf@, deraadt@
2008-11-07expose the block size in the sndio API by making par->round writableAlexandre Ratchov
and thus remove the ugly rate <-> block-size table from sio_setpar(3). Handle the block size negociation in aucat(1), since it has few constrains the code is overally simpler. ok jakemsr@, major crank suggested by deraadt@
2008-11-06if the freeprot flag (F) is set, do not do delayed frees for chunksOtto Moerbeek
(might catch errors closer to the trouble spot) and junk fill pages just before reuse instead of immediate (we can't access the page anyway) since we set PROT_NONE in the F case. ok djm@
2008-11-02fix markup of example line and description of G flag; partly from andOtto Moerbeek
ok jmc@
2008-11-02remove distinction between warnings and errors, ok deraadt@ djm@Otto Moerbeek
2008-10-31Pass a pointer to warn2 so the warn2 == IN_ALL would not be anTodd C. Miller
always-false condition. From FreeBSD (delphij).
2008-10-30only few (frequency, blocksize) pairs are compatible with both resamplingAlexandre Ratchov
and block based audio i/o (arithmetic constraints). For now round the frequency to a supported one, (ie 8kHz, 11.025kHz, 12kHz multiple), and get the the block size from a table. fixes problem reported by Robert <robert _at_ openbsd.pap.st> ok jakemsr
2008-10-29if MALLOC_STATS is defined, record how many "cheap reallocs" wereOtto Moerbeek
tried and how many actually succeeded.
2008-10-29document LIBSIO_DEBUGTodd T. Fries
ok ratchov@
2008-10-28fix missing n in error messageAlexandre Ratchov
2008-10-28sio_initpar() is supposed to return void like the documentationJonathan Gray
says according to ratchov@. Make it so, and crank major. ok ratchov@
2008-10-27rename libsa to libsndioAlexandre Ratchov
requested by many, "just go for it" deraadt@
2008-10-26add some audio/libsa cross refs;Jason McIntyre
2008-10-26rename libsa.3 to sa_open.3 and create mlinks for all other functionsAlexandre Ratchov
requested by and help from jmc
2008-10-26recored -> recordedMarc Espie
2008-10-26add minimal server capability to aucat(1). When started in serverAlexandre Ratchov
mode, it listens on an unix socket and mixes/demultiplexes any number of full-duplex streams, doing necessary format conversions and resampling on the fly. programs can use the new libsa(3) library to play and record audio. The library provides a very simple API to connect to the audio server; if aucat(1) isn't running, it uses the audio(4) driver transparently instead.
2008-10-24some SEE ALSO additions from Ingo Schwarze;Jason McIntyre
2008-10-23Reword description of tm_zone and tm_gmtoff fieldsPhilip Guenthe
Prompted by millert@; ok millert@ jmc@
2008-10-22man page for Makefile.yp, and associated bits; from Ingo SchwarzeJason McIntyre
ok deraadt
2008-10-21build w/ USE_LOCALE. ok millert@Martynas Venckus
2008-10-21use decimal point from locale. ok millert@Martynas Venckus
2008-10-20oops, assign errno the right way. caught by david running regress testsOtto Moerbeek
2008-10-19document fts_open error handling; from Tim van der MolenJason McIntyre
ok millert
2008-10-19Document that strptime doesn't set the dst flag.Todd C. Miller
Based on a diff from Mark Bucc. OK jmc@
2008-10-17adjust asm to be pic compatible. okay kettenis@Kurt Miller
2008-10-13use calloc() instead of malloc() and memset()Kevin Lo
"look good" tedu@
2008-10-07- noieee_src: adapt complex versions of the functions it alreadyMartynas Venckus
supports (which is all, except the float ones) ok millert@
2008-10-06The recent change to bsd.own.mk to allow PICFLAG to be overridden madeKurt Miller
these previously ignored PICFLAG settings become active. Remove PICFLAG overrides to restore -fpic/-fPIC modes. In snaps for a week. okay drahn@
2008-10-06update to tzcode2008g from elsie.nci.nih.govTodd C. Miller
2008-10-05Fix conversion of numbers without an exponent.Mark Kettenis
ok martynas@
2008-10-03reduce rbyte cache to 512 bytes, no measurable slowdown (even in theOtto Moerbeek
threaded case) but much smaller working set; prompted by and ok deraadt@
2008-10-03save and restore errno on success. while it is not stricly needed forOtto Moerbeek
non-syscalls, there's just too much code not doing the right thing on error paths; prompted by and ok deraadt@
2008-10-03zap __arc4_getbyte(), it was only used by the old malloc; ok millert@Otto Moerbeek
kurt@
2008-10-03when increasing the size of a larger than a page allocation tryOtto Moerbeek
mapping the region next to the existing one first; there's a pretty high chance there's a hole there we can use; ok deraadt@ tedu@
2008-10-03avoid spitting up regions when purging stuff from the cache, it putsOtto Moerbeek
too much pressure on the amaps. ok tedu@ deraadt@
2008-10-03Make sigwait() work correctly. In particular, it'll work when thePhilip Guenthe
signal is already pending in the calling thread or the main thread and there's no longer a race condition where the signal could be diverted but sigwait() would still block. There were some off-by-one errors too. (The checking of the main thread's pending list is just until a pending list for the process can be added to struct process. For now, such signals end up as pending on the main thread.) oks tedu@ and art@
2008-10-02the license on this is PD; david leonard says soTheo de Raadt
2008-10-02Fix PR #5942: preserve errno across fd flag updates, so that successfulTheo de Raadt
calls to close(), closefrom(), and dup2() don't change it. ok tedu@, deraadt@, kurt@, millert@, art@, marco@ (miscommit: originally by guenther@)
2008-10-02the license on this is PD; david leonard says soTheo de Raadt
2008-10-02simplify and clarify login_getstyle; ok deraadt@Todd C. Miller
2008-10-01POSIX character class support for fnmatch(3) and glob(3). OK deraadt@Todd C. Miller
2008-10-01Simplify the loop used for bp overflow detection to match what I'mTodd C. Miller
using on the list server.
2008-10-01Fix for sequential retrieval failure when using large key/data pairs.Todd C. Miller
Closes PR 2764. Has been running on the list server for years. OK deraadt@