1
1
/* Declaration for va_list error-reporting function
2
Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc.
2
Copyright (C) 2006-2007, 2009-2012 Free Software Foundation, Inc.
4
4
This program is free software: you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
18
18
#define _VERROR_H 1
21
20
#include <stdarg.h>
22
#include "error.h" /* for _GL_ATTRIBUTE_FORMAT */
27
/* Print a message with `vfprintf (stderr, FORMAT, ARGS)';
28
/* Print a message with 'vfprintf (stderr, FORMAT, ARGS)';
28
29
if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
29
If STATUS is nonzero, terminate the program with `exit (STATUS)'.
30
If STATUS is nonzero, terminate the program with 'exit (STATUS)'.
30
31
Use the globals error_print_progname and error_message_count similarly
33
34
extern void verror (int __status, int __errnum, const char *__format,
35
__attribute__ ((__format__ (__printf__, 3, 0)));
36
_GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0));
37
/* Print a message with `vfprintf (stderr, FORMAT, ARGS)';
38
/* Print a message with 'vfprintf (stderr, FORMAT, ARGS)';
38
39
if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
39
If STATUS is nonzero, terminate the program with `exit (STATUS)'.
40
If FNAME is not NULL, prepend the message with `FNAME:LINENO:'.
40
If STATUS is nonzero, terminate the program with 'exit (STATUS)'.
41
If FNAME is not NULL, prepend the message with "FNAME:LINENO:".
41
42
Use the globals error_print_progname, error_message_count, and
42
43
error_one_per_line similarly to error_at_line(). */
44
45
extern void verror_at_line (int __status, int __errnum, const char *__fname,
45
46
unsigned int __lineno, const char *__format,
47
__attribute__ ((__format__ (__printf__, 5, 0)));
48
_GL_ATTRIBUTE_FORMAT ((__printf__, 5, 0));