1 #ifndef _SYS_STATVFS_H_
2 #define _SYS_STATVFS_H_
5 #include <sys/featuretest.h>
6 #include <sys/stdint.h>
7 #include <machine/ansi.h>
10 #define _VFS_NAMELEN 32
11 #define _VFS_MNAMELEN 1024
14 typedef __fsblkcnt_t fsblkcnt_t
; /* fs block count (statvfs) */
15 #define fsblkcnt_t __fsblkcnt_t
19 typedef __fsfilcnt_t fsfilcnt_t
; /* fs file count */
20 #define fsfilcnt_t __fsfilcnt_t
24 typedef __uid_t uid_t
; /* user id */
29 typedef _BSD_SIZE_T_
size_t;
35 unsigned long f_bsize
; /* File system block size. */
36 unsigned long f_frsize
; /* Fundamental file system block size. */
37 fsblkcnt_t f_blocks
; /* Total number of blocks on file system */
38 /* in units of f_frsize. */
39 fsblkcnt_t f_bfree
; /* Total number of free blocks. */
40 fsblkcnt_t f_bavail
; /* Number of free blocks available to */
41 /* non-privileged process. */
42 fsfilcnt_t f_files
; /* Total number of file serial numbers. */
43 fsfilcnt_t f_ffree
; /* Total number of free file serial numbers. */
44 fsfilcnt_t f_favail
; /* Number of file serial numbers available */
45 /* to non-privileged process. */
46 unsigned long f_fsid
; /* File system ID. */
47 unsigned long f_flag
; /* Bit mask of f_flag values. */
48 unsigned long f_namemax
; /* Maximum filename length. */
49 unsigned char __padding
[32]; /* Padding for future compatibility */
52 /* Possible values for statvfs->f_flag */
56 #define ST_NOTRUNC 0x4
60 int statvfs(const char *__restrict
, struct statvfs
*__restrict
);
61 int fstatvfs(int, struct statvfs
*);
64 #endif /* _SYS_STATVFS_H_ */