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

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

?? c-iosys3.html

?? this about vxworks operations systems
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<dd><pre class="Code2"><b><a name="83850"><i class="textVariable">result</i> = ioctl (<i class="textVariable">fd</i>, <i class="textVariable">function</i>, <i class="textVariable">arg</i>);</a></b></pre></dl><dd><p class="Body"><a name="83851"> </a>For example, the following call uses the <b class="symbol_UC">FIOBAUDRATE</b> function to set the baud rate of a <i class="acronym_lc">tty</i> device to 9600:</p><dl class="margin"><dd><pre class="Code2"><b><a name="83852"><i class="textVariable">status</i> = ioctl (<i class="textVariable">fd</i>, FIOBAUDRATE, 9600);</a></b></pre></dl><dd><p class="Body"><a name="83856"> </a>The discussion of specific devices in <a href="c-iosys7.html#84371"><i class="title">3.7&nbsp;Devices in VxWorks</i></a> summarizes the <b class="routine"><i class="routine">ioctl</i></b><b>(</b>&nbsp;<b>)</b> functions available for each device. The <b class="routine"><i class="routine">ioctl</i></b><b>(</b>&nbsp;<b>)</b> control codes are defined in <b class="file">ioLib.h</b>. For more information, see the reference entries for specific device drivers.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="83860">3.3.8  &nbsp;&nbsp;Pending on Multiple File Descriptors: The Select Facility</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83861"> </a>The VxWorks <i class="term">select</i> facility provides a UNIX- and Windows-compatible method for pending on multiple file descriptors. The library <b class="library">selectLib</b> provides both task-level support, allowing tasks to wait for multiple devices to become active, and device driver support, giving drivers the ability to detect tasks that are pended while waiting for I/O on the device. To use this facility, the header file <b class="file">selectLib.h</b> must be included in your application code.</p><dd><p class="Body"><a name="83865"> </a>Task-level support not only gives tasks the ability to simultaneously wait for I/O on multiple devices, but it also allows tasks to specify the maximum time to wait for I/O to become available. For an example of using the<b> </b>select facility to pend on multiple file descriptors, consider a client-server model in which the server is servicing both local and remote clients. The server task uses a pipe to communicate with local clients and a socket to communicate with remote clients. The server task must respond to clients as quickly as possible. If the server blocks waiting for a request on only one of the communication streams, it cannot service requests that come in on the other stream until it gets a request on the first stream. For example, if the server blocks waiting for a request to arrive in the socket, it cannot service requests that arrive in the pipe until a request arrives in the socket to unblock it. This can delay local tasks waiting to get their requests serviced. The select facility solves this problem by giving the server task the ability to monitor both the socket and the pipe and service requests as they come in, regardless of the communication stream used. </p><dd><p class="Body"><a name="83866"> </a>Tasks can block until data becomes available or the device is ready for writing. The <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b> routine returns when one or more file descriptors are ready or a timeout has occurred. Using the <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b> routine, a task specifies the file descriptors on which to wait for activity. Bit fields are used in the <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b> call to specify the read and write file descriptors of interest. When <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b> returns, the bit fields are modified to reflect the file descriptors that have become available. The macros for building and manipulating these bit fields are listed in <a href="c-iosys3.html#83876">Table&nbsp;3-3</a>.<p class="table"><h4 class="EntityTitle"><a name="83876"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 3-3:&nbsp;&nbsp;Select Macros</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="83880"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Macro</font></b></div></th><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="83882"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Function</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="83889"> </a><b class="symbol_UC">FD_ZERO</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="83891"> </a>Zeros all bits.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83894"> </a><b class="symbol_UC">FD_SET</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="83896"> </a>Sets bit corresponding to a specified file descriptor.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83899"> </a><b class="symbol_UC">FD_CLR</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="83901"> </a>Clears a specified bit.&nbsp;</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="83904"> </a><b class="symbol_UC">FD_ISSET</b> &nbsp;</div></td><td colspan=1 rowspan=1><div class="CellBody"><a name="83906"> </a>Returns 1 if specified bit is set, otherwise returns 0.&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="83911"> </a>Applications can use <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b> with any character I/O devices that provide support for this facility (for example, pipes, serial devices, and sockets). For information on writing a device driver that supports <b class="routine"><i class="routine">select</i></b><b>(</b>&nbsp;<b>)</b>, see <a href="c-iosys9.html#85695"><i class="title">Implementing select(&nbsp;)</i></a>.</p></dl></dl><h4 class="EntityTitle"><a name="83917"><font face="Helvetica, sans-serif" size="-1" class="sans">Example 3-1:&nbsp;&nbsp;The Select Facility</font></a></h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="83918">/* selServer.c - select example   * In this example, a server task uses two pipes: one for normal-priority   * requests, the other for high-priority requests. The server opens both   * pipes and blocks while waiting for data to be available in at least one   * of the pipes.   */</a></b><dd> <b><a name="83921">#include "vxWorks.h" #include "selectLib.h" #include "fcntl.h"</a></b><dd> <b><a name="83925">#define MAX_FDS 2 #define MAX_DATA 1024 #define PIPEHI  "/pipe/highPriority" #define PIPENORM "/pipe/normalPriority"</a></b><dd> <b><a name="83930">/************************************************************************ * selServer - reads data as it becomes available from two different pipes  * * Opens two pipe fds, reading from whichever becomes available. The  * server code assumes the pipes have been created from either another  * task or the shell. To test this code from the shell do the following: *  -&gt; ld &lt; selServer.o *  -&gt; pipeDevCreate ("/pipe/highPriority", 5, 1024) *  -&gt; pipeDevCreate ("/pipe/normalPriority", 5, 1024) *  -&gt; fdHi = open ("/pipe/highPriority", 1, 0) *  -&gt; fdNorm = open ("/pipe/normalPriority", 1, 0) *  -&gt; iosFdShow *  -&gt; sp selServer *  -&gt; i * At this point you should see selServer's state as pended. You can now * write to either pipe to make the selServer display your message. *  -&gt; write fdNorm, "Howdy", 6 *  -&gt; write fdHi, "Urgent", 7 */</a></b><dd> <b><a name="83949">STATUS selServer (void)   {   struct fd_set readFds;      /* bit mask of fds to read from */   int      fds[MAX_FDS];   &nbsp;&nbsp;&nbsp;/* array of fds on which to pend */   int      width;       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* number of fds on which to pend */   int      i;         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* index for fd array */   char     buffer[MAX_DATA]; /* buffer for data that is read */</a></b><dd> <b><a name="83957">/* open file descriptors */   if ((fds[0] = open (PIPEHI, O_RDONLY, 0)) == ERROR)     return (ERROR);   if ((fds[1] = open (PIPENORM, O_RDONLY, 0)) == ERROR)     return (ERROR);</a></b><dd> <b><a name="83963">/* loop forever reading data and servicing clients */   FOREVER     {     /* clear bits in read bit mask */     FD_ZERO (&amp;readFds);</a></b><dd> <b><a name="83969">/* initialize bit mask */     FD_SET (fds[0], &amp;readFds);     FD_SET (fds[1], &amp;readFds);     width = (fds[0] &gt; fds[1]) ? fds[0] : fds[1];     width++;</a></b><dd> <b><a name="83975">/* pend, waiting for one or more fds to become ready */     if (select (width, &amp;readFds, NULL, NULL, NULL) == ERROR)       return (ERROR);</a></b><dd> <b><a name="83979">/* step through array and read from fds that are ready */     for (i=0; i&lt; MAX_FDS; i++)       {       /* check if this fd has data to read */       if (FD_ISSET (fds[i], &amp;readFds))         {         /* typically read from fd now that it is ready */         read (fds[i], buffer, MAX_DATA);         /* normally service request, for this example print it */         printf ("SELSERVER Reading from %s: %s\n",              (i == 0) ? PIPEHI : PIPENORM, buffer);         }       }     }   }</a></b></pre></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-iosys2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-iosys4.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一区二区三区免费野_久草精品视频
亚洲成人精品在线观看| 午夜国产不卡在线观看视频| 91精品在线免费| 在线免费视频一区二区| 欧洲视频一区二区| 欧美视频一区二区三区四区 | 蜜臀久久久久久久| 天天爽夜夜爽夜夜爽精品视频| 夜夜嗨av一区二区三区| 亚洲综合色婷婷| 亚洲综合在线视频| 亚洲一区二区在线观看视频| 亚洲永久免费av| 日韩黄色免费电影| 久久99精品久久久久| 国产成人免费网站| 97久久久精品综合88久久| 91丨九色丨蝌蚪富婆spa| 日本高清不卡在线观看| 在线视频一区二区三| 91精品麻豆日日躁夜夜躁| 欧美一区二区三区四区久久| 日韩欧美电影在线| 国产精品女人毛片| 天天综合网 天天综合色| 久久不见久久见免费视频7 | 国产精品久久久久精k8| 亚洲三级久久久| 日韩精品久久久久久| 久久成人久久爱| 成人免费视频国产在线观看| 色婷婷狠狠综合| 日韩视频不卡中文| 国产精品女主播av| 日韩和欧美一区二区| 国产一区二区三区免费播放| 91成人免费电影| 精品成人一区二区三区四区| 亚洲色图清纯唯美| 美腿丝袜一区二区三区| 91麻豆6部合集magnet| 欧美一区二区不卡视频| 国产精品护士白丝一区av| 午夜精品久久久久久久久久| 国产高清精品在线| 欧美军同video69gay| 国产精品网曝门| 日本亚洲一区二区| 色狠狠一区二区三区香蕉| 精品国产一区二区三区不卡| 一区二区三区在线播| 国产精品性做久久久久久| 欧美三级电影精品| 亚洲蜜臀av乱码久久精品蜜桃| 日本va欧美va精品| 在线观看国产日韩| 中文字幕乱码一区二区免费| 奇米影视一区二区三区| 欧美最新大片在线看| 国产精品久久久一区麻豆最新章节| 日韩二区三区在线观看| 在线观看不卡视频| 亚洲欧美在线高清| 成人高清免费观看| 国产亚洲精品bt天堂精选| 美腿丝袜亚洲一区| 欧美日韩精品欧美日韩精品| 亚洲影院免费观看| 91麻豆国产在线观看| 国产精品女人毛片| 国内成+人亚洲+欧美+综合在线| 制服.丝袜.亚洲.另类.中文| 一区二区三区电影在线播| 99久久精品久久久久久清纯| 日本一区二区三区电影| 国产高清在线精品| 欧美激情中文字幕| av不卡免费在线观看| 国产精品久久久久影院| 成人av高清在线| 亚洲欧美激情小说另类| 色综合色综合色综合色综合色综合| 国产精品不卡一区二区三区| a在线播放不卡| 亚洲男人天堂一区| 欧美亚洲综合网| 午夜伦欧美伦电影理论片| 欧美日韩国产经典色站一区二区三区| 亚洲综合色区另类av| 7799精品视频| 久久精品国产**网站演员| 欧美精品一区二区高清在线观看| 裸体在线国模精品偷拍| 久久久精品国产免大香伊| 国产激情精品久久久第一区二区 | 成人精品国产福利| 国产精品乱码一区二区三区软件 | 亚洲男帅同性gay1069| 在线亚洲一区二区| 日本aⅴ精品一区二区三区 | 中文字幕亚洲在| 91麻豆6部合集magnet| 亚洲成人午夜电影| 久久一留热品黄| 国产91丝袜在线18| 亚洲一区二区在线视频| 精品少妇一区二区三区在线播放 | 国内精品写真在线观看| 日本一区二区视频在线观看| 91亚洲精品久久久蜜桃| 日韩精品一级中文字幕精品视频免费观看 | 337p亚洲精品色噜噜| 国产精品中文有码| 一区二区三区在线影院| 日韩欧美国产综合一区| gogogo免费视频观看亚洲一| 三级久久三级久久| 国产精品污网站| 日韩亚洲欧美成人一区| 99热精品一区二区| 裸体健美xxxx欧美裸体表演| 日韩毛片高清在线播放| 精品国产一区二区在线观看| 91麻豆精品秘密| 国产精品自拍av| 亚洲va国产va欧美va观看| 国产精品久久久久久久久久久免费看| 欧美精品v日韩精品v韩国精品v| 成人午夜免费av| 麻豆极品一区二区三区| 亚洲综合在线免费观看| 久久免费电影网| 欧美久久免费观看| 色噜噜狠狠色综合欧洲selulu| 国产精品一区二区91| 麻豆免费精品视频| 亚洲国产wwwccc36天堂| 中文字幕日韩一区| 国产日韩精品视频一区| 日韩美女视频在线| 91精品国产全国免费观看| 色综合久久久久综合99| 成人免费毛片高清视频| 国产专区欧美精品| 精品一区二区三区影院在线午夜| 亚洲综合成人在线视频| 亚洲欧洲制服丝袜| 自拍偷拍亚洲综合| 国产精品乱码一区二三区小蝌蚪| 久久精品视频免费| 欧美mv和日韩mv国产网站| 欧美zozo另类异族| 精品国产亚洲一区二区三区在线观看| 欧美日韩国产高清一区| 欧美在线免费观看亚洲| 在线视频你懂得一区| 色吧成人激情小说| 欧美中文字幕久久| 欧美亚洲综合另类| 欧美日韩1234| 欧美一区二区三区色| 欧美一个色资源| 精品国产乱码久久久久久久久| 日韩一区二区三区免费看 | **欧美大码日韩| 中文字幕一区二区三区不卡| 日本一区二区三区dvd视频在线| 久久久www成人免费无遮挡大片| 2023国产精品视频| 国产农村妇女毛片精品久久麻豆 | 成人精品视频.| 91一区二区在线观看| 色婷婷亚洲一区二区三区| 欧美午夜影院一区| 日韩一区二区精品葵司在线| 久久免费视频一区| 亚洲欧美视频在线观看视频| 亚洲一二三四久久| 久久99精品国产麻豆婷婷| 国产激情一区二区三区桃花岛亚洲| 成人av午夜影院| 欧美日韩免费高清一区色橹橹| 日韩一级片在线观看| 国产欧美一区二区三区沐欲| 日韩美女啊v在线免费观看| 性久久久久久久久| 国产精品一区二区x88av| 91毛片在线观看| 精品国产1区2区3区| 亚洲精品中文字幕在线观看| 天堂成人国产精品一区| 国产99久久久久| 欧美日韩视频第一区| 久久午夜电影网| 午夜欧美2019年伦理| 国产成人av电影在线| 在线播放中文一区| 国产精品嫩草99a| 毛片基地黄久久久久久天堂| 91在线精品一区二区|