bug-coreutils
[Top][All Lists]
Advanced

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

Re: stat vs. "-"


From: Eric Blake
Subject: Re: stat vs. "-"
Date: Tue, 29 Sep 2009 14:04:51 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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

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