statfs.h 476 字节
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

R
Rich Felker 已提交
8 9
#include <sys/statvfs.h>

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

#include <bits/statfs.h>

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

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

26 27 28 29
#ifdef __cplusplus
}
#endif

R
Rich Felker 已提交
30
#endif