logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

sys_statvfs.h.0p (3206B)


  1. '\" et
  2. .TH sys_statvfs.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. sys/statvfs.h
  12. \(em VFS File System information structure
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <sys/statvfs.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <sys/statvfs.h>
  21. header shall define the
  22. .BR statvfs
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. unsigned long f_bsize \fRFile system block size.\fR
  28. unsigned long f_frsize \fRFundamental file system block size.\fR
  29. fsblkcnt_t f_blocks \fRTotal number of blocks on file system in units of \fIf_frsize.\fR
  30. fsblkcnt_t f_bfree \fRTotal number of free blocks.\fR
  31. fsblkcnt_t f_bavail \fRNumber of free blocks available to\fR
  32. \fRnon-privileged process.\fR
  33. fsfilcnt_t f_files \fRTotal number of file serial numbers.\fR
  34. fsfilcnt_t f_ffree \fRTotal number of free file serial numbers.\fR
  35. fsfilcnt_t f_favail \fRNumber of file serial numbers available to\fR
  36. \fRnon-privileged process.\fR
  37. unsigned long f_fsid \fRFile system ID.\fR
  38. unsigned long f_flag \fRBit mask of \fIf_flag\fR values.\fR
  39. unsigned long f_namemax \fRMaximum filename length.\fR
  40. .fi
  41. .P
  42. .RE
  43. .P
  44. The
  45. .IR <sys/statvfs.h>
  46. header shall define the
  47. .BR fsblkcnt_t
  48. and
  49. .BR fsfilcnt_t
  50. types as described in
  51. .IR <sys/types.h> .
  52. .P
  53. The
  54. .IR <sys/statvfs.h>
  55. header shall define the following symbolic constants for the
  56. .IR f_flag
  57. member:
  58. .IP ST_RDONLY 12
  59. Read-only file system.
  60. .IP ST_NOSUID 12
  61. Does not support the semantics of the ST_ISUID and ST_ISGID file mode
  62. bits.
  63. .P
  64. The following shall be declared as functions and may also be defined as
  65. macros. Function prototypes shall be provided.
  66. .sp
  67. .RS 4
  68. .nf
  69. int fstatvfs(int, struct statvfs *);
  70. int statvfs(const char *restrict, struct statvfs *restrict);
  71. .fi
  72. .P
  73. .RE
  74. .LP
  75. .IR "The following sections are informative."
  76. .SH "APPLICATION USAGE"
  77. None.
  78. .SH RATIONALE
  79. None.
  80. .SH "FUTURE DIRECTIONS"
  81. None.
  82. .SH "SEE ALSO"
  83. .IR "\fB<sys_types.h>\fP"
  84. .P
  85. The System Interfaces volume of POSIX.1\(hy2017,
  86. .IR "\fIfstatvfs\fR\^(\|)"
  87. .\"
  88. .SH COPYRIGHT
  89. Portions of this text are reprinted and reproduced in electronic form
  90. from IEEE Std 1003.1-2017, Standard for Information Technology
  91. -- Portable Operating System Interface (POSIX), The Open Group Base
  92. Specifications Issue 7, 2018 Edition,
  93. Copyright (C) 2018 by the Institute of
  94. Electrical and Electronics Engineers, Inc and The Open Group.
  95. In the event of any discrepancy between this version and the original IEEE and
  96. The Open Group Standard, the original IEEE and The Open Group Standard
  97. is the referee document. The original Standard can be obtained online at
  98. http://www.opengroup.org/unix/online.html .
  99. .PP
  100. Any typographical or formatting errors that appear
  101. in this page are most likely
  102. to have been introduced during the conversion of the source files to
  103. man page format. To report such errors, see
  104. https://www.kernel.org/doc/man-pages/reporting_bugs.html .