*
* @APPLE_LICENSE_HEADER_START@
*
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
- *
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
.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