musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/tmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/tmpfile.c')
-rw-r--r--src/stdio/tmpfile.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c
index a6b72236..18c232f7 100644
--- a/src/stdio/tmpfile.c
+++ b/src/stdio/tmpfile.c
@@ -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;
}
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 05:49:06 +0000

AltStyle によって変換されたページ (->オリジナル) /