Pedro F. Giffuni
2b223a01ef
mixer(8): Prevent possible sscanf() overflow.
...
Fix %s buffer sizes in sscanf().
Obtained from: DragonflyBSD (git dab952e2)
MFC after: 5 days
2017-04-29 19:12:44 +00:00
Conrad Meyer
02dc4f1751
mixer(8): Style: Tag no-return usage() as __dead2
...
Coverity really should have figured this out from the exit(3) call at the end
of the routine, but just make it explicit.
No functional change.
Reported by: Coverity
CID: 1304866 (false positive double-close of 'baz')
Sponsored by: EMC / Isilon Storage Division
2016-05-11 17:27:27 +00:00
Simon J. Gerraty
ccfb965433
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
44d314f704
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
Simon J. Gerraty
ee7b0571c2
Merge head from 7/28
2014-08-19 06:50:54 +00:00
Baptiste Daroussin
01c2b8ac0d
use .Mt to mark up email addresses consistently (part2)
...
PR: 191174
Submitted by: Franco Fichtner <franco@lastsummer.de>
2014-06-20 09:57:27 +00:00
John-Mark Gurney
b2c696468c
add Xref to sound(4)...
...
MFC after: 1 week
2014-06-02 22:58:00 +00:00
Simon J. Gerraty
fae50821ae
Updated dependencies
2014-05-16 14:09:51 +00:00
Simon J. Gerraty
76b28ad6ab
Updated dependencies
2014-05-10 05:16:28 +00:00
Simon J. Gerraty
7cf3a1c6b2
Updated dependencies
2013-03-11 17:21:52 +00:00
Simon J. Gerraty
f5f7c05209
Updated dependencies
2013-02-16 01:23:54 +00:00
Marcel Moolenaar
7750ad47a9
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Alexander Motin
19e79b284d
Return proper error message if recording device is not specified.
...
MFC after: 1 week
2012-01-27 09:15:55 +00:00
Ed Schouten
4d4fda8051
Mark global functions and/or variables in mixer(8) static where possible.
...
This allows compilers and static analyzers to do more thorough analysis.
2011-11-06 19:02:13 +00:00
Ulrich Spörlein
0d9deed52c
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Ulrich Spörlein
62486687ed
mdoc: consistently spell our email addresses <foo@FreeBSD.org>
...
Reviewed by: ru
2010-05-19 08:57:53 +00:00
Ed Schouten
71ccf09269
The last big commit: let usr.sbin/ use WARNS=6 by default.
2010-01-02 11:07:44 +00:00
Jung-uk Kim
f48a417b24
mixer(8) is WARNS=6 clean since 1.25.
...
Tested with: 'make universe'
2008-03-16 08:06:36 +00:00
Jung-uk Kim
57067fb903
Fix a typo.
2008-03-15 01:36:20 +00:00
Jung-uk Kim
e68adf0bb6
Clean up code and fix style(9) nits.
2008-03-15 01:20:05 +00:00
Jung-uk Kim
c60bd3d3a5
Update list of possible mixer devices. These devices were added to
...
soundcard.h more than ten years ago.
2008-03-15 01:15:15 +00:00
Jung-uk Kim
35ebab0a33
- Check device masks and bypass printing headers if capable device does
...
not exist. /etc/rc.d/mixer tried to restore non-existent recording
source because /var/var/db/mixer*-state contains '=rec' for example.
- Remove hardcoded mixer2 and mixer3 and do the right thing.
- Replace getopt(3) with hand-rolled option parser. It was not able
to handle 'mixer -rec mic' although it is a valid command.
- Make '-s' and '-S' mutualy exclusive as mixer(8) says.
- Do not re-read recording source unless it has been modified.
2008-03-15 01:09:47 +00:00
Maxim Konovalov
a88ee16ddd
o Add "line" device to a list of mixer(8) devices.
...
PR: docs/112520
Submitted by: Pietro Cerutti
MFC after: 1 week
2007-05-09 05:33:54 +00:00
Ariff Abdullah
90f0732d68
- Fix possible memory leak due to repetetive strdup(3) without matching
...
free(3).
- print_recsrc() should honor shortflag and give appropriate output for
later consumption by /etc/rc.d/mixer. This will ensure that recording
device selections survived across reboot. Output everything to stdout
instead if stderr.
MFC after: 3 days
2006-01-01 20:19:49 +00:00
Ruslan Ermilov
9d73fabda7
Markup fixes.
...
Approved by: re (blanket)
2005-06-14 12:26:36 +00:00
Matthew N. Dodd
a103924701
Add the -S flag which produces the -s output without
...
mixing field separators.
2005-04-13 07:11:54 +00:00
Ruslan Ermilov
07bfccd71e
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
Ruslan Ermilov
d37ea99837
Removed trailing whitespace.
2004-07-02 19:07:33 +00:00
Peter Grehan
5cfe0423e6
Userland signed char fixes for PPC build. Problems were using a char
...
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
Greg Lehey
872e095cc6
Document changes to default output.
2003-06-15 08:46:36 +00:00
Greg Lehey
a0a031aa9e
Print out the current recording devices in the default printout.
...
Discussed with: cg
Break some particularly long lines.
Still not enough for: bde.
2003-06-15 08:46:04 +00:00
Ruslan Ermilov
f062eac425
Assorted mdoc(7) fixes.
...
Approved by: re (blanket)
2003-05-22 11:52:23 +00:00
David E. O'Brien
b728350ee6
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
Matthew N. Dodd
22baecf2bd
Implement relative mixer adjustment.
...
PR: 46679 (similar functionality)
2003-04-09 15:25:52 +00:00
Juli Mallett
59bfb1ea42
Print old mixer levels when setting new ones.
2002-12-30 04:23:08 +00:00
Philippe Charnier
490d5836b5
The .Nm utility
2002-07-14 14:47:15 +00:00
David E. O'Brien
90e655ea4e
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Dima Dorfman
0cbc94d0e8
Constify and set WARNS=2.
...
Submitted by: Mike Barcroft <mike@q9media.com
Reviewed by: md5(1)
2001-06-25 21:06:15 +00:00
George C A Reid
5c7f33e12c
Change the behaviour of mixer slightly such that not explicitly specifying
...
a mixer device will set/get the master volume levels
PR: 25156
Submitted by: Tony Finch <dot@dotat.at>
Reviewed by: cg, nik
2001-04-09 11:10:34 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Ruslan Ermilov
610a5778c5
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
Kris Kennaway
4887d15929
Fix format string warnings
2000-11-27 07:57:44 +00:00
Ruslan Ermilov
f4d874a1db
mdoc(7) police: do not split author names in the AUTHORS section.
2000-11-22 09:35:58 +00:00
Maxim Sobolev
68a1b9058a
Several cleanups:
...
- use getopt(3) to parse command line arguments instead of home-made incomplete
parser;
- be more verbose when error in command line encountered (i.e. incorrect
playing/recording device, incorrect recsrc syntax).
2000-08-15 05:42:39 +00:00
Jordan K. Hubbard
7a1203480c
I've always wanted to be able to dump out the current values of
...
the mixer in a format suitable for saving and handing off to
mixer(1) at some future date to restore the settings.
Add a -s flag to do this.
2000-05-20 23:25:08 +00:00
Sheldon Hearn
f2e366a105
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 14:09:25 +00:00
Nik Clayton
938b3a1e41
Remove xrefs to obosolete cdplay(1)
...
PR: docs/17079
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:41:13 +00:00
Philippe Charnier
13f6e0f326
Terminate .Bl with .El
1999-11-27 16:55:50 +00:00