]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/monitor.c
rename functions which clash with libsystemd's
authorSerge Hallyn <shallyn@cisco.com>
Sat, 22 Apr 2023 00:10:14 +0000 (19:10 -0500)
committerSerge Hallyn <shallyn@cisco.com>
Sat, 22 Apr 2023 00:12:21 +0000 (19:12 -0500)
commit539c397725bbe948ab39524ea71bd4ab7cbd4bd7
tree1e96392f11af7794f4dc47e3c04bbc14c1498806
parenta7dcde0386519803906666614683a81b3f4d2c27
rename functions which clash with libsystemd's

If statically linking against both liblxc and libsystemd, some
function names conflict:

mkdir_p fd_cloexec path_simplify is_dir is_fs_type

Rename those to lxc_\0, as:

for sym in mkdir_p fd_cloexec path_simplify is_dir is_fs_type; do
git grep "$sym" | awk -F: '{ print $1 }' | sort | uniq | xargs sed -i "s/$sym/lxc_$sym/g"
done

(the above loop wrongly replaces is_dir in meson.build, but
c'est la vie)

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
31 files changed:
src/lxc/attach.c
src/lxc/cgroups/cgfsng.c
src/lxc/cgroups/cgroup_utils.c
src/lxc/conf.c
src/lxc/confile.c
src/lxc/confile_utils.c
src/lxc/criu.c
src/lxc/file_utils.c
src/lxc/file_utils.h
src/lxc/lsm/apparmor.c
src/lxc/lxccontainer.c
src/lxc/lxclock.c
src/lxc/monitor.c
src/lxc/pam/pam_cgfs.c
src/lxc/storage/dir.c
src/lxc/storage/loop.c
src/lxc/storage/lvm.c
src/lxc/storage/overlay.c
src/lxc/storage/rbd.c
src/lxc/storage/storage.c
src/lxc/storage/storage.h
src/lxc/storage/zfs.c
src/lxc/string_utils.c
src/lxc/string_utils.h
src/lxc/terminal.c
src/lxc/tools/lxc_copy.c
src/lxc/tools/lxc_create.c
src/lxc/utils.c
src/lxc/utils.h
src/tests/lxc-test-utils.c
src/tests/mount_injection.c