OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / statvfs.3
index e351187..dbdeb88 100644 (file)
@@ -27,9 +27,9 @@
 .\"
 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
-.TH STATVFS 3 2003-08-22 "Linux" "Linux Programmer's Manual"
+.TH STATVFS 3 2013-09-26 "Linux" "Linux Programmer's Manual"
 .SH NAME
-statvfs, fstatvfs \- get file system statistics
+statvfs, fstatvfs \- get filesystem statistics
 .SH SYNOPSIS
 .B #include <sys/statvfs.h>
 .sp
@@ -39,9 +39,9 @@ statvfs, fstatvfs \- get file system statistics
 .SH DESCRIPTION
 The function
 .BR statvfs ()
-returns information about a mounted file system.
+returns information about a mounted filesystem.
 .I path
-is the pathname of any file within the mounted file system.
+is the pathname of any file within the mounted filesystem.
 .I buf
 is a pointer to a
 .I statvfs
@@ -50,7 +50,7 @@ structure defined approximately as follows:
 .in +4n
 .nf
 struct statvfs {
-    unsigned long  f_bsize;    /* file system block size */
+    unsigned long  f_bsize;    /* filesystem block size */
     unsigned long  f_frsize;   /* fragment size */
     fsblkcnt_t     f_blocks;   /* size of fs in f_frsize units */
     fsblkcnt_t     f_bfree;    /* # free blocks */
@@ -58,7 +58,7 @@ struct statvfs {
     fsfilcnt_t     f_files;    /* # inodes */
     fsfilcnt_t     f_ffree;    /* # free inodes */
     fsfilcnt_t     f_favail;   /* # free inodes for unprivileged users */
-    unsigned long  f_fsid;     /* file system ID */
+    unsigned long  f_fsid;     /* filesystem ID */
     unsigned long  f_flag;     /* mount flags */
     unsigned long  f_namemax;  /* maximum filename length */
 };
@@ -81,14 +81,14 @@ is a bit mask (of mount flags, see
 Bits defined by POSIX are
 .TP
 .B ST_RDONLY
-Read-only file system.
+Read-only filesystem.
 .TP
 .B ST_NOSUID
 Set-user-ID/set-group-ID bits are ignored by
 .BR exec (3).
 .LP
 It is unspecified whether all members of the returned struct
-have meaningful values on all file systems.
+have meaningful values on all filesystems.
 
 .BR fstatvfs ()
 returns the same information about an open file referenced by descriptor
@@ -122,7 +122,7 @@ points to an invalid address.
 This call was interrupted by a signal.
 .TP
 .B EIO
-An I/O error occurred while reading from the file system.
+An I/O error occurred while reading from the filesystem.
 .TP
 .B ELOOP
 .RB ( statvfs ())
@@ -144,7 +144,7 @@ does not exist.
 Insufficient kernel memory was available.
 .TP
 .B ENOSYS
-The file system does not support this call.
+The filesystem does not support this call.
 .TP
 .B ENOTDIR
 .RB ( statvfs ())
@@ -154,6 +154,13 @@ is not a directory.
 .TP
 .B EOVERFLOW
 Some values were too large to be represented in the returned struct.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR statvfs ()
+and
+.BR fstatvfs ()
+functions are thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -180,3 +187,12 @@ fields of the return value of
 .IR "statvfs(path,buf)" .
 .SH SEE ALSO
 .BR statfs (2)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.