Subject: Re: Header filles question.
To: Alan C.Horn <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 12/08/1998 10:47:58
> Under Irix (and probably other unices) there is
> /usr/include/mntent.h.  It defines structures such as mntent, and
> functions such as setmntent and getmntent.

> What are the comparable include file(s) and functions under NetBSD ?
> It looks like this stuff is to do with /etc/mtab of course, so I
> probably don't want it anyway..

Yes, those are mtab manipulation functions.

The corresponding "get" call is getfsstat(2) (and/or getmntinfo(3), the
latter being built on top of the former).  There are no corresponding
calls to set entries, since the mount table in NetBSD is maintained by
the kernel, not kept in a separate file a la /etc/mtab.  (Or, if you
prefer to think of it this way, the calls to add and remove entries are
mount(2) and unmount(2).)

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B