nfs-utils: convert nfssvc_setfds to use getaddrinfo
authorJeff Layton <jlayton@redhat.com>
Fri, 14 Aug 2009 17:30:04 +0000 (13:30 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 14 Aug 2009 17:30:04 +0000 (13:30 -0400)
commit094b26031a376050d8610d055eb01c7949ad6547
tree90673db324c93714a41e686fe5da7f2de2888cf9
parent4c477855cd025a18ac9decaf1bc9002aaae75689
nfs-utils: convert nfssvc_setfds to use getaddrinfo

Convert nfssvc_setfds to use getaddrinfo. Change the args that it takes
and fix up nfssvc function to pass in the proper args. The things that
nfssvc has to do to call the new nfssvc_setfds is a little cumbersome
for now, but that will eventually be cleaned up in a later patch.

nfs-utils: break up the nfssvc interface

Currently, the only public interface to the routines in nfssvc.c is
nfssvc(). This means that we do an awful lot of work after closing
stderr that could be done while it's still available.

Add prototypes to the header so that more functions in nfssvc.c can be
called individually, and change the nfsd program to call those routines
individually.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsd/nfsd.c
utils/nfsd/nfssvc.c
utils/nfsd/nfssvc.h