summaryrefslogtreecommitdiff
path: root/usr.bin/cdio/cdio.c
AgeCommit message (Collapse)Author
2008-08-30use a bitmap to store the features. simplify the code a bit and allow forFederico G. Schwindt
future work. ok av@ a similar diff.
2008-08-13Old drives (reported Giovanni Bechis <bigionews@snb.it>) don't report CD-RWav
write feature. Add additional check for media type before blanking. The patch fixes problem for Giovanni. ok fgsch
2008-08-08o use definitions from cd.hFederico G. Schwindt
o remove unused function prototype
2008-07-23we really need unsigned in arithmetic operations.av
comments by fgsch
2008-06-30set speed for writing tracks in TAO.av
ok and tweaks by fgsch manual page by jmc
2008-06-22Automatically distinguish between CD-DA track and WAVE audio file writing themav
in TAO mode. For WAVE files we should skip header. ok and comments by fgsch
2008-06-11move tao code from main() into its own function before adding features.av
requested and ok fgsch
2008-06-08check whether media supports TAO or blanking.av
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-06Make open_cd() remember open mode. "blank" doesn't have to check for EPERMav
anymore. idea by jakemsr ok jakemsr ratchov fgsch (with tweaks)
2008-05-07correct duration by taking the pre-gap into account; ok by many.Federico G. Schwindt
2007-05-26cdrip and cdplay commands from Alexey VatchenkoMichael Coulter
incorporating some manpage suggestions from jmc@
2006-08-25spacingTheo de Raadt
2006-08-24spacingTheo de Raadt
2006-06-16lint cleanupTheo de Raadt
2006-06-15put fd into track's struct so we can fail earlierMichael Coulter
'looks good' pat@
2006-06-06minor cleanupTheo de Raadt
2006-06-01minor tweaksTheo de Raadt
2006-06-01add checks for disc size before we set out trying to burn 4gbMichael Coulter
onto an unsuspecting cdr
2006-06-01better command line usage as suggested by deraadt@Michael Coulter
ok @deraadt
2006-05-31add rewritable blanking and track-at-once burning supportMichael Coulter
ok deraadt@
2006-01-20Clean up command line parsing, don't accept trailing garbage, add inKenneth R Westerback
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-11Whitespace nits.Kenneth R Westerback
2006-01-10Fix issues with relative times, especially track # vs TOC indexKenneth R Westerback
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-09Add cmpmsf(). Use it to eliminate repeated code. No functional change.Kenneth R Westerback
2006-01-09Bring in toc2msf() from NetBSD's cdplay. Use it to eliminate repeatedKenneth R Westerback
code. No functional change.
2006-01-09Bring in addmsf() from NetBSD's cdplay. Use it to eliminate repeatedKenneth R Westerback
manual calculation. No functional change.
2005-12-31CDIOCREADTOCENTRYS adjusts lba information into host order, so thereKenneth R Westerback
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-21Remove an ambiguiity and make 'e' short for "eject". The short formTodd C. Miller
for "exit" is still "ex". OK krw@
2005-01-22add an exit command as an alias of quit; ok henning@Robert Nagy
2005-01-09Better error message for `device' command without arguments.Aleksander Piotrowski
help & ok miod@
2005-01-08New shortcuts for commands device (d) and debug (deb)Aleksander Piotrowski
go ahead espie@
2005-01-04add snprintf sanity check.Moritz Jodeit
ok millert@, henning@
2004-09-14sprinkle some ARGSUSED for table driven functionsTheo de Raadt
2004-07-30- sort optionsJason McIntyre
- missing full stop - uppercase `id' - add SEE ALSO; suggested by Alexey E. Suslikov - add `-d host:port' to usage()
2004-01-16fix printf formats, unsigned wants %uMarc Espie
okay millert@
2004-01-14A more classical and more readable getopt() loop, no functional change.Miod Vallat
ok espie@ millert@
2003-10-31New libedit api changes.Otto Moerbeek
Tested by djm@, mouring@, jmc@. ok deraadt@
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-04-06Replace a strcpy and associated code with a snprintf whose returnKenneth R Westerback
value is checked. Replace an unhelpful usage() with a relevant error message if the argument buffer overflows. ok millert@
2003-02-18copyrights added;Jason McIntyre
Serge V. Vakulenko thanks espie@ for help
2003-02-13add libedit support.Federico G. Schwindt
from Pedro Bastos <pbastos at grad dot inf dot puc-rio dot br>, minus SMALL support. minor change by me. millert@ ok.
2002-10-24- Add missing cdid command to cdio.1.Federico G. Schwindt
- Remove ambiguity between cddbinfo and cdid commands, so CD matches cddbinfo and CDI cdid. millert@ ok.
2002-04-18Reuse cddb code to support FreeBSD new cdid command.Marc Espie
(who knows ? scripts might use it). ok fgs@, pval@
2002-04-18Add cddb support.Marc Espie
2002-03-22Add missing prototypes.Marc Espie
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-21getopt returns -1, not EOF.Marc Espie
2002-03-20style(9)Marc Espie
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-10-28indentTheo de Raadt