Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839#define BUILDING_BASE_C#include "base.h"#include <linux-syscalls/linux.h>#include "simple.h"#include "duct_errno.h"#include "syscalls.h"
long __unknown_syscall(int nr, ...){ __simple_printf("Unimplemented syscall (%d)\n", nr); return -ENOSYS;}
long __unknown_syscall_machdep(int nr, ...){ __simple_printf("Unimplemented machdep trap (%d)\n", nr); return -ENOSYS;}
VISIBLEint __linux_syscall(int nr, long a1, long a2, long a3, long a4, long a5, long a6){ return linux_syscall(a1, a2, a3, a4, a5, a6, nr);}
#ifdef __TESTINGvoid _start(){#ifdef __x86_64__ __asm__ ("andq $-16, %rsp");#elif defined(__i386__ __asm__ ("andl $-16, %esp");#endif __simple_printf("Hello world\n"); LINUX_SYSCALL1(__NR_exit, 0);}#endif