4.3BSD-UWisc/man/man3/mount.3r

.\" @(#)mount.3r 1.1 85/12/28 SMI; new on release 3.0
.TH MOUNT 3R "10 August 1985"
.SH NAME
mount \- keep track of remotely mounted filesystems
.SH SYNOPSIS
.ft B
#include <rpcsvc/mount.h>
.SH RPC INFO
.nf
program number:
	MOUNTPROG
.sp .5
xdr routines:
	xdr_exportbody(xdrs, ex)
		XDR *xdrs;
		struct exports *ex;
	xdr_exports(xdrs, ex);
		XDR *xdrs;
		struct exports **ex;
	xdr_fhandle(xdrs, fh);
		XDR *xdrs;
		fhandle_t *fp;
	xdr_fhstatus(xdrs, fhs);
		XDR *xdrs;
		struct fhstatus *fhs;
	xdr_groups(xdrs, gr);
		XDR *xdrs;
		struct groups *gr;
	xdr_mountbody(xdrs, ml)
		XDR *xdrs;
		struct mountlist *ml;
	xdr_mountlist(xdrs, ml);
		XDR *xdrs;
		struct mountlist **ml;
	xdr_path(xdrs, path);
		XDR *xdrs;
		char **path;
.sp .5
procs:
	MOUNTPROC_MNT
		argument of xdr_path, returns fhstatus.
		Requires unix authentication.
	MOUNTPROC_DUMP
		no args, returns struct mountlist
	MOUNTPROC_UMNT
		argument of xdr_path, no results.
		requires unix authentication.
	MOUNTPROC_UMNTALL
		no arguments, no results.
		requires unix authentication.
		umounts all remote mounts of sender.
	MOUNTPROC_EXPORT
	MOUNTPROC_EXPORTALL
		no args, returns struct exports
.sp .5
versions:
	MOUNTVERS_ORIG
.sp .5
structures:
	struct mountlist {		/* what is mounted */
		char *ml_name;
		char *ml_path;
		struct mountlist *ml_nxt;
	};
	struct fhstatus {
		int fhs_status;
		fhandle_t fhs_fh;
	};
	/*
	 * List of exported directories
	 * An export entry with ex_groups
	 * NULL indicates an entry which is exported to the world.
	 */
	struct exports {
		dev_t		  ex_dev;	/* dev of directory */
		char		 *ex_name;	/* name of directory */
		struct groups	 *ex_groups;	/* groups allowed to mount this entry */
		struct exports	 *ex_next;
	};
	struct groups {
		char		*g_name;
		struct groups	*g_next;
	};
.fi
.SH SEE ALSO
mount(8), showmount(8), mountd(8C),
.IR "NFS Protocol Spec" ,
section 3.