1 /* Declaration for va_list error-reporting function
2 Copyright (C) 2006-2007 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation,
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
28 /* Print a message with `vfprintf (stderr, FORMAT, ARGS)';
29 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
30 If STATUS is nonzero, terminate the program with `exit (STATUS)'.
31 Use the globals error_print_progname and error_message_count similarly
34 extern void verror (int __status, int __errnum, const char *__format,
36 __attribute__ ((__format__ (__printf__, 3, 0)));
38 /* Print a message with `vfprintf (stderr, FORMAT, ARGS)';
39 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
40 If STATUS is nonzero, terminate the program with `exit (STATUS)'.
41 If FNAME is not NULL, prepend the message with `FNAME:LINENO:'.
42 Use the globals error_print_progname, error_message_count, and
43 error_one_per_line similarly to error_at_line(). */
45 extern void verror_at_line (int __status, int __errnum, const char *__fname,
46 unsigned int __lineno, const char *__format,
48 __attribute__ ((__format__ (__printf__, 5, 0)));