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

Easy DOSFS question



On Fri, 2004-11-26 at 13:13 +0300, Victor V. Vengerov wrote:
> Joel,
> 
> Joel Sherrill <joel at OARcorp.com> wrote:
> 
> >> Because RTEMS follows to POSIX for file operations, it is reasonable 
> >> to implement statvfs()/fstatvfs(), as they are defined in POSIX (or, 
> >> at least, in man 2 statvfs :-) ).
> >
> >
> > Not on the Linux box I am using to answer this. :(
> 
> I'm using Fedora 2 and 2.6.7 kernel. It is quite possible that statvfs() 
> appears in 2.6 kernel. man page claims that statvfs() conforms to POSIX. 
> In older linux kernel, similar syscalls statfs(), fstatfs() were used.
> 
> I have attached man pages for both of them.
> 
> I have no POSIX in my hands, so I couldn't check statvfs() definition 
> against standard.
I also don't have POSIX at hand, but I have an URL to SUSv3:
http://www.opengroup.org/onlinepubs/009695399/functions/statvfs.html

In a nutshell: statvfs is an XSI extension to ISO C and is not part of
POSIX.

Feel free to implement it ;)

Ralf

PS.: The problems with OAR's servers persist.