diff options
Diffstat (limited to 'src/stdio/fclose.c')
-rw-r--r-- | src/stdio/fclose.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index 38e8a1e3..317b3c90 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -1,4 +1,8 @@ #include "stdio_impl.h" +#include "libc.h" + +static void dummy(FILE *f) { } +weak_alias(dummy, __unlist_locked_file); int fclose(FILE *f) { @@ -7,6 +11,8 @@ int fclose(FILE *f) FFINALLOCK(f); + __unlist_locked_file(f); + if (!(perm = f->flags & F_PERM)) { OFLLOCK(); if (f->prev) f->prev->next = f->next; |