summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorhjl <hjl>2002-09-12 21:06:16 +0000
committerhjl <hjl>2002-09-12 21:06:16 +0000
commit87fe487c6f5abe9f40f2f036c3cf6c7f02fa0385 (patch)
tree15f6af17471f0fc489e236de98cf53fac64bf090 /support/include
parent55ce21003ee0fb12fe5ef70909cdc8ce00b803e4 (diff)
downloadnfs-utils-87fe487c6f5abe9f40f2f036c3cf6c7f02fa0385.tar.gz
nfs-utils-87fe487c6f5abe9f40f2f036c3cf6c7f02fa0385.tar.xz
nfs-utils-87fe487c6f5abe9f40f2f036c3cf6c7f02fa0385.zip
2002-09-12 H.J. Lu <hjl@lucon.org>
* configure.in: Check svctcp_socket and svcudp_socket. * configure: Regenerated. * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New. (HAVE_SVCUDP_SOCKET): New. * support/include/nfslib.h (svctcp_socket): New. (svcudp_socket): New. * support/nfs/Makefile (OBJS): Add svc_socket.o. * support/nfs/svc_socket.c: New. * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and svcudp_socket if port is unspecified. * utils/nfsd/nfsd.c (main): Call getservbyname for port. * utils/rquotad/rquota_svc.c: Include <nfslib.h>. (killer): New. Signal handler to unregister. (main): Use killer. Call svcudp_socket to get the default socket.
Diffstat (limited to 'support/include')
-rw-r--r--support/include/config.h.in8
-rw-r--r--support/include/nfslib.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/support/include/config.h.in b/support/include/config.h.in
index f8c1497..6d12cc6 100644
--- a/support/include/config.h.in
+++ b/support/include/config.h.in
@@ -9,6 +9,14 @@
*/
#undef HAVE_INNETGR
+/* Define this if you have svctcp_socket
+ */
+#undef HAVE_SVCTCP_SOCKET
+
+/* Define this if you have svcudp_socket
+ */
+#undef HAVE_SVCUDP_SOCKET
+
/* Define this if you want NFSv3 support compiled in
*/
#undef NFS3_SUPPORTED
diff --git a/support/include/nfslib.h b/support/include/nfslib.h
index 6bcc859..b95c782 100644
--- a/support/include/nfslib.h
+++ b/support/include/nfslib.h
@@ -125,4 +125,7 @@ struct nfs_fh_len * getfh_size(struct sockaddr *addr, const char *, int size);
/* lockd. */
int lockdsvc();
+extern int svctcp_socket (u_long __number, int __reuse);
+extern int svcudp_socket (u_long __number, int __reuse);
+
#endif /* NFSLIB_H */