+2016-11-16 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #20829]
+ * stdio-common/Versions (__snprintf): Add to version
+ GLIBC_PRIVATE.
+ * include/stdio.h (__snprintf): Use libc_hidden_proto.
+ * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
+ * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
+ of snprintf.
+ * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
+
2016-11-16 Zack Weinberg <zackw@panix.com>
* string/string.h: Remove obsolete comment stating that
if (rounds_custom)
{
- int n = snprintf (cp, MAX (0, buflen), "%s%zu$",
- sha256_rounds_prefix, rounds);
+ int n = __snprintf (cp, MAX (0, buflen), "%s%zu$",
+ sha256_rounds_prefix, rounds);
cp += n;
buflen -= n;
}
if (rounds_custom)
{
- int n = snprintf (cp, MAX (0, buflen), "%s%zu$",
- sha512_rounds_prefix, rounds);
+ int n = __snprintf (cp, MAX (0, buflen), "%s%zu$",
+ sha512_rounds_prefix, rounds);
cp += n;
buflen -= n;
}
extern int __snprintf (char *__restrict __s, size_t __maxlen,
const char *__restrict __format, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
+libc_hidden_proto (__snprintf)
extern int __vsnprintf (char *__restrict __s, size_t __maxlen,
const char *__restrict __format, _G_va_list __arg)
__attribute__ ((__format__ (__printf__, 3, 0)));
GLIBC_PRIVATE {
# global variables
_itoa_lower_digits;
+ # Used in libcrypt.
+ __snprintf;
}
}
return done;
}
+libc_hidden_def (__snprintf)
ldbl_weak_alias (__snprintf, snprintf)