From 03bac9acadcafeef0fcdc38719844167c77f412d Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 27 Dec 2000 07:56:28 +0000 Subject: [PATCH] Update. 2000-12-26 Andreas Jaeger * 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. --- ChangeLog | 21 +++++++++++++++++++++ include/printf.h | 10 ++++++++++ include/stdio.h | 4 ++++ include/stdlib.h | 4 ++++ libio/getc_u.c | 4 ++-- libio/getwc_u.c | 4 ++-- stdio-common/vfprintf.c | 8 ++------ stdlib/strfmon.c | 2 +- sysdeps/posix/sigpause.c | 4 +--- 9 files changed, 47 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5b26efa..494fa7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +2000-12-26 Andreas Jaeger + + * 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 * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for diff --git a/include/printf.h b/include/printf.h index 777e958..a025eac 100644 --- a/include/printf.h +++ b/include/printf.h @@ -1 +1,11 @@ +#ifndef _PRINTF_H + #include + +/* 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 diff --git a/include/stdio.h b/include/stdio.h index 419b58c..ce06a41 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -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 diff --git a/include/stdlib.h b/include/stdlib.h index 2ca8ca1..f57df69 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -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 diff --git a/libio/getc_u.c b/libio/getc_u.c index a722a31..b052cec 100644 --- a/libio/getc_u.c +++ b/libio/getc_u.c @@ -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 #undef getc_unlocked diff --git a/libio/getwc_u.c b/libio/getwc_u.c index 606b4d2..8d2c5f4 100644 --- a/libio/getwc_u.c +++ b/libio/getwc_u.c @@ -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 #undef getwc_unlocked diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 822728e..62750b4 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -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; \ diff --git a/stdlib/strfmon.c b/stdlib/strfmon.c index 28249c1..49d8883 100644 --- a/stdlib/strfmon.c +++ b/stdlib/strfmon.c @@ -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, diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c index 4832c6a..df6461d 100644 --- a/sysdeps/posix/sigpause.c +++ b/sysdeps/posix/sigpause.c @@ -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; -- 2.7.4