Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [PATCH] Use getmntent_r(3) to parse /proc/mounts lines
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2010-03-11 18:18:12


On Fri, Mar 12, 2010 at 00:14, Bert Wesarg <bert.wesarg_at_[hidden]> wrote:
> On Fri, Mar 12, 2010 at 00:03, Brice Goglin <Brice.Goglin_at_[hidden]> wrote:
>>
>> Did you actually test this ? The way I am reading the manpage is that
>> you need to open with setmntent and close with endmntent.
>
> I have read the man page, but only about getmntent, and than read the
> source code for getmntent from glibc.
> So yes, it is better to use setmntent/endmntent to be conform.

Ups, what about the fsroot_fd now? I think this has something to do if
/proc and /sys are not mounted at the root, for example in test mode,
right?

Bert