/* * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com. * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. * Copyright 2004-2010, Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. */ /*! Big case statement for dispatching syscalls, as well as the generic syscall interface. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include status_t _user_generic_syscall(const char* userSubsystem, uint32 function, void* buffer, size_t bufferSize); int _user_is_computer_on(void); #include "syscall_numbers.h" #define kSyscallCount kSyscallCompatCount #define kSyscallInfos kSyscallCompatInfos #define kExtendedSyscallInfos kExtendedSyscallCompatInfos extern const int kSyscallCount; extern const syscall_info kSyscallInfos[]; extern const extended_syscall_info kExtendedSyscallInfos[]; /* * kSyscallCount and kSyscallInfos here */ // generated by gensyscalls #include "syscall_table.h"