X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Fgetenv.h;h=a5dffb24dc324fe5b08d7ce97d46a92f980abd84;hb=31624f6cf986d7e7761847f66562c97bc773a02c;hp=c504ecbdf0dfc3176a623f0fdfb839ea0a08f281;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/liblttng-ust/getenv.h b/liblttng-ust/getenv.h index c504ecbd..a5dffb24 100644 --- a/liblttng-ust/getenv.h +++ b/liblttng-ust/getenv.h @@ -8,16 +8,18 @@ #define _COMPAT_GETENV_H /* - * Always add the lttng-ust environment variables to lttng_getenv() - * infrastructure rather than using getenv() directly from lttng-ust. - * This ensures that we don't trigger races between getenv() invoked by - * lttng-ust listener threads invoked concurrently with setenv() called - * by an otherwise single-threaded application thread. (the application - * is not aware that it runs with lttng-ust) + * Always add the lttng-ust environment variables using the lttng_ust_getenv() + * infrastructure rather than using getenv() directly. This ensures that we + * don't trigger races between getenv() invoked by lttng-ust listener threads + * invoked concurrently with setenv() called by an otherwise single-threaded + * application thread. (the application is not aware that it runs with + * lttng-ust) */ -char *lttng_getenv(const char *name); +__attribute__((visibility("hidden"))) +char *lttng_ust_getenv(const char *name); +__attribute__((visibility("hidden"))) void lttng_ust_getenv_init(void); #endif /* _COMPAT_GETENV_H */