Replace gethostbyaddr(3) with getnameinfo(3). Remove the sigprocmask()
authorbluhm <bluhm@openbsd.org>
Wed, 20 Aug 2014 20:10:17 +0000 (20:10 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 20 Aug 2014 20:10:17 +0000 (20:10 +0000)
commitbd6df50781f819bb0c67c810e6f0e3efbc245a74
tree4544ab6559723257ea0c9accf1683e396a59d692
parentea1c22cc5a35d5df0962974c8bde288740f37101
Replace gethostbyaddr(3) with getnameinfo(3).  Remove the sigprocmask()
that was necessary for gethostbyaddr() because the latter is not
signal safe.  Change the return code semantics of priv_getnameinfo()
to match getnameinfo(3).
input and OK jca@
usr.sbin/syslogd/privsep.c
usr.sbin/syslogd/syslogd.c
usr.sbin/syslogd/syslogd.h