summaryrefslogtreecommitdiffstats
path: root/src/messages.h
blob: 2133e4b047883c27d31c26178bb07b685d8cd3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* $Id: messages.h $
 *
 *  Message and error reporting (possibly fatal).
 *
 */

#if !defined(_MESSAGES_H)
#define _MESSAGES_H

/* The reporting functions.  The ones prefaced by "sys" add a colon, a space,
   and the results of strerror(errno) to the output and are intended for
   reporting failures of system calls. */
extern void die(const char *, ...)
    __attribute__((__noreturn__, __format__(printf, 1, 2)));
extern void sysdie(const char *, ...)
    __attribute__((__noreturn__, __format__(printf, 1, 2)));

#endif /* _MESSAGES_H */