diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-11-13 03:13:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-11-13 03:13:00 +0000 |
commit | a9055cab7ac609b96984179194c7a2ec410c8e2b (patch) | |
tree | d7bbccb32e96d87220932549049a48f3eb5c3dad /include | |
parent | 1327439fc6ef182c3ab8c69a55d3bee15b3c62a7 (diff) | |
download | glibc-a9055cab7ac609b96984179194c7a2ec410c8e2b.tar.gz glibc-a9055cab7ac609b96984179194c7a2ec410c8e2b.tar.xz glibc-a9055cab7ac609b96984179194c7a2ec410c8e2b.zip |
Update.
2004-11-12 Ulrich Drepper <drepper@redhat.com> * 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.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |