roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
lukem
39a8950629
fix -W sign-compare issues.
2009-04-11 11:52:35 +00:00
dholland
18eba7e824
fix a dud indent
2009-02-22 08:32:25 +00:00
christos
e00e628d41
handle 64 bit time_t
2008-12-29 00:50:06 +00:00
drochner
1f6364ac89
some improvements to digital play mode:
...
-use AUMODE_PLAY_ALL, from Sergey Svishchev -- this might cause
stuttering if the write to audio can't keep up, but it avoids pauses
if the audio buffer drains out on stop/resume
-The timeout for the raw SCSI command to read audio data
was too small, causing complete failure for me.
-Since the itimer can't do faster than HZ, a too small buffer doesn't
work. Try to calculate a sensible buffer size.
-While it makes sense to deliver data a bit faster than necessary,
it should be not that much that the blocking in the signal handler
hurts interactive response. Allow for 50ms.
-Comment out a sched_yield() in the signal handler - this doesn't
look right.
This is far from being perfect, but it makes digital mode usable for me.
And for Jeremy C. Reed, the author of PR bin/38493.
2008-07-16 17:26:25 +00:00
tron
b25d1b890f
Correct documentation:
...
NetBSD 4.0 will be the first release which supports digital transfer
mode. The feature made it into this release because of the rebranch.
This fixes PR bin/36199 by Andreas Burghardt.
2007-04-23 11:47:55 +00:00
abs
06ffa3913a
if ioctl(fd, CDIOCPLAYMSF,...) fails, do not warn("ioctl(CDIOREADTOCENTRYS)");
2007-01-24 10:36:33 +00:00
dogcow
0dbd865aab
arg might be improperly initialized; fix that.
...
(also, since we check arg == NULL, s/arg = 0/arg = NULL/.)
2006-12-27 18:47:20 +00:00
alc
c6ea7a850f
CID-4199: move the test (line != NULL) one line up to check the
...
return value of strdup()
ok christos@
2006-12-27 17:55:05 +00:00
chuck
92a710ed6c
take into account the 150 frame start offset time when computing the
...
duration of a track. call lba2msf like this:
lba2msf(len - 150, &m, &s, &f);
^^^^^
from rev 1.41 of FreeBSD usr.sbin/cdcontrol/cdcontrol.c, Dmitry Afanasiev.
XXX: note that this is a mis-use of lba2msf() because 'len' is the length
of the track in frames, not a logical block address (lba).
2006-12-14 18:15:16 +00:00
ad
119899c354
Remove authors section, and update history where appropriate.
2006-11-13 16:33:56 +00:00
christos
ccf5505f5c
remove bogus assertion.
2006-10-22 16:13:23 +00:00
wiz
8f4dd609aa
English improvements. New sentence, new line.
2006-09-23 11:21:35 +00:00
xtraeme
49627385cb
Apply patch from PR bin/34545 sent by Sergey Svishchev to add support
...
for digital transfer mode, not enabled by default.
To use it: $ cdplay -a /dev/audio (otherwise /dev/sound will be used)
and type "digital" on the interactive mode.
Thank you very much Sergey, it's very useful.
Reviewed and ok by christos@.
2006-09-22 18:20:53 +00:00
wiz
592cef634d
New sentence, new line. Bump date for previous.
2006-01-12 21:00:58 +00:00
garbled
f9abebf063
Applied patch from PR bin/14505 Tested on i386-current. Fixes inability of
...
cdplay to properly play a cd immediately following an eject command in
interactive mode. Patch supplied by Sergey Svishchev.
2006-01-12 18:15:59 +00:00
garbled
fd2134d98b
Add repeat mode to cdplay(1) per PR bin/13970
...
Applied the second patch in the PR, with minor tweaking, and adjusted
manpage for change.
2006-01-02 21:29:53 +00:00
lukem
658ed3362c
appease gcc -Wuninitialized
2005-06-02 01:35:57 +00:00
xtraeme
b363f90b86
WARNS=3
2005-01-12 16:42:45 +00:00
dsl
3145a29f62
Add (unsigned char) cast to ctype functions
2004-10-30 17:08:12 +00:00
itojun
1ce764ab35
use arc4random
2004-09-10 05:34:54 +00:00
wiz
f05120b375
Add Xref to mscdlabel, bump date.
2004-03-18 21:13:19 +00:00
christos
c7360d4269
eliminate unneeded use of sigcontext.
2003-09-12 00:39:38 +00:00
itojun
6d415bc4b0
use bounded string op
2003-07-14 11:54:06 +00:00
itojun
24c1ca6e35
use bounded string op as much as possible
2003-07-14 09:18:22 +00:00
matt
80623b55d4
Remove unused printf argument.
2003-02-28 05:48:58 +00:00
simonb
81dc935e33
Show the last "track" as the start of the lead-out area instead of a
...
bogus track number. Remove a magic number and (slightly) simplify the
TOC entry display function a little.
2003-02-19 12:55:58 +00:00
is
591f5c7964
Fix PR 18444 and a few other corner cases in cdplay.c.
2003-01-30 21:23:57 +00:00
grant
b8836fd1a4
New sentence, new line. Some mdoc cleanup.
2002-09-30 09:33:39 +00:00
is
78a5ad1963
0 is a valid value for the absolute minute to stop playing. Initialize
...
to UINT_MAX before scanning, and check for UINT_MAX to detect whether it
was set.
Without this, it is not possible to play the first less than a minute of
a CD using absolute msf addresses.
2002-09-28 21:48:35 +00:00
itojun
f51456c273
err/errx/warn/warnx do not need \n at the end
2002-06-11 06:06:18 +00:00
thorpej
e05ba164ef
Need <sys/types.h> early on.
2002-01-23 01:09:15 +00:00
wiz
73f9704b80
Sort sections, fix punctuation.
2001-10-17 22:32:41 +00:00
ad
86b1285531
Pasto.
2001-08-21 09:56:54 +00:00
ad
64905538d6
Fix typo.
2001-08-20 13:44:08 +00:00
ad
195345977b
warn() -> warnx() in one place.
2001-08-20 12:37:21 +00:00
ad
767bd4a3fa
- Implement shuffle play and some other goodies. Mostly from a patch
...
submitted by Sergey Svishchev <svs@ropnet.ru> in PR 13682.
- More tidying.
2001-08-20 11:24:57 +00:00
ad
a76db7786e
Cleanup.
2001-08-20 09:50:10 +00:00
ad
d78020d1bf
Use getrawpartition().
2001-08-20 08:21:09 +00:00
gmcgarry
61e39db8f0
Add support for skipping to the previous and next tracks.
2001-07-01 05:04:26 +00:00
wiz
0c54ccc8ac
Fix date, Os and whitespace.
2001-04-09 12:30:53 +00:00
cgd
a8ec668ddf
convert to use getprogname()
2001-02-19 23:03:42 +00:00
lukem
c3b1f98e93
replace guts of opencd() with call to opendisk(). prevents coredump
...
when a device with a leading / (e.g, `/dev/cd0') is given, as well as
promotes code reuse ;-)
2000-12-16 01:36:00 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
abs
762a48a1a4
Do not use 'Ar' for literal arguments, update Dd
2000-09-18 16:47:11 +00:00
abs
9cf3724e46
Allow a single argument to 'volume' to set both channels.
2000-08-30 10:13:52 +00:00
msaitoh
e6af398b37
use play_track() instead of play_blocks() when play whole disk
...
(because the xfer length field of the PLAY command (0x45) is 2 bytes.
It's too short to play whole disk)
2000-06-15 21:07:37 +00:00
ad
28c000fd87
- Re-word and reformat this to be more readable.
...
- Address PR 9794 by matthew green: 'd' is raw part on arches other than i386.
2000-06-14 14:38:52 +00:00
ad
1904914b75
Apply patch supplied in PR 8561 from URA Hiroshi: fixes LBA mode display on
...
little endian machines.
2000-06-14 13:51:45 +00:00