History log of /freebsd-current/sys/sys/cdio.h
Revision Date Author Comments
# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# f6e54eb3 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

sys: clean up empty lines in .c and .h files


# fc795c25 02-Jul-2019 Mark Johnston <markj@FreeBSD.org>

Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl.

This was added for emulation of Linux's CDROMSUBCHNL, but allows
users with read access to a cd(4) device to overwrite kernel memory
provided that the driver detects some media present.

Reimplement CDROMSUBCHNL by bouncing the data from CDIOCREADSUBCHANNEL
through the linux_cdrom_subchnl structure passed from userspace.

admbugs: 768
Reported by: Alex Fortune
Security: CVE-2019-5602
Security: FreeBSD-SA-19:11.cd_ioctl


# 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.


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

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


# 43792195 30-Jan-2005 Maxim Sobolev <sobomax@FreeBSD.org>

Boot away another stackgap (one of the lest ones in linuxlator/i386) by
providing special version of CDIOCREADSUBCHANNEL ioctl(), which assumes that
result has to be placed into kernel space not user space. In the long run
more generic solution has to be designed WRT emulating various ioctl()s
that operate on userspace buffers, but right now there is only one such
ioctl() is emulated, so that it makes little sense.

MFC after: 2 weeks


# 0d9fab2f 20-Oct-2003 Søren Schmidt <sos@FreeBSD.org>

Remove no longer existant CDIOCREADAUDIO ioctl.


# 13c862e2 29-Apr-2003 Mark Murray <markm@FreeBSD.org>

Make bitfields plain old u_int. u_int16_t makes no sense.


# e8a0928f 05-Apr-2002 Søren Schmidt <sos@FreeBSD.org>

Add endianess kludge code, so that bitfields work on the sparc64 as well.

Bad GCC, no cookies...


# 5752bffd 04-Sep-2001 David E. O'Brien <obrien@FreeBSD.org>

style(9) the structure definitions.


# 664a31e4 28-Dec-1999 Peter Wemm <peter@FreeBSD.org>

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.


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

$Id$ -> $FreeBSD$


# eeded4d8 08-Sep-1998 Søren Schmidt <sos@FreeBSD.org>

Add new atapi-cd driver that supports atapi CD-R/RW drives.
This is only a stop-gab solution to get atapi burner support into 3.0.


# a09bee1a 08-Jun-1998 Bruce Evans <bde@FreeBSD.org>

Fixed pedantic semantics errors (bitfields not of type int, signed int
or unsigned int (this doesn't change the struct layout, size or
alignment in any of the files changed in this commit, at least for
gcc on i386's. Using bitfields of type u_char may affect size and
alignment but not packing)).


# 5a9714de 04-May-1997 Joerg Wunsch <joerg@FreeBSD.org>

This mega-commit brings the following:

. It makes cd9660 root f/s working again.
. It makes CD9660 a new-style option.
. It adds support to mount an ISO9660 multi-session CD-ROM as the root
filesystem (the last session actually, but that's what is expected
behaviour).

Sigh. The CDIOREADTOCENTRYS did a copyout() of its own, and thus has
been unusable for me for this work. Too bad it didn't simply stuff
the max 100 entries into the struct ioc_read_toc_entry, but relied on
a user supplied data buffer instead. :-( I now had to reinvent the
wheel, and created a CDIOREADTOCENTRY ioctl command that can be used
in a kernel context.

While doing this, i noticed the following bogosities in existing CD-ROM
drivers:

wcd: This driver is likely to be totally bogus when someone tries
two succeeding CDIOREADTOCENTRYS (or now CDIOREADTOCENTRY)
commands with requesting MSF format, since it apparently
operates on an internal table.

scd: This driver apparently returns just a single TOC entry only for
the CDIOREADTOCENTRYS command.

I have only been able to test the CDIOREADTOCENTRY command with the
cd(4) driver. I hereby request the respective maintainers of the
other CD-ROM drivers to verify my code for their driver. When it
comes to merging this CD-ROM multisession stuff into RELENG_2_2 i will
only consider drivers where i've got a confirmation that it actually
works.


# 6875d254 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not
ready for it yet.


# 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.


# ebedb5ad 21-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h>
instead. This was already done in 4.4Lite for the most important
ioctl headers. Header spam currently increases kernel build
times by 10-20%. There are more than 30000 #includes (not counting
duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
almost self-sufficient (some ioctl headers still need structs from
elsewhere).
- uniformized idempotency ifdefs. Copied the style in the 4.4Lite
ioctl headers.


# 011d1547 03-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Since ioc_read_subchannel don't used for hardware, remove padding.
Now almost all my changes backed out, expect one comment
about network byte order of LBA.


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

Remove #pragma pack, use byte filler in ioc_read_subchannel
instead, all other structures already aligned


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

Frame whole file with #pragma pack(1) and #pragma pack(4),
structures listed here used to access hardware data directly


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

Add comment: reflect the fact that lba stored in network byte order


# fcf6d7e7 29-Jan-1996 Mike Pritchard <mpp@FreeBSD.org>

Fix a typo in a comment.


# 9b2e5354 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 7988f8a2 09-Apr-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Part of Frank Durda IV's new matcd driver CD audio support.
Submitted by: Frank Durda IV <uhclem%nemesis@fw.ast.com>


# 216f8d05 05-Feb-1994 Steven Wallace <swallace@FreeBSD.org>

Replaced certain character arrays in structures with msf_lba union.
The type of element in the structure returned depends on the format requested.


# 361ebb95 29-Jan-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

Patch from Julian. Commit message by me.

Add CDIOCALLOW and CDIOCPREVENT ioctls.


# 83e26681 07-Nov-1993 Garrett Wollman <wollman@FreeBSD.org>

Made all header files idempotent and moved incorrect common data from
headers into a related source file.
Deleted some very old device-specific headers for devices that we don't
support and likely never will.


# 624dc0c1 16-Oct-1993 Rodney W. Grimes <rgrimes@FreeBSD.org>

Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some
minor cleanup. Added $Id$ to files that did not have any version info, etc


# d1de7f30 27-Aug-1993 Rodney W. Grimes <rgrimes@FreeBSD.org>

Revised headers from Julian. Support for generic scsi.
Better audio support


# 5b81b6b3 12-Jun-1993 Rodney W. Grimes <rgrimes@FreeBSD.org>

Initial import, 0.1 + pk 0.2.4-B1