Eric Blake wrote:
> 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.

I don't have time to do that right now.
If you feel like doing it, you're welcome to straighten it out.
I've just pushed what I just posted.


Reply via email to