2000-12-26  Andreas Jaeger  <aj@suse.de>

	* libio/getc_u.c: Include stdio.h via system path to get internal
	prototypes.
	* libio/getwc_u.c: Likewise.

	* stdlib/strfmon.c: Fix prototype of __printf_fp.

	* stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
	__printf_fp prototypes to ...
	* include/printf.h: ...here.

	* include/stdio.h: Add some internal prototypes to shut up GCC.
	* include/stdlib.h: Likewise.

	* sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
	declaration.

	* include/signal.h: Add prototypes for internal sigpause
	interfaces.
This commit is contained in:
Andreas Jaeger 2000-12-27 07:56:28 +00:00
parent 8001fa6014
commit 03bac9acad
9 changed files with 47 additions and 14 deletions

View File

@ -1,3 +1,24 @@
2000-12-26 Andreas Jaeger <aj@suse.de>
* libio/getc_u.c: Include stdio.h via system path to get internal
prototypes.
* libio/getwc_u.c: Likewise.
* stdlib/strfmon.c: Fix prototype of __printf_fp.
* stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
__printf_fp prototypes to ...
* include/printf.h: ...here.
* include/stdio.h: Add some internal prototypes to shut up GCC.
* include/stdlib.h: Likewise.
* sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
declaration.
* include/signal.h: Add prototypes for internal sigpause
interfaces.
2000-12-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for

View File

@ -1 +1,11 @@
#ifndef _PRINTF_H
#include <stdio-common/printf.h>
/* Now define the internal interfaces. */
extern int __printf_fphex (FILE *, const struct printf_info *,
const void *const *);
extern int __printf_fp (FILE *, const struct printf_info *,
const void *const *);
#endif

View File

@ -60,6 +60,10 @@ extern void __funlockfile (FILE *__stream);
possible. */
extern int __ftrylockfile (FILE *__stream);
extern int __getc_unlocked (FILE *__fp);
extern wint_t __getwc_unlocked (FILE *__fp);
# endif
#endif

View File

@ -55,9 +55,13 @@ extern void _quicksort (void *const pbase, size_t total_elems,
extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
extern void __cxa_finalize (void *d);
extern int __posix_memalign (void **memptr, size_t alignment, size_t size)
__attribute_malloc__;
extern int __libc_system (const char *line);
#endif
#undef __Need_M_And_C

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1993,1995,1996,1997,1999,2000 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@ -24,7 +24,7 @@
General Public License. */
#include "libioP.h"
#include "stdio.h"
#include <stdio.h>
#undef getc_unlocked

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1993,1995,1996,1997,1999,2000 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@ -24,7 +24,7 @@
General Public License. */
#include "libioP.h"
#include "stdio.h"
#include <stdio.h>
#undef getwc_unlocked

View File

@ -798,8 +798,6 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
LABEL (form_float): \
{ \
/* Floating-point number. This is handled by printf_fp.c. */ \
extern int __printf_fp __P ((FILE *, const struct printf_info *, \
const void **const)); \
const void *ptr; \
int function_done; \
\
@ -848,9 +846,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
\
LABEL (form_floathex): \
{ \
/* FLoating point number printed as hexadecimal number. */ \
extern int __printf_fphex __P ((FILE *, const struct printf_info *, \
const void **const)); \
/* Floating point number printed as hexadecimal number. */ \
const void *ptr; \
int function_done; \
\
@ -919,7 +915,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
else \
{ \
/* Write "(nil)" for a nil pointer. */ \
string = (CHAR_T *) L_("(nil)"); \
string = (CHAR_T *) L_("(nil)"); \
/* Make sure the full string "(nil)" is printed. */ \
if (prec < 5) \
prec = 5; \

View File

@ -74,7 +74,7 @@
#endif
extern int __printf_fp (FILE *, const struct printf_info *,
const void **const);
const void *const *);
/* This function determines the number of digit groups in the output.
The definition is in printf_fp.c. */
extern unsigned int __guess_grouping (unsigned int intdig_max,

View File

@ -23,9 +23,7 @@
/* Set the mask of blocked signals to MASK,
wait for a signal to arrive, and then restore the mask. */
int
__sigpause (sig_or_mask, is_sig)
int sig_or_mask;
int is_sig;
__sigpause (int sig_or_mask, int is_sig)
{
sigset_t set;
int sig;