亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c-iosys3.html

?? this about vxworks operations systems
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<dd><p class="Body"><a name="83748"> </a>The possible access flags are shown in <a href="c-iosys3.html#93297">Table&nbsp;3-2</a>. <p class="table"><h4 class="EntityTitle"><a name="93297"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 3-2:&nbsp;&nbsp;File Access Flags</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="93303"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Flag</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="93305"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Hex Value</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="93307"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Description</font></b></div></th></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="93309"> </a><b class="symbol_UC">O_RDONLY</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93311"> </a>0&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93313"> </a>Open for reading only.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="93315"> </a><b class="symbol_UC">O_WRONLY</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93317"> </a>1&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93319"> </a>Open for writing only.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="93321"> </a><b class="symbol_UC">O_RDWR</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93323"> </a>2&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93325"> </a>Open for reading and writing.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="93327"> </a><b class="symbol_UC">O_CREAT</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93329"> </a>200&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93331"> </a>Create a new file.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="93333"> </a><b class="symbol_UC">O_TRUNC</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93335"> </a>400&nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="93337"> </a>Truncate the file.&nbsp;</div></td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="83749"> </a>The <i class="textVariable">mode</i> parameter is used in the following special cases to specify the mode (permission bits) of a file or to create subdirectories:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83806"> </a>In general, you can open only preexisting devices and files with <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b>. However, with NFS network, dosFs, and rt11Fs devices, you can also create files with <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> by or'ing <b class="symbol_UC">O_CREAT</b> with one of the access flags. In the case of NFS devices, <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> requires the third parameter specifying the mode of the file:</li></ul></p><dl class="margin"><dd><pre class="Code2"><b><a name="83808"><i class="textVariable">fd</i> = open ("<i class="textVariable">name</i>", O_CREAT | O_RDWR, 0644);</a></b></pre></dl><p class="listspace"><ul class="Bullet" type="disc"><li><a name="83809"> </a>With both dosFs and NFS devices, you can use the <b class="symbol_UC">O_CREAT</b> option to create a subdirectory by setting <i class="textVariable">mode</i> to <b class="symbol_UC">FSTAT_DIR</b>. Other uses of the mode parameter with dosFs devices are ignored.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="83810"> </a>The <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> routine, if successful, returns an <i class="acronym_lc">fd</i> (a small integer). This <i class="acronym_lc">fd</i> is then used in subsequent I/O calls to specify that file. The <i class="acronym_lc">fd</i> is a <i class="term">global</i> identifier that is <i class="emphasis">not</i> task specific. One task can open a file, and then any other tasks can use the resulting <i class="acronym_lc">fd</i> (for example, pipes). The <i class="acronym_lc">fd</i> remains valid until <b class="routine"><i class="routine">close</i></b><b>(</b>&nbsp;<b>)</b> is invoked with that <i class="acronym_lc">fd</i>:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83814">close (<i class="textVariable">fd</i>);</a></b></pre></dl><dd><p class="Body"><a name="83815"> </a>At that point, I/O to the file is flushed (completely written out) and the <i class="acronym_lc">fd</i> can no longer be used by any task. However, the same <i class="acronym_lc">fd</i> number can again be assigned by the I/O system in any subsequent <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b>.</p><dd><p class="Body"><a name="83816"> </a>When a task exits or is deleted, the files opened by that task are not automatically closed, because <i class="acronym_lc">fd</i>s are not task specific. Thus, it is recommended that tasks explicitly close all files when they are no longer required. As stated previously, there is a limit to the number of files that can be open at one time.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83817">3.3.4  &nbsp;&nbsp;Create and Remove</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83819"> </a>File-oriented devices must be able to create and remove files as well as open existing files. The <b class="routine"><i class="routine">creat</i></b><b>(</b>&nbsp;<b>)</b> routine directs a file-oriented device to make a new file on the device and return a file descriptor for it. The arguments to <b class="routine"><i class="routine">creat</i></b><b>(</b>&nbsp;<b>)</b> are similar to those of <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> except that the file name specifies the name of the new file rather than an existing one; the <b class="routine"><i class="routine">creat</i></b><b>(</b>&nbsp;<b>)</b> routine returns an <i class="acronym_lc">fd</i> identifying the new file.</p><dl class="margin"><dd><pre class="Code2"><b><a name="83821"><i class="textVariable">fd</i> = creat ("<i class="textVariable">name</i>", <i class="textVariable">flag</i>);</a></b></pre></dl><dd><p class="Body"><a name="83824"> </a>The <b class="routine"><i class="routine">remove</i></b><b>(</b>&nbsp;<b>)</b> routine removes a named file on a file-oriented device:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83825">remove ("<i class="textVariable">name</i>");</a></b></pre></dl><dd><p class="Body"><a name="83826"> </a>Do not remove files while they are open.</p><dd><p class="Body"><a name="83827"> </a>With non-file-system oriented device names, <b class="routine"><i class="routine">creat</i></b><b>(</b>&nbsp;<b>)</b> acts exactly like <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b>; however, <b class="routine"><i class="routine">remove</i></b><b>(</b>&nbsp;<b>)</b> has no effect.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83828">3.3.5  &nbsp;&nbsp;Read and Write</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83830"> </a>After an <i class="acronym_lc">fd</i> is obtained by invoking <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> or <b class="routine"><i class="routine">creat</i></b><b>(</b>&nbsp;<b>)</b>, tasks can read bytes from a file with <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> and write bytes to a file with <b class="routine"><i class="routine">write</i></b><b>(</b>&nbsp;<b>)</b>. The arguments to <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> are the <i class="acronym_lc">fd</i>, the address of the buffer to receive input, and the maximum number of bytes to read:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83832"><i class="textVariable">nBytes</i> = read (<i class="textVariable">fd</i>, &amp;<i class="textVariable">buffer</i>, <i class="textVariable">maxBytes</i>);</a></b></pre></dl><dd><p class="Body"><a name="83833"> </a>The <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> routine waits for input to be available from the specified file, and returns the number of bytes actually read. For file-system devices, if the number of bytes read is less than the number requested, a subsequent <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> returns 0 (zero), indicating end-of-file. For non-file-system devices, the number of bytes read can be less than the number requested even if more bytes are available; a subsequent <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> may or may not return 0. In the case of serial devices and TCP sockets, repeated calls to <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> are sometimes necessary to read a specific number of bytes. (See the reference entry for <b class="routine"><i class="routine">fioRead</i></b><b>(</b>&nbsp;<b>)</b> in <b class="library">fioLib</b>). A return value of <b class="symbol_UC">ERROR</b> (-1) indicates an unsuccessful read.</p><dd><p class="Body"><a name="83836"> </a>The arguments to <b class="routine"><i class="routine">write</i></b><b>(</b>&nbsp;<b>)</b> are the <i class="acronym_lc">fd</i>, the address of the buffer that contains the data to be output, and the number of bytes to be written:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83837"><i class="textVariable">actualBytes</i> = write (<i class="textVariable">fd</i>, &amp;<i class="textVariable">buffer</i>, <i class="textVariable">nBytes</i>);</a></b></pre></dl><dd><p class="Body"><a name="83838"> </a>The <b class="routine"><i class="routine">write</i></b><b>(</b>&nbsp;<b>)</b> routine ensures that all specified data is at least queued for output before returning to the caller, though the data may not yet have been written to the device (this is driver dependent). <b class="routine"><i class="routine">write</i></b><b>(</b>&nbsp;<b>)</b> returns the number of bytes written; if the number returned is not equal to the number requested, an error has occurred. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83840">3.3.6  &nbsp;&nbsp;File Truncation</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83841"> </a>It is sometimes convenient to discard part of the data in a file. After a file is open for writing, you can use the <b class="routine"><i class="routine">ftruncate</i></b><b>(&nbsp;)</b><b class="routine"><i class="routine"> </i></b>routine to truncate a file to a specified size. Its arguments are an <i class="acronym_lc">fd </i>and the desired length of the file:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83843"><i class="textVariable">status </i>= ftruncate (<i class="textVariable">fd</i>, <i class="textVariable">length</i>);</a></b></pre></dl><dd><p class="Body"><a name="83844"> </a>If it succeeds in truncating the file, <b class="routine"><i class="routine">ftruncate</i></b><b>(&nbsp;)</b>returns <b class="symbol_UC">OK</b>. If the size specified is larger than the actual size of the file, or if the <i class="acronym_lc">fd</i> refers to a device that cannot be truncated, <b class="routine"><i class="routine">ftruncate</i></b><b>(&nbsp;)</b>returns <b class="symbol_UC">ERROR</b>, and sets <b class="symbol_lc">errno</b> to <b class="symbol_UC">EINVAL</b>.</p><dd><p class="Body"><a name="83845"> </a>The <b class="routine"><i class="routine">ftruncate</i></b><b>(&nbsp;)</b> routine is part of the POSIX 1003.1b standard, but this implementation is only partially POSIX-compliant: creation and modification times are not updated. This call is supported only by <b class="library">dosFsLib</b>, the DOS-compatible file system library.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83847">3.3.7  &nbsp;&nbsp;I/O Control</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83849"> </a>The <b class="routine"><i class="routine">ioctl</i></b><b>(</b>&nbsp;<b>)</b> routine is an open-ended mechanism for performing any I/O functions that do not fit the other basic I/O calls. Examples include determining how many bytes are currently available for input, setting device-specific options, obtaining information about a file system, and positioning random-access files to specific byte positions. The arguments to the <b class="routine"><i class="routine">ioctl</i></b><b>(</b>&nbsp;<b>)</b> routine are the <i class="acronym_lc">fd</i>, a code that identifies the control function requested, and an optional function-dependent argument:</p><dl class="margin">

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va| 国产成人8x视频一区二区| 91电影在线观看| 日韩美女视频一区| 色一情一伦一子一伦一区| 亚洲主播在线观看| 日韩欧美一级二级| 国产福利一区在线| 亚洲另类色综合网站| 欧美日韩aaaaaa| 国产精品亚洲一区二区三区妖精| 国产精品美女www爽爽爽| 在线观看视频欧美| 另类综合日韩欧美亚洲| 亚洲国产精品黑人久久久| 一本到三区不卡视频| 日韩黄色小视频| 国产欧美一区二区三区网站| 在线精品视频免费观看| 免费高清在线视频一区·| 日本一区二区三区四区在线视频| 99麻豆久久久国产精品免费| 丝袜a∨在线一区二区三区不卡| 欧美成人三级在线| av在线一区二区| 免费在线成人网| 国产精品久久久久久久久图文区| 欧美最新大片在线看| 九九国产精品视频| 亚洲精品视频在线| 久久久亚洲国产美女国产盗摄 | 亚洲激情成人在线| 欧美一区二区三区视频| 成人97人人超碰人人99| 五月天网站亚洲| 国产精品激情偷乱一区二区∴| 欧美日韩高清在线| 国产成人精品影视| 亚洲福利一区二区三区| 亚洲自拍都市欧美小说| 福利电影一区二区| 制服丝袜亚洲色图| 亚洲国产视频在线| 久久成人免费网站| 日韩三级高清在线| 亚洲综合区在线| 精品国产sm最大网站免费看| 91在线观看地址| 久久精品国产免费| 性欧美大战久久久久久久久| 国产香蕉久久精品综合网| 欧美日韩免费电影| 成人国产精品免费网站| 精品一区二区在线播放| 午夜精品一区二区三区电影天堂 | 中文字幕不卡一区| 欧美一区二区三区在线电影| 色婷婷综合久久久中文字幕| 国产一区二区三区黄视频 | 欧美视频一区二区三区| 成人精品免费看| 国产麻豆视频一区| 麻豆成人免费电影| 人人狠狠综合久久亚洲| 视频一区二区国产| 婷婷久久综合九色国产成人 | 97se狠狠狠综合亚洲狠狠| 国产经典欧美精品| 国产精品888| 国产一区在线视频| 国产一区视频在线看| 蜜芽一区二区三区| 玖玖九九国产精品| 美国三级日本三级久久99| 美女视频黄 久久| 老司机精品视频一区二区三区| 婷婷夜色潮精品综合在线| 日本一不卡视频| 免费人成精品欧美精品| 麻豆91精品91久久久的内涵| 看电影不卡的网站| 国产福利一区二区三区在线视频| 国产一区中文字幕| 不卡视频免费播放| 91精品福利视频| 欧美另类z0zxhd电影| 91精品国产日韩91久久久久久| 欧美日韩一级视频| 欧美一二三四在线| 久久奇米777| 国产精品视频线看| 一区二区三区中文字幕精品精品 | 久久网这里都是精品| 欧美www视频| 欧美国产综合一区二区| 亚洲少妇30p| 五月天视频一区| 久久aⅴ国产欧美74aaa| 国产精品一级黄| 色综合久久综合| 91麻豆精品国产91久久久久久| 26uuu久久天堂性欧美| 国产精品福利一区二区三区| 亚洲一区二区三区中文字幕| 日韩av中文字幕一区二区三区| 精品无人码麻豆乱码1区2区 | 日本黄色一区二区| 欧美猛男男办公室激情| 精品国偷自产国产一区| 国产精品国产三级国产aⅴ中文| 亚洲精品少妇30p| 青青草国产精品亚洲专区无| 丁香六月综合激情| 欧美亚洲综合久久| 久久精品男人的天堂| 亚洲综合精品自拍| 国产一区二区在线电影| 欧美在线观看视频在线| 精品福利在线导航| 亚洲小说欧美激情另类| 国产精品综合在线视频| 欧亚一区二区三区| 中文字幕国产一区| 青椒成人免费视频| 色偷偷久久一区二区三区| 欧美精品一区二区三区四区| 亚洲香肠在线观看| 成人午夜看片网址| 日韩一级视频免费观看在线| 亚洲视频综合在线| 韩国毛片一区二区三区| 欧美图区在线视频| 亚洲少妇30p| 国产91丝袜在线18| 日韩欧美国产综合| 一区二区在线观看视频在线观看| 国产一区二区三区综合| 91精品国产91久久综合桃花| 亚洲男女毛片无遮挡| 激情国产一区二区| 666欧美在线视频| 亚洲午夜久久久久| 91色porny| 国产精品国产精品国产专区不蜜 | 男女男精品视频| 欧美日韩一区久久| 一区二区三区日本| 99久精品国产| 国产精品视频一区二区三区不卡| 国产一区二区影院| 精品国产电影一区二区| 日韩1区2区日韩1区2区| 欧美日韩一区成人| 亚洲午夜在线电影| 在线精品亚洲一区二区不卡| 亚洲色图视频网| 91色在线porny| 亚洲男人天堂av| 色婷婷av一区| 亚洲精品欧美综合四区| 色综合色综合色综合| 亚洲欧美日韩中文播放 | 韩国av一区二区| 精品国产免费人成在线观看| 另类中文字幕网| 日韩精品一区二区三区中文不卡| 日本伊人色综合网| 日韩免费观看高清完整版 | 亚洲欧美国产77777| 色悠悠亚洲一区二区| 自拍偷拍国产亚洲| 一本色道综合亚洲| 亚洲自拍与偷拍| 欧美日韩国产乱码电影| 日韩高清欧美激情| 欧美精品一区视频| 国产a级毛片一区| 亚洲欧洲av在线| 在线欧美一区二区| 亚洲va欧美va天堂v国产综合| 欧美日韩亚洲综合| 麻豆91在线播放| 久久久美女毛片 | 色老头久久综合| 亚洲国产你懂的| 欧美v国产在线一区二区三区| 国产一区二区在线观看免费| 国产精品天美传媒| 色噜噜狠狠成人中文综合| 亚洲国产美国国产综合一区二区| 91精品久久久久久久久99蜜臂| 久久精品国产99国产精品| 欧美国产1区2区| 欧美最猛黑人xxxxx猛交| 日本欧美肥老太交大片| 中文字幕第一区二区| 欧美亚洲综合色| 国产一区二区91| 亚洲欧美色一区| 日韩精品一区二区三区在线播放|