Mail Archives: djgpp/2000/10/03/18:15:30
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 -