[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New errno.h entry?



Yves Pelletieri wrote:

> While porting the Empire unix client to MiNT,  I came across an error
> descriptor that was not in the MiNTlibs... namely: EAGAIN.
> 
> So I just took a look at errno.h and added an entry where it seemed fit.
> If there are reasons why the error number should not be 92, let me
> know.

EWOULDBLOCK already existed in <errno.h>, so what I did was:

#define EAGAIN	EWOULDBLOCK

O_NONBLOCK and EAGAIN are the POSIX equivalents of BSDs O_NDELAY
and EWOULDBLOCK. The P1003.1 committee had to choose different
names, though, because SysVs implementation of O_NDELAY was
broken.


Waldi