projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor stdio open file list handling, move it out of global libc struct
[musl]
/
src
/
stdio
/
__stdio_exit.c
diff --git
a/src/stdio/__stdio_exit.c
b/src/stdio/__stdio_exit.c
index
716e5f7
..
191b445
100644
(file)
--- a/
src/stdio/__stdio_exit.c
+++ b/
src/stdio/__stdio_exit.c
@@
-16,8
+16,7
@@
static void close_file(FILE *f)
void __stdio_exit(void)
{
FILE *f;
- OFLLOCK();
- for (f=libc.ofl_head; f; f=f->next) close_file(f);
+ for (f=*__ofl_lock(); f; f=f->next) close_file(f);
close_file(__stdin_used);
close_file(__stdout_used);
}