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

Side by Side Diff: fusl/src/linux/inotify.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 #include <sys/inotify.h> 1 #include <sys/inotify.h>
2 #include <errno.h> 2 #include <errno.h>
3 #include "syscall.h" 3 #include "syscall.h"
4 4
5 int inotify_init() 5 int inotify_init() {
6 { 6 return inotify_init1(0);
7 » return inotify_init1(0);
8 } 7 }
9 int inotify_init1(int flags) 8 int inotify_init1(int flags) {
10 { 9 int r = __syscall(SYS_inotify_init1, flags);
11 » int r = __syscall(SYS_inotify_init1, flags);
12 #ifdef SYS_inotify_init 10 #ifdef SYS_inotify_init
13 » if (r==-ENOSYS && !flags) r = __syscall(SYS_inotify_init); 11 if (r == -ENOSYS && !flags)
12 r = __syscall(SYS_inotify_init);
14 #endif 13 #endif
15 » return __syscall_ret(r); 14 return __syscall_ret(r);
16 } 15 }
17 16
18 int inotify_add_watch(int fd, const char *pathname, uint32_t mask) 17 int inotify_add_watch(int fd, const char* pathname, uint32_t mask) {
19 { 18 return syscall(SYS_inotify_add_watch, fd, pathname, mask);
20 » return syscall(SYS_inotify_add_watch, fd, pathname, mask);
21 } 19 }
22 20
23 int inotify_rm_watch(int fd, int wd) 21 int inotify_rm_watch(int fd, int wd) {
24 { 22 return syscall(SYS_inotify_rm_watch, fd, wd);
25 » return syscall(SYS_inotify_rm_watch, fd, wd);
26 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698