From 54656b39c6f0f8c86d565baf18d8401d3d26ebca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 8 May 2015 23:46:15 +0200 Subject: [PATCH] stdio.h: declare fcloseall() GNU extension Since libroot already exports it and I've found some code using it. --- headers/posix/stdio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/posix/stdio.h b/headers/posix/stdio.h index 59364e8b037..30288184f19 100644 --- a/headers/posix/stdio.h +++ b/headers/posix/stdio.h @@ -70,6 +70,9 @@ extern FILE *fopen(const char *name, const char *mode); extern FILE *freopen(const char *name, const char *mode, FILE *stream); extern FILE *fdopen(int fd, const char *mode); extern int fclose(FILE *stream); +#ifdef _GNU_SOURCE +extern int fcloseall(void); +#endif extern int fileno(FILE *stream); extern int fileno_unlocked(FILE *stream);