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

188 Commits

Author SHA1 Message Date
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
millert
f3c3a9c6df Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree) 2002-02-17 19:42:18 +00:00
millert
c72b5b24e1 Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. 2002-02-16 21:27:05 +00:00
deraadt
f18d0a50cd indent 2001-10-28 03:57:59 +00:00
mpech
0cfa78c6b0 o) {Open,Net,Free}BSD -> .{O,N,F}x;
o) "start sentence on new line" issues;
o) minimal -mdoc improvements;

millert@ ok
2001-08-17 11:13:57 +00:00
espie
dfcdb41b10 Stop fucking up display on Depeche Mode.
Ok miod@
2001-08-14 00:01:56 +00:00
lebel
3cbec610d8 use strlcpy vs strncpy+a[len-1]='\0' 2001-06-22 14:26:36 +00:00
aaron
6f9db1b185 Get rid of undocumented -h option. 2000-12-24 11:35:42 +00:00
aaron
168f5c3f32 Get rid of ugly usage() output. People can read the man page to get a command
list. Sync the usage() with the man page.
2000-12-24 11:34:09 +00:00
espie
4b60b21541 Make cdio subject line more explicit (aaron & me) 2000-12-23 20:30:19 +00:00
aaron
f1ba34738e Change all option list specifications to ".Bl -tag -width Ds". Most man
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
2000-11-09 17:51:53 +00:00
aaron
61b98182b9 Insert more missing .El directives. Our troff really should identify these and
spit out a warning.
2000-07-06 04:06:53 +00:00
aaron
963666926d Various improvements, including a few HISTORY sections added from FreeBSD. 2000-03-05 20:09:19 +00:00
aaron
8cf461a5aa Finish standardizing options list introduction. 2000-03-05 00:28:49 +00:00
deraadt
598e601ec6 overflow safe 1999-12-15 05:33:23 +00:00
deraadt
838905a75a acd dies 1999-07-30 18:59:30 +00:00
aaron
2e0eb34f9e - remove trailing white space
- remove arguments from .Os macros
- remove arguments from .Nm macros, where appropriate
- some more Dq/Sq/Ql insanity
- still lots to do in the usr.bin tree... :/
1999-06-05 01:21:16 +00:00
millert
95cc45e312 If open of device fails, try up to 10 times. Useful for CD changers that take a while to switch between logical units 1998-12-20 23:53:35 +00:00
aaron
a06b6ec477 usr.bin/ man page repairs, a - e 1998-09-23 04:32:33 +00:00
deraadt
dd3891f728 more man page fixes; aaron@ug.cs.dal.ca 1998-09-01 16:38:14 +00:00
deraadt
b7797436e4 man page repairs; aaron@ug.cs.dal.ca 1998-08-29 21:11:02 +00:00
mickey
e5aae5374e fix FILES section; s/cd0d/cd0c/ 1998-07-17 23:35:44 +00:00
csapuntz
3a87bfae95 Play CDs with more than 100 tracks 1998-07-09 20:10:26 +00:00
csapuntz
1c24ebe1f1 Fix for "play" command on CDs whose last table of contents entry is
clipped (for whatever reason). Couple minor bug fixes.

Noticed by John Jannotti
1998-07-09 19:09:59 +00:00
millert
f87f24996b Add "dev" command to switch to a new device. Handy for cd changers
that show up as multiple luns.
1998-04-25 04:41:28 +00:00
downsj
ac9e9f6d1a CDIOCSETSTEREO -> CDIOCSETSTERIO, go@cclub.tutcc.tut.ac.jp 1997-05-01 12:40:28 +00:00
angelos
ada687db73 Fixed minor bug with next/prev/replay commands. 1997-03-19 03:21:49 +00:00
angelos
4efcb1a675 Added the "replay" command. 1997-03-09 01:34:26 +00:00
angelos
17e9a4a2fb Man page updated to reflect recent additions. 1997-02-26 02:12:42 +00:00
angelos
3301428e05 Next/Prev commands. 1997-02-26 02:08:44 +00:00
niklas
597ef1676f All audio CDs does not start at block 0 1997-02-23 02:29:02 +00:00
deraadt
92623de05d "the the" purge 1996-12-10 09:05:56 +00:00
etheisen
d49a8e62f3 2.0 2.0 2.0 2.0 2.0 -- Get the idea??? 1996-10-01 03:07:44 +00:00
deraadt
6d489d920b little bug 1996-08-26 08:22:00 +00:00
deraadt
eb87e958d4 pretty 1996-08-24 08:25:14 +00:00
deraadt
3c59f89952 this sentence no verb 1996-08-24 08:21:02 +00:00
deraadt
33d336edbd cd0 not /dev/cd0 1996-08-24 08:20:21 +00:00
downsj
4d49ef2ed9 opendev() is smart, we're not. 1996-08-24 06:32:16 +00:00
downsj
c92011ce45 A renamed and moved cdcontrol from FreeBSD. 1996-08-23 23:42:28 +00:00