This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/dm/include/POLL.H

35 lines
482 B
C++
Raw Normal View History

/* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
#if __SC__ || __RCC__
#pragma once
#endif
#ifndef __POLL_H
#define __POLL_H 1
#if __cplusplus
extern "C" {
#endif
struct pollfd
{
int fd;
short events;
short revents;
};
#define POLLIN 001
#define POLLPRI 002
#define POLLOUT 004
#define POLLERR 010
#define POLLHUP 020
#define POLLNVAL 040
#define NPOLLFILE 20
int __cdecl poll(struct pollfd[], unsigned long, int);
#if __cplusplus
}
#endif
#endif