Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add unveil(2) to mixerctl(1) | 2018-08-08 | 1 | -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@ | ||||
* | in getopt() blocks, stop incrementing flag variable which are supposed | 2015-02-08 | 1 | -4/+4 | |
| | | | | | to just be 0/1 ok miod florian | ||||
* | if a value is changed and -n is used, print the new value only. | 2009-11-12 | 1 | -14/+13 | |
| | | | | | from Pawlowski Marcin Piotr <pmp.openbsd at gmail.com> ok jakemsr | ||||
* | First pass at removing clauses 3 and 4 from NetBSD licenses. | 2008-06-26 | 1 | -8/+1 | |
| | | | | | | | | | 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@ | ||||
* | the mixer_devinfo structure contains next and prev pointers; they are used | 2008-01-13 | 1 | -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 deanna | 2007-11-26 | 1 | -3/+5 | |
| | |||||
* | style(9) fixes, optional flags without arguments come first; | 2007-09-27 | 1 | -3/+3 | |
| | | | | | | while here, some spacing fixes ok deanna@, jakemsr@ | ||||
* | the ellipsis is not an optional argument; while here, sync the usage | 2007-08-06 | 1 | -4/+4 | |
| | | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@ | ||||
* | missing progname, clamat@telus.net | 2005-10-07 | 1 | -2/+2 | |
| | |||||
* | toggle support from janus@area319.de. i was unsure, but a few other | 2005-10-01 | 1 | -8/+26 | |
| | | | | people found this very useful | ||||
* | Fix mixerctl -q | 2005-05-09 | 1 | -5/+5 | |
| | |||||
* | Levels should be between AUDIO_MIN_GAIN and AUDIO_MAX_GAIN inclusive | 2005-02-07 | 1 | -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@ | 2005-02-02 | 1 | -89/+87 | |
| | |||||
* | Minor KNF, s/for(/for (/ | 2005-01-04 | 1 | -16/+16 | |
| | |||||
* | Fix some issues noted by Joris Vink; pedro@ OK | 2005-01-04 | 1 | -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 | ||||
* | fix ndev counting loop. report from Stuart Cassoff | 2004-03-02 | 1 | -4/+4 | |
| | |||||
* | fix segfault when an invalid field was requested | 2004-01-22 | 1 | -4/+8 | |
| | | | | ok miod | ||||
* | remove need for -w. ok beck deraadt | 2004-01-22 | 1 | -43/+37 | |
| | |||||
* | mixerctl.1: | 2003-11-21 | 1 | -4/+4 | |
| | | | | | | | | | | | | - 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 | ||||
* | unbreak tree; ok margarida@ | 2003-05-15 | 1 | -2/+2 | |
| | |||||
* | make usage printing match what's in the manpage, which is better; ok jfb@ | 2003-05-15 | 1 | -4/+4 | |
| | |||||
* | Add a -q flag to suppress all output when setting a variable, and | 2003-05-15 | 1 | -6/+9 | |
| | | | | | | | remove the -v flag from the SYNOPSIS for the -w option since it has no effect ok jsyn@ millert@ | ||||
* | ansify, indent, check for malloc/calloc failure, proper usage() | 2002-12-03 | 1 | -72/+62 | |
| | | | | from andrushock@korovino.net via deraadt | ||||
* | strlcat | 2002-05-29 | 1 | -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. | 2002-02-16 | 1 | -5/+5 | |
| | |||||
* | open RDWR only for -w, RDONLY otherwise | 2002-01-09 | 1 | -11/+11 | |
| | |||||
* | fix for case no mixer devices are available, got triggered by malloc.conf->J; millert@ ok | 1999-07-19 | 1 | -1/+5 | |
| | |||||
* | allow relative values via +/- prefixes | 1998-05-02 | 1 | -6/+41 | |
| | |||||
* | From NetBSD: Lennart Augustsson: | 1998-04-30 | 1 | -3/+7 | |
| | | | | environment variable for default mixer device | ||||
* | $OpenBSD$ | 1998-04-26 | 1 | -0/+1 | |
| | |||||
* | mixerctl from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se> | 1998-04-26 | 1 | -0/+364 | |