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

📄 poll.h

📁 VRTX 商用嵌入式实时操作系统
💻 H
字号:
/***************************************************************************
*
*               Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
*       All rights reserved. READY SYSTEMS' source code is an unpublished
*       work and the use of a copyright notice does not imply otherwise.
*       This source code contains confidential, trade secret material of
*       READY SYSTEMS. Any attempt or participation in deciphering, decoding,
*       reverse engineering or in any way altering the source code is
*       strictly prohibited, unless the prior written consent of
*       READY SYSTEMS is obtained.
*
*
*       Module Name:            poll.h
*
*       Identification:         @(#) 1.4 poll.h
*
*       Date:                   1/6/94  16:29:35
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: poll.h,v 1.3 1993/10/05 18:09:11 robert Exp $
*/
/*
 * Copyrighted as an unpublished work.
 * (c) Copyright 1992-1993 Lachman Technology, Incorporated
 * All rights reserved.
 * 
 * RESTRICTED RIGHTS
 * 
 * These programs are supplied under a license.  They may be used,
 * disclosed, and/or copied only as permitted under such license
 * agreement.  Any copy must contain the above copyright notice and
 * this restricted rights notice.  Use, copying, and/or disclosure
 * of the programs is strictly prohibited unless otherwise provided
 * in the license agreement.
 */

#ifndef __POLL_H
#define __POLL_H

#ifdef __cplusplus
extern "C" {
#endif

/*******************************************************************************
 *
 */
struct pollfd {
	int	fd;		/* file descriptor */
	short	events;		/* requested events */
	short	revents;	/* returned events */
};

/* event flags */

#define POLLIN		0x0001
#define POLLRDNORM	0x0002
#define POLLRDBAND	0x0004
#define POLLPRI		0x0008
#define POLLOUT		0x0010
#define POLLWRNORM	0x0020
#define POLLWRBAND	0x0040
#define POLLMSG		0x0080
#define POLLERR		0x0100
#define POLLHUP		0x0200
#define POLLNVAL	0x0400

#ifdef KERNEL
struct pollevent {
	dev_t		pe_dev;
	void *pe_shp;
	void *pe_pep;		/* poll event pointer */
	int		pe_tid;			/* timer ID */
	short		pe_events;		/* requested events */
	short		pe_revents;		/* returned events */
	struct pollevent *pe_next;
};

typedef struct pollevent pollevent_t;
#endif
	
int poll(struct pollfd *fds, size_t nfds, long timeout);

#ifdef __cplusplus
}
#endif

#endif	/* __POLL_H */

⌨️ 快捷键说明

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