Blame SOURCES/autofs-5.1.7-remove-mount_x-and-rpcgen-dependencies.patch

96dc52
autofs-5.1.7 - remove mount.x and rpcgen dependencies
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
Adding a local implementation to get the exports list from a server
96dc52
means the the rpcgen generataed code is no longer needed so remove
96dc52
mount.x and the build dependencies.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG           |    1 
96dc52
 Makefile.conf.in    |    1 
96dc52
 autofs.spec         |    2 
96dc52
 configure           |   58 ---------
96dc52
 configure.in        |    1 
96dc52
 include/automount.h |    1 
96dc52
 include/config.h.in |    3 
96dc52
 lib/Makefile        |   26 ----
96dc52
 lib/mount.x         |  345 ---------------------------------------------------
96dc52
 9 files changed, 5 insertions(+), 433 deletions(-)
96dc52
 delete mode 100644 lib/mount.x
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index 84050e91..19af245e 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -1,5 +1,6 @@
96dc52
 
96dc52
 - add xdr_exports().
96dc52
+- remove mount.x and rpcgen dependencies.
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
diff --git a/Makefile.conf.in b/Makefile.conf.in
96dc52
index df678eec..12f26eb8 100644
96dc52
--- a/Makefile.conf.in
96dc52
+++ b/Makefile.conf.in
96dc52
@@ -65,7 +65,6 @@ FEDFS = @ENABLE_FEDFS@
96dc52
 
96dc52
 LEX = @PATH_LEX@
96dc52
 YACC = @PATH_YACC@
96dc52
-RPCGEN = @PATH_RPCGEN@
96dc52
 RANLIB = @PATH_RANLIB@
96dc52
 
96dc52
 # Use libtirpc if requested and available
96dc52
diff --git a/autofs.spec b/autofs.spec
96dc52
index 3c2b144a..823735a3 100644
96dc52
--- a/autofs.spec
96dc52
+++ b/autofs.spec
96dc52
@@ -39,7 +39,7 @@ BuildRequires: libtirpc-devel
96dc52
 %endif
96dc52
 BuildRequires: autoconf, openldap-devel, bison, flex, libxml2-devel
96dc52
 BuildRequires: cyrus-sasl-devel, openssl-devel, util-linux
96dc52
-BuildRequires: libtirpc-devel, rpcgen, libnsl2-devel, krb5-devel
96dc52
+BuildRequires: libtirpc-devel, libnsl2-devel, krb5-devel
96dc52
 Requires: chkconfig
96dc52
 Requires: /bin/bash sed grep /bin/ps
96dc52
 %if %{with_systemd}
96dc52
diff --git a/configure b/configure
96dc52
index de968f0e..3c5fe78b 100755
96dc52
--- a/configure
96dc52
+++ b/configure
96dc52
@@ -650,8 +650,6 @@ XML_CFLAGS
96dc52
 ENABLE_FEDFS
96dc52
 sssldir
96dc52
 HAVE_SSS_AUTOFS
96dc52
-PATH_RPCGEN
96dc52
-RPCGEN
96dc52
 PATH_RANLIB
96dc52
 RANLIB
96dc52
 PATH_YACC
96dc52
@@ -4205,62 +4203,6 @@ else
96dc52
   as_fn_error $? "required program RANLIB not found" "$LINENO" 5
96dc52
 fi
96dc52
 
96dc52
-for ac_prog in rpcgen
96dc52
-do
96dc52
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
96dc52
-set dummy $ac_prog; ac_word=$2
96dc52
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
96dc52
-$as_echo_n "checking for $ac_word... " >&6; }
96dc52
-if ${ac_cv_path_RPCGEN+:} false; then :
96dc52
-  $as_echo_n "(cached) " >&6
96dc52
-else
96dc52
-  case $RPCGEN in
96dc52
-  [\\/]* | ?:[\\/]*)
96dc52
-  ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
96dc52
-  ;;
96dc52
-  *)
96dc52
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96dc52
-for as_dir in $searchpath
96dc52
-do
96dc52
-  IFS=$as_save_IFS
96dc52
-  test -z "$as_dir" && as_dir=.
96dc52
-    for ac_exec_ext in '' $ac_executable_extensions; do
96dc52
-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96dc52
-    ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
96dc52
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96dc52
-    break 2
96dc52
-  fi
96dc52
-done
96dc52
-  done
96dc52
-IFS=$as_save_IFS
96dc52
-
96dc52
-  ;;
96dc52
-esac
96dc52
-fi
96dc52
-RPCGEN=$ac_cv_path_RPCGEN
96dc52
-if test -n "$RPCGEN"; then
96dc52
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
96dc52
-$as_echo "$RPCGEN" >&6; }
96dc52
-else
96dc52
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96dc52
-$as_echo "no" >&6; }
96dc52
-fi
96dc52
-
96dc52
-
96dc52
-  test -n "$RPCGEN" && break
96dc52
-done
96dc52
-
96dc52
-if test -n "$RPCGEN"; then
96dc52
-
96dc52
-cat >>confdefs.h <<_ACEOF
96dc52
-#define PATH_RPCGEN "$RPCGEN"
96dc52
-_ACEOF
96dc52
-
96dc52
-  PATH_RPCGEN="$RPCGEN"
96dc52
-else
96dc52
-  as_fn_error $? "required program RPCGEN not found" "$LINENO" 5
96dc52
-fi
96dc52
-
96dc52
 
96dc52
 if test -z "$sssldir"; then
96dc52
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sssd autofs library" >&5
96dc52
diff --git a/configure.in b/configure.in
96dc52
index a38d6655..e774b4cc 100644
96dc52
--- a/configure.in
96dc52
+++ b/configure.in
96dc52
@@ -164,7 +164,6 @@ AF_PATH_INCLUDE(E4FSCK, fsck.ext4 e4fsck, , $searchpath)
96dc52
 AF_CHECK_PROG(LEX, flex lex, , $searchpath)
96dc52
 AF_CHECK_PROG(YACC, bison, , $searchpath)
96dc52
 AF_CHECK_PROG(RANLIB, ranlib, , $searchpath)
96dc52
-AF_CHECK_PROG(RPCGEN, rpcgen, , $searchpath)
96dc52
 
96dc52
 AF_CHECK_SSS_LIB(SSS_AUTOFS, libsss_autofs.so)
96dc52
 AC_SUBST(HAVE_SSS_AUTOFS)
96dc52
diff --git a/include/automount.h b/include/automount.h
96dc52
index 1ae40786..2f09e8e7 100644
96dc52
--- a/include/automount.h
96dc52
+++ b/include/automount.h
96dc52
@@ -32,7 +32,6 @@
96dc52
 #include "macros.h"
96dc52
 #include "log.h"
96dc52
 #include "rpc_subs.h"
96dc52
-#include "mounts.h"
96dc52
 #include "parse_subs.h"
96dc52
 #include "mounts.h"
96dc52
 #include "dev-ioctl-lib.h"
96dc52
diff --git a/include/config.h.in b/include/config.h.in
96dc52
index a4879494..4e36b390 100644
96dc52
--- a/include/config.h.in
96dc52
+++ b/include/config.h.in
96dc52
@@ -135,9 +135,6 @@
96dc52
 /* define if you have RANLIB */
96dc52
 #undef PATH_RANLIB
96dc52
 
96dc52
-/* define if you have RPCGEN */
96dc52
-#undef PATH_RPCGEN
96dc52
-
96dc52
 /* define if you have UMOUNT */
96dc52
 #undef PATH_UMOUNT
96dc52
 
96dc52
diff --git a/lib/Makefile b/lib/Makefile
96dc52
index 83a80a1e..d18c67b5 100644
96dc52
--- a/lib/Makefile
96dc52
+++ b/lib/Makefile
96dc52
@@ -8,10 +8,9 @@ include ../Makefile.rules
96dc52
 SRCS = cache.c cat_path.c rpc_subs.c mounts.c log.c nsswitch.c \
96dc52
 	nss_tok.c nss_parse.tab.c args.c alarm.c macros.c defaults.c \
96dc52
 	parse_subs.c dev-ioctl-lib.c
96dc52
-RPCS = mount.h mount_clnt.c mount_xdr.c
96dc52
-OBJS = cache.o mount_clnt.o mount_xdr.o cat_path.o rpc_subs.o \
96dc52
-	mounts.o log.o nsswitch.o nss_tok.o nss_parse.tab.o args.o \
96dc52
-	alarm.o macros.o defaults.o parse_subs.o dev-ioctl-lib.o
96dc52
+OBJS = cache.o cat_path.o rpc_subs.o mounts.o log.o nsswitch.o \
96dc52
+	nss_tok.o nss_parse.tab.o args.o alarm.o macros.o defaults.o \
96dc52
+	parse_subs.o dev-ioctl-lib.o
96dc52
 
96dc52
 YACCSRC = nss_tok.c nss_parse.tab.c nss_parse.tab.h
96dc52
 
96dc52
@@ -33,23 +32,6 @@ libautofs.so: $(OBJS)
96dc52
 	$(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $^ $(LDFLAGS) $(LIBS)
96dc52
 	$(STRIP) $*.so
96dc52
 
96dc52
-mount.h: mount.x
96dc52
-	$(RPCGEN) -h -o mount.h mount.x
96dc52
-
96dc52
-mount_clnt.c: mount.h
96dc52
-	$(RPCGEN) -l -o mount_clnt.c mount.x
96dc52
-
96dc52
-mount_clnt.o: mount_clnt.c
96dc52
-	$(CC) $(CFLAGS) -o mount_clnt.o -c mount_clnt.c
96dc52
-	$(STRIP) mount_clnt.o
96dc52
-
96dc52
-mount_xdr.c: mount.h
96dc52
-	$(RPCGEN) -c -o mount_xdr.c mount.x
96dc52
-
96dc52
-mount_xdr.o: mount_xdr.c
96dc52
-	$(CC) $(CFLAGS) -Wno-unused-variable -o mount_xdr.o -c mount_xdr.c
96dc52
-	$(STRIP) mount_xdr.o
96dc52
-
96dc52
 nss_tok.c: nss_tok.l
96dc52
 	$(LEX) -o$@ -Pnss_ $?
96dc52
 
96dc52
@@ -60,8 +42,6 @@ nss_tok.o: nss_tok.c nss_parse.tab.h
96dc52
 
96dc52
 nss_parse.tab.o: nss_parse.tab.c nss_parse.tab.h
96dc52
 
96dc52
-rpc_subs.o: mount.h
96dc52
-
96dc52
 install: all
96dc52
 	install -d -m 755 $(INSTALLROOT)$(autofslibdir)
96dc52
 	install -c $(LIB) -m 755 $(INSTALLROOT)$(sharedlibdir)
96dc52
diff --git a/lib/mount.x b/lib/mount.x
96dc52
deleted file mode 100644
96dc52
index f504e7cf..00000000
96dc52
--- a/lib/mount.x
96dc52
+++ /dev/null
96dc52
@@ -1,345 +0,0 @@
96dc52
-%/*
96dc52
-% * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
96dc52
-% * unrestricted use provided that this legend is included on all tape
96dc52
-% * media and as a part of the software program in whole or part.  Users
96dc52
-% * may copy or modify Sun RPC without charge, but are not authorized
96dc52
-% * to license or distribute it to anyone else except as part of a product or
96dc52
-% * program developed by the user or with the express written consent of
96dc52
-% * Sun Microsystems, Inc.
96dc52
-% *
96dc52
-% * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
96dc52
-% * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
96dc52
-% * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
96dc52
-% *
96dc52
-% * Sun RPC is provided with no support and without any obligation on the
96dc52
-% * part of Sun Microsystems, Inc. to assist in its use, correction,
96dc52
-% * modification or enhancement.
96dc52
-% *
96dc52
-% * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
96dc52
-% * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
96dc52
-% * OR ANY PART THEREOF.
96dc52
-% *
96dc52
-% * In no event will Sun Microsystems, Inc. be liable for any lost revenue
96dc52
-% * or profits or other special, indirect and consequential damages, even if
96dc52
-% * Sun has been advised of the possibility of such damages.
96dc52
-% *
96dc52
-% * Sun Microsystems, Inc.
96dc52
-% * 2550 Garcia Avenue
96dc52
-% * Mountain View, California  94043
96dc52
-% */
96dc52
-
96dc52
-%/*
96dc52
-% * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
96dc52
-% */
96dc52
-%
96dc52
-%/* from @(#)mount.x	1.3 91/03/11 TIRPC 1.0 */
96dc52
-
96dc52
-/*
96dc52
- * Protocol description for the mount program
96dc52
- */
96dc52
-
96dc52
-#ifdef RPC_HDR
96dc52
-%#ifndef _rpcsvc_mount_h
96dc52
-%#define _rpcsvc_mount_h
96dc52
-%#include <memory.h>
96dc52
-#endif
96dc52
-
96dc52
-const MNTPATHLEN = 1024;	/* maximum bytes in a pathname argument */
96dc52
-const MNTNAMLEN = 255;		/* maximum bytes in a name argument */
96dc52
-const FHSIZE = 32;		/* size in bytes of a file handle */
96dc52
-
96dc52
-/*
96dc52
- * The fhandle is the file handle that the server passes to the client.
96dc52
- * All file operations are done using the file handles to refer to a file
96dc52
- * or a directory. The file handle can contain whatever information the
96dc52
- * server needs to distinguish an individual file.
96dc52
- */
96dc52
-typedef opaque fhandle[FHSIZE];	
96dc52
-
96dc52
-/*
96dc52
- * If a status of zero is returned, the call completed successfully, and 
96dc52
- * a file handle for the directory follows. A non-zero status indicates
96dc52
- * some sort of error. The status corresponds with UNIX error numbers.
96dc52
- */
96dc52
-union fhstatus switch (unsigned fhs_status) {
96dc52
-case 0:
96dc52
-	fhandle fhs_fhandle;
96dc52
-default:
96dc52
-	void;
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * The type dirpath is the pathname of a directory
96dc52
- */
96dc52
-typedef string dirpath<MNTPATHLEN>;
96dc52
-
96dc52
-/*
96dc52
- * The type name is used for arbitrary names (hostnames, groupnames)
96dc52
- */
96dc52
-typedef string name<MNTNAMLEN>;
96dc52
-
96dc52
-/*
96dc52
- * A list of who has what mounted
96dc52
- */
96dc52
-typedef struct mountbody *mountlist;
96dc52
-struct mountbody {
96dc52
-	name ml_hostname;
96dc52
-	dirpath ml_directory;
96dc52
-	mountlist ml_next;
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * A list of netgroups
96dc52
- */
96dc52
-typedef struct groupnode *groups;
96dc52
-struct groupnode {
96dc52
-	name gr_name;
96dc52
-	groups gr_next;
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * A list of what is exported and to whom
96dc52
- */
96dc52
-typedef struct exportnode *exports;
96dc52
-struct exportnode {
96dc52
-	dirpath ex_dir;
96dc52
-	groups ex_groups;
96dc52
-	exports ex_next;
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * POSIX pathconf information
96dc52
- */
96dc52
-struct ppathcnf {
96dc52
-	int	pc_link_max;	/* max links allowed */
96dc52
-	short	pc_max_canon;	/* max line len for a tty */
96dc52
-	short	pc_max_input;	/* input a tty can eat all at once */
96dc52
-	short	pc_name_max;	/* max file name length (dir entry) */
96dc52
-	short	pc_path_max;	/* max path name length (/x/y/x/.. ) */
96dc52
-	short	pc_pipe_buf;	/* size of a pipe (bytes) */
96dc52
-	u_char	pc_vdisable;	/* safe char to turn off c_cc[i] */
96dc52
-	char	pc_xxx;		/* alignment padding; cc_t == char */
96dc52
-	short	pc_mask[2];	/* validity and boolean bits */
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * NFSv3 file handle
96dc52
- */
96dc52
-const FHSIZE3 =	64;		/* max size of NFSv3 file handle in bytes */
96dc52
-typedef opaque		fhandle3<FHSIZE3>;
96dc52
-
96dc52
-/*
96dc52
- * NFSv3 mount status
96dc52
- */
96dc52
-enum mountstat3 {
96dc52
-	MNT_OK			= 0,	/* no error */
96dc52
-	MNT3ERR_PERM		= 1,	/* not owner */
96dc52
-	MNT3ERR_NOENT		= 2,	/* no such file or directory */
96dc52
-	MNT3ERR_IO		= 5,	/* I/O error */
96dc52
-	MNT3ERR_ACCES		= 13,	/* Permission denied */
96dc52
-	MNT3ERR_NOTDIR		= 20,	/* Not a directory */
96dc52
-	MNT3ERR_INVAL		= 22,	/* Invalid argument */
96dc52
-	MNT3ERR_NAMETOOLONG	= 63,	/* File name too long */
96dc52
-	MNT3ERR_NOTSUPP		= 10004,/* Operation not supported */
96dc52
-	MNT3ERR_SERVERFAULT	= 10006	/* A failure on the server */
96dc52
-};
96dc52
-
96dc52
-/*
96dc52
- * NFSv3 mount result
96dc52
- */
96dc52
-struct mountres3_ok {
96dc52
-	fhandle3	fhandle;
96dc52
-	int		auth_flavors<>;
96dc52
-};
96dc52
-
96dc52
-union mountres3 switch (mountstat3 fhs_status) {
96dc52
-case MNT_OK:
96dc52
-	mountres3_ok	mountinfo; /* File handle and supported flavors */
96dc52
-default:
96dc52
-	void;
96dc52
-};
96dc52
-
96dc52
-program MOUNTPROG {
96dc52
-	/*
96dc52
-	 * Version one of the mount protocol communicates with version two
96dc52
-	 * of the NFS protocol. The only connecting point is the fhandle 
96dc52
-	 * structure, which is the same for both protocols.
96dc52
-	 */
96dc52
-	version MOUNTVERS {
96dc52
-		/*
96dc52
-		 * Does no work. It is made available in all RPC services
96dc52
-		 * to allow server reponse testing and timing
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_NULL(void) = 0;
96dc52
-
96dc52
-		/*	
96dc52
-		 * If fhs_status is 0, then fhs_fhandle contains the
96dc52
-	 	 * file handle for the directory. This file handle may
96dc52
-		 * be used in the NFS protocol. This procedure also adds
96dc52
-		 * a new entry to the mount list for this client mounting
96dc52
-		 * the directory.
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		fhstatus 
96dc52
-		MOUNTPROC_MNT(dirpath) = 1;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns the list of remotely mounted filesystems. The 
96dc52
-		 * mountlist contains one entry for each hostname and 
96dc52
-		 * directory pair.
96dc52
-		 */
96dc52
-		mountlist
96dc52
-		MOUNTPROC_DUMP(void) = 2;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes the mount list entry for the directory
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_UMNT(dirpath) = 3;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes all of the mount list entries for this client
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_UMNTALL(void) = 4;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns a list of all the exported filesystems, and which
96dc52
-		 * machines are allowed to import it.
96dc52
-		 */
96dc52
-		exports
96dc52
-		MOUNTPROC_EXPORT(void)  = 5;
96dc52
-
96dc52
-		/*
96dc52
-		 * Identical to MOUNTPROC_EXPORT above
96dc52
-		 */
96dc52
-		exports
96dc52
-		MOUNTPROC_EXPORTALL(void) = 6;
96dc52
-	} = 1;
96dc52
-
96dc52
-	/*
96dc52
-	 * Version two of the mount protocol communicates with version two
96dc52
-	 * of the NFS protocol.
96dc52
-	 * The only difference from version one is the addition of a POSIX
96dc52
-	 * pathconf call.
96dc52
-	 */
96dc52
-	version MOUNTVERS_POSIX {
96dc52
-		/*
96dc52
-		 * Does no work. It is made available in all RPC services
96dc52
-		 * to allow server reponse testing and timing
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_NULL(void) = 0;
96dc52
-
96dc52
-		/*	
96dc52
-		 * If fhs_status is 0, then fhs_fhandle contains the
96dc52
-	 	 * file handle for the directory. This file handle may
96dc52
-		 * be used in the NFS protocol. This procedure also adds
96dc52
-		 * a new entry to the mount list for this client mounting
96dc52
-		 * the directory.
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		fhstatus 
96dc52
-		MOUNTPROC_MNT(dirpath) = 1;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns the list of remotely mounted filesystems. The 
96dc52
-		 * mountlist contains one entry for each hostname and 
96dc52
-		 * directory pair.
96dc52
-		 */
96dc52
-		mountlist
96dc52
-		MOUNTPROC_DUMP(void) = 2;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes the mount list entry for the directory
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_UMNT(dirpath) = 3;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes all of the mount list entries for this client
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC_UMNTALL(void) = 4;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns a list of all the exported filesystems, and which
96dc52
-		 * machines are allowed to import it.
96dc52
-		 */
96dc52
-		exports
96dc52
-		MOUNTPROC_EXPORT(void)  = 5;
96dc52
-
96dc52
-		/*
96dc52
-		 * Identical to MOUNTPROC_EXPORT above
96dc52
-		 */
96dc52
-		exports
96dc52
-		MOUNTPROC_EXPORTALL(void) = 6;
96dc52
-
96dc52
-		/*
96dc52
-		 * POSIX pathconf info (Sun hack)
96dc52
-		 */
96dc52
-		ppathcnf
96dc52
-		MOUNTPROC_PATHCONF(dirpath) = 7;
96dc52
-	} = 2;
96dc52
-
96dc52
-	/*
96dc52
-	 * Version 3 of the protocol is for NFSv3
96dc52
-	 */
96dc52
-	version MOUNTVERS_NFSV3 {
96dc52
-		/*
96dc52
-		 * Does no work. It is made available in all RPC services
96dc52
-		 * to allow server reponse testing and timing
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC3_NULL(void) = 0;
96dc52
-
96dc52
-		/*	
96dc52
-		 * If fhs_status is 0, then fhs_fhandle contains the
96dc52
-	 	 * file handle for the directory. This file handle may
96dc52
-		 * be used in the NFS protocol. This procedure also adds
96dc52
-		 * a new entry to the mount list for this client mounting
96dc52
-		 * the directory.
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		mountres3 
96dc52
-		MOUNTPROC3_MNT(dirpath) = 1;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns the list of remotely mounted filesystems. The 
96dc52
-		 * mountlist contains one entry for each hostname and 
96dc52
-		 * directory pair.
96dc52
-		 */
96dc52
-		mountlist
96dc52
-		MOUNTPROC3_DUMP(void) = 2;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes the mount list entry for the directory
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC3_UMNT(dirpath) = 3;
96dc52
-
96dc52
-		/*
96dc52
-		 * Removes all of the mount list entries for this client
96dc52
-		 * Unix authentication required.
96dc52
-		 */
96dc52
-		void
96dc52
-		MOUNTPROC3_UMNTALL(void) = 4;
96dc52
-
96dc52
-		/*
96dc52
-		 * Returns a list of all the exported filesystems, and which
96dc52
-		 * machines are allowed to import it.
96dc52
-		 */
96dc52
-		exports
96dc52
-		MOUNTPROC3_EXPORT(void)  = 5;
96dc52
-	} = 3;
96dc52
-} = 100005;
96dc52
-
96dc52
-#ifdef RPC_HDR
96dc52
-%#endif /*!_rpcsvc_mount_h*/
96dc52
-#endif