X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libio%2Fiofputs_u.c;h=c9e7a4d1e9b8e5ec7859a1592fe1c898c9b34ced;hb=7b8481b330720d28c019a2e5994492a1923d5daa;hp=dc2536742c4e9557688d18a1e752415826162a12;hpb=d4697bc93dc27a7bbf275ce7dd351bb1bfcf28de;p=thirdparty%2Fglibc.git
diff --git a/libio/iofputs_u.c b/libio/iofputs_u.c
index dc2536742c4..c9e7a4d1e9b 100644
--- a/libio/iofputs_u.c
+++ b/libio/iofputs_u.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2019 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
@@ -13,7 +13,7 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
- .
+ .
As a special exception, if you link the code in this file with
files compiled with a GNU compiler to produce an executable,
@@ -29,15 +29,15 @@
#include
int
-fputs_unlocked (str, fp)
- const char *str;
- _IO_FILE *fp;
+__fputs_unlocked (const char *str, FILE *fp)
{
- _IO_size_t len = strlen (str);
+ size_t len = strlen (str);
int result = EOF;
CHECK_FILE (fp, EOF);
if (_IO_fwide (fp, -1) == -1 && _IO_sputn (fp, str, len) == len)
result = 1;
return result;
}
-libc_hidden_def (fputs_unlocked)
+libc_hidden_def (__fputs_unlocked)
+weak_alias (__fputs_unlocked, fputs_unlocked)
+libc_hidden_weak (fputs_unlocked)