1<sys/statvfs.h>(0P)        POSIX Programmer's Manual       <sys/statvfs.h>(0P)
2
3
4

NAME

6       sys/statvfs.h - VFS File System information structure
7

SYNOPSIS

9       #include <sys/statvfs.h>
10

DESCRIPTION

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

APPLICATION USAGE

53       None.
54

RATIONALE

56       None.
57

FUTURE DIRECTIONS

59       None.
60

SEE ALSO

62       <sys/types.h>,  the  System  Interfaces volume of IEEE Std 1003.1-2001,
63       fstatvfs(), statvfs()
64
66       Portions of this text are reprinted and reproduced in  electronic  form
67       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
68       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
69       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
70       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
71       event of any discrepancy between this version and the original IEEE and
72       The Open Group Standard, the original IEEE and The Open Group  Standard
73       is  the  referee document. The original Standard can be obtained online
74       at http://www.opengroup.org/unix/online.html .
75
76
77
78IEEE/The Open Group                  2003                  <sys/statvfs.h>(0P)
Impressum