Fix: common: hide shm* util symbols
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 26 Apr 2021 23:21:53 +0000 (19:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Apr 2021 21:33:50 +0000 (17:33 -0400)
Internal symbols that are part of libcommon must be marked as "hidden".
Otherwise, the symbols are exported as part of liblttng-ctl.so.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I41e7746a8044e85a7d422f138654de1579bf22f1

src/common/shm.c
src/common/shm.h

index 647eeecbe215bc213e8e37197df502c599a128b5..7ccc3c0bc4ebb19aaea4c5e86d756c741833052f 100644 (file)
@@ -156,6 +156,7 @@ error:
  * This returned value is used by futex_wait_update() in futex.c to WAKE all
  * waiters which are UST application waiting for a session daemon.
  */
+LTTNG_HIDDEN
 char *shm_ust_get_mmap(char *shm_path, int global)
 {
        size_t mmap_size;
@@ -202,6 +203,7 @@ error:
 /*
  * shm_create_anonymous is never called concurrently within a process.
  */
+LTTNG_HIDDEN
 int shm_create_anonymous(const char *owner_name)
 {
        char tmp_name[NAME_MAX];
index d714506b85b2f4a472a8186fad47c621126ed6ca..0798fabceed9f66671623df3e0beb4f9e4c5a7fd 100644 (file)
@@ -9,8 +9,10 @@
 #ifndef _LTT_SHM_H
 #define _LTT_SHM_H
 
+LTTNG_HIDDEN
 char *shm_ust_get_mmap(char *shm_path, int global);
 
+LTTNG_HIDDEN
 int shm_create_anonymous(const char *owner_name);
 
 #endif /* _LTT_SHM_H */
This page took 0.027739 seconds and 5 git commands to generate.