]>
git.saurik.com Git - apple/libc.git/blob - sys.subproj/i386.subproj/SYS.h
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
27 * Definition of the user side of the UNIX system call interface
31 * 12-3-92 Bruce Martin (Bruce_Martin@next.com)
35 #define KERNEL_PRIVATE 1
39 #include <sys/syscall.h>
40 #include <architecture/i386/asm_help.h>
41 #include <mach/i386/syscall_sw.h>
44 #define UNIX_SYSCALL_TRAP lcall $0x2b, $0
45 #define MACHDEP_SYSCALL_TRAP lcall $0x7, $0
48 #define UNIX_SYSCALL(name, nargs) \
51 movl $SYS_##name, %eax ;\
54 BRANCH_EXTERN(cerror) ;\
57 #define UNIX_SYSCALL_NONAME(name, nargs) \
59 movl $SYS_##name, %eax ;\
62 BRANCH_EXTERN(cerror) ;\
65 #define PSEUDO(pseudo, name, nargs) \
67 UNIX_SYSCALL_NONAME(name, nargs)
69 #if !defined(SYS_getdirentriesattr)
70 #define SYS_getdirentriesattr 222
73 #if !defined(SYS_semsys)
74 #define SYS_semsys 251
75 #define SYS_msgsys 252
76 #define SYS_shmsys 253
77 #define SYS_semctl 254
78 #define SYS_semget 255
80 #define SYS_semconfig 257
81 #define SYS_msgctl 258
82 #define SYS_msgget 259
83 #define SYS_msgsnd 260
84 #define SYS_msgrcv 261
86 #define SYS_shmctl 263
88 #define SYS_shmget 265