krw
0a3fb11d8f
Vox populi says "cdio:" prefix is useful so switch back to using
...
warnx(), but with required "\n" manually output to stderr before
calling warnx().
Requested by tb@ and OP Michael Siegel.
2022-10-11 16:32:40 +00:00
krw
80203c1b92
Don't leak 'sec' in error path.
2022-10-10 14:52:02 +00:00
krw
5cb1d9dce1
Fix some error output, replacing some silly 'warnx("\n...")' with
...
fprintf(stderr, "\n...").
Reported by Michael Siegel via bugs@. ok tb@ (with some further suggestions)
2022-10-07 19:59:19 +00:00
deraadt
3aaa63eb46
When system calls indicate an error they return -1, not some arbitrary
...
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
2019-06-28 13:34:58 +00:00
cheloha
5eb87a29ca
Use the monotonic clock for logging progress in cdio(1) and ftp(1).
...
Keeps the progress log from blipping or stalling if, e.g., the
system time is changed in the midst of a rip or a transfer.
ok tb@ jca@
2017-12-23 20:04:23 +00:00
deraadt
cfff592fdc
Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
...
ok krw millert
2015-08-20 22:32:41 +00:00
doug
abcbcc4d80
Replace all queue *_END macro calls except CIRCLEQ_END with NULL.
...
CIRCLEQ_* is deprecated and not called in the tree. The other queue types
have *_END macros which were added for symmetry with CIRCLEQ_END. They are
defined as NULL. There's no reason to keep the other *_END macro calls.
ok millert@
2014-09-13 16:06:36 +00:00
deraadt
20ae320826
unsigned char casts where neccessary
...
ok ratchov
2013-11-20 20:54:34 +00:00
deraadt
3af8cbcb29
bring prototypes into scope
2013-11-12 17:57:34 +00:00
ratchov
51e3cd065f
don't use the AUDIODEVICE env. variable because sio_open(3) already
...
does it. From Anathae Townsend <atownsend(at)nucleus.com>, thanks!
2009-04-10 18:19:41 +00:00
ratchov
09aec2233a
set the buffer size using the ``appbufsz'' parameter of
...
sio_setpar(3). Allows cdio to be used with aucat(1) whatever
the buffer size used by aucat is.
ok jakemsr
2008-12-28 15:48:32 +00:00
jakemsr
c6db944c23
don't try to sio_close a NULL sio_hdl. stops cdio from segfaulting
...
when /dev/audio is busy or AUDIODEVICE is not set correctly.
commit it! ratchov@
2008-12-11 10:59:49 +00:00
jakemsr
4a68a64c90
sndio for cdio (only for the "cdplay" command)
...
with a hint from ratchov@
ok av@
2008-11-29 08:57:10 +00:00
av
7b34dc5ff0
set speed for writing tracks in TAO.
...
ok and tweaks by fgsch
manual page by jmc
2008-06-30 23:35:39 +00:00
jakemsr
068ec9bbaa
exit when /dev/audio can't be opened.
...
from Alexey Vatchenko <av@bsdua.org>
ok theo
2007-08-02 07:31:16 +00:00
deraadt
4aec353b6d
make rip code work like mmc code for how it does progress reports (use
...
a timer, so that stderr does not get splattered); tested by xsa and others
2007-07-31 21:21:11 +00:00
mjc
abd70c8f80
reorder code so that the wave header gets the size of the current track
...
instead of the previous track. Alexey Vatchenko agrees.
2007-05-29 21:13:09 +00:00
mjc
8e55b7d81e
the device fd is global. no need to pass it between functions.
2007-05-28 22:04:24 +00:00
deraadt
6052e43fee
more stuff needed to make sparc64 work. what else is still busted?
2007-05-27 14:50:24 +00:00
deraadt
6159812304
work around stupid trust of the namespace; millert please look at the problem on macppc
2007-05-26 18:26:23 +00:00
mjc
a076f0c490
cdrip and cdplay commands from Alexey Vatchenko
...
incorporating some manpage suggestions from jmc@
2007-05-26 03:00:03 +00:00