History log of /freebsd-current/usr.sbin/cdcontrol/cdcontrol.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# b03b271b 01-Jun-2023 Elyes Haouas <ehaouas@noos.fr>

cdcontrol: Fix typos

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/653


# c650c2f3 25-Aug-2016 Alex Kozlov <ak@FreeBSD.org>

Remove last remnants of acd(4), mcd(4), and scd(4) drivers.

Approved by: jhb


# ee47d099 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Make all functions and global variables static for cdcontrol(8).

While there, replace __const by const, which seems to be our preference
nowadays. Also fix some style(9) bugs by adding newlines and removing
unneeded spaces from function declarations.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 18c2d3f2 05-Jan-2010 David Malone <dwmalone@FreeBSD.org>

New style function definitions.
Fix constness problem - don't know that pstatus won't change a string with no
whitespace.


# 1a225ffb 11-Nov-2009 Jaakko Heinonen <jh@FreeBSD.org>

MFC r197833:

When run() returns an error, print the error message also in
non-interactive mode. Previously error messages were printed only in
interactive mode.

PR: bin/124517
Approved by: trasz (mentor)


# 6e7b6303 07-Oct-2009 Jaakko Heinonen <jh@FreeBSD.org>

When run() returns an error, print the error message also in
non-interactive mode. Previously error messages were printed only in
interactive mode.

PR: bin/124517
Approved by: trasz (mentor)
MFC after: 1 month


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# c863386a 14-Jul-2008 Pietro Cerutti <gahr@FreeBSD.org>

- Enhance volume handling

PR: 125054
Submitted by: gahr
Approved by: cperciva


# b7498df2 19-Feb-2008 Ruslan Ermilov <ru@FreeBSD.org>

getopt(3) returns -1, not EOF.


# 2110d9c3 19-Oct-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Use the new name H_SETSIZE instead of the old H_EVENT to set the history
size.

PR: 86355


# de06a398 01-Apr-2004 David Malone <dwmalone@FreeBSD.org>

If the user doesn't specify a device and we can't open any of the defaults,
don't print an error using a uninitialised devbuf.


# f76c341d 17-Nov-2003 Eivind Eklund <eivind@FreeBSD.org>

* Auto-detect what device to use if none is specified
* Replace references to mcd0 with acd0 (doc only)
* Remove references to the "c" partition (doc only - code was already fixed)


# 16727322 31-Aug-2003 Maxim Konovalov <maxim@FreeBSD.org>

Retire 'c' partition for a CD device.

Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
Not objected by: -current


# b728350e 03-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID over rcsid[]. Protect copyright[] where needed.


# 07796aea 24-Mar-2003 Eivind Eklund <eivind@FreeBSD.org>

Fix bug that made cdcontrol play <track> play <track> - 1


# 89f35c14 03-Dec-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

The default CD drive is /dev/cd0, not /dev/cd0c.

Reviewed by: jhb
Approved by: re (rwatson)


# 76ba4ecd 18-Oct-2002 Nate Lawson <njl@FreeBSD.org>

* Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec.
* Change atapi-cd ioctls to use the same units.
* Change burncd, cdcontrol to convert CDROM speed to KB/sec before
calling the ioctl. Add a "max" speed option for their command lines.

This change does not break ABI but does change the units passed through
the ioctl so 3rd party software that uses cdrio.h will have to convert
(most likely by multiplying CDROM speed by 177 to get KB/s).

PR: kern/36845
Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls)
Reviewed by: sos, ken
MFC after: 1 month


# 8d9b45ee 23-Sep-2002 Maxim Konovalov <maxim@FreeBSD.org>

Do not add a start offset time to the track duration time.

Submitted by: Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru>
MFC after: 2 weeks


# d89167b4 11-Jul-2002 Alfred Perlstein <alfred@FreeBSD.org>

de-__P()


# 7098979e 08-May-2002 Maxim Konovalov <maxim@FreeBSD.org>

style(9): remove an EOF space.


# 4a28d4ab 08-May-2002 Maxim Konovalov <maxim@FreeBSD.org>

Implement 'speed' command: set a maximum read speed. At the moment it
works on ATAPI drives only.

PR: kern/35512 (a part of)
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
Reviewed by: -hackers
MFC after: 1 month


# fd8e4ebc 18-Feb-2002 Mike Barcroft <mike@FreeBSD.org>

o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on: alpha, i386
Reviewed by: bde, jake, tmm


# 72efeef1 09-Dec-2001 Mike Heffner <mikeh@FreeBSD.org>

style(9) cleanup: spaces -> tabs.

MFC after: 2 weeks


# 319097fa 09-Dec-2001 Mike Heffner <mikeh@FreeBSD.org>

WARNS=2 cleanup.

PR: bin/32646
MFC after: 2 weeks


# 757eeda0 01-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

*** empty log message ***


# 4dbed42f 25-May-2001 Kris Kennaway <kris@FreeBSD.org>

Add the 'next' and 'prev' commands (aliased to '+' and '-') which skip
forward or backward by a specified number of tracks (defaulting to 1).
Use strvisx() to display the media catalog in case it contains unprintable
characters. Sort includes. Based on two patches submitted by PR, plus
style fixes and other changes of my own.

Submitted by: Seth Kingsley <sethk@osd.bsdi.com>, Maxime Henrion <mux@qualys.com>
PR: bin/22672, bin/26962
MFC After: 1 week


# b074e888 08-Apr-2001 Josef Karthauser <joe@FreeBSD.org>

Don't complain about deprecated environment variables, like MUSIC_CD,
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.

This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.

Suggested by: John Sellens <jsellens@generalconcepts.com>


# bb44f008 16-Jan-2001 Josef Karthauser <joe@FreeBSD.org>

Deprecate the use of the CD_DRIVE, CDPLAY, DISC and MUSIC_CD environment
variables in favour of CDROM.

Discussed on: stable@FreeBSD.org


# 9dd4b5a7 18-Dec-2000 Dag-Erling Smørgrav <des@FreeBSD.org>

If no device is specified, check the CDROM environment variable before
picking the default device.


# 1a37aa56 09-Dec-2000 David E. O'Brien <obrien@FreeBSD.org>

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


# 241f1973 13-Jul-2000 Josef Karthauser <joe@FreeBSD.org>

Add a new command, 'cdid', to calculate and display a serial number
for a cd, using the algorithm that the cddb database uses.

Submitted by: Sergey Shkonda <serg@bcs.zp.ua>


# faeff70b 12-Jul-2000 Stephen McKay <mckay@FreeBSD.org>

Fix the ^D -> core dump problem properly. ^D == "quit" again.


# 49eb60e7 30-May-2000 Mike Smith <msmith@FreeBSD.org>

Don't do anything with /dev/rXXX


# 3712337a 05-Dec-1999 Josef Karthauser <joe@FreeBSD.org>

Fixed a potential buffer overflow problem, in the device name handling.

PR: bin/15101


# b5ee3fc0 18-Nov-1999 Ollivier Robert <roberto@FreeBSD.org>

Stop run() from dereferencing a NULL pointer when you enter a valid command
then a ^D at the prompt.

cdcontrol> play 1 14
cdcontrol>
zsh: 40874 segmentation fault (core dumped) /usr/sbin/cdcontrol -f /dev/cd1c


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 0b2d7c2f 19-Aug-1999 Matthew N. Dodd <mdodd@FreeBSD.org>

What the heck was I thinking? Nobody else saw this? Sheesh.

(num > MAX) ? MAX : num

rather than

(MAX > num) ? MAX : num

Also, make things a little easier to read while I'm here.


# 43d79ae9 18-Aug-1999 Matthew N. Dodd <mdodd@FreeBSD.org>

Use el_source() so we pick up .editrc


# 1950bb45 18-Aug-1999 Matthew N. Dodd <mdodd@FreeBSD.org>

Add support for command line editing and history.

Remove src/contrib/bind/bin/nslookup/commands.c as it is generated by lex
from commands.l.

Submitted by: lpc/cdcontrol patches originally by msmith.
Reviewed by: msmith (in theory)


# 787569e6 31-Jan-1999 Bill Fumerola <billf@FreeBSD.org>

(1) Make usage() and SYNOPSIS agree with each other.
(2) Use 'device' instead of 'device name', there seems to be a precedent in
/usr/share/man/man1

Prompted By: bde


# 0d6515cd 25-Jan-1998 Jean-Marc Zucconi <jmz@FreeBSD.org>

The status command prints the audio position, the media catalog and the
volume value for the disc. It is now possible to specify additional arguments
(audio, volume, media) to print only a subset of the full status.
This is particularly useful with drives which stop playing when asked to
return the catalog number.


# dd1f44fc 04-Sep-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Style in usage().


# 476602a9 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 72cf78e0 25-Jun-1996 Andrey A. Chernov <ache@FreeBSD.org>

Don't print number (garbadge) if media catalog is inactive


# 8fd5ebe3 08-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

LBA addition to new commands


# 494c6817 08-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Integrate vak fixes, mostly command parsing & cosmetic
Submitted by: vak@cronyx.ru


# 219913d0 03-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Print out media catalog number, if exists


# 61c72829 03-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Request/print out media catalog validation info in status command


# 5f0f376b 03-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Implement several new commands


# fccbca1d 02-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Don't mask last track number with end word, better be shure that it is 170


# aeb13d5b 02-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Implement 'inject' command


# 3017478d 02-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Back out my control->addr_type change, need to be fixed in another place


# b8be555b 01-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Fix user input parser, play command even not work in old variant


# 6f4dc255 01-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Wrong field was used to determine audio/data disks


# 2f3cc4bf 29-Jan-1996 Andrey A. Chernov <ache@FreeBSD.org>

Use starting track 0 for READTOCENTRYS, should be converted
to real starting track in CD driver.
Old code assume that starting track is always 1.


# eae0c0a8 18-Aug-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Add the cdcontrol program by Serge Vakulenko. It's my understanding
that this is a superset of cdplay, and perhaps it's time to send cdplay
into the bit bucket if this works well. According to the docs, it has
a friendlier command structure, command line interface etc.
Submitted by: Serge Vakulenko <vak@cronyx.ru>