bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stat vs. "-"


From: Jim Meyering
Subject: Re: stat vs. "-"
Date: Tue, 29 Sep 2009 16:27:04 +0200

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

[Prev in Thread] Current Thread [Next in Thread]