1 /* 2 */ 3 4 #include <sys/types.h> 5 #include <sys/stdint.h> 6 7 struct s1 { 8 int32_t f1_int; 9 char *f2_str; 10 short f3_short; 11 uint64_t f4_uint64; 12 intmax_t f5_intmax; 13 void* f6_ptr; 14 }; 15 16 struct s2 { 17 char f1_buf[30]; 18 struct s1 *f2_s1; 19 }; 20 21 struct s3 { 22 struct s1 f1_s1; 23 uint32_t f2_int32; 24 }; 25 26 int func1(uint64_t a, uint64_t b); 27 int compat_func1(int a, int b); 28 int func2(int64_t a, uint64_t b); 29 void func3(struct s1 *s); 30 void func4(struct s1 s); 31 int func5(int a, void *b, struct s2 *s); 32 int func6(char a, struct s3 *s); 33 34 int 35 func1(uint64_t a, uint64_t b) 36 { 37 return (a - b); 38 } 39 40 int 41 compat_func1(int a, int b) 42 { 43 return func1(a, b); 44 } 45 __sym_compat(func1, compat_func1, TEST_1.0); 46 47 int 48 func2(int64_t a, uint64_t b) 49 { 50 return (a - b); 51 } 52 53 void 54 func3(struct s1 *s) 55 { 56 } 57 58 void 59 func4(struct s1 s) 60 { 61 } 62 63 int 64 func5(int a, void *b, struct s2 *s) 65 { 66 return (0); 67 } 68 69 int 70 func6(char a, struct s3 *s) 71 { 72 return (0); 73 } 74