~ubuntu-branches/ubuntu/utopic/patch/utopic-security

« back to all changes in this revision

Viewing changes to lib/verror.h

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mfrom: (1.2.3)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-i46hggipf8rfteiz
Tags: 2.7.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
3
3
 
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
17
17
#ifndef _VERROR_H
18
18
#define _VERROR_H 1
19
19
 
20
 
#include "error.h"
21
20
#include <stdarg.h>
22
21
 
 
22
#include "error.h" /* for _GL_ATTRIBUTE_FORMAT */
 
23
 
23
24
#ifdef __cplusplus
24
25
extern "C" {
25
26
#endif
26
27
 
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
31
32
   to error().  */
32
33
 
33
34
extern void verror (int __status, int __errnum, const char *__format,
34
35
                    va_list __args)
35
 
     __attribute__ ((__format__ (__printf__, 3, 0)));
 
36
     _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0));
36
37
 
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().  */
43
44
 
44
45
extern void verror_at_line (int __status, int __errnum, const char *__fname,
45
46
                            unsigned int __lineno, const char *__format,
46
47
                            va_list __args)
47
 
     __attribute__ ((__format__ (__printf__, 5, 0)));
 
48
     _GL_ATTRIBUTE_FORMAT ((__printf__, 5, 0));
48
49
 
49
50
#ifdef __cplusplus
50
51
}