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

Side by Side Diff: fusl/src/unistd/close.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 <unistd.h> 1 #include <unistd.h>
2 #include <errno.h> 2 #include <errno.h>
3 #include "syscall.h" 3 #include "syscall.h"
4 #include "libc.h" 4 #include "libc.h"
5 5
6 static int dummy(int fd) 6 static int dummy(int fd) {
7 { 7 return fd;
8 » return fd;
9 } 8 }
10 9
11 weak_alias(dummy, __aio_close); 10 weak_alias(dummy, __aio_close);
12 11
13 int close(int fd) 12 int close(int fd) {
14 { 13 fd = __aio_close(fd);
15 » fd = __aio_close(fd); 14 int r = __syscall_cp(SYS_close, fd);
16 » int r = __syscall_cp(SYS_close, fd); 15 if (r == -EINTR)
17 » if (r == -EINTR) r = 0; 16 r = 0;
18 » return __syscall_ret(r); 17 return __syscall_ret(r);
19 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698