diff options
Diffstat (limited to 'stdio')
-rw-r--r-- | stdio/Versions | 3 | ||||
-rw-r--r-- | stdio/fputs.c | 3 | ||||
-rw-r--r-- | stdio/stdio.h | 7 |
3 files changed, 11 insertions, 2 deletions
diff --git a/stdio/Versions b/stdio/Versions index e3df0765a6..9700ba68cc 100644 --- a/stdio/Versions +++ b/stdio/Versions @@ -53,7 +53,8 @@ libc { # f* feof_unlocked; ferror_unlocked; fflush_unlocked; fgets_unlocked; - fileno_unlocked; fputc_unlocked; fread_unlocked; fwrite_unlocked; + fileno_unlocked; fputc_unlocked; fputs_unlocked; + fread_unlocked; fwrite_unlocked; # g* getc_unlocked; getchar_unlocked; diff --git a/stdio/fputs.c b/stdio/fputs.c index 16406bbb6a..8e5e72512b 100644 --- a/stdio/fputs.c +++ b/stdio/fputs.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,3 +32,4 @@ fputs (const char *s, FILE *stream) return EOF; return 0; } +weak_alias (fputs, fputs_unlocked) diff --git a/stdio/stdio.h b/stdio/stdio.h index eac8bd41b1..7594f13840 100644 --- a/stdio/stdio.h +++ b/stdio/stdio.h @@ -684,6 +684,13 @@ getline (char **__lineptr, size_t *__n, FILE *__stream) /* Write a string to STREAM. */ extern int fputs __P ((__const char *__restrict __s, FILE *__restrict __stream)); + +#ifdef __USE_GNU +/* This function does the same as `fputs' but does not lock the stream. */ +extern int fputs_unlocked __P ((__const char *__restrict __s, + FILE *__restrict __stream)); +#endif + /* Write a string, followed by a newline, to stdout. */ extern int puts __P ((__const char *__s)); |