.globl _errno
+LABEL(cerror_cvt)
+ cmpl $102, %eax /* EOPNOTSUPP? */
+ jnz cerror
+ movl $45, %eax /* Yes; make ENOTSUP for compatibility */
LABEL(cerror)
REG_TO_EXTERN(%eax, _errno)
- pushl %eax
+ mov %esp,%edx
+ andl $0xfffffff0,%esp
+ subl $16,%esp
+ movl %edx,4(%esp)
+ movl %eax,(%esp)
CALL_EXTERN(_cthread_set_errno_self)
- addl $4,%esp
+ movl 4(%esp),%esp
movl $-1,%eax
movl $-1,%edx /* in case a 64-bit value is returned */
ret