From 92bd26ce8e7fba1773345d3f6acbc12cc96c01f9 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 9 Mar 2014 20:09:26 +0100 Subject: [PATCH] stdio.h: Add missing *_unlocked declarations Configure scripts would find the symbols and thus use them and assume our headers declare them. This fixes building gcc_bootstrap. --- headers/posix/stdio.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headers/posix/stdio.h b/headers/posix/stdio.h index f5ad972b07..b5fa277f30 100644 --- a/headers/posix/stdio.h +++ b/headers/posix/stdio.h @@ -121,7 +121,9 @@ extern int setbuffer(FILE *stream, char *buf, size_t size); extern int setlinebuf(FILE *stream); extern size_t fwrite(const void *buffer, size_t size, size_t numItems, FILE *stream); +extern size_t fwrite_unlocked(const void *buffer, size_t size, size_t numItems, FILE *stream); extern size_t fread(void *buffer, size_t size, size_t numItems, FILE *stream); +extern size_t fread_unlocked(void *buffer, size_t size, size_t numItems, FILE *stream); extern int putc(int c, FILE *stream); extern int putchar(int c); @@ -131,6 +133,7 @@ extern int fputc(int c, FILE *stream); extern int fputc_unlocked(int c, FILE *stream); extern int puts(const char *string); extern int fputs(const char *string, FILE *stream); +extern int fputs_unlocked(const char *string, FILE *stream); extern int getc(FILE *stream); extern int getc_unlocked(FILE *stream); @@ -138,8 +141,10 @@ extern int ungetc(int c, FILE *stream); extern int getchar(void); extern int getchar_unlocked(void); extern int fgetc(FILE *stream); +extern int fgetc_unlocked(FILE *stream); extern char *gets(char *buffer); extern char *fgets(char *string, int stringLength, FILE *stream); +extern char *fgets_unlocked(char *string, int stringLength, FILE *stream); extern ssize_t getdelim(char **_line, size_t *_length, int delimiter, FILE *stream);