summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Sprinkle a few __used markers to prevent gcc4 from throwing away essentialkettenis2010-05-019-40/+40
| | | | | | | bits of code and data. With this change gcc4 builds usable crt*.o on sparc64, other architectures probably need some more love. ok marco@, jsg@
* in sun_start(), don't pause the device in play mode, since it'sratchov2010-04-291-11/+1
| | | | | already paused (by either sio_open or sio_stop) from Alexandr Shadchin, thanks!
* once sio_start() has been called, stream parameters cannot bejakemsr2010-04-261-2/+9
| | | | | | changed until after sio_stop() is called ok ratchov@, jmc@
* If setting close-on-exec flag fails (can this happen?), the wrongratchov2010-04-251-12/+8
| | | | | descriptor is closed. Fix from Alexandr Shadchin, together with various simplifications.
* Fix the way sio_getcap() probes rates of audio(4) devices.ratchov2010-04-251-11/+16
| | | | | From Alexandr Shadchin <alexandr.shadchin at gmail.com> Good catch!
* when probing for a encoding/channels/rate combination, ensure thatratchov2010-04-251-19/+15
| | | | | | | play parameters are set only if playback is enabled, and record parameters are set only if recording is enabled. Fixes sun_getcap() on devices whose play and record parameters are not independent.
* when probing an encoding of a audio(4) device, don't forget toratchov2010-04-241-1/+2
| | | | set record precision.
* remove trailing spaces, from Alexandr Shadchin, thanksratchov2010-04-246-42/+42
|
* Recycle unused disklabel fields in order to create a disklabel uniquejsing2010-04-231-2/+0
| | | | | | | identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
* Allow multiple users to share the same aucat server. If aucat isratchov2010-04-222-5/+23
| | | | | | | | | | | run by root, it binds a shared address to the socket, cranks the process priority and drops privileges. sio_open(3) will try to connect to the private socket first (if any), then to the shared socket. Only one user may have connections to aucat at a given time. based on discussions with henning, pyr and others ok jacek, deraadt
* tweak previous; ok nicmjmc2010-04-221-10/+11
|
* Whoops, EVUTIL_SET_SOCKET_ERROR went missing.nicm2010-04-221-1/+3
|
* Clean up the awful _EVENT_* poo in the libevent headers, and don'tnicm2010-04-217-421/+23
| | | | | | install event-config.h. Pointed out by deraadt.
* Update libevent to 1.4.13.nicm2010-04-2123-4626/+2972
| | | | | | | | | | | | | This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
* The openssl command line tool treats the non-null terminated bufferderaadt2010-04-201-1/+1
| | | | | | | "mbuf" as a C string when using the pop3 s_client feature. This causes a segmentation fault with malloc.conf option "J" set when BIO_printf() runs off the end of the buffer. The following patch fixes PR 6282 from Matthew Haub (asked to submit upstream), ok djm
* Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledderaadt2010-04-201-2/+7
| | | | | | | by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
* Mention that kern.somaxconn is the real upper limit to the listenmillert2010-04-141-4/+6
| | | | queue depth. OK deraadt@ kettenis@
* Security fix for CVE-2010-0740jasper2010-04-142-6/+8
| | | | | | | | | "In TLS connections, certain incorrectly formatted records can cause an OpenSSL client or server to crash due to a read attempt at NULL." http://openssl.org/news/secadv_20100324.txt ok deraadt@ djm@ sthen@
* New functions: bump the minorguenther2010-04-121-1/+1
|
* Add pthread_rwlock_timed{rd,wr}lock().guenther2010-04-121-3/+68
| | | | | | Avoid missed wakeups in pthread_rwlock_{rd,wr}lock() by linking the spinlocks. ok tedu@
* Add support for pthread_rwlock_timed locks.tedu2010-04-126-27/+118
| | | | from brad. ok kurt, who's too busy to commit
* clarify that strptime reads, not writes, strings when handling %%.tedu2010-04-121-3/+3
| | | | ok deraadt jmc
* audio(4) doesn't require to be started explicitely, so the device isratchov2010-04-111-1/+18
| | | | | | | | started immediately after it's opened in record only mode. Pause it in sio_open() and sio_stop(), since libsndio requires an explicit call to sio_start(). discussed with jakemsr
* - nuke some unneeded Pp; from kristapsjmc2010-04-071-6/+3
| | | | - small tweak while here
* aucat (server):ratchov2010-04-064-73/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - make the ``-m mode'' option per subdevice, allowing subdevices to be play-only or rec-only even if the server is full-duplex - add ``monitoring'' mode (with ``-m mon''). This is a record-only stream from which played streams can be recorded (kind of ``record what you hear''). - allow MIDI devices to be subscribed to the controlling MIDI port of the server, ie what midicat does (with -f option), but using the -q option. - add flow control to the protocol, and serialize clock ticks (sio_onmove() calls) and data chunks. This should fix certain full-duplex programs, broken with ``magic'' block/buffer size combinations. - enable 3 block latency which is the minimum theoretical. Make -z and -b options correspond to device parameters. - make sio_getcap(3) the same for aucat and sun backends, ie return whatever is supported (``everything'' in the aucat case, since everything is actulally supported). aucat (player): - enable ``-m mode'' option to select between monitoring and recording when ``-o file'' is used. - plug MIDI code to non-server codepath. The MIDI control device is specified with the ``-q device'' option, as in server mode. - impliment lseek()'ing within files (controlled through MIDI). Necessary to use aucat with a MIDI sequencer. midicat (thrubox): - rename ``-f'' flag to ``-q'', so it has the same name as in aucat (-f is still working) ok jakemsr@, tweaks from jmc@
* Build all manual pages in base with mandoc(1) instead of groff,schwarze2010-04-031-3/+3
| | | | | | excepting the tbl(1) pages, which are less than twenty. "commit the diff that enables it, now" deraadt@
* Add missing documention:guenther2010-04-031-2/+18
| | | | | | | | - fork1() flags: FORK_SIGHAND, FORK_PTRACE, and FORK_THREAD - RTHREADS kernel option - rfork() RFTHREAD flag (with a BUGS entry that it's not usable from C) ok tedu@
* fix a potential memory leak found by zinovik@schwarze2010-04-021-39/+30
| | | | | | | | | while here, make sure each error path sets YP_YPERR and make the function shorter and easier to read by using the idiom "if (error) goto fail" everywhere in the loop and by putting xdr_free in exactly one place near the end ok deraadt@
* WARNINGS -> CAVEATS, and a little neccessary cleanup;jmc2010-04-016-58/+58
|
* typoderaadt2010-04-011-2/+2
|
* document that setting the time of the machine is unsafe. explain why,deraadt2010-04-011-2/+18
| | | | | and suggest workarounds ok guenther
* describe better what KERN_PROC_ARGV and KERN_PROC_ENV return; ok jmc@otto2010-03-301-2/+9
|
* dispense with some wacky escape sequences;jmc2010-03-268-35/+35
|
* Modify example not to use an assignment in the if statement. We shouldn'tkettenis2010-03-241-3/+4
| | | | | | teach people bad habits! ok krw@, jmc@, dlg@, thib@
* Fix glob(3) to correctly return an error when its buffer space isnicm2010-03-231-13/+11
| | | | | | | | | | exhausted and GLOB_BRACE is given. globexp2() was ignoring errors returned from lower levels. While here, change globexp2() to return its return value normally rather putting it in a int pointer then always returning 0. ok otto
* Various improvements, mainly regarding ERRORS.schwarze2010-03-221-40/+39
| | | | | | | | | | | | | * Document EINVAL and EEXIST. * Neither mkstemp nor mkdtemp use lstat, but mktemp does. * Documenting ENOTDIR is useless, it is documented in lstat(2), mkdir(2) and open(2), and it's just one thing out of several that could go wrong. * Refer to lstat(2) instead of stat(2), which is actually used here. * State that two of these functions are standardized in the XPG. * Move the sentence about mkdtemp and mkstemps to the new STANDARDS section. * Get rid of the ugly ".So Li X Sc Ns s", just use "Xs" (suggested by jmc@). tweaks and ok jmc@ millert@
* When all tried file names already existed, mktemp(3) returned withoutschwarze2010-03-211-1/+3
| | | | | | setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp. ok guenther deraadt
* document PF_KEY; from sthen and myselfjmc2010-03-121-3/+17
| | | | | | issue reported by Toni Mueller ok markus
* It's unsetenv() that doesn't like `=' in the argument, not putenv().kili2010-03-101-3/+3
| | | | ok millert@
* cherrypick patch from OpenSSL 0.9.8m:djm2010-03-047-14/+20
| | | | | *) Always check bn_wexpend() return values for failure. (CVE-2009-3245) [Martin Olsson, Neel Mehta]
* explain KERN_NOSUIDCOREDUMP with less words and more precisionschwarze2010-03-011-6/+9
| | | | ok jmc@ deraadt@ guenther@
* Do not attempt to silently continue text for the last column of tablesschwarze2010-02-253-15/+9
| | | | | | | | | | | | | generated by .Bl -column .It <tab> on following lines. This is a workaround; fixing it properly in a way compatible with our old groff would require .Xo support for .Bl -column phrases in mandoc(1), which is too much work right now just to fix exactly this one place in our tree. ok jmc@ This commit fixes the last issue i'm aware of which prevented building our whole tree with mandoc. Not all pages format nicely yet, but none kill the build any more.
* fix the description of _SC_GETPW_R_SIZE_MAX; from Tim van der Molenjmc2010-02-221-4/+4
|
* Multiple issues were killing the build with mandoc(1), thus:schwarze2010-02-201-23/+13
| | | | | | | | * do not use low-level roff macros like .if and .ds * add the missing .Os to the preamble * move unqualified text out of .Bl ok jmc@
* Every .Bl requires .It, even when using -column.schwarze2010-02-181-13/+13
| | | | | | | Found by and unbreaking the build with mandoc(1). While here, properly escape blanks inside columns and use "backslash" instead of "back slash". OK jmc@
* The .TP man(7) macro requires text on the following line, to be used asschwarze2010-02-171-3/+2
| | | | | | | | a label, so having .TP before an .SH section header is a syntax error. Fixing this to unbreak the build with mandoc(1). I will also send this patch upstream. OK nicm@
* typo; ok ogajmc2010-02-121-3/+3
| | | | (sorry, i can't actually find where this started....)
* The previous commit didn't use the first X in the template if theguenther2010-02-111-3/+2
| | | | | | | entire template was Xs. Test suite written now to keep this from happening again. Problem caught by Vadim Zhukov again. ok millert@
* Fix sio_getcap() for audio(4) devices exposing encodingsratchov2010-02-101-3/+3
| | | | | with precision other than 8, 16 or 32 bits. Found by Jan Stary <hans at stare.cz>, thanks!
* Don't underrun the buffer when the template is all X's.guenther2010-02-081-7/+2
| | | | | | | Also, remove a duplicate preconditions check. Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com) ok millert@