Jim Meyering <jim <at> meyering.net> writes:

> > But how would you make it work *with* -f?  You don't know the path of the
> > file used to create stdin (and in the case of a pipe, there is no path),
> 
> There is no need for an actual file name, since fstatfs
> takes a file descriptor.  Of course, there's the issue
> that some systems don't have a usable fstatfs...

Or fstatvfs, if you go by POSIX.  I stand corrected; it looks like we _can_ try 
to implement 'stat -f -', so I agree that we ought to do so for the consistency 
aspect.  I'm okay with failing with ENOSYS or ENOTSUP on platforms that lack a 
working fstat[v]fs.

-- 
Eric Blake




Reply via email to