[lxc-devel] [lxc/lxc] 74a392: Mark functions as static and arguments/arrays as c...

GitHub noreply at github.com
Thu Jan 2 15:56:18 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 74a3920a972e837263436bd67a73eabd42754124
      https://github.com/lxc/lxc/commit/74a3920a972e837263436bd67a73eabd42754124
  Author: Andrey Mazo <mazo at telum.ru>
  Date:   2014-01-02 (Thu, 02 Jan 2014)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/attach.h
    M src/lxc/bdev.c
    M src/lxc/bdev.h
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/confile.h
    M src/lxc/log.h
    M src/lxc/lxc_autostart.c
    M src/lxc/lxc_clone.c
    M src/lxc/lxc_config.c
    M src/lxc/lxc_create.c
    M src/lxc/lxc_info.c
    M src/lxc/lxc_init.c
    M src/lxc/lxc_snapshot.c
    M src/lxc/lxc_stop.c
    M src/lxc/lxc_unshare.c
    M src/lxc/lxc_user_nic.c
    M src/lxc/lxc_usernsexec.c
    M src/lxc/lxccontainer.c
    M src/lxc/lxclock.c
    M src/lxc/namespace.c
    M src/lxc/network.c
    M src/lxc/parse.c
    M src/lxc/parse.h
    M src/lxc/start.c
    M src/lxc/start.h
    M src/lxc/state.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Mark functions as static and arguments/arrays as const where possible

Mark most of functions that are used within only one file as static.
After 95ee490bbdb97ab2b4f1dfa63a0a26e0dd1c2f17 it's easy to prove they
are not in public API.
Several arrays and structs are also marked static.
This prevents them from being exported from liblxc.so

List of removed previously exported symbols:
bdevs
btrfs_ops
check_autodev
create_partial
dir_ops
dump_stacktrace
get_mapped_rootid
get_next_index
lock_mutex
loop_ops
lvm_ops
lxc_abort
lxcapi_clone
lxc_attach_drop_privs
lxc_attach_get_init_uidgi
lxc_attach_getpwshell
lxc_attach_remount_sys_pr
lxc_attach_set_environmen
lxc_attach_to_ns
lxc_clear_saved_nics
lxc_config_readline
lxc_devs
lxc_free_idmap
lxc_global_config_value
lxc_poll
lxc_proc_get_context_info
lxc_set_state
lxc_spawn
mk_devtmpfs
mount_check_fs
ongoing_create
overlayfs_destroy
overlayfs_ops
prepend_lxc_header
remove_partial
save_phys_nics
setup_pivot_root
signames
static_mutex
thread_mutex
unlock_mutex
unpriv_assign_nic
zfs_ops

Signed-off-by: Andrey Mazo <mazo at telum.ru>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the lxc-devel mailing list