|
Packit |
6c4009 |
/* Declaration for error-reporting function
|
|
Packit |
6c4009 |
Copyright (C) 1995-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _ERROR_H
|
|
Packit |
6c4009 |
#define _ERROR_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <features.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__BEGIN_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Print a message with `fprintf (stderr, FORMAT, ...)';
|
|
Packit |
6c4009 |
if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
|
|
Packit |
6c4009 |
If STATUS is nonzero, terminate the program with `exit (STATUS)'. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void error (int __status, int __errnum, const char *__format, ...)
|
|
Packit |
6c4009 |
__attribute__ ((__format__ (__printf__, 3, 4)));
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void error_at_line (int __status, int __errnum, const char *__fname,
|
|
Packit |
6c4009 |
unsigned int __lineno, const char *__format, ...)
|
|
Packit |
6c4009 |
__attribute__ ((__format__ (__printf__, 5, 6)));
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* If NULL, error will flush stdout, then print on stderr the program
|
|
Packit |
6c4009 |
name, a colon and a space. Otherwise, error will call this
|
|
Packit |
6c4009 |
function without parameters instead. */
|
|
Packit |
6c4009 |
extern void (*error_print_progname) (void);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* This variable is incremented each time `error' is called. */
|
|
Packit |
6c4009 |
extern unsigned int error_message_count;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Sometimes we want to have at most one error per line. This
|
|
Packit |
6c4009 |
variable controls whether this mode is selected or not. */
|
|
Packit |
6c4009 |
extern int error_one_per_line;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#if defined __extern_always_inline && defined __va_arg_pack
|
|
Packit |
6c4009 |
# include <bits/error.h>
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__END_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* error.h */
|