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

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

?? select.2

?? ecos實時嵌入式操作系統
?? 2
字號:
.\"	$OpenBSD: select.2,v 1.20 2001/09/04 08:04:08 deraadt Exp $.\"	$NetBSD: select.2,v 1.5 1995/06/27 22:32:28 cgd Exp $.\".\" Copyright (c) 1983, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)select.2	8.2 (Berkeley) 3/25/94.\".Dd March 25, 1994.Dt SELECT 2.Os.Sh NAME.Nm select.Nd synchronous I/O multiplexing.Sh SYNOPSIS.Fd #include <sys/types.h>.Fd #include <sys/time.h>.Fd #include <unistd.h>.Ft int.Fn select "int nfds" "fd_set *readfds" "fd_set *writefds" "fd_set *exceptfds" "struct timeval *timeout".Fn FD_SET fd &fdset.Fn FD_CLR fd &fdset.Fn FD_ISSET fd &fdset.Fn FD_ZERO &fdset.Sh DESCRIPTION.Fn selectexamines the I/O descriptor sets whose addresses are passed in.Fa readfds ,.Fa writefds ,and.Fa exceptfdsto see if some of their descriptorsare ready for reading, are ready for writing, or have an exceptionalcondition pending, respectively.The first.Fa nfdsdescriptors are checked in each set;i.e., the descriptors from 0 through.Fa nfds Ns No -1in the descriptor sets are examined.On return,.Fn selectreplaces the given descriptor setswith subsets consisting of those descriptors that are readyfor the requested operation..Fn selectreturns the total number of ready descriptors in all the sets..PpThe descriptor sets are stored as bit fields in arrays of integers.The following macros are provided for manipulating such descriptor sets:.Fn FD_ZERO &fdsetinitializes a descriptor set.Fa fdsetto the null set..Fn FD_SET fd &fdsetincludes a particular descriptor.Fa fdin.Fa fdset ..Fn FD_CLR fd &fdsetremoves.Fa fdfrom.Fa fdset ..Fn FD_ISSET fd &fdsetis non-zero if.Fa fdis a member of.Fa fdset ,zero otherwise.The behavior of these macros is undefined ifa descriptor value is less than zero or greater than or equal to.Dv FD_SETSIZE ,which is normally at least equalto the maximum number of descriptors supported by the system..PpIf.Fa timeoutis a non-null pointer, it specifies a maximum interval to wait for theselection to complete.If.Fa timeoutis a null pointer, the select blocks indefinitely.To effect a poll, the.Fa timeoutargument should be non-null, pointing to a zero-valued timeval structure..Fa timeoutis not changed by.Fn select ,and may be reused on subsequent calls; however, it is good style tore-initialize it before each invocation of.Fn select ..PpAny of.Fa readfds ,.Fa writefds ,and.Fa exceptfdsmay be given as null pointers if no descriptors are of interest..Sh RETURN VALUES.Fn selectreturns the number of ready descriptors that are contained inthe descriptor sets, or \-1 is an error occurred.If the time limit expires,.Fn selectreturns 0.If.Fn selectreturns with an error, including one due to an interrupted call,the descriptor sets will be unmodified..Sh ERRORSAn error return from.Fn selectindicates:.Bl -tag -width Er.It Bq Er EFAULTOne or more of.Fa readfds ,.Fa writefds ,or.Fa exceptfdspoints outside the process's allocated address space..It Bq Er EBADFOne of the descriptor sets specified an invalid descriptor..It Bq Er EINTRA signal was delivered before the time limit expired andbefore any of the selected events occurred..It Bq Er EINVALThe specified time limit is invalid.One of its components is negative or too large..El.Sh SEE ALSO.Xr accept 2 ,.Xr connect 2 ,.Xr gettimeofday 2 ,.Xr poll 2 ,.Xr read 2 ,.Xr recv 2 ,.Xr send 2 ,.Xr write 2 ,.Xr getdtablesize 3.Sh BUGSAlthough the provision of.Xr getdtablesize 3was intended to allow user programs to be written independentof the kernel limit on the number of open files, the dimensionof a sufficiently large bit field for select remains a problem.The default bit size of.Ft fd_setis based on the symbol.Dv FD_SETSIZE(currently 256),but that is somewhat smaller than the current kernel limitto the number of open files.However, in order to accommodate programs which might potentiallyuse a larger number of open files with select, it is possibleto increase this size within a program by providinga larger definition of.Dv FD_SETSIZEbefore the inclusion of.Aq Pa sys/types.h .The kernel will cope, and the userland libraries provided with thesystem are also ready for large numbers of file descriptors..PpAlternatively, to be really safe, it is possible to allocate.Ft fd_setbit-arrays dynamically.The idea is to permit a program to work properly even if it is.Xr execve 2 Ns 'dwith 4000 file descriptors pre-allocated.The following illustrates the technique which is used byuserland libraries:.Pp.Bd -literal -offset indent -compact	fd_set *fdsr;	int max = fd;	fdsr = (fd_set *)calloc(howmany(max+1, NFDBITS),	    sizeof(fd_mask));	if (fdsr == NULL) {		...		return (-1);	}	FD_SET(fd, fdsr);	n = select(max+1, fdsr, NULL, NULL, &tv);	...	free(fdsr);.Ed.PpAlternatively, it is possible to use the.Xr poll 2interface..Xr poll 2is more efficient when the size of.Fn select Ns 's.Ft fd_setbit-arrays are very large, and for fixed numbers offile descriptors one need not size and dynamically allocate amemory object..Pp.Fn selectshould probably have been designed to return the time remaining from theoriginal timeout, if any, by modifying the time value in place.Even though some systems stupidly act in this different way, it isunlikely this semantic will ever be commonly implemented, as thechange causes massive source code compatibility problems.Furthermore, recent new standards have dictated the current behaviour.In general, due to the existence of those brain-damagednon-conforming systems, it is unwise to assume that the timeoutvalue will be unmodified by the.Fn selectcall, and the caller should reinitialize it on each invocation.Calculating the delta is easily done by calling.Xr gettimeofday 2before and after the call to.Fn select Ns ,and using.Fn timersub(as described in.Xr getitimer 2 ) ..PpInternally to the kernel,.Fn selectworks poorly if multiple processes wait on the same file descriptor.Given that, it is rather surprising to see that many daemons arewritten that way (i.e.,.Xr httpd 8 ) ..Sh HISTORYThe.Fn selectfunction call appeared in.Bx 4.2 .

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美videos大乳护士334| 一区二区三区在线观看国产| 国产农村妇女毛片精品久久麻豆 | 成人激情小说乱人伦| 色94色欧美sute亚洲线路一ni | 毛片av一区二区三区| 成人一区二区三区中文字幕| 欧美日韩极品在线观看一区| 国产色婷婷亚洲99精品小说| 日韩在线卡一卡二| 99久久精品国产观看| 精品久久一区二区三区| 一区二区三区 在线观看视频| 国产精品18久久久久久久久久久久 | 日本不卡一二三区黄网| 一本到高清视频免费精品| 精品成a人在线观看| 日韩电影在线免费观看| 欧洲亚洲精品在线| 亚洲视频一区二区在线| 国产成人av福利| 久久久欧美精品sm网站| 美女一区二区在线观看| 日韩亚洲电影在线| 青青草97国产精品免费观看 | 国产乱理伦片在线观看夜一区| 欧美日韩成人综合天天影院| 亚洲女子a中天字幕| 99精品热视频| 国产精品理论片在线观看| 国产夫妻精品视频| 欧美国产亚洲另类动漫| 国产成人免费在线观看不卡| 国产亚洲欧洲一区高清在线观看| 久久99国产精品久久99果冻传媒| 制服丝袜日韩国产| 麻豆国产精品一区二区三区| 日韩一区二区三| 国内成人免费视频| 国产日本一区二区| 91亚洲精华国产精华精华液| 亚洲欧美日韩成人高清在线一区| 91麻豆精东视频| 亚洲精品一二三| 欧美日韩成人在线| 久久成人麻豆午夜电影| 久久亚洲捆绑美女| 国产成人精品免费| 一区二区三区在线高清| 欧美日韩国产美| 精品一区二区在线视频| 国产女同性恋一区二区| 色呦呦一区二区三区| 亚洲成人av电影在线| 日韩午夜在线播放| 成人免费高清视频| 亚洲成年人影院| 久久久久久免费毛片精品| 成人av网址在线| 午夜天堂影视香蕉久久| 日韩欧美国产一区二区在线播放| 黄色精品一二区| 亚洲欧洲综合另类在线| 91精品国产麻豆| 成人av电影观看| 水蜜桃久久夜色精品一区的特点| 久久综合色之久久综合| 99久久久无码国产精品| 免费人成在线不卡| 一区在线播放视频| 日韩欧美一区二区久久婷婷| 国产成人av电影在线| 亚洲成人在线免费| 国产女同性恋一区二区| 欧美卡1卡2卡| 成人aaaa免费全部观看| 三级欧美在线一区| 成人欧美一区二区三区视频网页| 在线成人av网站| 99精品欧美一区二区三区综合在线| 奇米一区二区三区| 亚洲激情中文1区| 国产欧美日韩另类一区| 欧美日韩免费观看一区三区| 国产**成人网毛片九色 | 一区二区三区蜜桃| 久久久久久久久久久久久久久99 | 日韩精品电影一区亚洲| 国产精品国产三级国产aⅴ原创| 91.xcao| 在线亚洲高清视频| 国产成a人亚洲| 国产一区二区三区蝌蚪| 天天av天天翘天天综合网| 成人欧美一区二区三区1314| 久久婷婷色综合| 欧美一级高清大全免费观看| 欧美综合在线视频| 99久久精品国产网站| 国产·精品毛片| 国产99久久久久| 国产成人综合在线播放| 经典三级在线一区| 九九国产精品视频| 蜜桃av噜噜一区| 蜜芽一区二区三区| 日本亚洲三级在线| 日韩国产一二三区| 日韩专区欧美专区| 日本不卡的三区四区五区| 日韩精品免费专区| 奇米综合一区二区三区精品视频| 日韩精品成人一区二区在线| 日日骚欧美日韩| 视频一区中文字幕国产| 日韩av一级电影| 日韩成人精品在线| 欧美a一区二区| 另类中文字幕网| 国产麻豆成人传媒免费观看| 国产呦萝稀缺另类资源| 国产激情一区二区三区| 成人午夜在线视频| 91香蕉视频黄| 欧美日本一道本在线视频| 欧美色综合天天久久综合精品| 在线观看视频一区二区| 欧美日韩国产大片| 91精品国产综合久久香蕉的特点 | 欧美色手机在线观看| 欧美色精品在线视频| 欧美精品欧美精品系列| 精品福利av导航| 欧美国产日韩一二三区| 一区二区三区四区视频精品免费 | 国模冰冰炮一区二区| 国产成人精品三级| 91高清在线观看| 欧美一区二区三区婷婷月色| www国产成人免费观看视频 深夜成人网 | 777xxx欧美| 日韩精品一区二区三区视频播放| 精品福利av导航| 亚洲男女一区二区三区| 日韩激情视频网站| 国产成人免费xxxxxxxx| 91黄色免费版| 欧美xingq一区二区| 国产精品九色蝌蚪自拍| 偷窥少妇高潮呻吟av久久免费| 国产乱码字幕精品高清av | 国产精品高潮呻吟| 亚洲一区日韩精品中文字幕| 蜜桃视频一区二区三区在线观看| 成人国产亚洲欧美成人综合网 | 久久久久久麻豆| 一区二区三区中文免费| 久久国产尿小便嘘嘘尿| 91看片淫黄大片一级在线观看| 911精品国产一区二区在线| 一区精品在线播放| 欧美a级理论片| www.av亚洲| 精品美女一区二区三区| 亚洲高清免费在线| 不卡的电影网站| 2欧美一区二区三区在线观看视频| 中文字幕一区二区不卡| 亚洲国产精品视频| 成人免费va视频| 精品国产一区二区三区久久影院| 亚洲天堂免费看| 国产成人av电影免费在线观看| 欧美精品久久一区二区三区| 亚洲欧洲日产国码二区| 国产精品中文字幕欧美| 欧美一区二区三区四区久久| 亚洲人成亚洲人成在线观看图片 | 欧美日韩一区久久| 亚洲欧美另类久久久精品| 国产剧情一区在线| 日韩精品最新网址| 秋霞av亚洲一区二区三| 欧美四级电影在线观看| 最新日韩在线视频| 不卡高清视频专区| 国产精品家庭影院| 丁香婷婷综合五月| 久久精品免费在线观看| 国内成人精品2018免费看| 欧美电影免费提供在线观看| 五月天久久比比资源色| 欧美熟乱第一页| 午夜一区二区三区视频| 在线一区二区三区| 亚洲一二三区在线观看| 欧美在线观看18| 亚洲午夜在线视频| 欧美丰满一区二区免费视频| 亚洲不卡一区二区三区|