diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-05-23 17:14:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-05-23 17:14:22 +0000 |
commit | faf10b955b029f8a5c569570bcdbcc56bdf0ce6f (patch) | |
tree | 8332c8127772d2ba40d424cb4cc76cf53cbeb9de /include | |
parent | 3a0cd663c2abc74052d79747777141fad142c52f (diff) | |
download | glibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.tar glibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.tar.gz glibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.tar.bz2 glibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.zip |
* 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.
range to even lower ports.
Diffstat (limited to 'include')
-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 |