X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ftmpfile.c;fp=src%2Fstdio%2Ftmpfile.c;h=b050f7fdba85c764995e999141a5b5b6db302b6d;hb=aa398f56fa398f2202b04e82c67f822f3233786f;hp=185025f13ee3c7872b2fa85c52e400d82b4021a6;hpb=be82e122bf37fdcd1766d1ed220f0300b30ab6a3;p=musl diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c index 185025f1..b050f7fd 100644 --- a/src/stdio/tmpfile.c +++ b/src/stdio/tmpfile.c @@ -11,7 +11,7 @@ FILE *tmpfile(void) for (;;) { s = tmpnam(buf); if (!s) return NULL; - fd = __syscall_open(s, O_RDWR | O_CREAT | O_EXCL, 0600); + fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600); if (fd >= 0) { f = __fdopen(fd, "w+"); remove(s);