aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/tests/libdeep/libdeep.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rtld-elf/tests/libdeep/libdeep.c')
-rw-r--r--libexec/rtld-elf/tests/libdeep/libdeep.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/libexec/rtld-elf/tests/libdeep/libdeep.c b/libexec/rtld-elf/tests/libdeep/libdeep.c
new file mode 100644
index 000000000000..e570769300cf
--- /dev/null
+++ b/libexec/rtld-elf/tests/libdeep/libdeep.c
@@ -0,0 +1,28 @@
+/*-
+ *
+ * Copyright (C) 2023 NetApp, Inc.
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ */
+
+#include <stdio.h>
+
+int get_value(void);
+int proxy_get_value(void);
+void set_value(int);
+void proxy_set_value(int);
+
+int
+proxy_get_value(void)
+{
+
+ return (get_value());
+}
+
+void
+proxy_set_value(int val)
+{
+
+ return (set_value(val));
+}