ctdb-common: Move ctdb_system_check_iface_exists() to system.[ch]
authorMartin Schwenke <martin@meltin.net>
Thu, 28 Jun 2018 10:30:32 +0000 (20:30 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Jul 2018 06:51:21 +0000 (08:51 +0200)
commit8fcd12ba29cd1d23e0283cad187ae8d35c8c6fcc
treee5f307d2ab9f46ef884603a6775d32cfc7071987
parent2f0a4d20954bdcd5a6e8ea5c11224f5a2d4fe3d9
ctdb-common: Move ctdb_system_check_iface_exists() to system.[ch]

The system_<os>.c files contain a lot of duplication, making
maintenance difficult.  These functions are being merged into
system_socket.[ch] and system.[ch].

This function doesn't need ctdb_sock_addr so put it with general
system utilities.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system.c
ctdb/common/system.h
ctdb/common/system_aix.c
ctdb/common/system_freebsd.c
ctdb/common/system_gnu.c
ctdb/common/system_kfreebsd.c
ctdb/common/system_linux.c
ctdb/tests/cunit/porting_tests_001.sh