From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e6293bc5c0d52b2b X-Google-Attributes: gid103376,public From: Andi Kleen Subject: Re: Unix SELECT Ada binding Date: 1999/07/22 Message-ID: #1/1 X-Deja-AN: 504029717 References: <379638B1.101427E5@res.raytheon.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@fred.muc.de X-Trace: fred.muc.de 932653373 878 127.0.0.1 (22 Jul 1999 14:22:53 GMT) Organization: barely any Mime-Version: 1.0 User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3 NNTP-Posting-Date: 22 Jul 1999 14:22:53 GMT Xcanpos: shelf.0/199908051801!0014688732 Newsgroups: comp.lang.ada Date: 1999-07-22T14:22:53+00:00 List-Id: Andy Askey writes: > Has anyone created an Ada package with binding into the SELECT C library > function that does I/O multiplexing? The binding is straight forward > but there are several macros (FD_SET, FD_CLR, ...) that have to be > translated into Ada. [...] Near all modern Unixes have poll(2), which is probably much easier to bind to than select [and if you have to handle older OS versions you can always link in one of the poll-on-select C wrappers). poll does also scale bigger for huge number of file descriptors and doesn't add arbitary fd limits to your program. If you really want to use select I would recommend using a small C interface layer which uses the FD_* macros. -Andi -- This is like TV. I don't like TV.