The ZFS code base already reuses a few errno value from <sys/errno.h>
that aren't generated else where on Solaris.

In particularly these ones:

/* Convergent Error Returns */
#define EBADE   50      /* invalid exchange                     */
#define EBADR   51      /* invalid request descriptor           */


The way it currently does so is by a #define ECKSUM EBADE in the zfs
header files.

I'd rather we just made the change in <sys/errno.h> and also change the
text versions of these in libc as well.  However I've discovered that,
like many other things recently, libast has a copy of this type of thing
as well.

So should we really be reusing errno's or should we just be appending on
the end ?  Is the highest errno really fixed ?

-- 
Darren J Moffat

Reply via email to