global cleanup to use the new syscall interface

This commit is contained in:
Rich Felker
2011-03-20 00:16:43 -04:00
parent be82e122bf
commit aa398f56fa
160 changed files with 180 additions and 238 deletions

View File

@ -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);