summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-04-03 20:14:37 +0000
committerCy Schubert <cy@FreeBSD.org>2018-04-03 20:14:37 +0000
commitc13559d31e90a8c405771be36ab9ccfa41d4ebd6 (patch)
treedcbdb29aa6c0e212315482ee62ba06d69be18ef3 /include
parent7ad6003d87b928cce8eb427fd8bdc71f71d01d07 (diff)
downloadsrc-test2-c13559d31e90a8c405771be36ab9ccfa41d4ebd6.tar.gz
src-test2-c13559d31e90a8c405771be36ab9ccfa41d4ebd6.zip
Notes
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 68c8dd76a0c2..d6986e154273 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -51,6 +51,11 @@ typedef __size_t size_t;
#define _SIZE_T_DECLARED
#endif
+#ifndef _RSIZE_T_DEFINED
+#define _RSIZE_T_DEFINED
+typedef size_t rsize_t;
+#endif
+
#if __POSIX_VISIBLE >= 200809
#ifndef _OFF_T_DECLARED
#define _OFF_T_DECLARED
@@ -265,6 +270,9 @@ size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict);
int getc(FILE *);
int getchar(void);
char *gets(char *);
+#if defined(__EXT1_VISIBLE) && __EXT1_VISIBLE == 1
+char *gets_s(char *, rsize_t);
+#endif
void perror(const char *);
int printf(const char * __restrict, ...);
int putc(int, FILE *);