1sys_statvfs.h(0P)          POSIX Programmer's Manual         sys_statvfs.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       sys/statvfs.h — VFS File System information structure
14

SYNOPSIS

16       #include <sys/statvfs.h>
17

DESCRIPTION

19       The <sys/statvfs.h> header shall define the  statvfs  structure,  which
20       shall include at least the following members:
21
22           unsigned long f_bsize    File system block size.
23           unsigned long f_frsize   Fundamental file system block size.
24           fsblkcnt_t    f_blocks   Total number of blocks on file system in units of f_frsize.
25           fsblkcnt_t    f_bfree    Total number of free blocks.
26           fsblkcnt_t    f_bavail   Number of free blocks available to
27                                    non-privileged process.
28           fsfilcnt_t    f_files    Total number of file serial numbers.
29           fsfilcnt_t    f_ffree    Total number of free file serial numbers.
30           fsfilcnt_t    f_favail   Number of file serial numbers available to
31                                    non-privileged process.
32           unsigned long f_fsid     File system ID.
33           unsigned long f_flag     Bit mask of f_flag values.
34           unsigned long f_namemax  Maximum filename length.
35
36       The  <sys/statvfs.h>  header shall define the fsblkcnt_t and fsfilcnt_t
37       types as described in <sys/types.h>.
38
39       The <sys/statvfs.h> header shall define  the  following  symbolic  con‐
40       stants for the f_flag member:
41
42       ST_RDONLY   Read-only file system.
43
44       ST_NOSUID   Does not support the semantics of the ST_ISUID and ST_ISGID
45                   file mode bits.
46
47       The following shall be declared as functions and may also be defined as
48       macros. Function prototypes shall be provided.
49
50           int fstatvfs(int, struct statvfs *);
51           int statvfs(const char *restrict, struct statvfs *restrict);
52
53       The following sections are informative.
54

APPLICATION USAGE

56       None.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       <sys_types.h>
66
67       The System Interfaces volume of POSIX.1‐2008, fstatvfs()
68
70       Portions  of  this text are reprinted and reproduced in electronic form
71       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
72       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
73       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
74       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
75       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
76       event of any discrepancy between this version and the original IEEE and
77       The Open Group Standard, the original IEEE and The Open Group  Standard
78       is  the  referee document. The original Standard can be obtained online
79       at http://www.unix.org/online.html .
80
81       Any typographical or formatting errors that appear  in  this  page  are
82       most likely to have been introduced during the conversion of the source
83       files to man page format. To report such errors,  see  https://www.ker
84       nel.org/doc/man-pages/reporting_bugs.html .
85
86
87
88IEEE/The Open Group                  2013                    sys_statvfs.h(0P)
Impressum