sysstatvfs.h.html

来自「unix 下的C开发手册,还用详细的例程。」· HTML 代码 · 共 85 行

HTML
85
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>&lt;sys/statvfs.h&gt;</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_009_354">&nbsp;</a>NAME</h4><blockquote>sys/statvfs.h - VFS Filesystem information structure</blockquote><h4><a name = "tag_000_009_355">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;sys/statvfs.h&gt;</code></pre></blockquote><h4><a name = "tag_000_009_356">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>&lt;sys/statvfs.h&gt;</i>header defines the<b>statvfs</b>structure that includes at least the following members:<pre><code>unsigned long f_bsize    file system block sizeunsigned long f_frsize   fundamental filesystem block sizefsblkcnt_t    f_blocks   total number of blocks on file system in units of <b>f_frsize</b>fsblkcnt_t    f_bfree    total number of free blocksfsblkcnt_t    f_bavail   number of free blocks available to                         non-privileged processfsfilcnt_t    f_files    total number of file serial numbersfsfilcnt_t    f_ffree    total number of free file serial numbersfsfilcnt_t    f_favail   number of file serial numbers available to                         non-privileged processunsigned long f_fsid     file system idunsigned long f_flag     bit mask of <b>f_flag</b> valuesunsigned long f_namemax  maximum filename length</code></pre><p>The<b>fsblkcnt_t</b>,and<b>fsfilcnt_t</b>,  types are defined as described in<i><a href="systypes.h.html">&lt;sys/types.h&gt;</a></i>.<p>The following flags for the <b>f_flag</b> member are defined:<pre><code>ST_RDONLY                read-only file systemST_NOSUID                does not support setuid/setgid semantics</code></pre><p>The header &lt;<b>sys/statvfs.h</b>&gt; declares the following functions whichmay also be defined as macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>int <a href="statvfs.html">statvfs</a>(const char *, struct statvfs *);int <a href="fstatvfs.html">fstatvfs</a>(int, struct statvfs *);</code></pre></blockquote><h4><a name = "tag_000_009_357">&nbsp;</a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_009_358">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_009_359">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="fstatvfs.html">fstatvfs()</a></i>,<i><a href="statvfs.html">statvfs()</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?