X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Ftmpfile.c;h=b050f7fdba85c764995e999141a5b5b6db302b6d;hp=185025f13ee3c7872b2fa85c52e400d82b4021a6;hb=aa398f56fa398f2202b04e82c67f822f3233786f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 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);