CVS commit: src/usr.bin/audiocfg

2023-04-01 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 1 12:41:02 UTC 2023 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Also report precision from hwinfo. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/audiocfg/main.c Please note th

CVS commit: src/usr.bin/audiocfg

2023-04-01 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 1 12:41:02 UTC 2023 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Also report precision from hwinfo. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/audiocfg/main.c Please note th

Re: CVS commit: src/usr.bin/audiocfg

2019-08-24 Thread Tetsuya Isaki
At Sat, 24 Aug 2019 16:28:39 +1000, matthew green wrote: > > Log Message: > > Use device unit number for index. > > The index number was too confusing such as > > 0: [ ] audio1 @ wss0 > > 1: [*] audio0 @ yds0 > > in my PC for example. Here is new format: > > [*] audio0 @ yds0 > > [ ] audio1 @

CVS commit: src/usr.bin/audiocfg

2019-08-24 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 07:39:42 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Revert about index number changes. It breaks its usage and output format. Pointed out by mrg@. To generate a diff of th

CVS commit: src/usr.bin/audiocfg

2019-08-24 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 07:39:42 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Revert about index number changes. It breaks its usage and output format. Pointed out by mrg@. To generate a diff of th

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:32:25 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c Log Message: Create a waveform in hardware native sample rate which is more efficient. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 sr

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:32:25 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c Log Message: Create a waveform in hardware native sample rate which is more efficient. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 sr

re: CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread matthew green
"Tetsuya Isaki" writes: > Module Name: src > Committed By: isaki > Date: Sat Aug 24 05:45:25 UTC 2019 > > Modified Files: > src/usr.bin/audiocfg: audiodev.c audiodev.h main.c > > Log Message: > Use device unit number for index. > The index number was too confusing such as > 0: [ ]

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:16:27 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c Log Message: AUDIO_GETBUFINFO is more efficient for this purpose. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/audiocfg/au

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:16:27 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c Log Message: AUDIO_GETBUFINFO is more efficient for this purpose. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/audiocfg/au

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:13:01 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiocfg.1 Log Message: Fix markup. index of list command is optional. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/audiocfg/audiocfg.

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:13:01 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiocfg.1 Log Message: Fix markup. index of list command is optional. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/audiocfg/audiocfg.

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:11:10 UTC 2019 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Make the same code that appears repeatedly a function. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/usr.bin/audiocfg/main

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:11:10 UTC 2019 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Make the same code that appears repeatedly a function. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/usr.bin/audiocfg/main

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:00:49 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c dtmf.c main.c Log Message: Use err(3)/warn(3) instead of perror(3)/fprintf(stderr,...). Use getprogname(3) for usage(). To generate a diff of this comm

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 06:00:49 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c dtmf.c main.c Log Message: Use err(3)/warn(3) instead of perror(3)/fprintf(stderr,...). Use getprogname(3) for usage(). To generate a diff of this comm

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 05:51:06 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c main.c Log Message: Check mode argument earlier. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/usr.bin/audiocfg/audiodev.c cvs rdif

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 05:51:06 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c main.c Log Message: Check mode argument earlier. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/usr.bin/audiocfg/audiodev.c cvs rdif

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 05:45:25 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Use device unit number for index. The index number was too confusing such as 0: [ ] audio1 @ wss0 1: [*] audio0 @ yds0 i

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 05:45:25 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Use device unit number for index. The index number was too confusing such as 0: [ ] audio1 @ wss0 1: [*] audio0 @ yds0 i

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 04:04:10 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Revert to use single descriptor for "audiocfg test" as before. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 04:04:10 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Revert to use single descriptor for "audiocfg test" as before. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 03:28:38 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Rename some members in adev for clarity. No functional changes intended. To generate a diff of this commit: cvs rdiff -

CVS commit: src/usr.bin/audiocfg

2019-08-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 24 03:28:38 UTC 2019 Modified Files: src/usr.bin/audiocfg: audiodev.c audiodev.h main.c Log Message: Rename some members in adev for clarity. No functional changes intended. To generate a diff of this commit: cvs rdiff -

CVS commit: src/usr.bin/audiocfg

2019-08-22 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Aug 22 14:40:14 UTC 2019 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Fix assertion of "audiocfg list " when n is an illegal index. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/usr.bin/audiocfg

CVS commit: src/usr.bin/audiocfg

2019-08-22 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Aug 22 14:40:14 UTC 2019 Modified Files: src/usr.bin/audiocfg: main.c Log Message: Fix assertion of "audiocfg list " when n is an illegal index. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/usr.bin/audiocfg

Re: CVS commit: src/usr.bin/audiocfg

2010-10-24 Thread Christos Zoulas
On Oct 24, 11:09pm, dholland-sourcechan...@netbsd.org (David Holland) wrote: -- Subject: Re: CVS commit: src/usr.bin/audiocfg | On Mon, Sep 13, 2010 at 01:32:38PM +1000, matthew green wrote: | >>>> Should we make perror() produce a warning so people will stop using it? | >>>

Re: CVS commit: src/usr.bin/audiocfg

2010-10-24 Thread David Holland
On Mon, Sep 13, 2010 at 01:32:38PM +1000, matthew green wrote: Should we make perror() produce a warning so people will stop using it? >>> >>> No, as it is not a NetBSD specific API. >> >> Neither is gets() > > using perror() doesn't lead to fatal security flaws. > > i don't see an

Re: CVS commit: src/usr.bin/audiocfg

2010-09-13 Thread Christos Zoulas
On Sep 12, 11:45pm, t...@zhadum.org.uk (Matthias Scheler) wrote: -- Subject: Re: CVS commit: src/usr.bin/audiocfg | On 11 Sep 2010, at 23:44, Christos Zoulas wrote: | | Well, but gets() is clearly broken by design, perror(3) isn't. And the obvi= | ous replacement for gets(3) is fgets(3) whi

re: CVS commit: src/usr.bin/audiocfg

2010-09-12 Thread matthew green
> In article <5217ce1f-57c2-40bc-9281-50f90bba0...@zhadum.org.uk>, > Matthias Scheler wrote: > > > >On 6 Sep 2010, at 23:35, Christos Zoulas wrote: > >> Should we make perror() produce a warning so people will stop using it? > > > >No, as it is not a NetBSD specific API. > > Neither is gets()

Re: CVS commit: src/usr.bin/audiocfg

2010-09-12 Thread Matthias Scheler
On 11 Sep 2010, at 23:44, Christos Zoulas wrote: > In article <5217ce1f-57c2-40bc-9281-50f90bba0...@zhadum.org.uk>, > Matthias Scheler wrote: >> >> On 6 Sep 2010, at 23:35, Christos Zoulas wrote: >>> Should we make perror() produce a warning so people will stop using it? >> >> No, as it is no

Re: CVS commit: src/usr.bin/audiocfg

2010-09-11 Thread Christos Zoulas
In article <5217ce1f-57c2-40bc-9281-50f90bba0...@zhadum.org.uk>, Matthias Scheler wrote: > >On 6 Sep 2010, at 23:35, Christos Zoulas wrote: >> Should we make perror() produce a warning so people will stop using it? > >No, as it is not a NetBSD specific API. Neither is gets() christos

Re: CVS commit: src/usr.bin/audiocfg

2010-09-11 Thread Matthias Scheler
On 6 Sep 2010, at 23:35, Christos Zoulas wrote: > Should we make perror() produce a warning so people will stop using it? No, as it is not a NetBSD specific API. Kind regards -- Matthias Scheler http://zhadum.org.uk/

Re: CVS commit: src/usr.bin/audiocfg

2010-09-06 Thread Christos Zoulas
In article <20100903192037.c6aa517...@cvs.netbsd.org>, Jared D. McNeill wrote: [...] > if (wlen > buflen) > wlen = buflen; >- write(adev->fd, (char *)buf + off, wlen); >+ wlen = write(adev->fd, (char *)buf + off, wlen); >+