From a5406364ac949f91867352cb2ae867629f083c5b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 18 Feb 2019 11:49:54 +0100 Subject: libio: Eliminate _IO_stdin, _IO_stdout, _IO_stderr These variables are only used to determine if a stdio stream is a pre-allocated stream, but it is possible to do so by comparing a FILE * to all pre-allocated stream objects. As a result, it is not necessary to keep those pointers in separate variables. Behavior with symbol interposition is unchanged because _IO_stdin_, _IO_stdout_, _IO_stderr_ are exported, and refer to objects outside of libc if symbol interposition or copy relocations are involved. (The removed variables _IO_stdin, _IO_stdout, _IO_stderr were not exported, of course.) --- libio/iolibio.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libio/iolibio.h') diff --git a/libio/iolibio.h b/libio/iolibio.h index 2642d71e4f..9561833655 100644 --- a/libio/iolibio.h +++ b/libio/iolibio.h @@ -58,8 +58,6 @@ extern int _IO_vsscanf (const char *, const char *, __gnuc_va_list) __THROW; == _IO_pos_BAD ? EOF : 0) #define _IO_rewind(FILE) \ (void) _IO_seekoff_unlocked (FILE, 0, 0, _IOS_INPUT|_IOS_OUTPUT) -#define _IO_vprintf(FORMAT, ARGS) \ - _IO_vfprintf (_IO_stdout, FORMAT, ARGS) #define _IO_freopen(FILENAME, MODE, FP) \ (_IO_file_close_it (FP), \ _IO_file_fopen (FP, FILENAME, MODE, 1)) -- cgit v1.2.3