@@ -104,11 +104,12 @@ libc {
pclose; popen;
}
GLIBC_2.2 {
- # functions used in libstdc++
+ # Functions planned to be used in libstdc++ (but such use never
+ # happened in a GCC release).
_IO_fgetpos; _IO_fgetpos64; _IO_fsetpos; _IO_fsetpos64;
_IO_wdo_write; _IO_wfile_jumps; _IO_wfile_overflow; _IO_wfile_seekoff;
_IO_wfile_setbuf; _IO_wfile_sync; _IO_wfile_underflow; _IO_wfile_xsputn;
- _IO_adjust_wcolumn; _IO_free_wbackup_area; _IO_init_wmarker;
+ _IO_free_wbackup_area; _IO_init_wmarker;
_IO_least_wmarker; _IO_seekwmark; _IO_sputbackwc; _IO_sungetwc;
_IO_switch_to_main_wget_area; _IO_switch_to_wbackup_area;
_IO_switch_to_wget_mode; _IO_unsave_wmarkers; _IO_wdefault_doallocate;
@@ -73,8 +73,7 @@ struct _IO_FILE
int _flags2;
__off_t _old_offset; /* This used to be _offset but it's too small. */
- /* 1+column number of pbase(); 0 is unknown. */
- unsigned short _cur_column;
+ unsigned short _cur_column_unused; /* Always 0. */
signed char _vtable_offset;
char _shortbuf[1];
@@ -446,8 +446,6 @@ new_do_write (FILE *fp, const char *data, size_t to_do)
fp->_offset = new_pos;
}
count = _IO_SYSWRITE (fp, data, to_do);
- if (fp->_cur_column && count)
- fp->_cur_column = _IO_adjust_column (fp->_cur_column - 1, data, count) + 1;
_IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
fp->_IO_write_base = fp->_IO_write_ptr = fp->_IO_buf_base;
fp->_IO_write_end = (fp->_mode <= 0
@@ -547,7 +547,7 @@ _IO_old_init (FILE *fp, int flags)
fp->_IO_backup_base = NULL;
fp->_IO_save_end = NULL;
fp->_markers = NULL;
- fp->_cur_column = 0;
+ fp->_cur_column_unused = 0;
#if _IO_JUMPS_OFFSET
fp->_vtable_offset = 0;
#endif
@@ -670,16 +670,18 @@ _IO_sungetc (FILE *fp)
return result;
}
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
+/* This is referenced in the old libstdc++ streambuf implementation.
+ Since the column number in glibc is always 0, this is only called
+ if the application calls streambuf::set_column. */
unsigned
-_IO_adjust_column (unsigned start, const char *line, int count)
+__IO_adjust_column (unsigned start, const char *line, int count)
{
- const char *ptr = line + count;
- while (ptr > line)
- if (*--ptr == '\n')
- return line + count - ptr - 1;
- return start + count;
+ /* Indicate that no column number information is available. */
+ return -1;
}
-libc_hidden_def (_IO_adjust_column)
+compat_symbol (libc, __IO_adjust_column, _IO_adjust_column, GLIBC_2_0);
+#endif
int
_IO_flush_all_lockp (int do_lock)
@@ -374,8 +374,6 @@ extern void _IO_unsave_markers (FILE *) __THROW;
libc_hidden_proto (_IO_unsave_markers)
extern void _IO_setb (FILE *, char *, char *, int) __THROW;
libc_hidden_proto (_IO_setb)
-extern unsigned _IO_adjust_column (unsigned, const char *, int) __THROW;
-libc_hidden_proto (_IO_adjust_column)
#define _IO_sputn(__fp, __s, __n) _IO_XSPUTN (__fp, __s, __n)
ssize_t _IO_least_wmarker (FILE *, wchar_t *) __THROW;
@@ -394,7 +392,6 @@ extern wint_t _IO_sungetwc (FILE *) __THROW;
extern void _IO_wdoallocbuf (FILE *) __THROW;
libc_hidden_proto (_IO_wdoallocbuf)
extern void _IO_unsave_wmarkers (FILE *) __THROW;
-extern unsigned _IO_adjust_wcolumn (unsigned, const wchar_t *, int) __THROW;
extern off64_t get_file_offset (FILE *fp);
/* Marker-related function. */
@@ -276,8 +276,6 @@ old_do_write (FILE *fp, const char *data, size_t to_do)
fp->_old_offset = new_pos;
}
count = _IO_SYSWRITE (fp, data, to_do);
- if (fp->_cur_column && count)
- fp->_cur_column = _IO_adjust_column (fp->_cur_column - 1, data, count) + 1;
_IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
fp->_IO_write_base = fp->_IO_write_ptr = fp->_IO_buf_base;
fp->_IO_write_end = ((fp->_flags & (_IO_LINE_BUF | _IO_UNBUFFERED))
@@ -528,17 +528,6 @@ _IO_sungetwc (FILE *fp)
return result;
}
-
-unsigned
-_IO_adjust_wcolumn (unsigned start, const wchar_t *line, int count)
-{
- const wchar_t *ptr = line + count;
- while (ptr > line)
- if (*--ptr == L'\n')
- return line + count - ptr - 1;
- return start + count;
-}
-
void
_IO_init_wmarker (struct _IO_marker *marker, FILE *fp)
{
@@ -59,8 +59,6 @@ GLIBC_2.2.6 _Exit F
GLIBC_2.2.6 _IO_2_1_stderr_ D 0x98
GLIBC_2.2.6 _IO_2_1_stdin_ D 0x98
GLIBC_2.2.6 _IO_2_1_stdout_ D 0x98
-GLIBC_2.2.6 _IO_adjust_column F
-GLIBC_2.2.6 _IO_adjust_wcolumn F
GLIBC_2.2.6 _IO_default_doallocate F
GLIBC_2.2.6 _IO_default_finish F
GLIBC_2.2.6 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.17 _Exit F
GLIBC_2.17 _IO_2_1_stderr_ D 0xe0
GLIBC_2.17 _IO_2_1_stdin_ D 0xe0
GLIBC_2.17 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.17 _IO_adjust_column F
-GLIBC_2.17 _IO_adjust_wcolumn F
GLIBC_2.17 _IO_default_doallocate F
GLIBC_2.17 _IO_default_finish F
GLIBC_2.17 _IO_default_pbackfail F
@@ -1912,7 +1912,6 @@ GLIBC_2.17 secure_getenv F
GLIBC_2.18 __cxa_thread_atexit_impl F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -2,8 +2,6 @@ GLIBC_2.32 _Exit F
GLIBC_2.32 _IO_2_1_stderr_ D 0x9c
GLIBC_2.32 _IO_2_1_stdin_ D 0x9c
GLIBC_2.32 _IO_2_1_stdout_ D 0x9c
-GLIBC_2.32 _IO_adjust_column F
-GLIBC_2.32 _IO_adjust_wcolumn F
GLIBC_2.32 _IO_default_doallocate F
GLIBC_2.32 _IO_default_finish F
GLIBC_2.32 _IO_default_pbackfail F
@@ -500,8 +500,6 @@ GLIBC_2.4 _Exit F
GLIBC_2.4 _IO_2_1_stderr_ D 0xa0
GLIBC_2.4 _IO_2_1_stdin_ D 0xa0
GLIBC_2.4 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.4 _IO_adjust_column F
-GLIBC_2.4 _IO_adjust_wcolumn F
GLIBC_2.4 _IO_default_doallocate F
GLIBC_2.4 _IO_default_finish F
GLIBC_2.4 _IO_default_pbackfail F
@@ -497,8 +497,6 @@ GLIBC_2.4 _Exit F
GLIBC_2.4 _IO_2_1_stderr_ D 0xa0
GLIBC_2.4 _IO_2_1_stdin_ D 0xa0
GLIBC_2.4 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.4 _IO_adjust_column F
-GLIBC_2.4 _IO_adjust_wcolumn F
GLIBC_2.4 _IO_default_doallocate F
GLIBC_2.4 _IO_default_finish F
GLIBC_2.4 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.29 _Exit F
GLIBC_2.29 _IO_2_1_stderr_ D 0x98
GLIBC_2.29 _IO_2_1_stdin_ D 0x98
GLIBC_2.29 _IO_2_1_stdout_ D 0x98
-GLIBC_2.29 _IO_adjust_column F
-GLIBC_2.29 _IO_adjust_wcolumn F
GLIBC_2.29 _IO_default_doallocate F
GLIBC_2.29 _IO_default_finish F
GLIBC_2.29 _IO_default_pbackfail F
@@ -129,8 +129,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xa0
GLIBC_2.2 _IO_2_1_stdin_ D 0xa0
GLIBC_2.2 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -1914,7 +1914,6 @@ GLIBC_2.17 secure_getenv F
GLIBC_2.18 __cxa_thread_atexit_impl F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -125,8 +125,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xe0
GLIBC_2.2 _IO_2_1_stdin_ D 0xe0
GLIBC_2.2 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -501,8 +501,6 @@ GLIBC_2.4 _Exit F
GLIBC_2.4 _IO_2_1_stderr_ D 0x98
GLIBC_2.4 _IO_2_1_stdin_ D 0x98
GLIBC_2.4 _IO_2_1_stdout_ D 0x98
-GLIBC_2.4 _IO_adjust_column F
-GLIBC_2.4 _IO_adjust_wcolumn F
GLIBC_2.4 _IO_default_doallocate F
GLIBC_2.4 _IO_default_finish F
GLIBC_2.4 _IO_default_pbackfail F
@@ -1870,7 +1870,6 @@ GLIBC_2.17 secure_getenv F
GLIBC_2.18 __cxa_thread_atexit_impl F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -2,8 +2,6 @@ GLIBC_2.18 _Exit F
GLIBC_2.18 _IO_2_1_stderr_ D 0x98
GLIBC_2.18 _IO_2_1_stdin_ D 0x98
GLIBC_2.18 _IO_2_1_stdout_ D 0x98
-GLIBC_2.18 _IO_adjust_column F
-GLIBC_2.18 _IO_adjust_wcolumn F
GLIBC_2.18 _IO_default_doallocate F
GLIBC_2.18 _IO_default_finish F
GLIBC_2.18 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.18 _Exit F
GLIBC_2.18 _IO_2_1_stderr_ D 0x98
GLIBC_2.18 _IO_2_1_stdin_ D 0x98
GLIBC_2.18 _IO_2_1_stdout_ D 0x98
-GLIBC_2.18 _IO_adjust_column F
-GLIBC_2.18 _IO_adjust_wcolumn F
GLIBC_2.18 _IO_default_doallocate F
GLIBC_2.18 _IO_default_finish F
GLIBC_2.18 _IO_default_pbackfail F
@@ -1457,7 +1457,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xa0
GLIBC_2.2 _IO_2_1_stdin_ D 0xa0
GLIBC_2.2 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_do_write F
GLIBC_2.2 _IO_fclose F
GLIBC_2.2 _IO_fdopen F
@@ -1455,7 +1455,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xa0
GLIBC_2.2 _IO_2_1_stdin_ D 0xa0
GLIBC_2.2 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_do_write F
GLIBC_2.2 _IO_fclose F
GLIBC_2.2 _IO_fdopen F
@@ -1455,7 +1455,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xa0
GLIBC_2.2 _IO_2_1_stdin_ D 0xa0
GLIBC_2.2 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_do_write F
GLIBC_2.2 _IO_fclose F
GLIBC_2.2 _IO_fdopen F
@@ -1451,7 +1451,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xe0
GLIBC_2.2 _IO_2_1_stdin_ D 0xe0
GLIBC_2.2 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_do_write F
GLIBC_2.2 _IO_fclose F
GLIBC_2.2 _IO_fdopen F
@@ -2,8 +2,6 @@ GLIBC_2.21 _Exit F
GLIBC_2.21 _IO_2_1_stderr_ D 0x98
GLIBC_2.21 _IO_2_1_stdin_ D 0x98
GLIBC_2.21 _IO_2_1_stdout_ D 0x98
-GLIBC_2.21 _IO_adjust_column F
-GLIBC_2.21 _IO_adjust_wcolumn F
GLIBC_2.21 _IO_default_doallocate F
GLIBC_2.21 _IO_default_finish F
GLIBC_2.21 _IO_default_pbackfail F
@@ -3,8 +3,6 @@ GLIBC_2.35 _Fork F
GLIBC_2.35 _IO_2_1_stderr_ D 0x9c
GLIBC_2.35 _IO_2_1_stdin_ D 0x9c
GLIBC_2.35 _IO_2_1_stdout_ D 0x9c
-GLIBC_2.35 _IO_adjust_column F
-GLIBC_2.35 _IO_adjust_wcolumn F
GLIBC_2.35 _IO_default_doallocate F
GLIBC_2.35 _IO_default_finish F
GLIBC_2.35 _IO_default_pbackfail F
@@ -1876,7 +1876,6 @@ GLIBC_2.17 secure_getenv F
GLIBC_2.18 __cxa_thread_atexit_impl F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -1880,7 +1880,6 @@ GLIBC_2.19 __atomic_feclearexcept F
GLIBC_2.19 __atomic_feholdexcept F
GLIBC_2.19 __atomic_feupdateenv F
GLIBC_2.19 __flt_rounds F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -159,8 +159,6 @@ GLIBC_2.3 _Exit F
GLIBC_2.3 _IO_2_1_stderr_ D 0xe0
GLIBC_2.3 _IO_2_1_stdin_ D 0xe0
GLIBC_2.3 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.3 _IO_adjust_column F
-GLIBC_2.3 _IO_adjust_wcolumn F
GLIBC_2.3 _IO_default_doallocate F
GLIBC_2.3 _IO_default_finish F
GLIBC_2.3 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.17 _Exit F
GLIBC_2.17 _IO_2_1_stderr_ D 0xe0
GLIBC_2.17 _IO_2_1_stdin_ D 0xe0
GLIBC_2.17 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.17 _IO_adjust_column F
-GLIBC_2.17 _IO_adjust_wcolumn F
GLIBC_2.17 _IO_default_doallocate F
GLIBC_2.17 _IO_default_finish F
GLIBC_2.17 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.33 _Exit F
GLIBC_2.33 _IO_2_1_stderr_ D 0xa0
GLIBC_2.33 _IO_2_1_stdin_ D 0xa0
GLIBC_2.33 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.33 _IO_adjust_column F
-GLIBC_2.33 _IO_adjust_wcolumn F
GLIBC_2.33 _IO_default_doallocate F
GLIBC_2.33 _IO_default_finish F
GLIBC_2.33 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.27 _Exit F
GLIBC_2.27 _IO_2_1_stderr_ D 0xe0
GLIBC_2.27 _IO_2_1_stdin_ D 0xe0
GLIBC_2.27 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.27 _IO_adjust_column F
-GLIBC_2.27 _IO_adjust_wcolumn F
GLIBC_2.27 _IO_default_doallocate F
GLIBC_2.27 _IO_default_finish F
GLIBC_2.27 _IO_default_pbackfail F
@@ -1874,7 +1874,6 @@ GLIBC_2.19 getcontext F
GLIBC_2.19 longjmp F
GLIBC_2.19 setjmp F
GLIBC_2.19 siglongjmp F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -95,8 +95,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xe0
GLIBC_2.2 _IO_2_1_stdin_ D 0xe0
GLIBC_2.2 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -129,8 +129,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0x98
GLIBC_2.2 _IO_2_1_stdin_ D 0x98
GLIBC_2.2 _IO_2_1_stdout_ D 0x98
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -129,8 +129,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0x98
GLIBC_2.2 _IO_2_1_stdin_ D 0x98
GLIBC_2.2 _IO_2_1_stdout_ D 0x98
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -1872,7 +1872,6 @@ GLIBC_2.17 secure_getenv F
GLIBC_2.18 __cxa_thread_atexit_impl F
GLIBC_2.18 pthread_getattr_default_np F
GLIBC_2.18 pthread_setattr_default_np F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_fgetpos F
GLIBC_2.2 _IO_fgetpos64 F
GLIBC_2.2 _IO_free_wbackup_area F
@@ -134,8 +134,6 @@ GLIBC_2.2 _Exit F
GLIBC_2.2 _IO_2_1_stderr_ D 0xe0
GLIBC_2.2 _IO_2_1_stdin_ D 0xe0
GLIBC_2.2 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.2 _IO_adjust_column F
-GLIBC_2.2 _IO_adjust_wcolumn F
GLIBC_2.2 _IO_default_doallocate F
GLIBC_2.2 _IO_default_finish F
GLIBC_2.2 _IO_default_pbackfail F
@@ -85,8 +85,6 @@ GLIBC_2.2.5 _Exit F
GLIBC_2.2.5 _IO_2_1_stderr_ D 0xe0
GLIBC_2.2.5 _IO_2_1_stdin_ D 0xe0
GLIBC_2.2.5 _IO_2_1_stdout_ D 0xe0
-GLIBC_2.2.5 _IO_adjust_column F
-GLIBC_2.2.5 _IO_adjust_wcolumn F
GLIBC_2.2.5 _IO_default_doallocate F
GLIBC_2.2.5 _IO_default_finish F
GLIBC_2.2.5 _IO_default_pbackfail F
@@ -2,8 +2,6 @@ GLIBC_2.16 _Exit F
GLIBC_2.16 _IO_2_1_stderr_ D 0xa0
GLIBC_2.16 _IO_2_1_stdin_ D 0xa0
GLIBC_2.16 _IO_2_1_stdout_ D 0xa0
-GLIBC_2.16 _IO_adjust_column F
-GLIBC_2.16 _IO_adjust_wcolumn F
GLIBC_2.16 _IO_default_doallocate F
GLIBC_2.16 _IO_default_finish F
GLIBC_2.16 _IO_default_pbackfail F