statfs.h 499 字节
Newer Older
R
Rich Felker 已提交
1 2 3
#ifndef	_SYS_STATFS_H
#define	_SYS_STATFS_H

4 5 6 7
#ifdef __cplusplus
extern "C" {
#endif

8 9
#include <features.h>

R
Rich Felker 已提交
10 11
#include <sys/statvfs.h>

12
typedef struct {
13
	int __val[2];
14 15 16 17 18 19
} fsid_t;

#include <bits/statfs.h>

int statfs (const char *, struct statfs *);
int fstatfs (int, struct statfs *);
R
Rich Felker 已提交
20

21
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
R
Rich Felker 已提交
22 23 24 25 26 27
#define statfs64 statfs
#define fstatfs64 fstatfs
#define fsblkcnt64_t fsblkcnt_t
#define fsfilcnt64_t fsfilcnt_t
#endif

28 29 30 31
#ifdef __cplusplus
}
#endif

R
Rich Felker 已提交
32
#endif