Import libio changes from egcs 1.1.2.
This commit is contained in:
parent
5a74f4e7d4
commit
bcfc4147c3
2
gnu/dist/libio/config/linuxlibc1.mt
vendored
2
gnu/dist/libio/config/linuxlibc1.mt
vendored
@ -23,4 +23,4 @@ USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
|
||||
streambuf.h strfile.h strstream.h libio.h
|
||||
|
||||
# A bad kludge
|
||||
MT_CFLAGS=-D_G_HAVE_MMAP
|
||||
MT_CFLAGS=-D_G_HAVE_MMAP -D_G_STDIO_USES_LIBIO -D_G_HAVE_WEAK_SYMBOL
|
||||
|
2
gnu/dist/libio/genops.c
vendored
2
gnu/dist/libio/genops.c
vendored
@ -937,6 +937,8 @@ __io_defs io_defs__;
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_cleanup, _cleanup)
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
void _cleanup () __attribute__ ((weak, alias ("_IO_cleanup")));
|
||||
#endif
|
||||
|
||||
#ifdef text_set_element
|
||||
|
6
gnu/dist/libio/iofclose.c
vendored
6
gnu/dist/libio/iofclose.c
vendored
@ -55,8 +55,6 @@ _IO_fclose (fp)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_fclose, fclose)
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#pragma weak fclose = _IO_fclose
|
||||
#endif
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int fclose (_IO_FILE *) __attribute__ ((weak, alias("_IO_fclose")));
|
||||
#endif
|
||||
|
2
gnu/dist/libio/iofeof.c
vendored
2
gnu/dist/libio/iofeof.c
vendored
@ -40,4 +40,6 @@ _IO_feof (fp)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_feof, feof)
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int feof (_IO_FILE *) __attribute__ ((weak, alias("_IO_feof")));
|
||||
#endif
|
||||
|
2
gnu/dist/libio/ioferror.c
vendored
2
gnu/dist/libio/ioferror.c
vendored
@ -40,4 +40,6 @@ _IO_ferror (fp)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_ferror, ferror)
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int ferror (_IO_FILE *) __attribute__ ((weak, alias("_IO_ferror")));
|
||||
#endif
|
||||
|
2
gnu/dist/libio/iogetc.c
vendored
2
gnu/dist/libio/iogetc.c
vendored
@ -45,4 +45,6 @@ _IO_getc (fp)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_getc, getc)
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int getc (_IO_FILE *) __attribute__ ((weak, alias("_IO_getc")));
|
||||
#endif
|
||||
|
2
gnu/dist/libio/ioputc.c
vendored
2
gnu/dist/libio/ioputc.c
vendored
@ -39,4 +39,6 @@ _IO_putc (c, fp)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_putc, putc)
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int putc (int, _IO_FILE *) __attribute__ ((weak, alias("_IO_putc")));
|
||||
#endif
|
||||
|
7
gnu/dist/libio/iovsprintf.c
vendored
7
gnu/dist/libio/iovsprintf.c
vendored
@ -54,8 +54,7 @@ _IO_vsprintf (string, format, args)
|
||||
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_vsprintf, vsprintf)
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#pragma weak vsprintf = _IO_vsprintf
|
||||
#endif
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int vsprintf (char *, const char *, _IO_va_list)
|
||||
__attribute__ ((weak, alias("_IO_vsprintf")));
|
||||
#endif
|
||||
|
9
gnu/dist/libio/iovsscanf.c
vendored
9
gnu/dist/libio/iovsscanf.c
vendored
@ -51,8 +51,9 @@ _IO_vsscanf (string, format, args)
|
||||
#ifdef weak_alias
|
||||
weak_alias (_IO_vsscanf, __vsscanf)
|
||||
weak_alias (_IO_vsscanf, vsscanf)
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#pragma weak vsscanf = _IO_vsscanf
|
||||
#endif
|
||||
#elif defined(_G_STDIO_USES_LIBIO) && defined(_G_HAVE_WEAK_SYMBOL)
|
||||
int __vsscanf (const char *, const char *, _IO_va_list)
|
||||
__attribute__ ((weak, alias("_IO_vsscanf")));
|
||||
int vsscanf (const char *, const char *, _IO_va_list)
|
||||
__attribute__ ((weak, alias("_IO_vsscanf")));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user