Revert "deprecate gets and tmpnam"

This reverts commit 92e9211d7b.

It broke the build, and apparently cannot be fixed until GCC
has been patched.
This commit is contained in:
Augustin Cavalier
2020-01-04 15:26:08 -05:00
parent 8793a2cd57
commit d2f7af0edc
2 changed files with 4 additions and 11 deletions
+2 -11
View File
@@ -32,10 +32,7 @@
#define L_ctermid 32
#define L_cuserid 32
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L) \
|| (defined(__cplusplus) && __cplusplus < 201402L)
#define L_tmpnam 512
#endif
#define P_tmpdir "/tmp/"
@@ -163,10 +160,7 @@ extern int getchar(void);
extern int getchar_unlocked(void);
extern int fgetc(FILE *stream);
extern int fgetc_unlocked(FILE *stream);
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L) \
|| (defined(__cplusplus) && __cplusplus < 201402L)
extern char *gets(char *buffer);
#endif
extern char *fgets(char *string, int stringLength, FILE *stream);
extern char *fgets_unlocked(char *string, int stringLength, FILE *stream);
@@ -198,13 +192,10 @@ extern char *ctermid(char *controllingTerminal);
extern char *cuserid(char *s);
/* temporary files */
extern FILE *tmpfile(void);
extern char *tmpnam_r(char *nameBuffer);
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L) \
|| (defined(__cplusplus) && __cplusplus < 201402L)
extern char *tempnam(char const *path, char const *prefix);
extern FILE *tmpfile(void);
extern char *tmpnam(char *nameBuffer);
#endif
extern char *tmpnam_r(char *nameBuffer);
#include <stdio_post.h>
+2
View File
@@ -70,6 +70,7 @@ extern void setbuf (FILE *file, char *buff);
extern int setvbuf(FILE *file, char *buff, int mode, size_t size);
extern int sscanf(char const *str, char const *format, ...);
extern FILE *tmpfile(void);
extern char *tmpnam(char *nameBuffer);
extern int ungetc(int c, FILE *stream);
extern int vscanf(char const *format, va_list ap);
extern int vsscanf(char const *str, char const *format, va_list ap);
@@ -80,6 +81,7 @@ extern char *fgets(char *, int, FILE *);
extern int fputc(int, FILE *);
extern int fputs(const char *, FILE*);
extern int getc(FILE *);
extern char *gets(char *);
extern int getw(FILE *);
extern int getchar(void);
extern int putc(int, FILE *);