www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/25/11:01:22

Date: Wed, 25 Oct 1995 16:10:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: need something better than kbhit()

On Wed, 25 Oct 1995, Alexander V. Lukyanov wrote:

> 'poll' and 'select' both do I/O multiplexing, but poll comes from SystemV,
> and select from BSD.
> IMHO, poll has more convenient argumet types than select, so I prefer to
> use 'poll'.
> 
> int  poll(struct pollfd *fds, unsigned long nfds, int timeout);

In that case, one can easily write poll() as a wrapper to select().  Both 
are non-POSIX, so both are just for compatibility.  It is my 
understanding that DJGPP generally provides such functions on as needed 
basis.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019