diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-05-23 17:53:19 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-05-23 17:53:19 +0000 |
commit | 7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f (patch) | |
tree | 149a19f5f50b1433df714885fd986cdaefbee919 /include/rpc | |
parent | e975f7ef2955c34c381d84b2494b47018c3461ab (diff) | |
download | glibc-7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f.tar glibc-7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f.tar.gz glibc-7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f.tar.bz2 glibc-7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f.zip |
2005-05-23 Ulrich Drepper <drepper@redhat.com>
* sunrpc/pm_getport.c (__get_socket): New function.
(pmap_getport): Use it to open a non-reserved socket to the portmapper
for TCP.
* include/rpc/pmap_clnt.h (__get_socket): Declare.
* sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
non-reserved socket for the portmapper.
Based on a patch by Steve Dickson <steved@redhat.com>.
* sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
If we tried looking at the usual range without success extend the
range to even lower ports.
Diffstat (limited to 'include/rpc')
-rw-r--r-- | include/rpc/pmap_clnt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h index 2d02ff2096..9a22082287 100644 --- a/include/rpc/pmap_clnt.h +++ b/include/rpc/pmap_clnt.h @@ -5,4 +5,8 @@ libc_hidden_proto (pmap_getport) libc_hidden_proto (pmap_set) libc_hidden_proto (pmap_unset) +/* Defined in pm_getport.c. */ +extern int __get_socket (struct sockaddr_in *saddr) + attribute_hidden internal_function; + #endif |