> > Notice how ENOPNOTSUPP can be 45, 122, 223, or 95. Returning EL2NSYNC or
> > EDQUOT to user space is going to cause confusion...
> >
> 

> I think we should just follow the definitions in
> include/uapi/asm-generic/errno.h, right?

No.

Try a make for mips, and look at includes you end up with. You will
find it goes something like:

# 1 "./arch/mips/include/asm/errno.h" 1
# 11 "./arch/mips/include/asm/errno.h"
# 1 "./arch/mips/include/uapi/asm/errno.h" 1
# 16 "./arch/mips/include/uapi/asm/errno.h"
# 1 "./include/uapi/asm-generic/errno-base.h" 1
# 17 "./arch/mips/include/uapi/asm/errno.h" 2

and this results in

#define EOPNOTSUPP      122     /* Operation not supported on transport 
endpoint */

not what you get from asm-generic/errno.h:

#define EOPNOTSUPP      95      /* Operation not supported on transport 
endpoint */

        Andrew

Reply via email to