Blame misc/error.h

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