xref: /freebsd/libexec/rtld-elf/tests/libdeep/libdeep.c (revision d9c543b6b0cabea6e6679d70b4e701018e7eab80)
1*d9c543b6SKyle Evans /*-
2*d9c543b6SKyle Evans  *
3*d9c543b6SKyle Evans  * Copyright (C) 2023 NetApp, Inc.
4*d9c543b6SKyle Evans  *
5*d9c543b6SKyle Evans  * SPDX-License-Identifier: BSD-2-Clause
6*d9c543b6SKyle Evans  *
7*d9c543b6SKyle Evans  */
8*d9c543b6SKyle Evans 
9*d9c543b6SKyle Evans #include <stdio.h>
10*d9c543b6SKyle Evans 
11*d9c543b6SKyle Evans int get_value(void);
12*d9c543b6SKyle Evans int proxy_get_value(void);
13*d9c543b6SKyle Evans void set_value(int);
14*d9c543b6SKyle Evans void proxy_set_value(int);
15*d9c543b6SKyle Evans 
16*d9c543b6SKyle Evans int
proxy_get_value(void)17*d9c543b6SKyle Evans proxy_get_value(void)
18*d9c543b6SKyle Evans {
19*d9c543b6SKyle Evans 
20*d9c543b6SKyle Evans 	return (get_value());
21*d9c543b6SKyle Evans }
22*d9c543b6SKyle Evans 
23*d9c543b6SKyle Evans void
proxy_set_value(int val)24*d9c543b6SKyle Evans proxy_set_value(int val)
25*d9c543b6SKyle Evans {
26*d9c543b6SKyle Evans 
27*d9c543b6SKyle Evans 	return (set_value(val));
28*d9c543b6SKyle Evans }
29