aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-09-09 11:15:14 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-09-09 11:15:14 +0000
commit7f3ea0ab3a381bf1a1e5ca899bad8ca55ba17519 (patch)
tree799dc4ab06737b990006b1408ef5a6fe4974008b /include
parent26d9565dfc3d2c7ae9ef26d3e2170bb07c94bea6 (diff)
downloadsrc-7f3ea0ab3a381bf1a1e5ca899bad8ca55ba17519.tar.gz
src-7f3ea0ab3a381bf1a1e5ca899bad8ca55ba17519.zip
Make snprintf(3) and vscanf(3) definitions available under appropriate
POSIX visibility. Reported by: jbeich Reviewed by: jilles PR: 207287 MFC after: 1 week
Notes
Notes: svn path=/head/; revision=352056
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 41ae893dd7db..97e8144372f6 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -294,14 +294,16 @@ int vprintf(const char * __restrict, __va_list);
int vsprintf(char * __restrict, const char * __restrict,
__va_list);
-#if __ISO_C_VISIBLE >= 1999
+#if __ISO_C_VISIBLE >= 1999 || __POSIX_VISIBLE >= 199506
int snprintf(char * __restrict, size_t, const char * __restrict,
...) __printflike(3, 4);
+int vsnprintf(char * __restrict, size_t, const char * __restrict,
+ __va_list) __printflike(3, 0);
+#endif
+#if __ISO_C_VISIBLE >= 1999
int vfscanf(FILE * __restrict, const char * __restrict, __va_list)
__scanflike(2, 0);
int vscanf(const char * __restrict, __va_list) __scanflike(1, 0);
-int vsnprintf(char * __restrict, size_t, const char * __restrict,
- __va_list) __printflike(3, 0);
int vsscanf(const char * __restrict, const char * __restrict, __va_list)
__scanflike(2, 0);
#endif