X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff:/i386/sys/SYS.h diff --git a/i386/sys/SYS.h b/i386/sys/SYS.h index 998e2cf..1212eb0 100644 --- a/i386/sys/SYS.h +++ b/i386/sys/SYS.h @@ -3,8 +3,6 @@ * * @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 @@ -47,6 +45,19 @@ #define MACHDEP_SYSCALL_TRAP lcall $0x7, $0 +/* + * This is the same as UNIX_SYSCALL, but it can call an alternate error + * return function. It's generic to support potential future callers. + */ +#define UNIX_SYSCALL_ERR(name, nargs,error_ret) \ + .globl error_ret ;\ +LEAF(_##name, 0) ;\ + movl $ SYS_##name, %eax ;\ + UNIX_SYSCALL_TRAP ;\ + jnb 2f ;\ + BRANCH_EXTERN(error_ret) ;\ +2: + #define UNIX_SYSCALL(name, nargs) \ .globl cerror ;\ LEAF(_##name, 0) ;\ @@ -90,3 +101,9 @@ LEAF(_##pseudo, 0) ;\ #define SYS_shmget 265 #endif +#if !defined(SYS___pthread_canceled) +#define SYS___pthread_markcancel 332 +#define SYS___pthread_canceled 333 +#define SYS___semwait_signal 334 +#endif +