ctdb-common: Move ctdb_get_peer_pid() to system.[ch]
authorMartin Schwenke <martin@meltin.net>
Thu, 28 Jun 2018 10:35:56 +0000 (20:35 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Jul 2018 06:51:21 +0000 (08:51 +0200)
commit1d7d80451bc4fea12d313b911924ae89901d99a7
treea8fcaab38a649141ebc36021127f57d34b27bd26
parent8fcd12ba29cd1d23e0283cad187ae8d35c8c6fcc
ctdb-common: Move ctdb_get_peer_pid() to system.[ch]

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

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