From a9055cab7ac609b96984179194c7a2ec410c8e2b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 13 Nov 2004 03:13:00 +0000 Subject: Update. 2004-11-12 Ulrich Drepper * sysdeps/unix/sysv/linux/libc_fatal.c: Add new function __libc_message which performs the printing and simple format string handling. The string is written to tty, stderr, syslog in this order, stopping after the first successful output. (__libc_fatal): Call __libc_message. * include/stdio.h: Declare __libc_message. * malloc/malloc.c (malloc_printerr): Use __libc_message. * debug/chk_fail.c: Also print message with __libc_message. * debug/test-strcpy_chk.c: Ensure that debug messages are not printed to the terminal or stderr. * debug/tst-chk1.c: Likewise. * posix/Makefile: Remove gpl2lgpl variable. --- include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 05a91b4cb3..ad8f157829 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -62,6 +62,8 @@ extern int __gen_tempname (char *__tmpl, int __kind); /* Print out MESSAGE on the error output and abort. */ extern void __libc_fatal (__const char *__message) __attribute__ ((__noreturn__)); +extern void __libc_message (int do_abort, __const char *__fnt, ...) + __attribute__ ((__noreturn__)); /* Acquire ownership of STREAM. */ extern void __flockfile (FILE *__stream); -- cgit v1.2.3