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

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

?? c-iosys4.html

?? this about vxworks operations systems
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    I/O System   </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-iosys.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-iosys3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-iosys5.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="83997">3.4  &nbsp;&nbsp;Buffered I/O: Stdio</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83999"> </a>The VxWorks I/O library provides a buffered I/O package that is compatible with the UNIX and Windows <i class="acronym_lc">stdio</i> package and provides full ANSI C support. To include the <i class="acronym_lc">stdio</i> package in the VxWorks system, select <b class="symbol_UC">INCLUDE_ANSI_STDIO</b> for inclusion in the project facility VxWorks view; see <i class="title">Tornado User's Guide: Projects</i> for information on configuring VxWorks. </p><dd><p class="Body"><a name="84000"> </a>Note that the implementation of <b class="routine"><i class="routine">printf</i></b><b>(</b>&nbsp;<b>)</b>, <b class="routine"><i class="routine">sprintf</i></b><b>(</b>&nbsp;<b>)</b>, and <b class="routine"><i class="routine">sscanf</i></b><b>(</b>&nbsp;<b>)</b>, traditionally considered part of the <i class="acronym_lc">stdio</i> package, is part of a different package in VxWorks. These routines are discussed in <a href="c-iosys5.html#84032"><i class="title">3.5&nbsp;Other Formatted I/O</i></a>. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="84004">3.4.1  &nbsp;&nbsp;Using Stdio</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84005"> </a>Although the VxWorks I/O system is efficient, some overhead is associated with each low-level call. First, the I/O system must dispatch from the device-independent user call (<b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b>, <b class="routine"><i class="routine">write</i></b><b>(</b>&nbsp;<b>)</b>, and so on) to the driver-specific routine for that function. Second, most drivers invoke a mutual exclusion or queuing mechanism to prevent simultaneous requests by multiple users from interfering with each other.</p><dd><p class="Body"><a name="84006"> </a>Because the VxWorks primitives are fast, this overhead is quite small. However, an application processing a single character at a time from a file incurs that overhead for each character if it reads each character with a separate <b class="routine"><i class="routine">read</i></b><b>(</b>&nbsp;<b>)</b> call:</p><dl class="margin"><dd><pre class="Code2"><b><a name="84007"><i class="textVariable">n</i> = read (<i class="textVariable">fd</i>, &amp;<i class="textVariable">char</i>, 1);</a></b></pre></dl><dd><p class="Body"><a name="84008"> </a>To make this type of I/O more efficient and flexible, the <i class="acronym_lc">stdio</i> package implements a buffering scheme in which data is read and written in large chunks and buffered privately. This buffering is transparent to the application; it is handled automatically by the <i class="acronym_lc">stdio</i> routines and macros. To access a file with <i class="acronym_lc">stdio</i>, a file is opened with <b class="routine"><i class="routine">fopen</i></b><b>(</b>&nbsp;<b>)</b> instead of <b class="routine"><i class="routine">open</i></b><b>(</b>&nbsp;<b>)</b> (many <i class="acronym_lc">stdio</i> calls begin with the letter <i class="i">f</i>):</p><dl class="margin"><dd><pre class="Code2"><b><a name="84010"><i class="textVariable">fp</i> = fopen ("/usr/foo", "r");</a></b></pre></dl><dd><p class="Body"><a name="84012"> </a>The returned value, a <i class="term">file pointer</i> (or<i class="acronym_lc"> fp</i>) is a handle for the opened file and its associated buffers and pointers. An <i class="acronym_lc">fp</i> is actually a pointer to the associated data structure of type <b class="symbol_UC">FILE</b> (that is, it is declared as <b class="symbol_UC">FILE *</b>). By contrast, the low-level I/O routines identify a file with a <i class="term">file descriptor</i> (<i class="acronym_lc">fd</i>), which is a small integer. In fact, the <b class="symbol_UC">FILE</b> structure pointed to by the <i class="acronym_lc">fp</i> contains the underlying <i class="acronym_lc">fd</i> of the open file.</p><dd><p class="Body"><a name="84014"> </a>An already open <i class="acronym_lc">fd</i> can be associated belatedly with a <b class="symbol_UC">FILE</b> buffer by calling <b class="routine"><i class="routine">fdopen</i></b><b>(</b>&nbsp;<b>)</b>:</p><dl class="margin"><dd><pre class="Code2"><b><a name="84015"><i class="textVariable">fp</i> = fdopen (<i class="textVariable">fd</i>, "r");</a></b></pre></dl><dd><p class="Body"><a name="84017"> </a>After a file is opened with <b class="routine"><i class="routine">fopen</i></b><b>(</b>&nbsp;<b>)</b>, data can be read with <b class="routine"><i class="routine">fread</i></b><b>(</b>&nbsp;<b>)</b>, or a character at a time with <b class="routine"><i class="routine">getc</i></b><b>(</b>&nbsp;<b>)</b>, and data can be written with <b class="routine"><i class="routine">fwrite</i></b><b>(</b>&nbsp;<b>)</b>, or a character at a time with <b class="routine"><i class="routine">putc</i></b><b>(</b>&nbsp;<b>)</b>.</p><dd><p class="Body"><a name="84021"> </a>The routines and macros to get data into or out of a file are extremely efficient. They access the buffer with direct pointers that are incremented as data is read or written by the user. They pause to call the low-level read or write routines only when a read buffer is empty or a write buffer is full.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="96582"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>The <i class="acronym_lc">stdio</i> buffers and pointers are <i class="term">private</i> to a particular task. They are <i class="emphasis">not</i> interlocked with semaphores or any other mutual exclusion mechanism, because this defeats the point of an efficient private buffering scheme. Therefore, multiple tasks must not perform I/O to the same <i class="acronym_lc">stdio</i> <b class="symbol_UC">FILE</b> pointer at the same time.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="96588"> </a>The <b class="symbol_UC">FILE</b> buffer is deallocated when <b class="routine"><i class="routine">fclose</i></b><b>(&nbsp;)</b> is called. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="96589">3.4.2  &nbsp;&nbsp;Standard Input, Standard Output, and Standard Error</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84028"> </a>As discussed earlier in <a href="c-iosys3.html#83659"><i class="title">3.3&nbsp;Basic I/O</i></a>, there are three special file descriptors (0, 1, and 2) reserved for standard input, standard output, and standard error. Three corresponding <i class="acronym_lc">stdio</i> <b class="symbol_UC">FILE</b> buffers are automatically created when a task uses the standard file descriptors, <i class="acronym_lc">stdin</i>, <i class="acronym_lc">stdout</i>, and <i class="acronym_lc">stderr,</i> to do buffered I/O to the standard <i class="acronym_lc">fd</i>s. Each task using the standard I/O <i class="acronym_lc">fds</i> has its own <i class="acronym_lc">stdio</i> <b class="symbol_UC">FILE</b> buffers. The <b class="symbol_UC">FILE</b> buffers are deallocated when the task exits. </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-iosys.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-iosys3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-iosys5.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 + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕日本不卡| 日韩精品影音先锋| 最新日韩av在线| 成人av综合在线| 亚洲欧美另类久久久精品| 一本久久a久久精品亚洲| 亚洲欧美日韩综合aⅴ视频| 99久久综合国产精品| 亚洲精品国产视频| 欧美视频一区二区三区四区| 日韩国产一二三区| 久久久精品日韩欧美| 成人天堂资源www在线| 亚洲精选视频在线| 欧美日韩中文国产| 久久66热偷产精品| 国产精品丝袜91| 欧洲国产伦久久久久久久| 午夜精品福利一区二区蜜股av| 欧美一级电影网站| 成人免费不卡视频| 亚洲成av人片www| www国产精品av| 91亚洲男人天堂| 天天影视网天天综合色在线播放 | 婷婷综合五月天| 精品伦理精品一区| 99视频一区二区| 日本v片在线高清不卡在线观看| 久久久电影一区二区三区| www.日本不卡| 青娱乐精品在线视频| 国产女同性恋一区二区| 色屁屁一区二区| 激情综合色播五月| 一级中文字幕一区二区| 精品少妇一区二区三区在线播放| 91视频xxxx| 精品一二三四区| 一区二区三区欧美日韩| 26uuu精品一区二区| 色噜噜狠狠色综合欧洲selulu| 激情五月播播久久久精品| 亚洲精品一二三区| 久久综合九色综合97婷婷女人| 91福利在线观看| 懂色av中文字幕一区二区三区| 三级欧美在线一区| 亚洲欧洲国产专区| 久久久久亚洲综合| 欧美一区二区大片| 在线亚洲+欧美+日本专区| 国产精品中文字幕日韩精品| 亚洲成av人片在线观看| 中文字幕在线不卡国产视频| 欧美成人在线直播| 69精品人人人人| 91久久精品一区二区二区| 国产黄色91视频| 美女视频黄久久| 亚洲成a人在线观看| 亚洲欧美怡红院| 国产欧美日韩精品a在线观看| 欧美日本国产一区| 欧美午夜精品免费| 日本韩国一区二区三区| av在线播放成人| av网站免费线看精品| 国产精品一品二品| 国内偷窥港台综合视频在线播放| 日韩av成人高清| 午夜欧美电影在线观看| 亚洲精品中文字幕在线观看| 国产精品免费av| 国产精品女同一区二区三区| 国产亚洲精品aa午夜观看| 亚洲精品在线网站| 精品黑人一区二区三区久久 | 亚洲欧美另类在线| 亚洲天堂中文字幕| 亚洲精品国产品国语在线app| 一色屋精品亚洲香蕉网站| 欧美国产禁国产网站cc| 久久久777精品电影网影网| 久久久国产精品麻豆| 欧美国产乱子伦| 国产精品久久久久四虎| 欧美无乱码久久久免费午夜一区| 成人高清免费在线播放| 国产成人三级在线观看| 一区二区三区欧美久久| 亚洲午夜精品久久久久久久久| 日韩伦理电影网| 欧美国产日韩a欧美在线观看| 日本一区二区三区电影| 中文字幕的久久| 久久尤物电影视频在线观看| 中文在线资源观看网站视频免费不卡| 2019国产精品| 欧美国产日韩精品免费观看| 中文字幕免费观看一区| 中文字幕日韩欧美一区二区三区| 国产欧美日韩另类一区| 亚洲日本在线观看| 一区二区三区欧美久久| 亚洲高清久久久| 午夜国产精品一区| 日本中文字幕一区| 五月天久久比比资源色| 久久99精品国产.久久久久| 久久se精品一区精品二区| 久久国产三级精品| 韩日精品视频一区| 成人丝袜18视频在线观看| 91免费国产在线观看| 欧美高清视频www夜色资源网| 6080国产精品一区二区| 精品乱人伦一区二区三区| 国产精品视频在线看| 一区二区三区加勒比av| 免费的成人av| 国产成人在线色| 在线免费精品视频| 69堂精品视频| 国产欧美精品一区| 亚洲一区免费观看| 美女爽到高潮91| www.av亚洲| 欧美午夜一区二区三区| 国产日本亚洲高清| 亚洲精品ww久久久久久p站| 综合分类小说区另类春色亚洲小说欧美| 亚洲国产精品黑人久久久| 亚洲精品中文字幕乱码三区| 日本少妇一区二区| 成人黄页在线观看| 欧美日韩二区三区| 日韩美女视频在线| 亚洲一区二区五区| 国产精品一区二区免费不卡| 日本高清免费不卡视频| 精品国产sm最大网站免费看| 最新日韩av在线| 秋霞午夜av一区二区三区| 国产·精品毛片| 91精品国产入口| 中文字幕中文字幕中文字幕亚洲无线| 亚洲成人免费在线观看| 免费观看在线色综合| 欧美日韩色一区| 国产精品乱码一区二区三区软件 | 欧美激情一区二区三区全黄| 亚洲成人黄色影院| 激情六月婷婷综合| 欧美大尺度电影在线| 亚洲码国产岛国毛片在线| 久久99精品一区二区三区| 欧美自拍丝袜亚洲| 国产精品免费观看视频| 成人免费视频一区二区| 日韩免费看的电影| 亚洲午夜在线观看视频在线| 成人一级视频在线观看| 欧美v国产在线一区二区三区| 一区二区在线免费观看| 国产精品1区二区.| 日韩欧美一区电影| 亚洲福中文字幕伊人影院| 99精品视频在线播放观看| 日韩一区二区三区在线视频| 蜜桃久久精品一区二区| 欧美日韩精品一区二区| 亚洲精品水蜜桃| 99国产精品久久久久久久久久久| 欧美白人最猛性xxxxx69交| 开心九九激情九九欧美日韩精美视频电影| 一本色道久久综合亚洲aⅴ蜜桃| 国产精品美女一区二区| 成人免费的视频| 中文字幕第一区综合| 99re6这里只有精品视频在线观看| 国产精品无圣光一区二区| 国产成人免费在线视频| 国产亚洲欧美一级| 日日欢夜夜爽一区| 精品伦理精品一区| 国产美女视频一区| 欧美激情在线一区二区| 成人午夜在线免费| 中文字幕色av一区二区三区| 99re热视频这里只精品| 亚洲六月丁香色婷婷综合久久| 91麻豆精品视频| 伊人开心综合网| 91精品国产一区二区三区香蕉 | 亚洲欧洲精品天堂一级| 99re8在线精品视频免费播放| 亚洲成人av资源| 日韩三级电影网址| 国产精品18久久久久久vr|