1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

34 Commits

Author SHA1 Message Date
krw
6e8568b906 Use warnx(), not warn(), when 'errno' is not relevant. 2022-10-10 15:04:09 +00:00
deraadt
1a0afcde32 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
2021-11-28 19:28:41 +00:00
krw
b9a0c77e59 Missed WRITE_BIG -> WRITE_10 2020-09-01 17:20:02 +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
b9fc9a728f 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)
2015-01-16 06:39:28 +00:00
deraadt
3af8cbcb29 bring prototypes into scope 2013-11-12 17:57:34 +00:00
krw
dc4cd921ad 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@
2010-03-01 02:09:44 +00:00
claudio
475b093775 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@
2009-12-04 07:43:26 +00:00
fgsch
7299f7a21f use a bitmap to store the features. simplify the code a bit and allow for
future work.  ok av@ a similar diff.
2008-08-30 10:41:38 +00:00
av
f560e73702 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
2008-08-13 12:21:19 +00:00
fgsch
3ec8b6274f o use definitions from cd.h
o remove unused function prototype
2008-08-08 07:26:40 +00:00
av
fa3e22b8cc we really need unsigned in arithmetic operations.
comments by fgsch
2008-07-23 21:33:32 +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
av
f7dfecd4ed 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
2008-06-22 21:04:01 +00:00
av
c7402b7cd3 add ability to determine media capabilities (what we can do with media).
ok fgsch
2008-06-08 21:01:24 +00:00
av
c7ed604724 Make open_cd() remember open mode. "blank" doesn't have to check for EPERM
anymore.
idea by jakemsr
ok jakemsr ratchov fgsch (with tweaks)
2008-06-06 10:16:52 +00:00
av
75a6ec1603 cdio's blank command blanked CD twise. Fixed.
ok jakemsr krw millert ratchov
2008-05-30 17:41:30 +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
752e29b54a fix up disc size check.
ok krw@ deraadt@
2006-08-28 02:36:43 +00:00
deraadt
618f50a189 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...
2006-08-26 03:48:50 +00:00
mjc
7c204c3e07 add message on session close 2006-06-27 02:43:18 +00:00
deraadt
2220c7d5d1 improve output during cd writing; ok mjc 2006-06-27 02:02:30 +00:00
mjc
63d334f7b5 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@
2006-06-21 21:53:36 +00:00
mjc
e6deffc0da put fd into track's struct so we can fail earlier
'looks good' pat@
2006-06-15 23:49:58 +00:00
deraadt
741934be57 minor cleanup 2006-06-06 23:22:28 +00:00
mjc
b7b4b85c79 zap another magic number
spotted by deraadt@
2006-06-06 22:18:11 +00:00
mjc
8979bd9093 make use of new structs and defines in cd.h
dispells some magic numbers
2006-06-06 20:48:07 +00:00
deraadt
765d0372ec minor tweaks 2006-06-01 07:53:01 +00:00
mjc
dca2c10894 add checks for disc size before we set out trying to burn 4gb
onto an unsuspecting cdr
2006-06-01 07:12:18 +00:00
mjc
cf22b6b503 better command line usage as suggested by deraadt@
ok @deraadt
2006-06-01 06:32:17 +00:00
mjc
ffdb41cb11 bogus value in cdb. excess cut n' paste. 2006-05-31 23:01:15 +00:00
mjc
3679886a3a add license block
spotted by Dries Schellekens
2006-05-31 07:51:47 +00:00
mjc
0cf923d69e when blanking, if fd is already open read-only, re-open read/write 2006-05-31 03:12:28 +00:00
mjc
7993cded49 add rewritable blanking and track-at-once burning support
ok deraadt@
2006-05-31 01:14:41 +00:00