From owner-freebsd-bugs Mon Mar 10 20:40:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA25790 for bugs-outgoing; Mon, 10 Mar 1997 20:40:10 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA25781; Mon, 10 Mar 1997 20:40:03 -0800 (PST) Resent-Date: Mon, 10 Mar 1997 20:40:03 -0800 (PST) Resent-Message-Id: <199703110440.UAA25781@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, lennox@cs.columbia.edu Received: from bmt.cs.columbia.edu (bmt.cs.columbia.edu [128.59.19.22]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA25333 for ; Mon, 10 Mar 1997 20:31:56 -0800 (PST) Received: (from root@localhost) by bmt.cs.columbia.edu (8.8.5/8.8.5) id XAA00799; Mon, 10 Mar 1997 23:31:49 -0500 (EST) Message-Id: <199703110431.XAA00799@bmt.cs.columbia.edu> Date: Mon, 10 Mar 1997 23:31:49 -0500 (EST) From: lennox@cs.columbia.edu Reply-To: lennox@cs.columbia.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/2945: mount(2) and /usr/include/sys/mount.h disagree Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2945 >Category: docs >Synopsis: mount(2) and /usr/include/sys/mount.h disagree >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 10 20:40:02 PST 1997 >Last-Modified: >Originator: Jonathan Lennox >Organization: Columbia University Computer Science >Release: FreeBSD 2.2-970205-GAMMA i386 >Environment: (Not really relevant) >Description: mount(2) and /usr/include/sys/mount.h disagree about the type of (struct nfs_args).fh. "man 2 mount" contains the following section: MOUNT_NFS struct nfs_args { struct sockaddr_in *addr; /* file server address */ nfsv2fh_t *fh; /* File handle to be mounted */ int flags; /* flags */ int wsize; /* write size in bytes */ int rsize; /* read size in bytes */ int timeo; /* initial timeout 0.1 secs */ int retrans; /* times to retry send */ char *hostname; /* server's name */ }; /usr/include/sys/mount.h by contrast has this: /* * Arguments to mount NFS */ struct nfs_args { struct sockaddr *addr; /* file server address */ int addrlen; /* length of address */ int sotype; /* Socket type */ int proto; /* and Protocol */ u_char *fh; /* File handle to be mounted */ int fhsize; /* Size, in bytes, of fh */ int flags; /* flags */ int wsize; /* write size in bytes */ int rsize; /* read size in bytes */ int readdirsize; /* readdir size in bytes */ int timeo; /* initial timeout in .1 secs */ int retrans; /* times to retry send */ int maxgrouplist; /* Max. size of group list */ int readahead; /* # of blocks to readahead */ int leaseterm; /* Term (sec) of lease */ int deadthresh; /* Retrans threshold */ char *hostname; /* server's name */ }; The type of the "fh" member has changed from nfsv2fh_t* to u_char* sometime recently, apparently (the former type no longer appears in the header file). >How-To-Repeat: man 2 mount more /usr/include/sys/mount.h >Fix: Update /usr/share/man/man2/mount.2.gz to reflect the new type of the fh member. >Audit-Trail: >Unformatted: