Date: Mon, 27 Aug 2001 15:55:03 +0100 From: George Reid <greid@FreeBSD.org> To: Wayne Pascoe <wayne.pascoe@ehsrealtime.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: OT: Re: Porting app from Linux - sys/vfs.h replacement Message-ID: <20010827155503.A13348@FreeBSD.org> In-Reply-To: <8666b97ffo.fsf@pan.ehsrealtime.com>; from wayne.pascoe@ehsrealtime.com on Mon, Aug 27, 2001 at 03:20:11PM %2B0100 References: <20010827134440.A12436@FreeBSD.org> <8666b97ffo.fsf@pan.ehsrealtime.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h> > #include <sys/mount.h> > #include <sys/param.h> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010827155503.A13348>