From: Jonathan Larmour <jlarmour@redhat.com>
To: "Trenton D. Adams" <tadams@extremeeng.com>
Cc: 'eCos Discussion' <ecos-discuss@sourceware.cygnus.com>
Subject: Re: [ECOS] select () confusion
Date: Thu, 02 Aug 2001 15:05:00 -0000 [thread overview]
Message-ID: <3B69CE88.1137051E@redhat.com> (raw)
In-Reply-To: <000601c11b9d$e8012890$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> > Yes. Normally you track the largest fd you've ever had, or keep a
> list
> > of
> > fds. Or just use FD_SETSIZE if you're lazy IIRC.
> >
>
> IIRC?
If I recall correctly.
> I personally like the windows, BSD *compatible*, select better. The
> first parameter is there only for compatibility.
Yeah, that's because the reason it was there originally was for efficiency,
and we know that's not relevant for Windows ;).
> Since FD_SET always
> increments the fd count anyhow, I don't see a point in even using the
> first parameter.
Eh? FD_SET doesn't change the value of the highest fd you will be selecting
on, or the number of fds you have. It just sets a bit in a bitmask (the
fdset).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
next prev parent reply other threads:[~2001-08-02 15:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 14:28 Trenton D. Adams
2001-08-02 14:49 ` Jonathan Larmour
2001-08-02 14:55 ` Trenton D. Adams
2001-08-02 15:05 ` Jonathan Larmour [this message]
2001-08-02 15:30 ` Trenton D. Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B69CE88.1137051E@redhat.com \
--to=jlarmour@redhat.com \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=tadams@extremeeng.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).