Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/statfs.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)statfs.2 8.5 (Berkeley) 5/24/95 | .\" @(#)statfs.2 8.5 (Berkeley) 5/24/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd November 1, 2006 | .Dd February 13, 2017 | ||||
.Dt STATFS 2 | .Dt STATFS 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm statfs | .Nm statfs | ||||
.Nd get file system statistics | .Nd get file system statistics | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
Show All 21 Lines | |||||
.Bd -literal | .Bd -literal | ||||
typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ | typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ | ||||
/* | /* | ||||
* filesystem statistics | * filesystem statistics | ||||
*/ | */ | ||||
#define MFSNAMELEN 16 /* length of type name including null */ | #define MFSNAMELEN 16 /* length of type name including null */ | ||||
#define MNAMELEN 88 /* size of on/from name bufs */ | #define MNAMELEN 1024 /* size of on/from name bufs */ | ||||
#define STATFS_VERSION 0x20030518 /* current version number */ | #define STATFS_VERSION 0x20140518 /* current version number */ | ||||
ngie: Should this be bumped to a more recent date? | |||||
Not Done Inline ActionsAlthough it's really just an opaque value, might as well use a recent (commit?) date. emaste: Although it's really just an opaque value, might as well use a recent (commit?) date. | |||||
struct statfs { | struct statfs { | ||||
uint32_t f_version; /* structure version number */ | uint32_t f_version; /* structure version number */ | ||||
uint32_t f_type; /* type of filesystem */ | uint32_t f_type; /* type of filesystem */ | ||||
uint64_t f_flags; /* copy of mount exported flags */ | uint64_t f_flags; /* copy of mount exported flags */ | ||||
uint64_t f_bsize; /* filesystem fragment size */ | uint64_t f_bsize; /* filesystem fragment size */ | ||||
uint64_t f_iosize; /* optimal transfer block size */ | uint64_t f_iosize; /* optimal transfer block size */ | ||||
uint64_t f_blocks; /* total data blocks in filesystem */ | uint64_t f_blocks; /* total data blocks in filesystem */ | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |
Should this be bumped to a more recent date?