提交 b172dc8b 编写于 作者: R Rich Felker

make tmpfile slightly more efficient (use unlink syscall instead of remove)

上级 9b96220e
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册