···6969 * for the majority of syscalls which just return a value in %eax.
7070 */
71717272+#ifndef DARLING
7273#define UNIX_SYSCALL_SYSENTER call __sysenter_trap
7474+#else
7575+#define UNIX_SYSCALL_SYSENTER call __darling_bsd_syscall@PLT
7676+#endif
7777+7378#define UNIX_SYSCALL(name, nargs) \
7479 .globl tramp_cerror ;\
7580LEAF(_##name, 0) ;\
···6969 * for the majority of syscalls which just return a value in %eax.
7070 */
71717272+#ifndef DARLING
7273#define UNIX_SYSCALL_SYSENTER call __sysenter_trap
7474+#else
7575+#define UNIX_SYSCALL_SYSENTER call __darling_bsd_syscall@PLT
7676+#endif
7777+7378#define UNIX_SYSCALL(name, nargs) \
7479 .globl tramp_cerror ;\
7580LEAF(_##name, 0) ;\
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS___old_semwait_signal_nocancel
55+#error "SYS___old_semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(____old_semwait_signal_nocancel, __old_semwait_signal_nocancel, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___sigwait_nocancel
55+#error "SYS___sigwait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(____sigwait_nocancel, __sigwait_nocancel, 2, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__accept.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_accept
55+#error "SYS_accept not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__accept, accept, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl accept$UNIX2003
1414+ accept$UNIX2003 = __accept
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_bsdthread_create
55+#error "SYS_bsdthread_create not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__bsdthread_create, bsdthread_create, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__bsdthread_ctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_bsdthread_ctl
55+#error "SYS_bsdthread_ctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__bsdthread_ctl, bsdthread_ctl, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_bsdthread_register
55+#error "SYS_bsdthread_register not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__bsdthread_register, bsdthread_register, 7, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_bsdthread_terminate
55+#error "SYS_bsdthread_terminate not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__bsdthread_terminate, bsdthread_terminate, 4, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__chmod.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_chmod
55+#error "SYS_chmod not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__chmod, chmod, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl chmod
1414+ chmod = __chmod
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__chmod_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_chmod_extended
55+#error "SYS_chmod_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__chmod_extended, chmod_extended, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__chud.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 48
22+#include "SYS.h"
33+44+#ifndef SYS_chud
55+#error "SYS_chud not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__chud, chud, 6, cerror_nocancel)
1010+#endif
1111+
+18
src/kernel/libsyscall/sys_i386/__close_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_close_nocancel
55+#error "SYS_close_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__close_nocancel, close_nocancel, 1, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl close
1414+ close = __close_nocancel
1515+ .globl close$NOCANCEL$UNIX2003
1616+ close$NOCANCEL$UNIX2003 = __close_nocancel
1717+#endif
1818+
+11
src/kernel/libsyscall/sys_i386/__coalition.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_coalition
55+#error "SYS_coalition not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__coalition, coalition, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__coalition_info.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_coalition_info
55+#error "SYS_coalition_info not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__coalition_info, coalition_info, 4, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__connect.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_connect
55+#error "SYS_connect not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__connect, connect, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl connect$UNIX2003
1414+ connect$UNIX2003 = __connect
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_connect_nocancel
55+#error "SYS_connect_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__connect_nocancel, connect_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl connect$NOCANCEL$UNIX2003
1414+ connect$NOCANCEL$UNIX2003 = __connect_nocancel
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__copyfile.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_copyfile
55+#error "SYS_copyfile not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__copyfile, copyfile, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__csrctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_csrctl
55+#error "SYS_csrctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__csrctl, csrctl, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__delete.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_delete
55+#error "SYS_delete not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__delete, delete, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___disable_threadsignal
55+#error "SYS___disable_threadsignal not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__disable_threadsignal, __disable_threadsignal, 1, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__exit.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_exit
55+#error "SYS_exit not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__exit, exit, 1, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl _exit
1414+ _exit = __exit
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__fchmod.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fchmod
55+#error "SYS_fchmod not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fchmod, fchmod, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fchmod
1414+ fchmod = __fchmod
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_fchmod_extended
55+#error "SYS_fchmod_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fchmod_extended, fchmod_extended, 5, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__fcntl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_fcntl
55+#error "SYS_fcntl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fcntl, fcntl, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fcntl$UNIX2003
1414+ fcntl$UNIX2003 = __fcntl
1515+#endif
1616+
+18
src/kernel/libsyscall/sys_i386/__fcntl_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_fcntl_nocancel
55+#error "SYS_fcntl_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fcntl_nocancel, fcntl_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fcntl
1414+ fcntl = __fcntl_nocancel
1515+ .globl fcntl$NOCANCEL$UNIX2003
1616+ fcntl$NOCANCEL$UNIX2003 = __fcntl_nocancel
1717+#endif
1818+
+111
src/kernel/libsyscall/sys_i386/__fork.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2010 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved.
3030+ *
3131+ * File: libc/ppc/sys/fork.s
3232+ *
3333+ * HISTORY
3434+ * 18-Nov-92 Ben Fathi (benf@next.com)
3535+ * Created from M88K sources
3636+ *
3737+ * 11-Jan-92 Peter King (king@next.com)
3838+ * Created from M68K sources
3939+ */
4040+4141+/*
4242+ * All of the asm stubs in this file have been adjusted so the pre/post
4343+ * fork handlers and dyld fixup are done in C inside Libc. As such, Libc
4444+ * expects the __fork asm to fix up the return code to be -1, 0 or pid
4545+ * and errno if needed.
4646+ */
4747+4848+#include "SYS.h"
4949+5050+#ifdef DARLING
5151+# define ___fork __fork
5252+# define _cerror cerror
5353+#endif
5454+5555+#if defined(__i386__)
5656+5757+LEAF(___fork, 0)
5858+ subl $28, %esp // Align the stack, with 16 bytes of extra padding that we'll need
5959+6060+ movl $ SYS_fork,%eax; // code for fork -> eax
6161+ UNIX_SYSCALL_TRAP // do the system call
6262+ jnc L1 // jump if CF==0
6363+6464+ CALL_EXTERN(tramp_cerror)
6565+ movl $-1,%eax
6666+ addl $28, %esp // restore the stack
6767+ ret
6868+6969+L1:
7070+ orl %edx,%edx // CF=OF=0, ZF set if zero result
7171+ jz L2 // parent, since r1 == 0 in parent, 1 in child
7272+7373+ //child here...
7474+ xorl %eax,%eax // zero eax
7575+ REG_TO_EXTERN(%eax, __current_pid);
7676+L2:
7777+ addl $28, %esp // restore the stack
7878+ // parent ends up here skipping child portion
7979+ ret
8080+8181+#elif defined(__x86_64__)
8282+8383+LEAF(___fork, 0)
8484+ subq $24, %rsp // Align the stack, plus room for local storage
8585+8686+ movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax
8787+ UNIX_SYSCALL_TRAP // do the system call
8888+ jnc L1 // jump if CF==0
8989+9090+ movq %rax, %rdi
9191+ CALL_EXTERN(_cerror)
9292+ movq $-1, %rax
9393+ addq $24, %rsp // restore the stack
9494+ ret
9595+9696+L1:
9797+ orl %edx,%edx // CF=OF=0, ZF set if zero result
9898+ jz L2 // parent, since r1 == 0 in parent, 1 in child
9999+100100+ //child here...
101101+ xorq %rax, %rax
102102+ PICIFY(__current_pid)
103103+ movl %eax,(%r11)
104104+L2:
105105+ // parent ends up here skipping child portion
106106+ addq $24, %rsp // restore the stack
107107+ ret
108108+109109+#else
110110+#error Unsupported architecture
111111+#endif
+11
src/kernel/libsyscall/sys_i386/__fsgetpath.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_fsgetpath
55+#error "SYS_fsgetpath not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fsgetpath, fsgetpath, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fstat64_extended
55+#error "SYS_fstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fstat64_extended, fstat64_extended, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__fstat_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fstat_extended
55+#error "SYS_fstat_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fstat_extended, fstat_extended, 4, cerror_nocancel)
1010+#endif
1111+
+18
src/kernel/libsyscall/sys_i386/__fsync_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_fsync_nocancel
55+#error "SYS_fsync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__fsync_nocancel, fsync_nocancel, 1, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fsync
1414+ fsync = __fsync_nocancel
1515+ .globl fsync$NOCANCEL$UNIX2003
1616+ fsync$NOCANCEL$UNIX2003 = __fsync_nocancel
1717+#endif
1818+
+16
src/kernel/libsyscall/sys_i386/__getattrlist.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_getattrlist
55+#error "SYS_getattrlist not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getattrlist, getattrlist, 5, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getattrlist$UNIX2003
1414+ getattrlist$UNIX2003 = __getattrlist
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_getdirentries64
55+#error "SYS_getdirentries64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getdirentries64, getdirentries64, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__gethostuuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_gethostuuid
55+#error "SYS_gethostuuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__gethostuuid, gethostuuid, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__getlcid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_getlcid
55+#error "SYS_getlcid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getlcid, getlcid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__getlogin.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getlogin
55+#error "SYS_getlogin not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getlogin, getlogin, 2, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__getpeername.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_getpeername
55+#error "SYS_getpeername not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getpeername, getpeername, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getpeername$UNIX2003
1414+ getpeername$UNIX2003 = __getpeername
1515+#endif
1616+
+114
src/kernel/libsyscall/sys_i386/__getpid.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___getpid __getpid
3434+#endif
3535+3636+#if defined(__i386__)
3737+3838+ .data
3939+ .globl __current_pid
4040+ .hidden __current_pid
4141+L__current_pid_addr:
4242+ __current_pid:
4343+ .long 0
4444+4545+#if defined(__DYNAMIC__)
4646+#define GET_CURRENT_PID \
4747+ call 0f ; \
4848+0: ; \
4949+ popl %ecx ; \
5050+ leal L__current_pid_addr-0b(%ecx), %ecx
5151+5252+#define __current_pid (%ecx)
5353+5454+#else
5555+#define GET_CURRENT_PID
5656+#endif
5757+5858+/*
5959+ * If __current_pid is > 0, return it, else make syscall.
6060+ * If __current_pid is 0, cache result of syscall.
6161+ */
6262+TEXT
6363+LEAF(___getpid, 0)
6464+ GET_CURRENT_PID
6565+ movl __current_pid, %eax
6666+ testl %eax, %eax
6767+ jle 1f
6868+ ret
6969+1:
7070+ UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel)
7171+ movl %eax, %edx
7272+ xorl %eax, %eax
7373+ GET_CURRENT_PID
7474+ lock
7575+ cmpxchgl %edx, __current_pid
7676+ movl %edx, %eax
7777+ ret
7878+7979+#elif defined(__x86_64__)
8080+8181+ .data
8282+ .globl __current_pid
8383+ .hidden __current_pid
8484+__current_pid:
8585+ .long 0
8686+8787+/*
8888+ * If __current_pid is > 0, return it, else make syscall.
8989+ * If __current_pid is 0, cache result of syscall.
9090+ */
9191+TEXT
9292+LEAF(___getpid, 0)
9393+ movl __current_pid(%rip), %eax
9494+ testl %eax, %eax
9595+ jle 1f
9696+ ret
9797+1:
9898+ UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel)
9999+ movl %eax, %edx
100100+ xorl %eax, %eax
101101+ leaq __current_pid(%rip), %rcx
102102+ lock
103103+ cmpxchgl %edx, (%rcx)
104104+ movl %edx, %eax
105105+ ret
106106+107107+#else
108108+#error Unsupported architecture
109109+#endif
110110+#if defined(__i386__)
111111+ .globl getpid
112112+ getpid = __getpid
113113+#endif
114114+
+16
src/kernel/libsyscall/sys_i386/__getrlimit.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getrlimit
55+#error "SYS_getrlimit not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getrlimit, getrlimit, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getrlimit
1414+ getrlimit = __getrlimit
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__getsgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getsgroups
55+#error "SYS_getsgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getsgroups, getsgroups, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getsgroups_np
1414+ getsgroups_np = __getsgroups
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__getsockname.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_getsockname
55+#error "SYS_getsockname not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getsockname, getsockname, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getsockname$UNIX2003
1414+ getsockname$UNIX2003 = __getsockname
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__gettid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_gettid
55+#error "SYS_gettid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__gettid, gettid, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl pthread_getugid_np
1414+ pthread_getugid_np = __gettid
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__getwgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getwgroups
55+#error "SYS_getwgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__getwgroups, getwgroups, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getwgroups_np
1414+ getwgroups_np = __getwgroups
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_open_dprotected_np
55+#error "SYS_guarded_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__guarded_open_dprotected_np, guarded_open_dprotected_np, 7, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_open_np
55+#error "SYS_guarded_open_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__guarded_open_np, guarded_open_np, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__identitysvc.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_identitysvc
55+#error "SYS_identitysvc not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__identitysvc, identitysvc, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__initgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_initgroups
55+#error "SYS_initgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__initgroups, initgroups, 3, cerror_nocancel)
1010+#endif
1111+
+18
src/kernel/libsyscall/sys_i386/__ioctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_ioctl
55+#error "SYS_ioctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__ioctl, ioctl, 3, cerror)
1010+#endif
1111+1212+#define ioctl __real_ioctl
1313+1414+#if defined(__i386__)
1515+ .globl ioctl
1616+ ioctl = __ioctl
1717+#endif
1818+
+11
src/kernel/libsyscall/sys_i386/__iopolicysys.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_iopolicysys
55+#error "SYS_iopolicysys not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__iopolicysys, iopolicysys, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__kdebug_trace.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_kdebug_trace
55+#error "SYS_kdebug_trace not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__kdebug_trace, kdebug_trace, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__kill.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_kill
55+#error "SYS_kill not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__kill, kill, 3, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__lchown.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_lchown
55+#error "SYS_lchown not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__lchown, lchown, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl lchown$UNIX2003
1414+ lchown$UNIX2003 = __lchown
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__listen.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_listen
55+#error "SYS_listen not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__listen, listen, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl listen$UNIX2003
1414+ listen$UNIX2003 = __listen
1515+#endif
1616+
+51
src/kernel/libsyscall/sys_i386/__lseek.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___lseek __lseek
3434+#endif
3535+3636+#if defined(__x86_64__)
3737+3838+__SYSCALL(___lseek, lseek, 3)
3939+4040+#elif defined(__i386__)
4141+4242+__SYSCALL_INT(___lseek, lseek, 3)
4343+4444+#else
4545+#error Unsupported architecture
4646+#endif
4747+#if defined(__i386__)
4848+ .globl lseek
4949+ lseek = __lseek
5050+#endif
5151+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_lstat64_extended
55+#error "SYS_lstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__lstat64_extended, lstat64_extended, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__lstat_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_lstat_extended
55+#error "SYS_lstat_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__lstat_extended, lstat_extended, 4, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__mac_execve.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS___mac_execve
55+#error "SYS___mac_execve not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_execve, __mac_execve, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl __sandbox_me
1414+ __sandbox_me = __mac_execve
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__mac_get_fd.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_fd
55+#error "SYS___mac_get_fd not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_fd, __mac_get_fd, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_file.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_file
55+#error "SYS___mac_get_file not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_file, __mac_get_file, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_lcid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_lcid
55+#error "SYS___mac_get_lcid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_lcid, __mac_get_lcid, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_lctx.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_lctx
55+#error "SYS___mac_get_lctx not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_lctx, __mac_get_lctx, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_link.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_link
55+#error "SYS___mac_get_link not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_link, __mac_get_link, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_mount.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_mount
55+#error "SYS___mac_get_mount not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_mount, __mac_get_mount, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_pid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_pid
55+#error "SYS___mac_get_pid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_pid, __mac_get_pid, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_get_proc.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___mac_get_proc
55+#error "SYS___mac_get_proc not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_get_proc, __mac_get_proc, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_getfsstat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS___mac_getfsstat
55+#error "SYS___mac_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_getfsstat, __mac_getfsstat, 5, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__mac_mount.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS___mac_mount
55+#error "SYS___mac_mount not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_mount, __mac_mount, 5, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl __sandbox_mm
1414+ __sandbox_mm = __mac_mount
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__mac_set_fd.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_set_fd
55+#error "SYS___mac_set_fd not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_set_fd, __mac_set_fd, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_set_file.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_set_file
55+#error "SYS___mac_set_file not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_set_file, __mac_set_file, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_set_lctx.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___mac_set_lctx
55+#error "SYS___mac_set_lctx not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_set_lctx, __mac_set_lctx, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__mac_set_link.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___mac_set_link
55+#error "SYS___mac_set_link not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_set_link, __mac_set_link, 2, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__mac_set_proc.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___mac_set_proc
55+#error "SYS___mac_set_proc not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_set_proc, __mac_set_proc, 1, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl __sandbox_msp
1414+ __sandbox_msp = __mac_set_proc
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__mac_syscall.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS___mac_syscall
55+#error "SYS___mac_syscall not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mac_syscall, __mac_syscall, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl __sandbox_ms
1414+ __sandbox_ms = __mac_syscall
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__mkdir_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_mkdir_extended
55+#error "SYS_mkdir_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mkdir_extended, mkdir_extended, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_mkfifo_extended
55+#error "SYS_mkfifo_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mkfifo_extended, mkfifo_extended, 5, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__mmap.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_mmap
55+#error "SYS_mmap not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mmap, mmap, 6, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl mmap
1414+ mmap = __mmap
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__mprotect.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_mprotect
55+#error "SYS_mprotect not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__mprotect, mprotect, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl mprotect$UNIX2003
1414+ mprotect$UNIX2003 = __mprotect
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__msgctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_msgctl
55+#error "SYS_msgctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__msgctl, msgctl, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl msgctl$UNIX2003
1414+ msgctl$UNIX2003 = __msgctl
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_msgsnd_nocancel
55+#error "SYS_msgsnd_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__msgsnd_nocancel, msgsnd_nocancel, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl msgsnd
1414+ msgsnd = __msgsnd_nocancel
1515+ .globl msgsnd$NOCANCEL$UNIX2003
1616+ msgsnd$NOCANCEL$UNIX2003 = __msgsnd_nocancel
1717+#endif
1818+
+16
src/kernel/libsyscall/sys_i386/__msgsys.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_msgsys
55+#error "SYS_msgsys not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__msgsys, msgsys, 5, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl msgsys
1414+ msgsys = __msgsys
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__msync.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_msync
55+#error "SYS_msync not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__msync, msync, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl msync$UNIX2003
1414+ msync$UNIX2003 = __msync
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__msync_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_msync_nocancel
55+#error "SYS_msync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__msync_nocancel, msync_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl msync$NOCANCEL$UNIX2003
1414+ msync$NOCANCEL$UNIX2003 = __msync_nocancel
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__munmap.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_munmap
55+#error "SYS_munmap not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__munmap, munmap, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS___old_semwait_signal
55+#error "SYS___old_semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__old_semwait_signal, __old_semwait_signal, 5, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__open.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_open
55+#error "SYS_open not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__open, open, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl open$UNIX2003
1414+ open$UNIX2003 = __open
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_open_dprotected_np
55+#error "SYS_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__open_dprotected_np, open_dprotected_np, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__open_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_open_extended
55+#error "SYS_open_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__open_extended, open_extended, 6, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__open_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_open_nocancel
55+#error "SYS_open_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__open_nocancel, open_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl open$NOCANCEL$UNIX2003
1414+ open$NOCANCEL$UNIX2003 = __open_nocancel
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__openat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_openat
55+#error "SYS_openat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__openat, openat, 4, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl openat
1414+ openat = __openat
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_openat_nocancel
55+#error "SYS_openat_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__openat_nocancel, openat_nocancel, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl openat$NOCANCEL
1414+ openat$NOCANCEL = __openat_nocancel
1515+#endif
1616+
+61
src/kernel/libsyscall/sys_i386/__pipe.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */
3030+3131+#include "SYS.h"
3232+3333+#ifdef DARLING
3434+# define ___pipe __pipe
3535+#endif
3636+3737+#if defined(__i386__)
3838+3939+PSEUDO_INT(___pipe, pipe, 0)
4040+ movl 4(%esp),%ecx
4141+ movl %eax,(%ecx)
4242+ movl %edx,4(%ecx)
4343+ xorl %eax,%eax
4444+ ret
4545+4646+#elif defined(__x86_64__)
4747+4848+PSEUDO(___pipe, pipe, 0, cerror_nocancel)
4949+ movl %eax, (%rdi)
5050+ movl %edx, 4(%rdi)
5151+ xorl %eax, %eax
5252+ ret
5353+5454+#else
5555+#error Unsupported architecture
5656+#endif
5757+#if defined(__i386__)
5858+ .globl pipe
5959+ pipe = __pipe
6060+#endif
6161+
+18
src/kernel/libsyscall/sys_i386/__poll_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_poll_nocancel
55+#error "SYS_poll_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__poll_nocancel, poll_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl poll
1414+ poll = __poll_nocancel
1515+ .globl poll$NOCANCEL$UNIX2003
1616+ poll$NOCANCEL$UNIX2003 = __poll_nocancel
1717+#endif
1818+
+11
src/kernel/libsyscall/sys_i386/__posix_spawn.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_posix_spawn
55+#error "SYS_posix_spawn not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__posix_spawn, posix_spawn, 5, cerror)
1010+#endif
1111+
+18
src/kernel/libsyscall/sys_i386/__pread_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_pread_nocancel
55+#error "SYS_pread_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pread_nocancel, pread_nocancel, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl pread
1414+ pread = __pread_nocancel
1515+ .globl pread$NOCANCEL$UNIX2003
1616+ pread$NOCANCEL$UNIX2003 = __pread_nocancel
1717+#endif
1818+
+11
src/kernel/libsyscall/sys_i386/__proc_info.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_proc_info
55+#error "SYS_proc_info not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__proc_info, proc_info, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__process_policy.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 32
22+#include "SYS.h"
33+44+#ifndef SYS_process_policy
55+#error "SYS_process_policy not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__process_policy, process_policy, 7, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__psynch_cvbroad.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 44
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_cvbroad
55+#error "SYS_psynch_cvbroad not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_cvbroad, psynch_cvbroad, 7, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_cvclrprepost
55+#error "SYS_psynch_cvclrprepost not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_cvclrprepost, psynch_cvclrprepost, 7, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 44
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_cvsignal
55+#error "SYS_psynch_cvsignal not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_cvsignal, psynch_cvsignal, 8, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__psynch_cvwait.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 44
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_cvwait
55+#error "SYS_psynch_cvwait not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_cvwait, psynch_cvwait, 8, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_mutexdrop
55+#error "SYS_psynch_mutexdrop not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_mutexdrop, psynch_mutexdrop, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_mutexwait
55+#error "SYS_psynch_mutexwait not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_mutexwait, psynch_mutexwait, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_downgrade
55+#error "SYS_psynch_rw_downgrade not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_downgrade, psynch_rw_downgrade, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_longrdlock
55+#error "SYS_psynch_rw_longrdlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_longrdlock, psynch_rw_longrdlock, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_rdlock
55+#error "SYS_psynch_rw_rdlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_rdlock, psynch_rw_rdlock, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_unlock
55+#error "SYS_psynch_rw_unlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_unlock, psynch_rw_unlock, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_unlock2
55+#error "SYS_psynch_rw_unlock2 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_unlock2, psynch_rw_unlock2, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_upgrade
55+#error "SYS_psynch_rw_upgrade not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_upgrade, psynch_rw_upgrade, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_wrlock
55+#error "SYS_psynch_rw_wrlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_wrlock, psynch_rw_wrlock, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_psynch_rw_yieldwrlock
55+#error "SYS_psynch_rw_yieldwrlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__psynch_rw_yieldwrlock, psynch_rw_yieldwrlock, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_canceled
55+#error "SYS___pthread_canceled not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_canceled, __pthread_canceled, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__pthread_chdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_chdir
55+#error "SYS___pthread_chdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_chdir, __pthread_chdir, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__pthread_fchdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_fchdir
55+#error "SYS___pthread_fchdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_fchdir, __pthread_fchdir, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__pthread_kill.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_kill
55+#error "SYS___pthread_kill not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_kill, __pthread_kill, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_markcancel
55+#error "SYS___pthread_markcancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_markcancel, __pthread_markcancel, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS___pthread_sigmask
55+#error "SYS___pthread_sigmask not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__pthread_sigmask, __pthread_sigmask, 3, cerror_nocancel)
1010+#endif
1111+
+66
src/kernel/libsyscall/sys_i386/__ptrace.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */
3030+3131+#include "SYS.h"
3232+3333+#ifdef DARLING
3434+# define ___ptrace __ptrace
3535+# define _errno darwin_errno
3636+#endif
3737+3838+#if defined(__i386__)
3939+4040+ .globl _errno
4141+4242+LEAF(___ptrace, 0)
4343+ xorl %eax,%eax
4444+ REG_TO_EXTERN(%eax,_errno)
4545+ UNIX_SYSCALL_NONAME(ptrace, 4, cerror)
4646+ ret
4747+4848+#elif defined(__x86_64__)
4949+5050+ .globl _errno
5151+5252+LEAF(___ptrace, 0)
5353+ xorq %rax,%rax
5454+ PICIFY(_errno)
5555+ movl %eax,(%r11)
5656+ UNIX_SYSCALL_NONAME(ptrace, 4, cerror)
5757+ ret
5858+5959+#else
6060+#error Unsupported architecture
6161+#endif
6262+#if defined(__i386__)
6363+ .globl ptrace
6464+ ptrace = __ptrace
6565+#endif
6666+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_recvmsg_nocancel
55+#error "SYS_recvmsg_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__recvmsg_nocancel, recvmsg_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl recvmsg$NOCANCEL$UNIX2003
1414+ recvmsg$NOCANCEL$UNIX2003 = __recvmsg_nocancel
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__rename.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_rename
55+#error "SYS_rename not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__rename, rename, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__rename_ext.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_rename_ext
55+#error "SYS_rename_ext not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__rename_ext, rename_ext, 3, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__renameat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_renameat
55+#error "SYS_renameat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__renameat, renameat, 4, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__rmdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_rmdir
55+#error "SYS_rmdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__rmdir, rmdir, 1, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__select.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_select
55+#error "SYS_select not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__select, select, 5, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl select$DARWIN_EXTSN
1414+ select$DARWIN_EXTSN = __select
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sem_wait_nocancel
55+#error "SYS_sem_wait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sem_wait_nocancel, sem_wait_nocancel, 1, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl sem_wait
1414+ sem_wait = __sem_wait_nocancel
1515+ .globl sem_wait$NOCANCEL$UNIX2003
1616+ sem_wait$NOCANCEL$UNIX2003 = __sem_wait_nocancel
1717+#endif
1818+
+16
src/kernel/libsyscall/sys_i386/__semctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_semctl
55+#error "SYS_semctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__semctl, semctl, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl semctl$UNIX2003
1414+ semctl$UNIX2003 = __semctl
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__semsys.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_semsys
55+#error "SYS_semsys not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__semsys, semsys, 5, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl semsys
1414+ semsys = __semsys
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__semwait_signal.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS___semwait_signal
55+#error "SYS___semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__semwait_signal, __semwait_signal, 6, cerror)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS___semwait_signal_nocancel
55+#error "SYS___semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__semwait_signal_nocancel, __semwait_signal_nocancel, 6, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__sendmsg.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_sendmsg
55+#error "SYS_sendmsg not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sendmsg, sendmsg, 3, cerror)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl sendmsg$UNIX2003
1414+ sendmsg$UNIX2003 = __sendmsg
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_sendto_nocancel
55+#error "SYS_sendto_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sendto_nocancel, sendto_nocancel, 6, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl sendto$NOCANCEL$UNIX2003
1414+ sendto$NOCANCEL$UNIX2003 = __sendto_nocancel
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__setattrlist.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_setattrlist
55+#error "SYS_setattrlist not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setattrlist, setattrlist, 5, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setattrlist$UNIX2003
1414+ setattrlist$UNIX2003 = __setattrlist
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__setlcid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setlcid
55+#error "SYS_setlcid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setlcid, setlcid, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__setlogin.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setlogin
55+#error "SYS_setlogin not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setlogin, setlogin, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__setpriority.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_setpriority
55+#error "SYS_setpriority not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setpriority, setpriority, 3, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__setregid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setregid
55+#error "SYS_setregid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setregid, setregid, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setregid$UNIX2003
1414+ setregid$UNIX2003 = __setregid
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__setreuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setreuid
55+#error "SYS_setreuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setreuid, setreuid, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setreuid$UNIX2003
1414+ setreuid$UNIX2003 = __setreuid
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__setrlimit.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setrlimit
55+#error "SYS_setrlimit not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setrlimit, setrlimit, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setrlimit
1414+ setrlimit = __setrlimit
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__setsgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setsgroups
55+#error "SYS_setsgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setsgroups, setsgroups, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setsgroups_np
1414+ setsgroups_np = __setsgroups
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__settid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_settid
55+#error "SYS_settid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__settid, settid, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl pthread_setugid_np
1414+ pthread_setugid_np = __settid
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_settid_with_pid
55+#error "SYS_settid_with_pid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__settid_with_pid, settid_with_pid, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__settimeofday.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_settimeofday
55+#error "SYS_settimeofday not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__settimeofday, settimeofday, 2, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__setwgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setwgroups
55+#error "SYS_setwgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__setwgroups, setwgroups, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setwgroups_np
1414+ setwgroups_np = __setwgroups
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__sfi_ctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_sfi_ctl
55+#error "SYS_sfi_ctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sfi_ctl, sfi_ctl, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__sfi_pidctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_sfi_pidctl
55+#error "SYS_sfi_pidctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sfi_pidctl, sfi_pidctl, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_shared_region_check_np
55+#error "SYS_shared_region_check_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__shared_region_check_np, shared_region_check_np, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_shared_region_map_and_slide_np
55+#error "SYS_shared_region_map_and_slide_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__shared_region_map_and_slide_np, shared_region_map_and_slide_np, 6, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__shm_open.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_shm_open
55+#error "SYS_shm_open not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__shm_open, shm_open, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl shm_open
1414+ shm_open = __shm_open
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__shmctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_shmctl
55+#error "SYS_shmctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__shmctl, shmctl, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl shmctl$UNIX2003
1414+ shmctl$UNIX2003 = __shmctl
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/__shmsys.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_shmsys
55+#error "SYS_shmsys not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__shmsys, shmsys, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl shmsys
1414+ shmsys = __shmsys
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__sigaction.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_sigaction
55+#error "SYS_sigaction not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sigaction, sigaction, 3, cerror_nocancel)
1010+#endif
1111+
+51
src/kernel/libsyscall/sys_i386/__sigaltstack.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___sigaltstack __sigaltstack
3434+#endif
3535+3636+#if defined(__x86_64__)
3737+3838+__SYSCALL(___sigaltstack, sigaltstack, 3)
3939+4040+#elif defined(__i386__)
4141+4242+__SYSCALL_INT(___sigaltstack, sigaltstack, 3)
4343+4444+#else
4545+#error Unsupported architecture
4646+#endif
4747+#if defined(__i386__)
4848+ .globl sigaltstack
4949+ sigaltstack = __sigaltstack
5050+#endif
5151+
+11
src/kernel/libsyscall/sys_i386/__sigsuspend.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sigsuspend
55+#error "SYS_sigsuspend not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sigsuspend, sigsuspend, 1, cerror)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sigsuspend_nocancel
55+#error "SYS_sigsuspend_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sigsuspend_nocancel, sigsuspend_nocancel, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__sigwait.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS___sigwait
55+#error "SYS___sigwait not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sigwait, __sigwait, 2, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__socketpair.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_socketpair
55+#error "SYS_socketpair not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__socketpair, socketpair, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl socketpair$UNIX2003
1414+ socketpair$UNIX2003 = __socketpair
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/__stack_snapshot.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_stack_snapshot
55+#error "SYS_stack_snapshot not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__stack_snapshot, stack_snapshot, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_stat64_extended
55+#error "SYS_stat64_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__stat64_extended, stat64_extended, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__stat_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_stat_extended
55+#error "SYS_stat_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__stat_extended, stat_extended, 4, cerror_nocancel)
1010+#endif
1111+
+65
src/kernel/libsyscall/sys_i386/__syscall.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */
3030+3131+#include "SYS.h"
3232+3333+#ifdef DARLING
3434+# define ___syscall __syscall
3535+#endif
3636+3737+#if defined(__i386__)
3838+3939+LEAF(___syscall, 0)
4040+ popl %ecx // ret addr
4141+ popl %eax // syscall number
4242+ pushl %ecx
4343+ UNIX_SYSCALL_TRAP
4444+ movl (%esp),%edx // add one element to stack so
4545+ pushl %ecx // caller "pop" will work
4646+ jnb 2f
4747+ BRANCH_EXTERN(tramp_cerror)
4848+2:
4949+END(___syscall)
5050+5151+#elif defined(__x86_64__)
5252+5353+// For x86-64, the kernel slides the argument list for us.
5454+// The number of arguments here is variable, but our macros ignore
5555+// that value anyway.
5656+__SYSCALL(___syscall, syscall, 0);
5757+5858+#else
5959+#error Unsupported architecture
6060+#endif
6161+#if defined(__i386__)
6262+ .globl syscall
6363+ syscall = __syscall
6464+#endif
6565+
+11
src/kernel/libsyscall/sys_i386/__sysctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_sysctl
55+#error "SYS_sysctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sysctl, sysctl, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__sysctlbyname.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_sysctlbyname
55+#error "SYS_sysctlbyname not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__sysctlbyname, sysctlbyname, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__telemetry.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 48
22+#include "SYS.h"
33+44+#ifndef SYS_telemetry
55+#error "SYS_telemetry not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__telemetry, telemetry, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__umask_extended.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_umask_extended
55+#error "SYS_umask_extended not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__umask_extended, umask_extended, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__unlink.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_unlink
55+#error "SYS_unlink not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__unlink, unlink, 1, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__unlinkat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_unlinkat
55+#error "SYS_unlinkat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__unlinkat, unlinkat, 3, cerror)
1010+#endif
1111+
+144
src/kernel/libsyscall/sys_i386/__vfork.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
3030+ *
3131+ * File: libc/ppc/sys/vfork.s
3232+ *
3333+ * HISTORY
3434+ * 23-Jun-1998 Umesh Vaishampayan (umeshv@apple.com)
3535+ * Created from fork.s
3636+ *
3737+ */
3838+3939+#include "SYS.h"
4040+4141+#ifdef DARLING
4242+#define ___vfork __vfork
4343+#define _cerror cerror
4444+#endif
4545+4646+#if defined(__i386__)
4747+4848+#if defined(__DYNAMIC__)
4949+#define GET_CURRENT_PID PICIFY(__current_pid)
5050+5151+ NON_LAZY_STUB(__current_pid)
5252+#define __current_pid (%edx)
5353+#else
5454+#define GET_CURRENT_PID
5555+#endif
5656+5757+/*
5858+ * If __current_pid >= 0, we want to put a -1 in there
5959+ * otherwise we just decrement it
6060+ */
6161+6262+LEAF(___vfork, 0)
6363+ GET_CURRENT_PID
6464+ movl __current_pid, %eax
6565+0:
6666+ xorl %ecx, %ecx
6767+ testl %eax, %eax
6868+ cmovs %eax, %ecx
6969+ decl %ecx
7070+ lock
7171+ cmpxchgl %ecx, __current_pid
7272+ jne 0b
7373+ popl %ecx
7474+ movl $(SYS_vfork), %eax // code for vfork -> eax
7575+ UNIX_SYSCALL_TRAP // do the system call
7676+ jnb L1 // jump if CF==0
7777+ GET_CURRENT_PID
7878+ lock
7979+ incl __current_pid
8080+ pushl %ecx
8181+ BRANCH_EXTERN(tramp_cerror)
8282+8383+L1:
8484+ testl %edx, %edx // CF=OF=0, ZF set if zero result
8585+ jz L2 // parent, since r1 == 0 in parent, 1 in child
8686+ xorl %eax, %eax // zero eax
8787+ jmp *%ecx
8888+8989+L2:
9090+ GET_CURRENT_PID
9191+ lock
9292+ incl __current_pid
9393+ jmp *%ecx
9494+9595+#elif defined(__x86_64__)
9696+9797+/*
9898+ * If __current_pid >= 0, we want to put a -1 in there
9999+ * otherwise we just decrement it
100100+ */
101101+102102+LEAF(___vfork, 0)
103103+ movq __current_pid@GOTPCREL(%rip), %rax
104104+ movl (%rax), %eax
105105+0:
106106+ xorl %ecx, %ecx
107107+ testl %eax, %eax
108108+ cmovs %eax, %ecx
109109+ subl $1, %ecx
110110+ movq __current_pid@GOTPCREL(%rip), %rdx
111111+ lock
112112+ cmpxchgl %ecx, (%rdx)
113113+ jne 0b
114114+ popq %rdi // return address in %rdi
115115+ movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax
116116+ UNIX_SYSCALL_TRAP // do the system call
117117+ jnb L1 // jump if CF==0
118118+ pushq %rdi // put return address back on stack for cerror
119119+ movq __current_pid@GOTPCREL(%rip), %rcx
120120+ lock
121121+ addq $1, (%rcx)
122122+ movq %rax, %rdi
123123+ BRANCH_EXTERN(_cerror)
124124+125125+L1:
126126+ testl %edx, %edx // CF=OF=0, ZF set if zero result
127127+ jz L2 // parent, since r1 == 0 in parent, 1 in child
128128+ xorq %rax, %rax // zero rax
129129+ jmp *%rdi
130130+131131+L2:
132132+ movq __current_pid@GOTPCREL(%rip), %rdx
133133+ lock
134134+ addq $1, (%rdx)
135135+ jmp *%rdi
136136+137137+#else
138138+#error Unsupported architecture
139139+#endif
140140+#if defined(__i386__)
141141+ .globl vfork
142142+ vfork = __vfork
143143+#endif
144144+
+11
src/kernel/libsyscall/sys_i386/__wait4.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_wait4
55+#error "SYS_wait4 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__wait4, wait4, 4, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/__wait4_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_wait4_nocancel
55+#error "SYS_wait4_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__wait4_nocancel, wait4_nocancel, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl wait4
1414+ wait4 = __wait4_nocancel
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_workq_kernreturn
55+#error "SYS_workq_kernreturn not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__workq_kernreturn, workq_kernreturn, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/__workq_open.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_workq_open
55+#error "SYS_workq_open not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__workq_open, workq_open, 0, cerror_nocancel)
1010+#endif
1111+
+18
src/kernel/libsyscall/sys_i386/__write_nocancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_write_nocancel
55+#error "SYS_write_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__write_nocancel, write_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl write
1414+ write = __write_nocancel
1515+ .globl write$NOCANCEL$UNIX2003
1616+ write$NOCANCEL$UNIX2003 = __write_nocancel
1717+#endif
1818+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_writev_nocancel
55+#error "SYS_writev_nocancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(__writev_nocancel, writev_nocancel, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl writev
1414+ writev = __writev_nocancel
1515+ .globl writev$NOCANCEL$UNIX2003
1616+ writev$NOCANCEL$UNIX2003 = __writev_nocancel
1717+#endif
1818+
+11
src/kernel/libsyscall/sys_i386/access.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_access
55+#error "SYS_access not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(access, access, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/acct.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_acct
55+#error "SYS_acct not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(acct, acct, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/adjtime.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_adjtime
55+#error "SYS_adjtime not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(adjtime, adjtime, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/aio_cancel.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_aio_cancel
55+#error "SYS_aio_cancel not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_cancel, aio_cancel, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/aio_error.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_aio_error
55+#error "SYS_aio_error not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_error, aio_error, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/aio_fsync.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_aio_fsync
55+#error "SYS_aio_fsync not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_fsync, aio_fsync, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/aio_read.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_aio_read
55+#error "SYS_aio_read not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_read, aio_read, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/aio_return.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_aio_return
55+#error "SYS_aio_return not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_return, aio_return, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_aio_write
55+#error "SYS_aio_write not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(aio_write, aio_write, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/audit.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_audit
55+#error "SYS_audit not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(audit, audit, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_audit_session_join
55+#error "SYS_audit_session_join not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(audit_session_join, audit_session_join, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_audit_session_port
55+#error "SYS_audit_session_port not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(audit_session_port, audit_session_port, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_audit_session_self
55+#error "SYS_audit_session_self not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(audit_session_self, audit_session_self, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/auditctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_auditctl
55+#error "SYS_auditctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(auditctl, auditctl, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/auditon.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_auditon
55+#error "SYS_auditon not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(auditon, auditon, 3, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_change_fdguard_np
55+#error "SYS_change_fdguard_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(change_fdguard_np, change_fdguard_np, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/chdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_chdir
55+#error "SYS_chdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(chdir, chdir, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/chflags.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_chflags
55+#error "SYS_chflags not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(chflags, chflags, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/chown.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_chown
55+#error "SYS_chown not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(chown, chown, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/chroot.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_chroot
55+#error "SYS_chroot not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(chroot, chroot, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 32
22+#include "SYS.h"
33+44+#ifndef SYS_connectx
55+#error "SYS_connectx not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(connectx, connectx, 8, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/csops.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_csops
55+#error "SYS_csops not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(csops, csops, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/csops_audittoken.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_csops_audittoken
55+#error "SYS_csops_audittoken not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(csops_audittoken, csops_audittoken, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/disconnectx.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_disconnectx
55+#error "SYS_disconnectx not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(disconnectx, disconnectx, 3, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/dup.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_dup
55+#error "SYS_dup not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(dup, dup, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/dup2.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_dup2
55+#error "SYS_dup2 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(dup2, dup2, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/exchangedata.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_exchangedata
55+#error "SYS_exchangedata not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(exchangedata, exchangedata, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/execve.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_execve
55+#error "SYS_execve not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(execve, execve, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/faccessat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_faccessat
55+#error "SYS_faccessat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(faccessat, faccessat, 4, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fchdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_fchdir
55+#error "SYS_fchdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fchdir, fchdir, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fchflags.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fchflags
55+#error "SYS_fchflags not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fchflags, fchflags, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fchmodat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fchmodat
55+#error "SYS_fchmodat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fchmodat, fchmodat, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fchown.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_fchown
55+#error "SYS_fchown not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fchown, fchown, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fchownat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_fchownat
55+#error "SYS_fchownat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fchownat, fchownat, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fdatasync.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_fdatasync
55+#error "SYS_fdatasync not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fdatasync, fdatasync, 1, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/ffsctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_ffsctl
55+#error "SYS_ffsctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(ffsctl, ffsctl, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fgetattrlist.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_fgetattrlist
55+#error "SYS_fgetattrlist not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fgetattrlist, fgetattrlist, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fgetxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_fgetxattr
55+#error "SYS_fgetxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fgetxattr, fgetxattr, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fhopen.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fhopen
55+#error "SYS_fhopen not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fhopen, fhopen, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fileport_makefd.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_fileport_makefd
55+#error "SYS_fileport_makefd not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fileport_makefd, fileport_makefd, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fileport_makeport
55+#error "SYS_fileport_makeport not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fileport_makeport, fileport_makeport, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/flistxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_flistxattr
55+#error "SYS_flistxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(flistxattr, flistxattr, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/flock.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_flock
55+#error "SYS_flock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(flock, flock, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fpathconf.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fpathconf
55+#error "SYS_fpathconf not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fpathconf, fpathconf, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fremovexattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_fremovexattr
55+#error "SYS_fremovexattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fremovexattr, fremovexattr, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fsctl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fsctl
55+#error "SYS_fsctl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fsctl, fsctl, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fsetattrlist.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_fsetattrlist
55+#error "SYS_fsetattrlist not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fsetattrlist, fsetattrlist, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fsetxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_fsetxattr
55+#error "SYS_fsetxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fsetxattr, fsetxattr, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/fstat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fstat
55+#error "SYS_fstat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstat, fstat, 2, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/fstat64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fstat64
55+#error "SYS_fstat64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstat64, fstat64, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fstat$INODE64
1414+ fstat$INODE64 = fstat64
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/fstatat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fstatat
55+#error "SYS_fstatat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstatat, fstatat, 4, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/fstatat64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_fstatat64
55+#error "SYS_fstatat64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstatat64, fstatat64, 4, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fstatat$INODE64
1414+ fstatat$INODE64 = fstatat64
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/fstatfs.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fstatfs
55+#error "SYS_fstatfs not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstatfs, fstatfs, 2, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/fstatfs64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_fstatfs64
55+#error "SYS_fstatfs64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(fstatfs64, fstatfs64, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl fstatfs$INODE64
1414+ fstatfs$INODE64 = fstatfs64
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_ftruncate
55+#error "SYS_ftruncate not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(ftruncate, ftruncate, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/futimes.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_futimes
55+#error "SYS_futimes not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(futimes, futimes, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getattrlistat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_getattrlistat
55+#error "SYS_getattrlistat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getattrlistat, getattrlistat, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getattrlistbulk.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_getattrlistbulk
55+#error "SYS_getattrlistbulk not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getattrlistbulk, getattrlistbulk, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getaudit_addr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getaudit_addr
55+#error "SYS_getaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getaudit_addr, getaudit_addr, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getauid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_getauid
55+#error "SYS_getauid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getauid, getauid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getdirentries.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_getdirentries
55+#error "SYS_getdirentries not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getdirentries, getdirentries, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 32
22+#include "SYS.h"
33+44+#ifndef SYS_getdirentriesattr
55+#error "SYS_getdirentriesattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getdirentriesattr, getdirentriesattr, 8, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getdtablesize.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getdtablesize
55+#error "SYS_getdtablesize not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getdtablesize, getdtablesize, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getegid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getegid
55+#error "SYS_getegid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getegid, getegid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/geteuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_geteuid
55+#error "SYS_geteuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(geteuid, geteuid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getfh.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getfh
55+#error "SYS_getfh not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getfh, getfh, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getfsstat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_getfsstat
55+#error "SYS_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getfsstat, getfsstat, 3, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/getfsstat64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_getfsstat64
55+#error "SYS_getfsstat64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getfsstat64, getfsstat64, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl getfsstat$INODE64
1414+ getfsstat$INODE64 = getfsstat64
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/getgid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getgid
55+#error "SYS_getgid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getgid, getgid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getgroups
55+#error "SYS_getgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getgroups, getgroups, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getitimer.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getitimer
55+#error "SYS_getitimer not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getitimer, getitimer, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getpgid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_getpgid
55+#error "SYS_getpgid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getpgid, getpgid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getpgrp.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getpgrp
55+#error "SYS_getpgrp not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getpgrp, getpgrp, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getppid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getppid
55+#error "SYS_getppid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getppid, getppid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getpriority.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getpriority
55+#error "SYS_getpriority not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getpriority, getpriority, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getrusage.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_getrusage
55+#error "SYS_getrusage not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getrusage, getrusage, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getsid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_getsid
55+#error "SYS_getsid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getsid, getsid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getsockopt.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_getsockopt
55+#error "SYS_getsockopt not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getsockopt, getsockopt, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_getuid
55+#error "SYS_getuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getuid, getuid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/getxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_getxattr
55+#error "SYS_getxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(getxattr, getxattr, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/guarded_close_np.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_close_np
55+#error "SYS_guarded_close_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(guarded_close_np, guarded_close_np, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_kqueue_np
55+#error "SYS_guarded_kqueue_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(guarded_kqueue_np, guarded_kqueue_np, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_pwrite_np
55+#error "SYS_guarded_pwrite_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(guarded_pwrite_np, guarded_pwrite_np, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/guarded_write_np.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_write_np
55+#error "SYS_guarded_write_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(guarded_write_np, guarded_write_np, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_guarded_writev_np
55+#error "SYS_guarded_writev_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(guarded_writev_np, guarded_writev_np, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/issetugid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_issetugid
55+#error "SYS_issetugid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(issetugid, issetugid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/kas_info.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_kas_info
55+#error "SYS_kas_info not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(kas_info, kas_info, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/kevent.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_kevent
55+#error "SYS_kevent not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(kevent, kevent, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/kevent64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_kevent64
55+#error "SYS_kevent64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(kevent64, kevent64, 7, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/kqueue.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_kqueue
55+#error "SYS_kqueue not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(kqueue, kqueue, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/ledger.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_ledger
55+#error "SYS_ledger not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(ledger, ledger, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/link.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_link
55+#error "SYS_link not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(link, link, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/linkat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_linkat
55+#error "SYS_linkat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(linkat, linkat, 5, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/lio_listio.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_lio_listio
55+#error "SYS_lio_listio not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(lio_listio, lio_listio, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/listxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_listxattr
55+#error "SYS_listxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(listxattr, listxattr, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/lstat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_lstat
55+#error "SYS_lstat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(lstat, lstat, 2, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/lstat64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_lstat64
55+#error "SYS_lstat64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(lstat64, lstat64, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl lstat$INODE64
1414+ lstat$INODE64 = lstat64
1515+#endif
1616+
+16
src/kernel/libsyscall/sys_i386/madvise.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_madvise
55+#error "SYS_madvise not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(madvise, madvise, 3, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl posix_madvise
1414+ posix_madvise = madvise
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_memorystatus_control
55+#error "SYS_memorystatus_control not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(memorystatus_control, memorystatus_control, 5, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_memorystatus_get_level
55+#error "SYS_memorystatus_get_level not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(memorystatus_get_level, memorystatus_get_level, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mincore.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_mincore
55+#error "SYS_mincore not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mincore, mincore, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/minherit.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_minherit
55+#error "SYS_minherit not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(minherit, minherit, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mkdir.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_mkdir
55+#error "SYS_mkdir not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mkdir, mkdir, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mkdirat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_mkdirat
55+#error "SYS_mkdirat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mkdirat, mkdirat, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mkfifo.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_mkfifo
55+#error "SYS_mkfifo not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mkfifo, mkfifo, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mknod.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_mknod
55+#error "SYS_mknod not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mknod, mknod, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mlock.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_mlock
55+#error "SYS_mlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mlock, mlock, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mlockall.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_mlockall
55+#error "SYS_mlockall not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mlockall, mlockall, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/modwatch.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_modwatch
55+#error "SYS_modwatch not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(modwatch, modwatch, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mount.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_mount
55+#error "SYS_mount not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mount, mount, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/mremap_encrypted.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_mremap_encrypted
55+#error "SYS_mremap_encrypted not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(mremap_encrypted, mremap_encrypted, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/msgget.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_msgget
55+#error "SYS_msgget not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(msgget, msgget, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_munlock
55+#error "SYS_munlock not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(munlock, munlock, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/munlockall.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_munlockall
55+#error "SYS_munlockall not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(munlockall, munlockall, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_necp_match_policy
55+#error "SYS_necp_match_policy not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(necp_match_policy, necp_match_policy, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/nfsclnt.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_nfsclnt
55+#error "SYS_nfsclnt not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(nfsclnt, nfsclnt, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/nfssvc.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_nfssvc
55+#error "SYS_nfssvc not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(nfssvc, nfssvc, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/openbyid_np.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_openbyid_np
55+#error "SYS_openbyid_np not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(openbyid_np, openbyid_np, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/pathconf.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_pathconf
55+#error "SYS_pathconf not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(pathconf, pathconf, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/peeloff.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_peeloff
55+#error "SYS_peeloff not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(peeloff, peeloff, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/pid_resume.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_pid_resume
55+#error "SYS_pid_resume not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(pid_resume, pid_resume, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/pid_suspend.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_pid_suspend
55+#error "SYS_pid_suspend not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(pid_suspend, pid_suspend, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_proc_rlimit_control
55+#error "SYS_proc_rlimit_control not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(proc_rlimit_control, proc_rlimit_control, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/proc_trace_log.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_proc_trace_log
55+#error "SYS_proc_trace_log not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(proc_trace_log, proc_trace_log, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/proc_uuid_policy.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_proc_uuid_policy
55+#error "SYS_proc_uuid_policy not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(proc_uuid_policy, proc_uuid_policy, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_quota
55+#error "SYS_quota not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(quota, quota, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/quotactl.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_quotactl
55+#error "SYS_quotactl not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(quotactl, quotactl, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_readlink
55+#error "SYS_readlink not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(readlink, readlink, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/readlinkat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_readlinkat
55+#error "SYS_readlinkat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(readlinkat, readlinkat, 4, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_reboot
55+#error "SYS_reboot not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(reboot, reboot, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/recvmsg_x.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_recvmsg_x
55+#error "SYS_recvmsg_x not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(recvmsg_x, recvmsg_x, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/removexattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_removexattr
55+#error "SYS_removexattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(removexattr, removexattr, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/revoke.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_revoke
55+#error "SYS_revoke not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(revoke, revoke, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/searchfs.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_searchfs
55+#error "SYS_searchfs not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(searchfs, searchfs, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sem_close.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sem_close
55+#error "SYS_sem_close not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sem_close, sem_close, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sem_post.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sem_post
55+#error "SYS_sem_post not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sem_post, sem_post, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sem_trywait.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sem_trywait
55+#error "SYS_sem_trywait not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sem_trywait, sem_trywait, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sem_unlink.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sem_unlink
55+#error "SYS_sem_unlink not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sem_unlink, sem_unlink, 1, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_semget
55+#error "SYS_semget not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(semget, semget, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/semop.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_semop
55+#error "SYS_semop not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(semop, semop, 3, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sendfile.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 28
22+#include "SYS.h"
33+44+#ifndef SYS_sendfile
55+#error "SYS_sendfile not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sendfile, sendfile, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sendmsg_x.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_sendmsg_x
55+#error "SYS_sendmsg_x not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sendmsg_x, sendmsg_x, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setaudit_addr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setaudit_addr
55+#error "SYS_setaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setaudit_addr, setaudit_addr, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setauid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setauid
55+#error "SYS_setauid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setauid, setauid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setegid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setegid
55+#error "SYS_setegid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setegid, setegid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/seteuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_seteuid
55+#error "SYS_seteuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(seteuid, seteuid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setgid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setgid
55+#error "SYS_setgid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setgid, setgid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setgroups.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setgroups
55+#error "SYS_setgroups not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setgroups, setgroups, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setitimer.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_setitimer
55+#error "SYS_setitimer not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setitimer, setitimer, 3, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/setpgid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_setpgid
55+#error "SYS_setpgid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setpgid, setpgid, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl setpgrp
1414+ setpgrp = setpgid
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/setprivexec.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setprivexec
55+#error "SYS_setprivexec not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setprivexec, setprivexec, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setquota.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_setquota
55+#error "SYS_setquota not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setquota, setquota, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setsid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_setsid
55+#error "SYS_setsid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setsid, setsid, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setsockopt.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 20
22+#include "SYS.h"
33+44+#ifndef SYS_setsockopt
55+#error "SYS_setsockopt not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setsockopt, setsockopt, 5, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setuid.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_setuid
55+#error "SYS_setuid not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setuid, setuid, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/setxattr.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 24
22+#include "SYS.h"
33+44+#ifndef SYS_setxattr
55+#error "SYS_setxattr not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(setxattr, setxattr, 6, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/shm_unlink.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_shm_unlink
55+#error "SYS_shm_unlink not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(shm_unlink, shm_unlink, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/shmat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_shmat
55+#error "SYS_shmat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(shmat, shmat, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/shmdt.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_shmdt
55+#error "SYS_shmdt not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(shmdt, shmdt, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/shmget.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_shmget
55+#error "SYS_shmget not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(shmget, shmget, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/shutdown.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_shutdown
55+#error "SYS_shutdown not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(shutdown, shutdown, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sigpending.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_sigpending
55+#error "SYS_sigpending not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sigpending, sigpending, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sigprocmask.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_sigprocmask
55+#error "SYS_sigprocmask not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sigprocmask, sigprocmask, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/socket.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_socket
55+#error "SYS_socket not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(socket, socket, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/socket_delegate.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_socket_delegate
55+#error "SYS_socket_delegate not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(socket_delegate, socket_delegate, 4, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/stat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_stat
55+#error "SYS_stat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(stat, stat, 2, cerror)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/stat64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_stat64
55+#error "SYS_stat64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(stat64, stat64, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl stat$INODE64
1414+ stat$INODE64 = stat64
1515+#endif
1616+
+11
src/kernel/libsyscall/sys_i386/statfs.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_statfs
55+#error "SYS_statfs not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(statfs, statfs, 2, cerror_nocancel)
1010+#endif
1111+
+16
src/kernel/libsyscall/sys_i386/statfs64.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_statfs64
55+#error "SYS_statfs64 not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(statfs64, statfs64, 2, cerror_nocancel)
1010+#endif
1111+1212+#if defined(__i386__)
1313+ .globl statfs$INODE64
1414+ statfs$INODE64 = statfs64
1515+#endif
1616+
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_swapon
55+#error "SYS_swapon not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(swapon, swapon, 0, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/symlink.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_symlink
55+#error "SYS_symlink not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(symlink, symlink, 2, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/symlinkat.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_symlinkat
55+#error "SYS_symlinkat not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(symlinkat, symlinkat, 3, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/sync.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_sync
55+#error "SYS_sync not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(sync, sync, 0, cerror)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/system_override.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 16
22+#include "SYS.h"
33+44+#ifndef SYS_system_override
55+#error "SYS_system_override not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(system_override, system_override, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/truncate.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_truncate
55+#error "SYS_truncate not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(truncate, truncate, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/umask.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_umask
55+#error "SYS_umask not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(umask, umask, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/undelete.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 4
22+#include "SYS.h"
33+44+#ifndef SYS_undelete
55+#error "SYS_undelete not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(undelete, undelete, 1, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/unmount.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_unmount
55+#error "SYS_unmount not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(unmount, unmount, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/utimes.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_utimes
55+#error "SYS_utimes not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(utimes, utimes, 2, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/vfs_purge.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 0
22+#include "SYS.h"
33+44+#ifndef SYS_vfs_purge
55+#error "SYS_vfs_purge not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(vfs_purge, vfs_purge, 0, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 12
22+#include "SYS.h"
33+44+#ifndef SYS_vm_pressure_monitor
55+#error "SYS_vm_pressure_monitor not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(vm_pressure_monitor, vm_pressure_monitor, 3, cerror_nocancel)
1010+#endif
1111+
+11
src/kernel/libsyscall/sys_i386/waitevent.S
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_waitevent
55+#error "SYS_waitevent not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(waitevent, waitevent, 2, cerror_nocancel)
1010+#endif
1111+
···11+#define __SYSCALL_32BIT_ARG_BYTES 8
22+#include "SYS.h"
33+44+#ifndef SYS_watchevent
55+#error "SYS_watchevent not defined. The header files libsyscall is building against do not match syscalls.master."
66+#endif
77+88+#if defined(__i386__)
99+__SYSCALL2(watchevent, watchevent, 2, cerror_nocancel)
1010+#endif
1111+
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright 1998 Apple Computer, Inc. */
3030+3131+#include "SYS.h"
3232+3333+#ifdef DARLING
3434+# define ___gettimeofday __gettimeofday
3535+#endif
3636+3737+#if defined(__i386__)
3838+3939+/*
4040+ * This syscall is special cased: the timeval is returned in eax/edx.
4141+ */
4242+LABEL(___gettimeofday)
4343+ UNIX_SYSCALL_INT_NONAME(gettimeofday,0)
4444+ mov 4(%esp),%ecx
4545+ mov %eax,(%ecx)
4646+ mov %edx,4(%ecx)
4747+ xor %eax,%eax
4848+ ret
4949+5050+#elif defined(__x86_64__)
5151+5252+/*
5353+ * This syscall is special cased: the timeval is returned in rax:rdx.
5454+ */
5555+LABEL(___gettimeofday)
5656+ UNIX_SYSCALL_NONAME(gettimeofday,0,cerror_nocancel)
5757+ movq %rax, (%rdi)
5858+ movl %edx, 8(%rdi)
5959+ xorl %eax, %eax
6060+ ret
6161+6262+#else
6363+#error Unsupported architecture
6464+#endif
+46
src/kernel/libsyscall/sys_x86-64/__sigreturn.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___sigreturn __sigreturn
3434+#endif
3535+3636+#if defined(__x86_64__)
3737+3838+__SYSCALL(___sigreturn, sigreturn, 2)
3939+4040+#elif defined(__i386__)
4141+4242+__SYSCALL_INT(___sigreturn, sigreturn, 2)
4343+4444+#else
4545+#error Unsupported architecture
4646+#endif
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2007 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___thread_selfid __thread_selfid
3434+#endif
3535+3636+#if defined(__x86_64__)
3737+3838+__SYSCALL(___thread_selfid, thread_selfid, 0)
3939+4040+#elif defined(__i386__)
4141+4242+__SYSCALL_INT(___thread_selfid, thread_selfid, 0)
4343+4444+#endif
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 2014 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+3030+#include "SYS.h"
3131+3232+#ifdef DARLING
3333+# define ___thread_selfusage __thread_selfusage
3434+#endif
3535+3636+#if defined(__x86_64__)
3737+3838+__SYSCALL(___thread_selfusage, thread_selfusage, 0)
3939+4040+#elif defined(__i386__)
4141+4242+__SYSCALL_INT(___thread_selfusage, thread_selfusage, 0)
4343+4444+#endif
+108
src/kernel/libsyscall/sys_x86-64/custom.S
···11+// Modified by Lubos Dolezel for Darling
22+/*
33+ * Copyright (c) 1999-2011 Apple Inc. All rights reserved.
44+ *
55+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
66+ *
77+ * This file contains Original Code and/or Modifications of Original Code
88+ * as defined in and that are subject to the Apple Public Source License
99+ * Version 2.0 (the 'License'). You may not use this file except in
1010+ * compliance with the License. The rights granted to you under the License
1111+ * may not be used to create, or enable the creation or redistribution of,
1212+ * unlawful or unlicensed copies of an Apple operating system, or to
1313+ * circumvent, violate, or enable the circumvention or violation of, any
1414+ * terms of an Apple operating system software license agreement.
1515+ *
1616+ * Please obtain a copy of the License at
1717+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1818+ *
1919+ * The Original Code and all software distributed under the License are
2020+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2121+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2222+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2323+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2424+ * Please see the License for the specific language governing rights and
2525+ * limitations under the License.
2626+ *
2727+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2828+ */
2929+/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved.
3030+ */
3131+3232+#include "SYS.h"
3333+3434+#if defined(__i386__)
3535+3636+/*
3737+ * i386 needs custom assembly to transform the return from syscalls
3838+ * into a proper stack for a function call out to cerror{,_nocancel}.
3939+ */
4040+4141+LABEL(tramp_cerror)
4242+ mov %esp, %edx
4343+ andl $0xfffffff0, %esp
4444+ subl $16, %esp
4545+ movl %edx, 4(%esp)
4646+ movl %eax, (%esp)
4747+ CALL_EXTERN(cerror)
4848+ movl 4(%esp), %esp
4949+ ret
5050+5151+LABEL(tramp_cerror_nocancel)
5252+ mov %esp, %edx
5353+ andl $0xfffffff0, %esp
5454+ subl $16, %esp
5555+ movl %edx, 4(%esp)
5656+ movl %eax, (%esp)
5757+ CALL_EXTERN(cerror_nocancel)
5858+ movl 4(%esp), %esp
5959+ ret
6060+6161+LABEL(__sysenter_trap)
6262+ popl %edx
6363+ movl %esp, %ecx
6464+ sysenter
6565+6666+ .globl _i386_get_ldt
6767+ ALIGN
6868+_i386_get_ldt:
6969+ movl $6,%eax
7070+ MACHDEP_SYSCALL_TRAP
7171+ jnb 2f
7272+ jmp tramp_cerror@PLT
7373+2: ret
7474+7575+7676+ .globl _i386_set_ldt
7777+ ALIGN
7878+_i386_set_ldt:
7979+ movl $5,%eax
8080+ MACHDEP_SYSCALL_TRAP
8181+ jnb 2f
8282+ jmp tramp_cerror@PLT
8383+2: ret
8484+8585+#elif defined(__x86_64__)
8686+8787+ .globl _i386_get_ldt
8888+ ALIGN
8989+_i386_get_ldt:
9090+ movl $6,%eax
9191+ MACHDEP_SYSCALL_TRAP
9292+ jnb 2f
9393+ movq %rax, %rdi
9494+ jmp cerror@PLT
9595+2: ret
9696+9797+9898+ .globl _i386_set_ldt
9999+ ALIGN
100100+_i386_set_ldt:
101101+ movl $5,%eax
102102+ MACHDEP_SYSCALL_TRAP
103103+ jnb 2f
104104+ movq %rax, %rdi
105105+ jmp cerror@PLT
106106+2: ret
107107+108108+#endif
···11+// Modified by Lubos Dolezel for Darling
12/*
23 * Copyright (c) 2007 Apple Inc. All rights reserved.
34 * Copyright (c) 2003-2006 Apple Computer, Inc. All rights reserved.
···28292930 .text
3031 .align 4, 0x00
3232+3333+#ifdef DARLING
3434+# define _sys_icache_invalidate sys_icache_invalidate
3535+# define _sys_dcache_flush sys_dcache_flush
3636+#endif
31373238/* void sys_icache_invalidate(addr_t start, int length) */
3339
···11+// Modified by Lubos Dolezel for Darling
12/*
23 * Copyright (c) 2010 Apple Inc. All rights reserved.
34 *
···23242425#include <machine/cpu_capabilities.h>
2526#include <mach/i386/syscall_sw.h>
2727+2828+#ifdef DARLING
2929+# define _preempt preempt
3030+# define _backoff backoff
3131+#endif
26322733/* Subroutine to make a preempt syscall. Called when we notice %ebx is
2834 * nonzero after returning from a PFZ subroutine.
···11+// Modified by Lubos Dolezel for Darling
12/*
23 * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
34 *
···39404041#define kBigChunk (256*1024) // outer loop chunk size for kVeryLong sized operands
41424343+#ifdef DARLING
4444+#define _longcopy longcopy
4545+#define _memcpy memcpy
4646+#endif
42474348// Very long forward moves. These are at least several pages, so we loop over big
4449// chunks of memory (kBigChunk in size.) We first prefetch the chunk, and then copy
···5661// void longcopy(const void *dest, void *sou, size_t len)
57625863 .text
6464+#ifndef DARLING
5965 .private_extern _longcopy
6666+#else
6767+ .hidden _longcopy
6868+#endif
60696161- .align 5
7070+ .align (1<<5)
6271_longcopy:
6372 pushl %ebp // set up a frame for backtraces
6473 movl %esp,%ebp
···11+// Modified by Lubos Dolezel for Darling
12/*
23 * Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved.
34 *
···4445#define kShort 63
4546#define kVeryLong (1024*1024)
46474848+#ifdef DARLING
4949+# define _memset_pattern memset_pattern
5050+#endif
5151+4752// Initial entry from Libc with parameters passed in registers. Although we
4853// correctly handle misaligned ptrs and short operands, they are inefficient.
4954// Therefore our caller should filter out short operands and exploit local
···5560// Return conditions:
5661// %eax, %edi, %esi, %ecx, and %edx all trashed
57625858- .align 5
6363+ .align (1<<5)
6464+#ifndef DARLING
5965 .private_extern _memset_pattern
6666+#else
6767+ .hidden _memset_pattern
6868+#endif
6069_memset_pattern:
6170 cmpl $(kShort),%edx // long enough to bother aligning?
6271 ja LNotShort // yes
···11+// Modified by Lubos Dolezel for Darling
12/*
23 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
34 *
···3940 * The previous signal state is NOT restored.
4041 *
4142 */
4343+4444+#ifdef DARLING
4545+#define __setjmp _setjmp
4646+#define __longjmp _longjmp
4747+#endif
42484349#include <architecture/i386/asm_help.h>
4450
···5555// Special case handling ----------------------------------------------
56565757L_xHiIsZero:
5858- cmp $0, 4(%esp) // is the low word of x zero?
5858+ cmpl $0, 4(%esp) // is the low word of x zero?
5959 jnz L_returnFromXHiIsZero // if not, jump back to mainline
6060L_returnAbsY:
6161 and %ecx, 16(%esp)
···6363 ret
64646565L_yHiIsZero:
6666- cmp $0, 12(%esp) // is the low word of y zero?
6666+ cmpl $0, 12(%esp) // is the low word of y zero?
6767 jnz L_returnFromYHiIsZero // if not, jump back to mainline
6868L_returnAbsX:
6969 and %ecx, 8(%esp)
···7373L_xIsSpecial:
7474 cmp INFHI, %edx // check if y is infinity
7575 jnz L_returnAbsX
7676- cmp $0, 12(%esp)
7676+ cmpl $0, 12(%esp)
7777 jz L_returnAbsY
7878 jmp L_returnAbsX
7979