about summary refs log tree commit diff
path: root/include/rpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-05-23 17:14:22 +0000
committerUlrich Drepper <drepper@redhat.com>2005-05-23 17:14:22 +0000
commitfaf10b955b029f8a5c569570bcdbcc56bdf0ce6f (patch)
tree8332c8127772d2ba40d424cb4cc76cf53cbeb9de /include/rpc
parent3a0cd663c2abc74052d79747777141fad142c52f (diff)
downloadglibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.tar.gz
glibc-faf10b955b029f8a5c569570bcdbcc56bdf0ce6f.tar.xz
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/rpc')
-rw-r--r--include/rpc/pmap_clnt.h4
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