projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use O_CLOEXEC to open semaphore files in sem_open
[musl]
/
src
/
stdio
/
tmpfile.c
diff --git
a/src/stdio/tmpfile.c
b/src/stdio/tmpfile.c
index
18c232f
..
926d660
100644
(file)
--- 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+");
fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600);
if (fd >= 0) {
f = __fdopen(fd, "w+");
- syscall(SYS_unlink, s);
+
__
syscall(SYS_unlink, s);
return f;
}
}
return f;
}
}