1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef BERBERIS_KERNEL_API_RUNTIME_BRIDGE_H_ 18 #define BERBERIS_KERNEL_API_RUNTIME_BRIDGE_H_ 19 20 namespace berberis { 21 22 long RunGuestSyscall___NR_rt_sigaction(long sig_num_arg, 23 long act_arg, 24 long old_act_arg, 25 long sigset_size_arg); 26 long RunGuestSyscall___NR_sigaltstack(long stack, long old_stack); 27 long RunGuestSyscall___NR_timer_create(long arg_1, long arg_2, long arg_3); 28 long RunGuestSyscall___NR_exit(long arg); 29 long RunGuestSyscall___NR_clone(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5); 30 long RunGuestSyscall___NR_mmap(long arg_1, 31 long arg_2, 32 long arg_3, 33 long arg_4, 34 long arg_5, 35 long arg_6); 36 long RunGuestSyscall___NR_mmap2(long arg_1, 37 long arg_2, 38 long arg_3, 39 long arg_4, 40 long arg_5, 41 long arg_6); 42 long RunGuestSyscall___NR_munmap(long arg_1, long arg_2); 43 long RunGuestSyscall___NR_mprotect(long arg_1, long arg_2, long arg_3); 44 long RunGuestSyscall___NR_mremap(long arg_1, long arg_2, long arg_3, long arg_4, long arg_5); 45 46 } // namespace berberis 47 48 #endif // BERBERIS_KERNEL_API_RUNTIME_BRIDGE_H_ 49