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

Side by Side Diff: fusl/src/stat/statvfs.c

Issue 1579273002: Remove -Wno-ignored-attributes from fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « fusl/src/mman/mmap.c ('k') | fusl/src/stdio/fseek.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <sys/statvfs.h> 1 #include <sys/statvfs.h>
2 #include <sys/statfs.h> 2 #include <sys/statfs.h>
3 #include "syscall.h" 3 #include "syscall.h"
4 #include "libc.h" 4 #include "libc.h"
5 5
6 int __statfs(const char *path, struct statfs *buf) 6 int __statfs(const char *path, struct statfs *buf)
7 { 7 {
8 *buf = (struct statfs){0}; 8 *buf = (struct statfs){0};
9 #ifdef SYS_statfs64 9 #ifdef SYS_statfs64
10 return syscall(SYS_statfs64, path, sizeof *buf, buf); 10 return syscall(SYS_statfs64, path, sizeof *buf, buf);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 int fstatvfs(int fd, struct statvfs *buf) 53 int fstatvfs(int fd, struct statvfs *buf)
54 { 54 {
55 struct statfs kbuf; 55 struct statfs kbuf;
56 if (__fstatfs(fd, &kbuf)<0) return -1; 56 if (__fstatfs(fd, &kbuf)<0) return -1;
57 fixup(buf, &kbuf); 57 fixup(buf, &kbuf);
58 return 0; 58 return 0;
59 } 59 }
60 60
61 LFS64(statvfs); 61 LFS64(statvfs);
viettrungluu 2016/01/12 23:15:26 I wonder if we shouldn't just get rid of LFS64 (an
62 LFS64(statfs); 62 weak_alias(__statfs, statfs64);
63 LFS64(fstatvfs); 63 LFS64(fstatvfs);
64 LFS64(fstatfs); 64 weak_alias(__fstatfs, fstatfs64);
OLDNEW
« no previous file with comments | « fusl/src/mman/mmap.c ('k') | fusl/src/stdio/fseek.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698