(_nss_nis_getservbyname_r): If protocol == NULL, try name/tcp and name/udp
authordrepper <drepper>
Wed, 31 Mar 2004 00:15:31 +0000 (00:15 +0000)
committerdrepper <drepper>
Wed, 31 Mar 2004 00:15:31 +0000 (00:15 +0000)
commit5e31cf132197f53bb0376b2fc5bb4ff50c917eca
tree4202034fb93b83acbc6d610c3c12c3274da403ae
parent277cdbcd8230e87f88cae2185403203fb4195c4f
(_nss_nis_getservbyname_r): If protocol == NULL, try name/tcp and name/udp
first before falling back intothe sequential scanning.
Use services.byname database for sequential scanning.
(_nss_nis_getservbyport_r): Likewise.  Just allocate sizeof (int) * 3
chars for integer.

(_nss_nis_getservbyport_r): Convert proto to host by order for snprintf.
nis/nss_nis/nis-service.c