1#ifndef __VSF_LINUX_SYS_STATFS_H__
2#define __VSF_LINUX_SYS_STATFS_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "../sys/types.h"
16#if VSF_LINUX_CFG_WRAPPER == ENABLED
17#define statfs VSF_LINUX_WRAPPER(statfs)
18#define fstatfs VSF_LINUX_WRAPPER(fstatfs)
38#if VSF_LINUX_APPLET_USE_SYS_STATFS == ENABLED
45# ifndef __VSF_APPLET__
50#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_STATFS_LIB__))\
51 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_STATFS == ENABLED
53#ifndef VSF_LINUX_APPLET_SYS_STATFS_VPLT
54# if VSF_LINUX_USE_APPLET == ENABLED
55# define VSF_LINUX_APPLET_SYS_STATFS_VPLT \
56 ((vsf_linux_sys_statfs_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_statfs_vplt))
58# define VSF_LINUX_APPLET_SYS_STATFS_VPLT \
59 ((vsf_linux_sys_statfs_vplt_t *)vsf_vplt((void *)0))
63#define VSF_LINUX_APPLET_SYS_STATFS_ENTRY(__NAME) \
64 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_STATFS_VPLT, __NAME)
65#define VSF_LINUX_APPLET_SYS_STATFS_IMP(...) \
66 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_STATFS_VPLT, __VA_ARGS__)
68VSF_LINUX_APPLET_SYS_STATFS_IMP(
statfs,
int,
const char *path,
struct statfs *buf) {
70 return VSF_LINUX_APPLET_SYS_STATFS_ENTRY(
statfs)(path, buf);
72VSF_LINUX_APPLET_SYS_STATFS_IMP(
fstatfs,
int,
int fd,
struct statfs *buf) {
74 return VSF_LINUX_APPLET_SYS_STATFS_ENTRY(
fstatfs)(fd, buf);
blkcnt_t fsblkcnt_t
Definition types.h:105
int fsid_t
Definition statfs.h:21
#define fstatfs
Definition statfs.h:18
#define statfs
Definition statfs.h:17
__VSF_VPLT_DECORATOR__ vsf_linux_sys_statfs_vplt_t vsf_linux_sys_statfs_vplt
Definition vsf_linux.c:5277
fsblkcnt_t f_files
Definition statfs.h:30
short f_frsize
Definition statfs.h:34
short f_namelen
Definition statfs.h:33
fsblkcnt_t f_bfree
Definition statfs.h:27
fsblkcnt_t f_ffree
Definition statfs.h:31
fsblkcnt_t f_bavail
Definition statfs.h:28
fsblkcnt_t f_blocks
Definition statfs.h:26
short f_bsize
Definition statfs.h:25
short f_type
Definition statfs.h:24
fsid_t f_fsid
Definition statfs.h:32
short f_flags
Definition statfs.h:35
vsf_vplt_info_t info
Definition statfs.h:40
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(fstatfs)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(statfs)
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165