⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sys_select.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef	lint#ifdef sccsstatic	char sccsid[] = "@(#)sys_select.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif /* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Sys_select.c - Real system call to select. */#include <syscall.h>#include <sunwindow/ntfy.h>	/* For ntfy_assert */#include <errno.h>		/* For debugging */#include <stdio.h>		/* For debugging */extern	errno;pkg_private intnotify_select(nfds, readfds, writefds, exceptfds, timeout)	int nfds, *readfds, *writefds, *exceptfds;	struct timeval *timeout;{	nfds = syscall(SYS_select, nfds, readfds, writefds, exceptfds, timeout);	ntfy_assert(!(nfds == 0 && timeout == (struct timeval *)0 &&	    *readfds == 0 && *writefds == 0 && *exceptfds == 0),	    "SYS_select returned when no stimuli");	return(nfds);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -