All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] EWOULDBLOCK vs. EAGAIN
@ 2002-10-22 15:24 John Marvin
  2002-10-22 15:32 ` Randolph Chung
  0 siblings, 1 reply; 2+ messages in thread
From: John Marvin @ 2002-10-22 15:24 UTC (permalink / raw)
  To: parisc-linux

I found a bug last night where a program was expecting EWOULDBLOCK, but
we were returning EAGAIN. The kernel returns EAGAIN, which is correct.
However, the Gnu C library says that EWOULDBLOCK should be defined as the
same thing. We didn't do that on parisc linux. Probably because we
borrowed our errno's from HP-UX. But that is wrong.

So, how should we fix this?  I don't think we can avoid breaking binary
compatibility.  The problem is that the kernel returns EWOULDBLOCK in some
cases (I've enclosed a list of files that might affect us below, file
locking and usb being the ones that are most likely to affect us).

I think we should change errno.h to define EWOULDBLOCK as EAGAIN. That
will fix some programs once they are recompiled. Of course, it will
break some others, but they will also be fixed once again once they
are recompiled.

How hard would it be to grep the source of all debian packages, so we
can find which packages should be rebuilt?

John

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

end of thread, other threads:[~2002-10-22 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22 15:24 [parisc-linux] EWOULDBLOCK vs. EAGAIN John Marvin
2002-10-22 15:32 ` Randolph Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.