home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.vu.nl!irmen
- From: irmen@cs.vu.nl (Irmen de Jong)
- Subject: Waiting on >1 file
- Nntp-Posting-Host: prauw.cs.vu.nl
- Sender: news@cs.vu.nl
- Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
- Date: Fri, 15 Mar 1996 10:09:34 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DoB07y.AsM.0.-s@cs.vu.nl>
-
- Say I have more than one file open. In my case all files are (virtual) console
- files, like CON: or AUX:. What I want to do is to wait on ALL these
- files simultaneously until one (or more) of them are ready to read, i.e.
- have input available. dos.library/WaitForChar() only works for one file,
- i need something like select() on sockets, but on files instead.
-
- Oh I tried the WaitSelect() from AmiTCP's bsdsocket.library but that
- beast only works on real sockets, not on normal file descriptors. *sigh*
-
- Anyone?
-
- --
- / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/) \
- \ ``Nothing lasts forever'' -- Species /
-