OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Mon Oct 10 15:04:09 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.33: +2 -2 lines
Diff to previous 1.33 (colored)

Use warnx(), not warn(), when 'errno' is not relevant.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Nov 28 19:28:42 2021 UTC (2 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.32: +4 -5 lines
Diff to previous 1.32 (colored)

Stop using MAXBSIZE to eliminate sys/param.h including (which injects a
ton of namespace intrusion).  Create local sizes, and refactor some code
along the way.
ok millert

Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 1 17:20:02 2020 UTC (3 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Missed WRITE_BIG -> WRITE_10

Revision 1.31 / (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_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.30: +10 -8 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:06 2015 UTC (9 years, 4 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, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 12 17:57: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.28: +2 -2 lines
Diff to previous 1.28 (colored)

bring prototypes into scope

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 1 02:09:44 2010 UTC (14 years, 2 months ago) by krw
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
Changes since 1.27: +160 -8 lines
Diff to previous 1.27 (colored)

Add printing of current profile and feature information to 'info'
command with -v. Make a second -v cause printing of raw feature
data and a full list of profiles. A few minor tweaks to the feature
bitmap handling. Helps in debugging media problems in cdio.

Suggestions from fgsch@, man page fixes from jmc@ as usual.

ok beck@ deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 4 07:43:26 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.26: +4 -3 lines
Diff to previous 1.26 (colored)

Do not write 16bit values directly to odd addresses - strict alignment
architectures don't like that. Makes cd blanking on sparc64 possible.
OK deraadt@, krw@, jasper@

Revision 1.26 / (download) - annotate - [select for diffs], Sat Aug 30 10:41:38 2008 UTC (15 years, 8 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.25: +27 -31 lines
Diff to previous 1.25 (colored)

use a bitmap to store the features. simplify the code a bit and allow for
future work.  ok av@ a similar diff.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 13 12:21:19 2008 UTC (15 years, 9 months ago) by av
Branch: MAIN
Changes since 1.24: +37 -1 lines
Diff to previous 1.24 (colored)

Old drives (reported Giovanni Bechis <bigionews@snb.it>) don't report CD-RW
write feature. Add additional check for media type before blanking.
The patch fixes problem for Giovanni.
ok fgsch

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 8 07:26:40 2008 UTC (15 years, 9 months ago) by fgsch
Branch: MAIN
Changes since 1.23: +3 -5 lines
Diff to previous 1.23 (colored)

o use definitions from cd.h
o remove unused function prototype

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 23 21:33:32 2008 UTC (15 years, 9 months ago) by av
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

we really need unsigned in arithmetic operations.
comments by fgsch

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 30 23:35:39 2008 UTC (15 years, 10 months ago) by av
Branch: MAIN
Changes since 1.21: +31 -2 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 22 21:04:01 2008 UTC (15 years, 11 months ago) by av
Branch: MAIN
Changes since 1.20: +3 -5 lines
Diff to previous 1.20 (colored)

Automatically distinguish between CD-DA track and WAVE audio file writing them
in TAO mode. For WAVE files we should skip header.

ok and comments by fgsch

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 8 21:01:24 2008 UTC (15 years, 11 months ago) by av
Branch: MAIN
Changes since 1.19: +58 -1 lines
Diff to previous 1.19 (colored)

add ability to determine media capabilities (what we can do with media).
ok fgsch

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 6 10:16:52 2008 UTC (15 years, 11 months ago) by av
Branch: MAIN
Changes since 1.18: +1 -8 lines
Diff to previous 1.18 (colored)

Make open_cd() remember open mode. "blank" doesn't have to check for EPERM
anymore.
idea by jakemsr
ok jakemsr ratchov fgsch (with tweaks)

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 30 17:41:30 2008 UTC (15 years, 11 months ago) by av
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

cdio's blank command blanked CD twise. Fixed.
ok jakemsr krw millert ratchov

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 31 21:21:11 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Mon Aug 28 02:36:43 2006 UTC (17 years, 8 months ago) by mjc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

fix up disc size check.
ok krw@ deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 26 03:48:50 2006 UTC (17 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +29 -19 lines
Diff to previous 1.14 (colored)

print updates on the same line, per second, as we go along writing, in
the following form:
    track 01 'd' 00328891/00328891 100%
checked lots, but nobody replied to my mail...

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 27 02:43:18 2006 UTC (17 years, 10 months ago) by mjc
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

add message on session close

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 27 02:02:30 2006 UTC (17 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +7 -3 lines
Diff to previous 1.12 (colored)

improve output during cd writing; ok mjc

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 21 21:53:36 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.11: +6 -1 lines
Diff to previous 1.11 (colored)

retry if sense code indicates not ready. fixes writing for drives
that issue long write in progress if the write buffer is full.

ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 15 23:49:58 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.10: +6 -7 lines
Diff to previous 1.10 (colored)

put fd into track's struct so we can fail earlier
'looks good' pat@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 6 23:22:28 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +7 -6 lines
Diff to previous 1.9 (colored)

minor cleanup

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 6 22:18:11 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

zap another magic number
spotted by deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 6 20:48:07 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.7: +47 -30 lines
Diff to previous 1.7 (colored)

make use of new structs and defines in cd.h
dispells some magic numbers

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 1 07:53:01 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +13 -11 lines
Diff to previous 1.6 (colored)

minor tweaks

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 1 07:12:18 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.5: +27 -6 lines
Diff to previous 1.5 (colored)

add checks for disc size before we set out trying to burn 4gb
onto an unsuspecting cdr

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 1 06:32:17 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.4: +32 -42 lines
Diff to previous 1.4 (colored)

better command line usage as suggested by deraadt@
ok @deraadt

Revision 1.4 / (download) - annotate - [select for diffs], Wed May 31 23:01:15 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

bogus value in cdb. excess cut n' paste.

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 31 07:51:47 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.2: +17 -0 lines
Diff to previous 1.2 (colored)

add license block
spotted by Dries Schellekens

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 31 03:12:28 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN
Changes since 1.1: +10 -0 lines
Diff to previous 1.1 (colored)

when blanking, if fd is already open read-only, re-open read/write

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 31 01:14:41 2006 UTC (17 years, 11 months ago) by mjc
Branch: MAIN

add rewritable blanking and track-at-once burning support

ok deraadt@

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.