httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: Errno code in APR again.
Date Fri, 07 Apr 2000 19:11:38 GMT
(This post is unaffiliated with any debate, argument, big picture,
whatever.  It is here merely for folks that find socket layer
programming issues interesting.)

FreeBSD 3.4 uses the symbol EWOULDBLOCK in the kernel for this
condition.  Linux 2.2.x uses the symbol EAGAIN in the kernel.  As
noted earlier, EWOULDBLOCK is set to EAGAIN in the relevant header
file on both platforms.

Going through the late W. Richard Stevens' most excellent UNP 2e V1, I
found this interesting detail, paraphrased:

  Sys V traditionally returned EAGAIN, BSD traditionally returned
  EWOULDBLOCK, Posix.1 specifies EAGAIN, Posix.1g specifies EWOULDBLOCK;
  both SVR4 and 4.4BSD define these to the same value

In most of the text, including the first few references, he simply
uses EWOULDBLOCK with no mention of EAGAIN. 

(all meaningless anecdotal babble)
-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message