aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/tests/libval/libval.c
blob: 97c97a0310a7ea2e84e103ad993ac89c3d81edd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*-
 *
 * Copyright (C) 2023 NetApp, Inc.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 *
 */

static int val;

int get_value(void);
void set_value(int);

int
get_value(void)
{

	return (val);
}

void
set_value(int nval)
{

	val = nval;
}