1
2STATFS64,FSTATFS64(2) Linux Programmer's Guide STATFS64,FSTATFS64(2)
3
4
5
7 statfs64,fstatfs64 - Get file system statistics
8
10 long statfs64 (const char *path, size_t sz, struct statfs64 *buf);
11
12 long fstatfs64 (unsigned int fd, size_t sz, struct statfs64 *buf);
13
14
16 statfs64 and fstatfs64 get file system statistics. For statfs, path is
17 the path name of a file in the mounted file system in question. Alter‐
18 natively, fstatfs can pass a file descriptor in an open file in the fd
19 parameter and get similar information. buf is a statfs pointer struc‐
20 ture that contains information about the file system, such as type and
21 free blocks.
22
23
25 statfs64 and fstatfs64 return 0 on success. Otherwise, they return one
26 of the errors listed in the "Errors" section.
27
28
30 EINVAL, EFAULT
31 An invalid address for buf was specified.
32
33
34 EBADF An invalid file descriptor, fd, was specified. fd is applicable
35 to fstatfs only.
36
37
39 stat(2), statvfs(2)
40
41
42
44 Niki Rahimi
45
46
47
48Linux 2.6 2004-March-12 STATFS64,FSTATFS64(2)