~jamesodhunt/ubuntu/trusty/patch/bug-1306412

« back to all changes in this revision

Viewing changes to lib/verror.h

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-06-30 16:14:19 UTC
  • mfrom: (6.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20130630161419-xg7lwk3vpejzedyc
Tags: 2.7.1-3
* Call 'ed' without a path. Closes: #714423.
* Update copyright for GPL v3. Closes: #664640.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Declaration for va_list error-reporting function
 
2
   Copyright (C) 2006-2007, 2009-2012 Free Software Foundation, Inc.
 
3
 
 
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 3 of the License, or
 
7
   (at your option) any later version.
 
8
 
 
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.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
16
 
 
17
#ifndef _VERROR_H
 
18
#define _VERROR_H 1
 
19
 
 
20
#include <stdarg.h>
 
21
 
 
22
#include "error.h" /* for _GL_ATTRIBUTE_FORMAT */
 
23
 
 
24
#ifdef __cplusplus
 
25
extern "C" {
 
26
#endif
 
27
 
 
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
 
32
   to error().  */
 
33
 
 
34
extern void verror (int __status, int __errnum, const char *__format,
 
35
                    va_list __args)
 
36
     _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0));
 
37
 
 
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().  */
 
44
 
 
45
extern void verror_at_line (int __status, int __errnum, const char *__fname,
 
46
                            unsigned int __lineno, const char *__format,
 
47
                            va_list __args)
 
48
     _GL_ATTRIBUTE_FORMAT ((__printf__, 5, 0));
 
49
 
 
50
#ifdef __cplusplus
 
51
}
 
52
#endif
 
53
 
 
54
#endif /* verror.h */