📄 c-filesys6.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Local File Systems </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-filesys.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-filesys5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-filesys7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="86271">4.6 CD-ROM File System: cdromFs</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86272"> </a>The cdromFs library, <b class="library">cdromFsLib</b>, lets applications read any CD-ROM that is formatted in accordance with ISO 9660 file system standards. After initializing cdromFs and mounting it on a CD-ROM block device, you can access data on that device using the standard POSIX I/O calls: <b class="routine"><i class="routine">open</i></b><b>( )</b>, <b class="routine"><i class="routine">close</i></b><b>( )</b>, <b class="routine"><i class="routine">read</i></b><b>( )</b>, <b class="routine"><i class="routine">ioctl</i></b><b>( )</b>, <b class="routine"><i class="routine">readdir</i></b><b>( )</b>, and <b class="routine"><i class="routine">stat</i></b><b>( )</b>. The <b class="routine"><i class="routine">write</i></b><b>( )</b> call always returns an error. </p><dd><p class="Body"><a name="86273"> </a>The cdromFs utility supports multiple drives, multiple open files, and concurrent file access. When you specify a pathname, cdromFS accepts both "/" and "\". However, the backslash is not recommended because it might not be supported in future releases. </p><dd><p class="Body"><a name="86274"> </a>The strict ISO 9660 specification allows only uppercase file names consisting of 8 characters plus a 3-character suffix.</p><dd><p class="Body"><a name="86275"> </a>CdromFs provides access to CD-ROM file systems using any standard <b class="symbol_UC">BLK_DEV</b> structure. The basic initialization sequence is similar to installing a dosFs file system on a SCSI device.</p><dd><p class="Body"><a name="86276"> </a>Before cdromFs can be used, it must be configured by defining <b class="symbol_UC">INCLUDE_CDROMFS </b>in <b class="file">config.h</b>. (See <a href="c-config5.html#85532"><i class="title">8.5 Configuring VxWorks</i></a>.) For information on using cdromFs, see the online reference for <b class="library">cdromFsLib</b> under <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks Reference Manual>Libraries</font></b>.</p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-filesys.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-filesys5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-filesys7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -