netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bind and O_NONBLOCK
@ 2007-09-21  5:59 Ulrich Drepper
  2007-09-22 16:14 ` Evgeniy Polyakov
  2007-09-28 22:56 ` David Miller
  0 siblings, 2 replies; 11+ messages in thread
From: Ulrich Drepper @ 2007-09-21  5:59 UTC (permalink / raw)
  To: netdev, Alan Cox

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Some time back Alan asked about adding O_NONBLOCK support to bind in the
POSIX spec.  I brought this up and the following text will be in the
next revision of the POSIX spec:

=======================
If the socket address cannot be assigned immediately and O_NONBLOCK is
set for the file descriptor for the socket, bind( ) shall fail and set
errno to [EINPROGRESS], but the assignment request shall not be aborted,
and the assignment shall be completed asynchronously. Subsequent calls
to bind() for the same socket, before the assignment is completed, shall
fail and set errno to [EALREADY].

When the assignment has been performed asynchronously, pselect(),
select(), and poll() shall indicate that the file descriptor for the
socket is ready for reading and writing.
=======================

It would be ideal if we'd have such an implementation in the next few
months so that we, in theory, can check whether the text in the
specification makes sense.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG813Z2ijCOnn/RHQRAsNkAJ9EuDWX3EDez8+o/y3I39A7Axy++ACfZAXi
DRFm1UadrbJ+c7ss0a1vWUI=
=p1bV
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-09-28 22:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-21  5:59 bind and O_NONBLOCK Ulrich Drepper
2007-09-22 16:14 ` Evgeniy Polyakov
2007-09-22 16:21   ` Ulrich Drepper
2007-09-22 16:59     ` Evgeniy Polyakov
2007-09-22 17:11       ` Ulrich Drepper
2007-09-22 17:19         ` Evgeniy Polyakov
2007-09-23  5:58         ` David Miller
2007-09-23 20:43           ` Alan Cox
2007-09-22 17:35   ` Alan Cox
2007-09-22 17:40     ` Evgeniy Polyakov
2007-09-28 22:56 ` David Miller

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 NNTP newsgroup(s).