Should you add EBADMSG and EPROTO too?
On Sat, Sep 20, 2014 at 6:52 AM, Matti Karnaattu mkarnaa...@gmail.com wrote:
Should you add EBADMSG and EPROTO too?
IMO, it's a bug in POSIX that those weren't marked OB XSR.
Note that adding errno defines requires a libc major bump.
Hello,
intro(2) manual says, also
http://pubs.opengroup.org/onlinepubs/9699919799/ that EOVERFLOW should
be defined.
-snip-
#define _XOPEN_SOURCE 700
#include sys/mman.h
#include errno.h
int
main()
{
errno = EACCES;
errno = EAGAIN;
errno = EBADF;
errno =
EHOSTUNREACH, EOVERFLOW and ECANCELED are now part of POSIX so we
should adjust sys/errno.h accordingly.
- todd
Index: /sys/sys/errno.h
===
RCS file: /home/cvs/openbsd/src/sys/sys/errno.h,v
retrieving revision 1.22
diff -u -r1.22