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

Side by Side Diff: fusl/src/linux/sync_file_range.c

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 #define _GNU_SOURCE 1 #define _GNU_SOURCE
2 #include <fcntl.h> 2 #include <fcntl.h>
3 #include <errno.h> 3 #include <errno.h>
4 #include "syscall.h" 4 #include "syscall.h"
5 5
6 int sync_file_range(int fd, off_t pos, off_t len, unsigned flags) 6 int sync_file_range(int fd, off_t pos, off_t len, unsigned flags) {
7 {
8 #if defined(SYS_sync_file_range2) 7 #if defined(SYS_sync_file_range2)
9 » return syscall(SYS_sync_file_range2, fd, flags, 8 return syscall(SYS_sync_file_range2, fd, flags, __SYSCALL_LL_E(pos),
10 » » __SYSCALL_LL_E(pos), __SYSCALL_LL_E(len)); 9 __SYSCALL_LL_E(len));
11 #elif defined(SYS_sync_file_range) 10 #elif defined(SYS_sync_file_range)
12 » return syscall(SYS_sync_file_range, fd, 11 return syscall(SYS_sync_file_range, fd, __SYSCALL_LL_O(pos),
13 » » __SYSCALL_LL_O(pos), __SYSCALL_LL_E(len), flags); 12 __SYSCALL_LL_E(len), flags);
14 #else 13 #else
15 » return __syscall_ret(-ENOSYS); 14 return __syscall_ret(-ENOSYS);
16 #endif 15 #endif
17 } 16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698