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

Side by Side Diff: fusl/src/stdio/fopen.c

Issue 1716893002: [fusl] Remove LFS64 macro (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: apptest rebase 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
« no previous file with comments | « fusl/src/stdio/fgetpos.c ('k') | fusl/src/stdio/freopen.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 "stdio_impl.h" 1 #include "stdio_impl.h"
2 #include <fcntl.h> 2 #include <fcntl.h>
3 #include <string.h> 3 #include <string.h>
4 #include <errno.h> 4 #include <errno.h>
5 5
6 FILE* fopen(const char* restrict filename, const char* restrict mode) { 6 FILE* fopen(const char* restrict filename, const char* restrict mode) {
7 FILE* f; 7 FILE* f;
8 int fd; 8 int fd;
9 int flags; 9 int flags;
10 10
(...skipping 12 matching lines...) Expand all
23 if (flags & O_CLOEXEC) 23 if (flags & O_CLOEXEC)
24 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); 24 __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC);
25 25
26 f = __fdopen(fd, mode); 26 f = __fdopen(fd, mode);
27 if (f) 27 if (f)
28 return f; 28 return f;
29 29
30 __syscall(SYS_close, fd); 30 __syscall(SYS_close, fd);
31 return 0; 31 return 0;
32 } 32 }
33
34 LFS64(fopen);
OLDNEW
« no previous file with comments | « fusl/src/stdio/fgetpos.c ('k') | fusl/src/stdio/freopen.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698