deraadt
80cdf6b48a
no need to warn about using the default device; Thomas Pfaff
2008-10-29 00:07:07 +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
jmc
e8b57fad78
clarify tao's -a option; ok av fgsch
2008-06-24 14:00:01 +00:00
jmc
70d16cb159
new sentence, new line;
2008-06-23 07:04:50 +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
9dfd8015ab
move tao code from main() into its own function before adding features.
...
requested and ok fgsch
2008-06-11 21:59:25 +00:00
av
5c0dfce931
check whether media supports TAO or blanking.
...
It makes error output nicer, e.g.: "The media can't be written in TAO mode"
instead of "cdio: Only 0 of the required _N_ blocks available"
ok fgsch
2008-06-08 21:40:58 +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
fgsch
fbd1c29904
correct duration by taking the pre-gap into account; ok by many.
2008-05-07 23:27:50 +00:00
fgsch
4ab9ef179e
add two missing prototypes.
2008-04-30 17:10:55 +00:00
fgsch
579d55c92f
o if no argument is passed to cddbinfo, treat it as 0 in order to print
...
the list in case of multiple/inexact matches
o if the argument to cddb is invalid, do not exit, just print and error
and ignore the command
espie@ ok.
2008-04-27 23:06:40 +00:00
jmc
dfdb3b6249
make TOC greppable;
2007-11-12 20:37:42 +00:00
cloder
fd338a6277
Make sure we don't skip the code which sends the QUIT command to the CDDB
...
server and validates the returned track names. Unreachable code spotted
by lint.
OK krw@, deraadt@, espie@
2007-09-10 16:31:35 +00:00
deraadt
1ed98fdf61
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
2007-09-02 15:19:07 +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
sobrado
2e3e646ef2
lexicographically sorts the list of commands
...
ok jmc@
2007-07-22 21:27:55 +00:00
jmc
573c3cbbbe
- document the "play" default a little more clearly
...
- document the difference between "play" and "cdplay" more clearly
ok mjc
2007-07-20 09:06:17 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
jmc
e3c6f1b3ed
fix some list items; from andres
2007-05-29 22:32:36 +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
jdixon
f925fb2547
use strtonum; ok millert@
2007-05-01 01:26:12 +00:00
jmc
7714732844
fix wording for `replay'; from AndrAcs
2007-03-26 11:46:07 +00:00
jmc
2150bcaf12
/dev/rcd0d -> /dev/rcd0c; from AndrAcs
2007-03-18 23:56:19 +00:00
jmc
6b6acf025c
document environment var CDROM; from ross l richardson (pr #5258 )
...
i used a different fix, and merged the CDROM stuff into DISC.
whilst in there, document the default if neither is given.
ok mjc
2006-10-12 20:38:03 +00:00
mjc
752e29b54a
fix up disc size check.
...
ok krw@ deraadt@
2006-08-28 02:36:43 +00:00
krw
8cecacc606
/* $OpenBSD $*/ -> /* $OpenBSD$ */
2006-08-26 14:10:21 +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
deraadt
9f4c7d8056
spacing
2006-08-25 04:38:32 +00:00
deraadt
60f9290cb3
spacing
2006-08-24 19:35:55 +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
jmc
eddc3fcb4f
- tweak the -f description
...
- move DISC into an ENVIRONMENT section
- make the tao option list -compact
- uppercase `cddb'
2006-06-22 11:25:01 +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
deraadt
5a6bb45082
lint cleanup
2006-06-16 17:06:04 +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
jmc
32a69eca38
update .Nd, SYNOPSIS, and DESCRIPTION, after alexey e. suslikov pointed
...
out that it was a bit dated;
ok mjc
2006-06-10 14:05:45 +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
jmc
74560c7c57
tidy up the "tao" section;
...
diff from deraadt or mjc, i'm not sure; tweaks by me
ok deraadt
2006-06-01 07:55:10 +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
jmc
425dcfe3fa
better description for the volume commands; ok mjc
2006-05-31 20:59:32 +00:00
jmc
973ba423c4
tweaks;
2006-05-31 08:30:36 +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
millert
d07eb5f84f
Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELEN
2006-01-23 17:29:22 +00:00
krw
faf9d55e91
Make man page reflect current reality of play command. jmc@ cleaned
...
up version of my original diff.
ok jmc@
2006-01-23 00:41:10 +00:00
krw
8bdf91ce3f
Clean up command line parsing, don't accept trailing garbage, add in
...
missing command line forms, zero variables that will not be filled in
by a particular sscanf() call. Make 'play tr1 m1:s1 m2:s2' play from
the point in time 'tr1 m1:s1' to the point in time 'm2:s2', instead of
from 'tr1 m1:s1' for a period of m2:s2. Documenting this command is next.
Closes last issues Juha Erkilla pointed out in PR #4957 . Tested by
Juha.
2006-01-20 00:58:32 +00:00
aaron
94f074361a
Fix malloc calculation to avoid memory bounds error. deraadt@ ok
2006-01-17 00:56:04 +00:00
krw
95b6cad4f5
Whitespace nits.
2006-01-11 01:29:07 +00:00
krw
7a498d983d
Fix issues with relative times, especially track # vs TOC index
...
confusion, noted by Juha Erkkila in PR #4957 . Make code a lot clearer.
Error out on out of range track numbers.
Tested by Juha.
2006-01-10 19:59:11 +00:00
krw
b8a783ae32
Add cmpmsf(). Use it to eliminate repeated code. No functional change.
2006-01-09 05:48:35 +00:00
krw
3438b82bc3
Bring in toc2msf() from NetBSD's cdplay. Use it to eliminate repeated
...
code. No functional change.
2006-01-09 04:05:43 +00:00
krw
8dcc894336
Bring in addmsf() from NetBSD's cdplay. Use it to eliminate repeated
...
manual calculation. No functional change.
2006-01-09 00:20:31 +00:00
krw
43844f6cd3
CDIOCREADTOCENTRYS adjusts lba information into host order, so there
...
is no need to to ntohl() on it again. CDIOCREADSUBCHANNEL does not
put lba info into host order so just change that to a betoh32().
Noted by Juha Erkkila in PR #4957 .
ok pedro@
2005-12-31 19:51:15 +00:00
millert
4464b108b4
Remove an ambiguiity and make 'e' short for "eject". The short form
...
for "exit" is still "ex". OK krw@
2005-12-21 15:50:38 +00:00
deraadt
f760b59d08
more asprintf; ok dhill@mindcry.org
2005-11-12 15:26:23 +00:00
robert
91b4e8dc4b
add an exit command as an alias of quit; ok henning@
2005-01-22 10:21:26 +00:00
alek
d8a9cdc1f8
Better error message for `device' command without arguments.
...
help & ok miod@
2005-01-09 11:02:32 +00:00
alek
c934c33362
New shortcuts for commands device (d) and debug (deb)
...
go ahead espie@
2005-01-08 21:16:02 +00:00
moritz
a60fa29470
add snprintf sanity check.
...
ok millert@, henning@
2005-01-04 18:30:38 +00:00
deraadt
c2a796bde8
sprinkle some ARGSUSED for table driven functions
2004-09-14 22:21:30 +00:00
jmc
dcaa2edf89
sort the list of available interactive commands to cdio, and clean up their
...
descriptions somewhat;
2004-07-30 12:30:33 +00:00
jmc
3888ebd6b0
- sort options
...
- missing full stop
- uppercase `id'
- add SEE ALSO; suggested by Alexey E. Suslikov
- add `-d host:port' to usage()
2004-07-30 11:59:03 +00:00
espie
b50d204b7a
fix printf formats, unsigned wants %u
...
okay millert@
2004-01-16 12:10:55 +00:00
miod
c283657cbb
A more classical and more readable getopt() loop, no functional change.
...
ok espie@ millert@
2004-01-14 07:32:58 +00:00
otto
8b59c5f0e3
New libedit api changes.
...
Tested by djm@, mouring@, jmc@.
ok deraadt@
2003-10-31 08:44:07 +00:00
deraadt
1837a5ca50
mostly ansi cleanup; pval ok
2003-06-10 22:20:44 +00:00
jmc
2aeff9fb4d
- section reorder
...
- COMPATIBILITY merge
- macro cleanup
- kill whitespace at EOL
- new sentence, new line
ssh pages ok markus@
2003-06-10 09:12:09 +00:00
espie
ce2747ceab
Protect all get_line calls against null pointers.
...
Problem pointed out by Pedro Bastos, thanks Pedro.
2003-06-09 11:33:14 +00:00
krw
0144018ca3
Replace a strcpy and associated code with a snprintf whose return
...
value is checked.
Replace an unhelpful usage() with a relevant error message if the
argument buffer overflows.
ok millert@
2003-04-06 20:50:05 +00:00
espie
45694746ac
my style: length is size_t, not int.
2003-03-13 09:32:06 +00:00
deraadt
334e018b42
lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu
2003-03-13 09:09:20 +00:00
jmc
de23af841a
copyrights added;
...
Serge V. Vakulenko
thanks espie@ for help
2003-02-18 09:42:33 +00:00
fgsch
ec6762c731
add libedit support.
...
from Pedro Bastos <pbastos at grad dot inf dot puc-rio dot br>, minus
SMALL support. minor change by me.
millert@ ok.
2003-02-13 05:48:38 +00:00
espie
7c9f4bc9f6
handle multiline replies from the server.
...
this actually happens on the 3.2 audio CD.
ok millert@
2002-12-14 21:28:08 +00:00
fgsch
a681df93ee
- Add missing cdid command to cdio.1.
...
- Remove ambiguity between cddbinfo and cdid commands, so CD matches
cddbinfo and CDI cdid.
millert@ ok.
2002-10-24 20:03:07 +00:00
espie
6b871bb498
document default cdio connection
2002-05-19 12:39:54 +00:00
espie
ae359c1c7d
Reuse cddb code to support FreeBSD new cdid command.
...
(who knows ? scripts might use it).
ok fgs@, pval@
2002-04-18 22:17:04 +00:00
espie
288d24dce4
remove extra spaces, fix rcsid (noticed by millert)
2002-04-18 22:07:04 +00:00
deraadt
8459c98c05
KNF
2002-04-18 21:48:36 +00:00
espie
9ed7639af4
Add cddb support.
2002-04-18 20:18:31 +00:00
espie
da50f41aa2
Add missing prototypes.
...
Convert lba2msf definition to ANSI-style, so that it matches the prototype
Old-style function declarations undergo argument promotion, and thus:
void
f(a)
char a;
{}
actually matches
void f(int a);
2002-03-22 03:43:37 +00:00
espie
127122637b
getopt returns -1, not EOF.
2002-03-21 17:43:48 +00:00
espie
67831131e8
style(9)
2002-03-20 13:40:57 +00:00