Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: fusl/include/sys/statvfs.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef»_SYS_STATVFS_H 1 #ifndef _SYS_STATVFS_H
2 #define»_SYS_STATVFS_H 2 #define _SYS_STATVFS_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 9
10 #define __NEED_fsblkcnt_t 10 #define __NEED_fsblkcnt_t
11 #define __NEED_fsfilcnt_t 11 #define __NEED_fsfilcnt_t
12 #include <bits/alltypes.h> 12 #include <bits/alltypes.h>
13 13
14 #include <endian.h> 14 #include <endian.h>
15 15
16 struct statvfs { 16 struct statvfs {
17 » unsigned long f_bsize, f_frsize; 17 unsigned long f_bsize, f_frsize;
18 » fsblkcnt_t f_blocks, f_bfree, f_bavail; 18 fsblkcnt_t f_blocks, f_bfree, f_bavail;
19 » fsfilcnt_t f_files, f_ffree, f_favail; 19 fsfilcnt_t f_files, f_ffree, f_favail;
20 #if __BYTE_ORDER == __LITTLE_ENDIAN 20 #if __BYTE_ORDER == __LITTLE_ENDIAN
21 » unsigned long f_fsid; 21 unsigned long f_fsid;
22 » unsigned :8*(2*sizeof(int)-sizeof(long)); 22 unsigned : 8 * (2 * sizeof(int) - sizeof(long));
23 #else 23 #else
24 » unsigned :8*(2*sizeof(int)-sizeof(long)); 24 unsigned : 8 * (2 * sizeof(int) - sizeof(long));
25 » unsigned long f_fsid; 25 unsigned long f_fsid;
26 #endif 26 #endif
27 » unsigned long f_flag, f_namemax; 27 unsigned long f_flag, f_namemax;
28 » int __reserved[6]; 28 int __reserved[6];
29 }; 29 };
30 30
31 int statvfs (const char *__restrict, struct statvfs *__restrict); 31 int statvfs(const char* __restrict, struct statvfs* __restrict);
32 int fstatvfs (int, struct statvfs *); 32 int fstatvfs(int, struct statvfs*);
33 33
34 #define ST_RDONLY 1 34 #define ST_RDONLY 1
35 #define ST_NOSUID 2 35 #define ST_NOSUID 2
36 #define ST_NODEV 4 36 #define ST_NODEV 4
37 #define ST_NOEXEC 8 37 #define ST_NOEXEC 8
38 #define ST_SYNCHRONOUS 16 38 #define ST_SYNCHRONOUS 16
39 #define ST_MANDLOCK 64 39 #define ST_MANDLOCK 64
40 #define ST_WRITE 128 40 #define ST_WRITE 128
41 #define ST_APPEND 256 41 #define ST_APPEND 256
42 #define ST_IMMUTABLE 512 42 #define ST_IMMUTABLE 512
43 #define ST_NOATIME 1024 43 #define ST_NOATIME 1024
44 #define ST_NODIRATIME 2048 44 #define ST_NODIRATIME 2048
45 45
46 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) 46 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
47 #define statvfs64 statvfs 47 #define statvfs64 statvfs
48 #define fstatvfs64 fstatvfs 48 #define fstatvfs64 fstatvfs
49 #define fsblkcnt64_t fsblkcnt_t 49 #define fsblkcnt64_t fsblkcnt_t
50 #define fsfilcnt64_t fsfilcnt_t 50 #define fsfilcnt64_t fsfilcnt_t
51 #endif 51 #endif
52 52
53 #ifdef __cplusplus 53 #ifdef __cplusplus
54 } 54 }
55 #endif 55 #endif
56 56
57 #endif 57 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698