Re: Re: CVS update [cvs1-11-x-branch]: /ccvs/src/
Derek Robert Price <[email protected]> Sat, 04 Sep 2004 20:34:03 -0400
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Organization | Ximbiot <http://ximbiot.com> |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno Haible wrote:
>Derek Robert Price wrote:
>
>>I can't speak on the likelihood of bugs in EAGAIN behavior.
>
>
>Here's one: Some OSes set errno to EWOULDBLOCK instead of EAGAIN.
Well, yeah. BSD. CVS handles that like so:
/* EWOULDBLOCK is not defined by POSIX, but some BSD systems will
return it, rather than EAGAIN, for nonblocking writes. */
# ifdef EWOULDBLOCK
# define blocking_error(err) ((err) == EWOULDBLOCK || (err) == EAGAIN)
# else
# define blocking_error(err) ((err) == EAGAIN)
# endif
Simple enough.
Cheers,
Derek
- --
*8^)
Email: [email protected]
Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBOl76LD1OTBfyMaQRAtPAAKCfCMbGHGny68JBhZZH2ZRsUf/6LwCgpROS
FXBv+bWeadTR0eDKESrPnmY=
=gpeb
-----END PGP SIGNATURE-----