author | Rich Felker <dalias@aerifal.cx> | 2014年05月24日 22:54:05 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014年05月24日 22:54:05 -0400 |
commit | 594c827a22124ae550b9a877b8188e0898dff8db (patch) | |
tree | f48f403bf1b6aa543f20783fa501c573aaa3a63e /src/stdio/tmpfile.c | |
parent | 44d28e55121f9a7d736df59c09b963e17c8c4cfa (diff) | |
download | musl-594c827a22124ae550b9a877b8188e0898dff8db.tar.gz |
-rw-r--r-- | src/stdio/tmpfile.c | 2 |
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); |