1 // Copyright 2016 The Fuchsia Authors
2 //
3 // Use of this source code is governed by a MIT-style
4 // license that can be found in the LICENSE file or at
5 // https://opensource.org/licenses/MIT
6 
7 #include "priv.h"
8 
9 // zx_status_t zx_syscall_test_0
sys_syscall_test_0(void)10 zx_status_t sys_syscall_test_0(void) {
11     return 0;
12 }
13 // zx_status_t zx_syscall_test_1
sys_syscall_test_1(int a)14 zx_status_t sys_syscall_test_1(int a) {
15     return a;
16 }
17 // zx_status_t zx_syscall_test_2
sys_syscall_test_2(int a,int b)18 zx_status_t sys_syscall_test_2(int a, int b) {
19     return a + b;
20 }
21 // zx_status_t zx_syscall_test_3
sys_syscall_test_3(int a,int b,int c)22 zx_status_t sys_syscall_test_3(int a, int b, int c) {
23     return a + b + c;
24 }
25 // zx_status_t zx_syscall_test_4
sys_syscall_test_4(int a,int b,int c,int d)26 zx_status_t sys_syscall_test_4(int a, int b, int c, int d) {
27     return a + b + c + d;
28 }
29 // zx_status_t zx_syscall_test_5
sys_syscall_test_5(int a,int b,int c,int d,int e)30 zx_status_t sys_syscall_test_5(int a, int b, int c, int d, int e) {
31     return a + b + c + d + e;
32 }
33 // zx_status_t zx_syscall_test_6
sys_syscall_test_6(int a,int b,int c,int d,int e,int f)34 zx_status_t sys_syscall_test_6(int a, int b, int c, int d, int e, int f) {
35     return a + b + c + d + e + f;
36 }
37 // zx_status_t zx_syscall_test_7
sys_syscall_test_7(int a,int b,int c,int d,int e,int f,int g)38 zx_status_t sys_syscall_test_7(int a, int b, int c, int d, int e, int f, int g) {
39     return a + b + c + d + e + f + g;
40 }
41 // zx_status_t zx_syscall_test_8
sys_syscall_test_8(int a,int b,int c,int d,int e,int f,int g,int h)42 zx_status_t sys_syscall_test_8(int a, int b, int c, int d, int e, int f, int g, int h) {
43     return a + b + c + d + e + f + g + h;
44 }
45 // zx_status_t zx_syscall_test_wrapper
sys_syscall_test_wrapper(int a,int b,int c)46 zx_status_t sys_syscall_test_wrapper(int a, int b, int c) {
47     return a + b + c;
48 }
49