2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _SYS_STATFS_H
|
|
|
|
#define _SYS_STATFS_H
|
|
|
|
|
2011-11-11 01:40:06 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 03:13:55 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <sys/statvfs.h>
|
|
|
|
|
2011-09-20 03:35:48 +00:00
|
|
|
typedef struct {
|
2011-09-20 15:16:27 +00:00
|
|
|
int __val[2];
|
2011-09-20 03:35:48 +00:00
|
|
|
} fsid_t;
|
|
|
|
|
|
|
|
#include <bits/statfs.h>
|
|
|
|
|
|
|
|
int statfs (const char *, struct statfs *);
|
|
|
|
int fstatfs (int, struct statfs *);
|
2011-02-12 05:22:29 +00:00
|
|
|
|
2012-06-04 12:03:56 +00:00
|
|
|
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
2012-05-04 04:31:25 +00:00
|
|
|
#define statfs64 statfs
|
|
|
|
#define fstatfs64 fstatfs
|
|
|
|
#define fsblkcnt64_t fsblkcnt_t
|
|
|
|
#define fsfilcnt64_t fsfilcnt_t
|
|
|
|
#endif
|
|
|
|
|
2011-11-11 01:40:06 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#endif
|