process_utils: hide unnecessary symbols

parent 64bcba9f
......@@ -343,6 +343,7 @@ lxc_attach_SOURCES = tools/lxc_attach.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
rexec.c rexec.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
......@@ -363,6 +364,7 @@ lxc_autostart_SOURCES = tools/lxc_autostart.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
......@@ -382,6 +384,7 @@ lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
......@@ -401,6 +404,7 @@ lxc_config_SOURCES = tools/lxc_config.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_config_SOURCES += seccomp.c lxcseccomp.h
......@@ -420,6 +424,7 @@ lxc_console_SOURCES = tools/lxc_console.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_console_SOURCES += seccomp.c lxcseccomp.h
......@@ -439,6 +444,7 @@ lxc_destroy_SOURCES = tools/lxc_destroy.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
......@@ -458,6 +464,7 @@ lxc_device_SOURCES = tools/lxc_device.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_device_SOURCES += seccomp.c lxcseccomp.h
......@@ -477,6 +484,7 @@ lxc_execute_SOURCES = tools/lxc_execute.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_execute_SOURCES += seccomp.c lxcseccomp.h
......@@ -496,6 +504,7 @@ lxc_freeze_SOURCES = tools/lxc_freeze.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
......@@ -515,6 +524,7 @@ lxc_info_SOURCES = tools/lxc_info.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_info_SOURCES += seccomp.c lxcseccomp.h
......@@ -536,6 +546,7 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
......@@ -556,6 +567,7 @@ lxc_ls_SOURCES = tools/lxc_ls.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_ls_SOURCES += seccomp.c lxcseccomp.h
......@@ -575,6 +587,7 @@ lxc_copy_SOURCES = tools/lxc_copy.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
storage/storage_utils.c storage/storage_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
......@@ -595,6 +608,7 @@ lxc_start_SOURCES = tools/lxc_start.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_start_SOURCES += seccomp.c lxcseccomp.h
......@@ -615,6 +629,7 @@ lxc_stop_SOURCES = tools/lxc_stop.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_stop_SOURCES += seccomp.c lxcseccomp.h
......@@ -635,6 +650,7 @@ lxc_top_SOURCES = tools/lxc_top.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h
......@@ -654,6 +670,7 @@ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
......@@ -673,6 +690,7 @@ lxc_unshare_SOURCES = tools/lxc_unshare.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h \
syscall_numbers.h \
syscall_wrappers.h
......@@ -694,6 +712,7 @@ lxc_wait_SOURCES = tools/lxc_wait.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h
......@@ -713,6 +732,7 @@ lxc_create_SOURCES = tools/lxc_create.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
storage/storage_utils.c storage/storage_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
......@@ -733,6 +753,7 @@ lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
......@@ -752,6 +773,7 @@ lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h
if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
......@@ -841,6 +863,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
string_utils.c string_utils.h \
syscall_wrappers.h \
utils.c utils.h
......
......@@ -209,7 +209,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...
* - should call lxc_raw_getpid():
* The child should use lxc_raw_getpid() to retrieve its pid.
*/
extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd);
__hidden extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd);
/*
......@@ -239,8 +239,8 @@ extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd);
* - must call lxc_raw_getpid():
* The child must use lxc_raw_getpid() to retrieve its pid.
*/
extern pid_t lxc_raw_clone(unsigned long flags, int *pidfd);
extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd);
__hidden extern pid_t lxc_raw_clone(unsigned long flags, int *pidfd);
__hidden extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd);
/*
* lxc_raw_clone_cb() - create a new process
......@@ -253,8 +253,8 @@ extern pid_t lxc_raw_legacy_clone(unsigned long flags, int *pidfd);
* All other comments that apply to lxc_raw_clone() apply to lxc_raw_clone_cb()
* as well.
*/
extern pid_t lxc_raw_clone_cb(int (*fn)(void *), void *args,
unsigned long flags, int *pidfd);
__hidden extern pid_t lxc_raw_clone_cb(int (*fn)(void *), void *args, unsigned long flags,
int *pidfd);
#ifndef HAVE_EXECVEAT
static inline int execveat(int dirfd, const char *pathname, char *const argv[],
......@@ -285,7 +285,7 @@ static inline pid_t lxc_raw_gettid(void)
#endif
}
extern int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
unsigned int flags);
__hidden extern int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
unsigned int flags);
#endif /* __LXC_PROCESS_UTILS_H */
......@@ -23,6 +23,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......@@ -45,6 +46,7 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......@@ -67,6 +69,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......@@ -91,6 +94,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......@@ -133,6 +137,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......@@ -178,6 +183,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/network.c ../lxc/network.h \
../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP
lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment