Subject: Re: ps /proc changes (CVS commit: src)
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 03/28/1999 14:19:43
In article <19990327154710.A29608@marvin.ece.utexas.edu> bgrayson@marvin.ece.utexas.edu (Brian C. Grayson) writes:
>
>  I just committed a check via statfs (thanks Christos!).  I
>think that's probably the best we can do (well, we could do a
>statfs on every file before we open it, if folks really think
>that's necessary).

Actually if you want to avoid races, you open() the file and then
fstatfs() the fd.

christos