mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
update from main archive 961001
This commit is contained in:
@ -23,6 +23,7 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
#ifdef USE_IN_LIBIO
|
||||
# include "../libio/libioP.h"
|
||||
# undef ssize_t
|
||||
# define ssize_t _IO_ssize_t
|
||||
# define __getdelim _IO_getdelim
|
||||
#endif
|
||||
|
@ -26,6 +26,9 @@ printf_arginfo_function *__printf_arginfo_table[UCHAR_MAX + 1];
|
||||
|
||||
printf_function **__printf_function_table;
|
||||
|
||||
int __register_printf_function __P ((int, printf_function,
|
||||
printf_arginfo_function));
|
||||
|
||||
/* Register FUNC to be called to format SPEC specifiers. */
|
||||
int
|
||||
__register_printf_function (spec, converter, arginfo)
|
||||
|
@ -23,6 +23,7 @@ Cambridge, MA 02139, USA. */
|
||||
use the protected form here. In stdio it is called `__vscanf' and
|
||||
in libio `_IO_vscanf'. */
|
||||
#ifdef USE_IN_LIBIO
|
||||
# include <libioP.h>
|
||||
# define VSCANF _IO_vscanf
|
||||
#else
|
||||
# define VSCANF __vscanf
|
||||
|
@ -29,7 +29,7 @@ tmpnam (char *s)
|
||||
/* By using two buffers we manage to be thread safe in the case
|
||||
where S != NULL. */
|
||||
static char buf[L_tmpnam];
|
||||
char *tmpbuf[L_tmpnam];
|
||||
char tmpbuf[L_tmpnam];
|
||||
char *result;
|
||||
|
||||
/* In the following call we use the buffer pointed to by S if
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992, 1995, 1996 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -16,15 +16,15 @@ License along with the GNU C Library; see the file COPYING.LIB. If
|
||||
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||
Cambridge, MA 02139, USA. */
|
||||
|
||||
#include <ansidecl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef USE_IN_LIBIO
|
||||
# undef ssize_t
|
||||
# define ssize_t _IO_ssize_t
|
||||
#endif
|
||||
|
||||
int
|
||||
DEFUN_VOID(main)
|
||||
main ()
|
||||
{
|
||||
char *buf = NULL;
|
||||
size_t size = 0;
|
||||
|
@ -87,6 +87,7 @@ ssize_t __wprintf_pad __P ((FILE *, wchar_t pad, size_t n));
|
||||
# define PUTC(C, F) _IO_putc_unlocked (C, F)
|
||||
# define vfprintf _IO_vfprintf
|
||||
# define FILE _IO_FILE
|
||||
# undef va_list
|
||||
# define va_list _IO_va_list
|
||||
# undef BUFSIZ
|
||||
# define BUFSIZ _IO_BUFSIZ
|
||||
|
@ -51,6 +51,7 @@ Cambridge, MA 02139, USA. */
|
||||
# include <libioP.h>
|
||||
# include <libio.h>
|
||||
|
||||
# undef va_list
|
||||
# define va_list _IO_va_list
|
||||
# define ungetc(c, s) (--read_in, _IO_ungetc (c, s))
|
||||
# define inchar() ((c = _IO_getc_unlocked (s)), (void) ++read_in, c)
|
||||
|
Reference in New Issue
Block a user