[Glibc-bsd-hackers] STATUS page

Robert Millan rmh@debian.org
Wed, 28 Jul 2004 23:46:27 +0200


On Wed, Jul 28, 2004 at 03:43:07PM -0500, Nathan Hawkins wrote:
> >
> >This is because FreeBSD doesn't define _PATH_MTAB. We do, however, define 
> >it
> >because we're going to provide it (libpmount already supports mtab 
> >handling).
> > 
> Yeah, they do something different, in /var, I think, which is actually a 
> better place for it.

Common values for _PATH_MTAB include /etc/mtab and /var/run/mtab, and /etc/mtab
can be a symlink to /var/run/mtab.

I prefer /etc/mtab because /var could not be in the root partition.

> >Which ioctl? Can you find out? We were discussing this in glibc-bsd-devel a
> >while ago, you can check the archives.
> > 
> >
> TIOSCTTY, I believe. It is the same on Linux and BSD, it's just that for 
> some reason it doesn't seem to be getting called when sysvinit is 
> compiled on FreeBSD.  The precise timing of when this should happen, and 
> which process should be calling it is unclear to me.

I recall Guillem found something interesting about TIOSCTTY in sysvinit code.

I think it's disabled in sysvinit when /dev/tty[0-9] don't exist (which are
Linux-specific). I'll have a look, probably today..

-- 
Robert Millan

(Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\
(kernel of *(Berkeley Software Distribution))