www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/03/18:15:30

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: libsocket: difference between O_NONBLOCK and FIONBIO?
Date: Tue, 03 Oct 2000 19:21:25 +0100
Organization: Customer of Energis Squared
Lines: 33
Message-ID: <39DA23A5.C90E9734@phekda.freeserve.co.uk>
References: <8r9ihm$670$16$1 AT news DOT t-online DOT com> <39D8EACB DOT 7D8400C6 AT phekda DOT freeserve DOT co DOT uk> <8rcdno$99s$16$1 AT news DOT t-online DOT com>
NNTP-Posting-Host: modem-134.arkansas.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg4.svr.pol.co.uk 970611001 18611 62.137.55.134 (3 Oct 2000 22:10:01 GMT)
NNTP-Posting-Date: 3 Oct 2000 22:10:01 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: de,fr
CC: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Peter Remmers wrote:
> > In the libsocket the fcntl() support actually goes through the ioctl()
> > code. fcntl(..., O_NONBLOCK) traverses the same code path as
> > ioctl(..., FIONBIO, ...). So they have the same effect.
> 
> hmm, okay. In your particular implementation of the BSD sockets API
> it's the same. But what about real unixes?

I know they both work on Linux. Clearly *BSD are the same. A similar set
of calls exists on Windows - fcntlsocket() and ioctlsocket() (it's been a
while since I programmed for Winsock under Windows)?

I can't comment on other operating systems, but I think anything that
supports the BSD socket interface should support both fcntl() and ioctl().
They're both not exactly standard calls, ioctl() particularly.

Which operating systems are you worried about?

> > Would things be clearer if the libsocket docs used 'like' instead of
> > 'similar'? How do you think the docs could be improved?
> 
> That would help a lot. Actually, what you just wrote would make it
> very clear :-)

OK, I'll add a note for the next release.

Thanks, bye,

-- 
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]

- Raw text -


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