61d4919378c44e0410bc54e4a72b3e16007cc3bf
[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 using the lttng_ust_getenv()
12 * infrastructure rather than using getenv() directly. This ensures that we
13 * don't trigger races between getenv() invoked by lttng-ust listener threads
14 * invoked concurrently with setenv() called by an otherwise single-threaded
15 * application thread. (the application is not aware that it runs with
16 * lttng-ust)
17 */
18
19 char *lttng_ust_getenv(const char *name)
20 __attribute__((visibility("hidden")));
21
22 void lttng_ust_getenv_init(void)
23 __attribute__((visibility("hidden")));
24
25 #endif /* _COMPAT_GETENV_H */
This page took 0.030112 seconds and 3 git commands to generate.