summaryrefslogtreecommitdiffstats
path: root/usr.bin/mixerctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add unveil(2) to mixerctl(1)mestre2018-08-081-3/+13
| | | | | | | | | | | | | | | after we know what is the mixer device to be used, either through MIXERDEVICE env var, the argument passed or by default /dev/mixer then we can unveil it in read/write mode, then if opening fails we reduce unveil to only read mode. Once open(2) succeeds then we can disable fs access by calling unveil(NULL, NULL) since all further operations occur on fds. A cleaner solution would be to just call pledge("audio") after open(2) but currently the ioctls used are not whitelisted in pledge(2), ratchov@ will investigate a better way to do this OK ratchov@
* catch up with the symlink removal of /dev/{audio,mixer};jmc2018-07-301-4/+4
| | | | ok ratchov
* drop useless .Xo and .Bk, and shorten by avoiding some .Smschwarze2015-09-251-4/+2
|
* use file system path (.Pa) semantic markup macros where appropriate.sobrado2015-07-271-4/+4
| | | | ok jmc@
* in getopt() blocks, stop incrementing flag variable which are supposedderaadt2015-02-081-4/+4
| | | | | to just be 0/1 ok miod florian
* if a value is changed and -n is used, print the new value only.ratchov2009-11-121-14/+13
| | | | | from Pawlowski Marcin Piotr <pmp.openbsd at gmail.com> ok jakemsr
* some minor cleanup, including a fix from Thomas Pfaff (mentionjmc2008-10-191-11/+13
| | | | mixerctl.conf in mixerctl(1));
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-262-17/+3
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* synchronize the synopsis and usage; improve description of flag "-a"sobrado2008-03-141-4/+5
| | | | | | written with invaluable advice from jakemsr@, jmc@, ratchov@ ok jmc@
* the mixer_devinfo structure contains next and prev pointers; they are usedratchov2008-01-131-3/+2
| | | | | | | | | to create doubly linked "chains" of mixer devices. Currently mixerctl(1) supposes that the 'next' index is never smaller than the index of the device; so it fails to handle such mixers. The fix, allows 'next' indexes to be smaller than the index of the device. ok jakemsr@
* if no arguments given, assume a nice default; ok miod jakemsr deannaderaadt2007-11-261-3/+5
|
* style(9) fixes, optional flags without arguments come first;sobrado2007-09-272-6/+6
| | | | | | while here, some spacing fixes ok deanna@, jakemsr@
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-062-10/+9
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* big sorry to simon dassow, whose diff i inadvertently removed;jmc2005-10-181-2/+7
| | | | this reinstates it;
* - document the different types of mixerctl variablesjmc2005-10-171-38/+51
| | | | | | | | - standard EXAMPLES - make HISTORY more Ox-specific - minor tweaks feedback + ok: otto@ jaredy@ tom@
* more words; janus@area319.dederaadt2005-10-101-2/+4
|
* missing progname, clamat@telus.netderaadt2005-10-071-2/+2
|
* toggle support from janus@area319.de. i was unsure, but a few otherderaadt2005-10-012-9/+43
| | | | people found this very useful
* Fix mixerctl -qmillert2005-05-091-5/+5
|
* Levels should be between AUDIO_MIN_GAIN and AUDIO_MAX_GAIN inclusivemillert2005-02-071-51/+41
| | | | | Truncate specified level to be within this range and avoid wrapping. Idea from espie@, OK henning@
* Fix a few memory leaks and general cleanup. From Joris Vink. ok tedu@otto2005-02-021-89/+87
|
* Minor KNF, s/for(/for (/millert2005-01-041-16/+16
|
* Fix some issues noted by Joris Vink; pedro@ OKmillert2005-01-041-5/+6
| | | | | | o g/c the changed field in struct field o increment argv for bad fields too o deal with AUDIO_MIXER_DEVINFO (unlikely) failures
* Add support for setting mixerctl values in a sysctl.conf like mannerjsg2004-11-221-1/+2
| | | | | via mixerctl.conf. ok deraadt@, earlier version ok henning@
* Xrs from Alexey E. Suslikov;jmc2004-07-301-1/+3
|
* fix ndev counting loop. report from Stuart Cassofftedu2004-03-021-4/+4
|
* fix segfault when an invalid field was requestedvincent2004-01-221-4/+8
| | | | ok miod
* remove need for -w. ok beck deraadttedu2004-01-222-46/+39
|
* mixerctl.1:jmc2003-11-212-22/+24
| | | | | | | | | | | | - put SYNOPSIS in standard form - -n does not make sense with -q - adjust -width of option list - sort options - a clarity fix from snj att pobox dott com mixerctl.c: - fix spacing in usage() - sync usage() with SYNOPSIS
* - section reorderjmc2003-06-101-11/+11
| | | | | | | | | - COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
* unbreak tree; ok margarida@todd2003-05-151-2/+2
|
* make usage printing match what's in the manpage, which is better; ok jfb@jsyn2003-05-151-4/+4
|
* Add a -q flag to suppress all output when setting a variable, andjfb2003-05-152-8/+13
| | | | | | | remove the -v flag from the SYNOPSIS for the -w option since it has no effect ok jsyn@ millert@
* end sentence with a period; jmc@prioris.mini.pw.edu.plpvalchev2003-01-051-2/+2
|
* ansify, indent, check for malloc/calloc failure, proper usage()pvalchev2002-12-031-72/+62
| | | | from andrushock@korovino.net via deraadt
* complete SYNOPSIS, sort options and improve wording slightlypvalchev2002-12-031-9/+10
| | | | from andrushock@korovino.net
* use $ or # before commands in examplesderaadt2002-11-141-2/+2
|
* strlcatderaadt2002-05-291-5/+9
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* open RDWR only for -w, RDONLY otherwisemickey2002-01-091-11/+11
|
* Remove completely redundant introductory sentences in ENVIRONMENT sections.aaron2001-05-011-3/+1
|
* - Section shuffling: comply to the section ordering outlined in mdoc(7).aaron2000-11-101-6/+6
| | | | | | - Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* Convert to newer style.aaron2000-03-101-37/+48
|
* fix for case no mixer devices are available, got triggered by malloc.conf->J; millert@ okmickey1999-07-191-1/+5
|
* more .Nm fixesaaron1998-12-161-6/+4
|
* usr.bin/ man page fixes, f-m.aaron1998-09-261-5/+5
|
* more man page fixes; aaron@ug.cs.dal.caderaadt1998-09-011-2/+2
|
* Add some more explanatory text. augustssprovos1998-06-021-6/+43
|