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:
+2
-11
@@ -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>
|
||||
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user