make tmpfile slightly more efficient (use unlink syscall instead of remove)
This commit is contained in:
parent
9b96220e5a
commit
b172dc8b58
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ FILE *tmpfile(void)
|
|||
fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600);
|
||||
if (fd >= 0) {
|
||||
f = __fdopen(fd, "w+");
|
||||
remove(s);
|
||||
syscall(SYS_unlink, s);
|
||||
return f;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue