diff options
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/__fopen_rb_ca.c | 2 | ||||
-rw-r--r-- | src/stdio/fopen.c | 2 | ||||
-rw-r--r-- | src/stdio/tmpfile.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/stdio/__fopen_rb_ca.c b/src/stdio/__fopen_rb_ca.c index 9202c8ce..b72c6304 100644 --- a/src/stdio/__fopen_rb_ca.c +++ b/src/stdio/__fopen_rb_ca.c @@ -6,7 +6,7 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le { memset(f, 0, sizeof *f); - f->fd = syscall(SYS_open, filename, O_RDONLY|O_LARGEFILE|O_CLOEXEC, 0); + f->fd = sys_open(filename, O_RDONLY|O_CLOEXEC); if (f->fd < 0) return 0; f->flags = F_NOWR | F_PERM; diff --git a/src/stdio/fopen.c b/src/stdio/fopen.c index da17ce8b..3d97cfa8 100644 --- a/src/stdio/fopen.c +++ b/src/stdio/fopen.c @@ -18,7 +18,7 @@ FILE *fopen(const char *restrict filename, const char *restrict mode) /* Compute the flags to pass to open() */ flags = __fmodeflags(mode); - fd = syscall_cp(SYS_open, filename, flags|O_LARGEFILE, 0666); + fd = sys_open_cp(filename, flags, 0666); if (fd < 0) return 0; f = __fdopen(fd, mode); diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c index 926d6601..b0d0ba07 100644 --- a/src/stdio/tmpfile.c +++ b/src/stdio/tmpfile.c @@ -14,7 +14,7 @@ FILE *tmpfile(void) for (try=0; try<MAXTRIES; try++) { s = tmpnam(buf); if (!s) return 0; - fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600); + fd = sys_open(s, O_RDWR|O_CREAT|O_EXCL, 0600); if (fd >= 0) { f = __fdopen(fd, "w+"); __syscall(SYS_unlink, s); |