xref: /freebsd/share/man/man4/cd.4 (revision 6e1fc0118033f42b7c0d3623c8f67a89ebecabb2)
1a77a7ee0SJulian Elischer.\" Copyright (c) 1996
2eddc45e7SJeroen Ruigrok van der Werven.\"	Julian Elischer <julian@FreeBSD.org>.  All rights reserved.
3a77a7ee0SJulian Elischer.\"
4a77a7ee0SJulian Elischer.\" Redistribution and use in source and binary forms, with or without
5a77a7ee0SJulian Elischer.\" modification, are permitted provided that the following conditions
6a77a7ee0SJulian Elischer.\" are met:
7a77a7ee0SJulian Elischer.\" 1. Redistributions of source code must retain the above copyright
8a77a7ee0SJulian Elischer.\"    notice, this list of conditions and the following disclaimer.
9a77a7ee0SJulian Elischer.\"
10a77a7ee0SJulian Elischer.\" 2. Redistributions in binary form must reproduce the above copyright
11a77a7ee0SJulian Elischer.\"    notice, this list of conditions and the following disclaimer in the
12a77a7ee0SJulian Elischer.\"    documentation and/or other materials provided with the distribution.
13a77a7ee0SJulian Elischer.\"
14a77a7ee0SJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15a77a7ee0SJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16a77a7ee0SJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17a77a7ee0SJulian Elischer.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18a77a7ee0SJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19a77a7ee0SJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20a77a7ee0SJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21a77a7ee0SJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22a77a7ee0SJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23a77a7ee0SJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24a77a7ee0SJulian Elischer.\" SUCH DAMAGE.
25a77a7ee0SJulian Elischer.\"
2670068a3eSMateusz Piotrowski.Dd April 8, 2022
27db35f309SDavid Greenman.Dt CD 4
283d45e180SRuslan Ermilov.Os
29db35f309SDavid Greenman.Sh NAME
30db35f309SDavid Greenman.Nm cd
315fc1fd70SGarrett Wollman.Nd SCSI CD-ROM driver
32db35f309SDavid Greenman.Sh SYNOPSIS
335fc1fd70SGarrett Wollman.Cd device cd
34db35f309SDavid Greenman.Sh DESCRIPTION
35db35f309SDavid GreenmanThe
364b66483fSRuslan Ermilov.Nm
37db35f309SDavid Greenmandriver provides support for a
385fc1fd70SGarrett Wollman.Tn SCSI
395fc1fd70SGarrett Wollman.Tn CD-ROM
405fc1fd70SGarrett Wollman(Compact Disc-Read Only Memory) drive.
415fc1fd70SGarrett WollmanIn an attempt to look like a regular disk, the
42db35f309SDavid Greenman.Nm
434a8d0283SMike Pritcharddriver synthesizes a partition table, with one partition covering the entire
445fc1fd70SGarrett Wollman.Tn CD-ROM .
455fc1fd70SGarrett WollmanIt is possible to modify this partition table using
465fc1fd70SGarrett Wollman.Xr disklabel 8 ,
475fc1fd70SGarrett Wollmanbut it will only last until the
485fc1fd70SGarrett Wollman.Tn CD-ROM
495fc1fd70SGarrett Wollmanis unmounted.
50db35f309SDavid GreenmanIn general the interfaces are similar to those described by
51814b16baSGlen Barber.Xr ada 4
525fc1fd70SGarrett Wollmanand
532d8eb2c0SKenneth D. Merry.Xr da 4 .
54db35f309SDavid Greenman.Pp
555fc1fd70SGarrett WollmanAs the
565fc1fd70SGarrett Wollman.Tn SCSI
575fc1fd70SGarrett Wollmanadapter is probed during boot, the
585fc1fd70SGarrett Wollman.Tn SCSI
596d249eeeSSheldon Hearnbus is scanned for devices.
606d249eeeSSheldon HearnAny devices found which answer as CDROM
612d8eb2c0SKenneth D. Merry(type 5) or WORM (type 4) type devices will be `attached' to the
62db35f309SDavid Greenman.Nm
632460bdf0SPeter Dufaultdriver.
64dd5527c6SMike PritchardPrior to
65dd5527c6SMike Pritchard.Fx 2.1 ,
66dd5527c6SMike Pritchardthe first device found will be attached as
675fc1fd70SGarrett Wollman.Li cd0
685fc1fd70SGarrett Wollmanthe next,
695fc1fd70SGarrett Wollman.Li cd1 ,
70db35f309SDavid Greenmanetc.
71dd5527c6SMike PritchardBeginning in
72dd5527c6SMike Pritchard.Fx 2.1
73dd5527c6SMike Pritchardit is possible to specify what cd unit a device should
742460bdf0SPeter Dufaultcome on line as; refer to
752460bdf0SPeter Dufault.Xr scsi 4
762460bdf0SPeter Dufaultfor details on kernel configuration.
77db35f309SDavid Greenman.Pp
78db35f309SDavid GreenmanThe system utility
795fc1fd70SGarrett Wollman.Xr disklabel 8
80db35f309SDavid Greenmanmay be used to read the synthesized
815fc1fd70SGarrett Wollmandisk label
825fc1fd70SGarrett Wollmanstructure, which will contain correct figures for the size of the
835fc1fd70SGarrett Wollman.Tn CD-ROM
84db35f309SDavid Greenmanshould that information be required.
85db35f309SDavid Greenman.Sh KERNEL CONFIGURATION
865fc1fd70SGarrett WollmanAny number of
875fc1fd70SGarrett Wollman.Tn CD-ROM
885fc1fd70SGarrett Wollmandevices may be attached to the system regardless of system
89db35f309SDavid Greenmanconfiguration as all resources are dynamically allocated.
90db35f309SDavid Greenman.Sh IOCTLS
91db35f309SDavid GreenmanThe following
92db35f309SDavid Greenman.Xr ioctl 2
935fc1fd70SGarrett Wollmancalls which apply to
945fc1fd70SGarrett Wollman.Tn SCSI
955fc1fd70SGarrett Wollman.Tn CD-ROM
965fc1fd70SGarrett Wollmandrives are defined
97db35f309SDavid Greenmanin the header files
98fe08efe6SRuslan Ermilov.In sys/cdio.h
99db35f309SDavid Greenmanand
100fe08efe6SRuslan Ermilov.In sys/disklabel.h .
1013136363fSRuslan Ermilov.Bl -tag -width CDIOCREADSUBCHANNEL
1025fc1fd70SGarrett Wollman.It Dv CDIOCPLAYTRACKS
1035fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_track"
104f6c211aeSHiten PandyaStart audio playback given a track address and length.
105f6c211aeSHiten PandyaThe structure is defined as follows:
1065fc1fd70SGarrett Wollman.Bd -literal -offset indent
1075fc1fd70SGarrett Wollmanstruct ioc_play_track
1085fc1fd70SGarrett Wollman{
1095fc1fd70SGarrett Wollman	u_char	start_track;
1105fc1fd70SGarrett Wollman	u_char	start_index;
1115fc1fd70SGarrett Wollman	u_char	end_track;
1125fc1fd70SGarrett Wollman	u_char	end_index;
1135fc1fd70SGarrett Wollman};
1145fc1fd70SGarrett Wollman.Ed
1155fc1fd70SGarrett Wollman.It Dv CDIOCPLAYBLOCKS
1165fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_blocks"
117f6c211aeSHiten PandyaStart audio playback given a block address and length.
118f6c211aeSHiten PandyaThe structure is defined as follows:
1195fc1fd70SGarrett Wollman.Bd -literal -offset indent
1205fc1fd70SGarrett Wollmanstruct ioc_play_blocks
1215fc1fd70SGarrett Wollman{
1225fc1fd70SGarrett Wollman	int	blk;
1235fc1fd70SGarrett Wollman	int	len;
1245fc1fd70SGarrett Wollman};
1255fc1fd70SGarrett Wollman.Ed
1265fc1fd70SGarrett Wollman.It Dv CDIOCPLAYMSF
1275fc1fd70SGarrett Wollman.Pq Li "struct ioc_play_msf"
1285fc1fd70SGarrett WollmanStart audio playback given a `minutes-seconds-frames' address and
129f6c211aeSHiten Pandyalength.
130f6c211aeSHiten PandyaThe structure is defined as follows:
1315fc1fd70SGarrett Wollman.Bd -literal -offset indent
1325fc1fd70SGarrett Wollmanstruct ioc_play_msf
1335fc1fd70SGarrett Wollman{
1345fc1fd70SGarrett Wollman	u_char	start_m;
1355fc1fd70SGarrett Wollman	u_char	start_s;
1365fc1fd70SGarrett Wollman	u_char	start_f;
1375fc1fd70SGarrett Wollman	u_char	end_m;
1385fc1fd70SGarrett Wollman	u_char	end_s;
1395fc1fd70SGarrett Wollman	u_char	end_f;
1405fc1fd70SGarrett Wollman};
1415fc1fd70SGarrett Wollman.Ed
1425fc1fd70SGarrett Wollman.It Dv CDIOCREADSUBCHANNEL
1435fc1fd70SGarrett Wollman.Pq Li "struct ioc_read_subchannel"
1445fc1fd70SGarrett WollmanRead information from the subchannel at the location specified by this
1455fc1fd70SGarrett Wollmanstructure:
1465fc1fd70SGarrett Wollman.Bd -literal -offset indent
1475fc1fd70SGarrett Wollmanstruct ioc_read_subchannel {
1485fc1fd70SGarrett Wollman	u_char address_format;
1495fc1fd70SGarrett Wollman#define CD_LBA_FORMAT	1
1505fc1fd70SGarrett Wollman#define CD_MSF_FORMAT	2
1515fc1fd70SGarrett Wollman	u_char data_format;
1525fc1fd70SGarrett Wollman#define CD_SUBQ_DATA		0
1535fc1fd70SGarrett Wollman#define CD_CURRENT_POSITION	1
1545fc1fd70SGarrett Wollman#define CD_MEDIA_CATALOG	2
1555fc1fd70SGarrett Wollman#define CD_TRACK_INFO		3
1565fc1fd70SGarrett Wollman	u_char track;
1575fc1fd70SGarrett Wollman	int	data_len;
1585fc1fd70SGarrett Wollman	struct  cd_sub_channel_info *data;
1595fc1fd70SGarrett Wollman};
1605fc1fd70SGarrett Wollman.Ed
1615fc1fd70SGarrett Wollman.It Dv CDIOREADTOCHEADER
1625fc1fd70SGarrett Wollman.Pq Li "struct ioc_toc_header"
1635fc1fd70SGarrett WollmanReturn summary information about the table of contents for the mounted
1645fc1fd70SGarrett Wollman.Tn CD-ROM .
1655fc1fd70SGarrett WollmanThe information is returned into the following structure:
1665fc1fd70SGarrett Wollman.Bd -literal -offset indent
1675fc1fd70SGarrett Wollmanstruct ioc_toc_header {
1685fc1fd70SGarrett Wollman	u_short len;
1695fc1fd70SGarrett Wollman	u_char  starting_track;
1705fc1fd70SGarrett Wollman	u_char  ending_track;
1715fc1fd70SGarrett Wollman};
1725fc1fd70SGarrett Wollman.Ed
1735fc1fd70SGarrett Wollman.It Dv CDIOREADTOCENTRYS
1745fc1fd70SGarrett Wollman.Pq Li "struct ioc_read_toc_entry"
175f6c211aeSHiten PandyaReturn information from the table of contents entries mentioned.
176f6c211aeSHiten Pandya.Pq Yes, this command name is misspelled.
177f6c211aeSHiten PandyaThe argument structure is defined as follows:
1785fc1fd70SGarrett Wollman.Bd -literal -offset indent
1795fc1fd70SGarrett Wollmanstruct ioc_read_toc_entry {
1805fc1fd70SGarrett Wollman	u_char	address_format;
1815fc1fd70SGarrett Wollman	u_char	starting_track;
1825fc1fd70SGarrett Wollman	u_short	data_len;
1835fc1fd70SGarrett Wollman	struct  cd_toc_entry *data;
1845fc1fd70SGarrett Wollman};
1855fc1fd70SGarrett Wollman.Ed
1865fc1fd70SGarrett WollmanThe requested data is written into an area of size
1875fc1fd70SGarrett Wollman.Li data_len
1885fc1fd70SGarrett Wollmanand pointed to by
1895fc1fd70SGarrett Wollman.Li data .
1905fc1fd70SGarrett Wollman.It Dv CDIOCSETPATCH
1915fc1fd70SGarrett Wollman.Pq Li "struct ioc_patch"
192f6c211aeSHiten PandyaAttach various audio channels to various output channels.
193f6c211aeSHiten PandyaThe argument structure is defined thusly:
1945fc1fd70SGarrett Wollman.Bd -literal -offset indent
1955fc1fd70SGarrett Wollmanstruct ioc_patch {
1965fc1fd70SGarrett Wollman	u_char	patch[4];
1975fc1fd70SGarrett Wollman	/* one for each channel */
1985fc1fd70SGarrett Wollman};
1995fc1fd70SGarrett Wollman.Ed
2005fc1fd70SGarrett Wollman.It Dv CDIOCGETVOL
2015fc1fd70SGarrett Wollman.It Dv CDIOCSETVOL
2025fc1fd70SGarrett Wollman.Pq Li "struct ioc_vol"
203f6c211aeSHiten PandyaGet (set) information about the volume settings of the output channels.
204f6c211aeSHiten PandyaThe argument structure is as follows:
2055fc1fd70SGarrett Wollman.Bd -literal -offset indent
2065fc1fd70SGarrett Wollmanstruct	ioc_vol
2075fc1fd70SGarrett Wollman{
2085fc1fd70SGarrett Wollman	u_char	vol[4];
2095fc1fd70SGarrett Wollman	/* one for each channel */
2105fc1fd70SGarrett Wollman};
2115fc1fd70SGarrett Wollman.Ed
2125fc1fd70SGarrett Wollman.It Dv CDIOCSETMONO
2135fc1fd70SGarrett WollmanPatch all output channels to all source channels.
2145fc1fd70SGarrett Wollman.It Dv CDIOCSETSTEREO
215db35f309SDavid GreenmanPatch left source channel to the left output channel and the right
216db35f309SDavid Greenmansource channel to the right output channel.
2175fc1fd70SGarrett Wollman.It Dv CDIOCSETMUTE
218db35f309SDavid GreenmanMute output without changing the volume settings.
2195fc1fd70SGarrett Wollman.It Dv CDIOCSETLEFT
2205fc1fd70SGarrett Wollman.It Dv CDIOCSETRIGHT
2215fc1fd70SGarrett WollmanAttach both output channels to the left (right) source channel.
2225fc1fd70SGarrett Wollman.It Dv CDIOCSETDEBUG
2235fc1fd70SGarrett Wollman.It Dv CDIOCCLRDEBUG
2245fc1fd70SGarrett WollmanTurn on (off) debugging for the appropriate device.
2255fc1fd70SGarrett Wollman.It Dv CDIOCPAUSE
2265fc1fd70SGarrett Wollman.It Dv CDIOCRESUME
2275fc1fd70SGarrett WollmanPause (resume) audio play, without resetting the location of the read-head.
2285fc1fd70SGarrett Wollman.It Dv CDIOCRESET
229db35f309SDavid GreenmanReset the drive.
2305fc1fd70SGarrett Wollman.It Dv CDIOCSTART
2315fc1fd70SGarrett Wollman.It Dv CDIOCSTOP
2325fc1fd70SGarrett WollmanTell the drive to spin-up (-down) the
2335fc1fd70SGarrett Wollman.Tn CD-ROM .
2345fc1fd70SGarrett Wollman.It Dv CDIOCALLOW
2355fc1fd70SGarrett Wollman.It Dv CDIOCPREVENT
2365fc1fd70SGarrett WollmanTell the drive to allow (prevent) manual ejection of the
2375fc1fd70SGarrett Wollman.Tn CD-ROM
238b5e7e999SRuslan Ermilovdisc.
239b5e7e999SRuslan ErmilovNot all drives support this feature.
2405fc1fd70SGarrett Wollman.It Dv CDIOCEJECT
2415fc1fd70SGarrett WollmanEject the
2425fc1fd70SGarrett Wollman.Tn CD-ROM .
2435fc1fd70SGarrett Wollman.It Dv CDIOCCLOSE
244f6c211aeSHiten PandyaTell the drive to close its door and load the media.
245f6c211aeSHiten PandyaNot all drives support this feature.
246db35f309SDavid Greenman.El
247db35f309SDavid Greenman.Sh NOTES
2485fc1fd70SGarrett WollmanWhen a
2495fc1fd70SGarrett Wollman.Tn CD-ROM
2505fc1fd70SGarrett Wollmanis changed in a drive controlled by the
251db35f309SDavid Greenman.Nm
252db35f309SDavid Greenmandriver, then the act of changing the media will invalidate the
253f6c211aeSHiten Pandyadisklabel and information held within the kernel.
254f6c211aeSHiten PandyaTo stop corruption,
2555fc1fd70SGarrett Wollmanall accesses to the device will be discarded until there are no more
256f6c211aeSHiten Pandyaopen file descriptors referencing the device.
257f6c211aeSHiten PandyaDuring this period, all
258f6c211aeSHiten Pandyanew open attempts will be rejected.
259f6c211aeSHiten PandyaWhen no more open file descriptors
260db35f309SDavid Greenmanreference the device, the first next open will load a new set of
2615fc1fd70SGarrett Wollmanparameters (including disklabel) for the drive.
2625fc1fd70SGarrett Wollman.Pp
2635fc1fd70SGarrett WollmanThe audio code in the
264db35f309SDavid Greenman.Nm
2655fc1fd70SGarrett Wollmandriver only support
2665fc1fd70SGarrett Wollman.Tn SCSI-2
2676d249eeeSSheldon Hearnstandard audio commands.
268b5e7e999SRuslan ErmilovAs many
2695fc1fd70SGarrett Wollman.Tn CD-ROM
2705fc1fd70SGarrett Wollmanmanufacturers have not followed the standard, there are many
2715fc1fd70SGarrett Wollman.Tn CD-ROM
2726d249eeeSSheldon Hearndrives for which audio will not work.
2736d249eeeSSheldon HearnSome work is planned to support
2745fc1fd70SGarrett Wollmansome of the more common `broken'
2755fc1fd70SGarrett Wollman.Tn CD-ROM
2765fc1fd70SGarrett Wollmandrives; however, this is not yet under way.
277ba181a0eSWarner Losh.Sh SYSCTL VARIABLES
278ba181a0eSWarner LoshThe following variables are available as both
279ba181a0eSWarner Losh.Xr sysctl 8
280ba181a0eSWarner Loshvariables and
281ba181a0eSWarner Losh.Xr loader 8
282ba181a0eSWarner Loshtunables:
283ba181a0eSWarner Losh.Bl -tag -width 12
284ba181a0eSWarner Losh.It kern.cam.cd.retry_count
285ba181a0eSWarner Losh.Pp
286ba181a0eSWarner LoshThis variable determines how many times the
287ba181a0eSWarner Losh.Nm
288ba181a0eSWarner Loshdriver will retry a READ or WRITE command.
289ba181a0eSWarner LoshThis does not affect the number of retries used during probe time or for
290ba181a0eSWarner Loshthe
291ba181a0eSWarner Losh.Nm
292ba181a0eSWarner Loshdriver dump routine.
293ba181a0eSWarner LoshThis value currently defaults to 4.
294ba181a0eSWarner Losh.It kern.cam.cd.%d.minimum_cmd_size
295ba181a0eSWarner Losh.Pp
296ba181a0eSWarner LoshThe
297ba181a0eSWarner Losh.Nm
298ba181a0eSWarner Loshdriver attempts to automatically determine whether the drive it is talking
299ba181a0eSWarner Loshto supports 6 byte or 10 byte MODE SENSE/MODE SELECT operations.
300ba181a0eSWarner LoshMany
301ba181a0eSWarner Losh.Tn SCSI
302ba181a0eSWarner Loshdrives only support 6 byte commands, and
303ba181a0eSWarner Losh.Tn ATAPI
304ba181a0eSWarner Loshdrives only support 10 byte commands.
305ba181a0eSWarner LoshThe
306ba181a0eSWarner Losh.Nm
307ba181a0eSWarner Loshdriver first attempts to determine whether the protocol in use typically
308ba181a0eSWarner Loshsupports 6 byte commands by issuing a CAM Path Inquiry CCB.
309ba181a0eSWarner LoshIt will then default to 6 byte or 10 byte commands as appropriate.
310ba181a0eSWarner LoshAfter that, the
311ba181a0eSWarner Losh.Nm
312ba181a0eSWarner Loshdriver defaults to using 6 byte commands (assuming the protocol the drive
313ba181a0eSWarner Loshspeaks claims to support 6 byte commands), until one fails with a
314ba181a0eSWarner Losh.Tn SCSI
315ba181a0eSWarner LoshILLEGAL REQUEST error.
316ba181a0eSWarner LoshThen it tries the 10 byte version of the command to
317ba181a0eSWarner Loshsee if that works instead.
318ba181a0eSWarner LoshUsers can change the default via per-drive
319ba181a0eSWarner Loshsysctl variables and loader tunables.
320ba181a0eSWarner LoshWhere
321ba181a0eSWarner Losh.Dq %d
322ba181a0eSWarner Loshis the unit number of the drive in question.
323ba181a0eSWarner LoshValid minimum command sizes
324ba181a0eSWarner Loshare 6 and 10.
325ba181a0eSWarner LoshAny value above 6 will be rounded to 10, and any value below
326ba181a0eSWarner Losh6 will be rounded to 6.
327ba181a0eSWarner Losh.El
328db35f309SDavid Greenman.Sh FILES
32930934e7dSRuslan Ermilov.Bl -tag -width /dev/cd[0-9][a-h] -compact
330db35f309SDavid Greenman.It Pa /dev/cd[0-9][a-h]
3315fc1fd70SGarrett Wollmanraw mode
3325fc1fd70SGarrett Wollman.Tn CD-ROM
3335fc1fd70SGarrett Wollmandevices
334db35f309SDavid Greenman.El
335db35f309SDavid Greenman.Sh DIAGNOSTICS
336db35f309SDavid GreenmanNone.
337db35f309SDavid Greenman.Sh SEE ALSO
3382baf3a13SAlexander Motin.Xr cam 4 ,
339*6e1fc011SGraham Percival.Xr cd9660 4 ,
3402d8eb2c0SKenneth D. Merry.Xr da 4 ,
341f79219c3SJohn-Mark Gurney.Xr disklabel 8 ,
342f79219c3SJohn-Mark Gurney.Xr cd 9
3439cbda590SRuslan Ermilov.Sh HISTORY
3449cbda590SRuslan ErmilovThis
3459cbda590SRuslan Ermilov.Nm
3469cbda590SRuslan Ermilovdriver is based upon the
3479cbda590SRuslan Ermilov.Nm
3489cbda590SRuslan Ermilovdriver written by Julian Elischer, which appeared in
3499cbda590SRuslan Ermilov.Bx 386 0.1 .
3509cbda590SRuslan ErmilovThe
3519cbda590SRuslan ErmilovCAM version of the
3529cbda590SRuslan Ermilov.Nm
3539cbda590SRuslan Ermilovdriver was written by Kenneth Merry and first appeared in
3549cbda590SRuslan Ermilov.Fx 3.0 .
3555fc1fd70SGarrett Wollman.Sh BUGS
3565fc1fd70SGarrett WollmanThe names of the structures used for the third argument to
3575fc1fd70SGarrett Wollman.Fn ioctl
3585fc1fd70SGarrett Wollmanwere poorly chosen, and a number of spelling errors have survived in
3595fc1fd70SGarrett Wollmanthe names of the
3605fc1fd70SGarrett Wollman.Fn ioctl
3615fc1fd70SGarrett Wollmancommands.
362