Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust / getenv.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _COMPAT_GETENV_H
8 #define _COMPAT_GETENV_H
9
10 /*
11 * Always add the lttng-ust environment variables to lttng_getenv()
12 * infrastructure rather than using getenv() directly from lttng-ust.
13 * This ensures that we don't trigger races between getenv() invoked by
14 * lttng-ust listener threads invoked concurrently with setenv() called
15 * by an otherwise single-threaded application thread. (the application
16 * is not aware that it runs with lttng-ust)
17 */
18
19 char *lttng_getenv(const char *name);
20
21 void lttng_ust_getenv_init(void);
22
23 #endif /* _COMPAT_GETENV_H */
This page took 0.03341 seconds and 4 git commands to generate.