From owner-freebsd-questions Mon Aug 27 7:55:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id E9C7337B403 for ; Mon, 27 Aug 2001 07:55:06 -0700 (PDT) (envelope-from greid@FreeBSD.org) Received: from sobek.lan ([62.252.12.244]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010827145504.JTOJ29790.mta02-svc.ntlworld.com@sobek.lan>; Mon, 27 Aug 2001 15:55:04 +0100 Received: (from greid@localhost) by sobek.lan (8.11.5/8.11.5) id f7REt3o13525; Mon, 27 Aug 2001 15:55:03 +0100 (BST) (envelope-from greid@FreeBSD.org) X-Authentication-Warning: sobek.lan: greid set sender to greid@FreeBSD.org using -f Date: Mon, 27 Aug 2001 15:55:03 +0100 From: George Reid To: Wayne Pascoe Cc: freebsd-questions@FreeBSD.org Subject: Re: OT: Re: Porting app from Linux - sys/vfs.h replacement Message-ID: <20010827155503.A13348@FreeBSD.org> References: <20010827134440.A12436@FreeBSD.org> <8666b97ffo.fsf@pan.ehsrealtime.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <8666b97ffo.fsf@pan.ehsrealtime.com>; from wayne.pascoe@ehsrealtime.com on Mon, Aug 27, 2001 at 03:20:11PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Aug 27, 2001 at 03:20:11PM +0100, Wayne Pascoe wrote: > One more thing... On Linux /etc/mtab is a list of all mounted > filesystems. What is the equavalent file on FreeBSD ? Is there a > system call that will return mounted file systems? See getmntinfo(3). > I also see that the order I include files in does matter. doing > > #include > #include > #include > > gives me errors in ucred.h. Swappign mount.h and param.h around fixes > the problem. Why is this ? I thought that order didn't matter. sys/param.h #includes sys/types.h, which you need for sys/mount.h. I didn't notice this in your original post: you should be able to move sys/param.h before sys/mount.h and omit the inclusion of sys/types.h. -- +-------------------+---------------------+ | George Reid | FreeBSD Committer | | +44 7740 197460 | greid@FreeBSD.org | +-------------------+---------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message