OpenBSD CVS

CVS log for src/usr.bin/cdio/rip.c


[BACK] Up to [local] / src / usr.bin / cdio

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 11 16:32:40 2022 UTC (19 months, 1 week ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.20: +9 -7 lines
Diff to previous 1.20 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 10 14:52:02 2022 UTC (19 months, 1 week ago) by krw
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Don't leak 'sec' in error path.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 7 19:59:19 2022 UTC (19 months, 1 week ago) by krw
Branch: MAIN
Changes since 1.18: +7 -6 lines
Diff to previous 1.18 (colored)

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)

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:00 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 23 20:04:23 2017 UTC (6 years, 4 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.16: +10 -8 lines
Diff to previous 1.16 (colored)

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@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 13 16:06:37 2014 UTC (9 years, 8 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

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@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 20 20:54:34 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

unsigned char casts where neccessary
ok ratchov

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 12 17:57:34 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +15 -13 lines
Diff to previous 1.12 (colored)

bring prototypes into scope

Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 10 18:19:41 2009 UTC (15 years, 1 month ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.11: +2 -6 lines
Diff to previous 1.11 (colored)

don't use the AUDIODEVICE env. variable because sio_open(3) already
does it. From Anathae Townsend <atownsend(at)nucleus.com>, thanks!

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 28 15:48:32 2008 UTC (15 years, 4 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 11 10:59:49 2008 UTC (15 years, 5 months ago) by jakemsr
Branch: MAIN
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

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@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 29 08:57:10 2008 UTC (15 years, 5 months ago) by jakemsr
Branch: MAIN
Changes since 1.8: +74 -32 lines
Diff to previous 1.8 (colored)

sndio for cdio (only for the "cdplay" command)

with a hint from ratchov@

ok av@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 30 23:35:39 2008 UTC (15 years, 10 months ago) by av
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

set speed for writing tracks in TAO.
ok and tweaks by fgsch
manual page by jmc

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 2 07:31:16 2007 UTC (16 years, 9 months ago) by jakemsr
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.6: +12 -14 lines
Diff to previous 1.6 (colored)

exit when /dev/audio can't be opened.

from Alexey Vatchenko <av@bsdua.org>

ok theo

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 31 21:21:11 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +17 -3 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 29 21:13:09 2007 UTC (16 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)

reorder code so that the wave header gets the size of the current track
instead of the previous track. Alexey Vatchenko agrees.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 28 22:04:24 2007 UTC (16 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.3: +3 -5 lines
Diff to previous 1.3 (colored)

the device fd is global. no need to pass it between functions.

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 27 14:50:24 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

more stuff needed to make sparc64 work.  what else is still busted?

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 26 18:26:23 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

work around stupid trust of the namespace; millert please look at the problem on macppc

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 26 03:00:03 2007 UTC (16 years, 11 months ago) by mjc
Branch: MAIN

cdrip and cdplay commands from Alexey Vatchenko
incorporating some manpage suggestions from jmc@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.