blob: 6f7d8f2f3c09d373753078147478f66d5a3f0cf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/********************************************************************\
Copyright (c) 2017 by Aleksey Cheusov
See LICENSE file in the distribution.
\********************************************************************/
#ifndef _MKC_ERRC_H_
#define _MKC_ERRC_H_
#ifndef _MKC_CHECK_ERRC
# error "Missing MKC_FEATURES += errc"
#endif
#include <stdarg.h>
#if HAVE_HEADER_ERR_H
#include <err.h>
#endif
#include "mkc_externc.h"
__MKC_BEGIN_DECLS
#include "mkc_macro.h"
#if !HAVE_FUNC4_ERRC_ERR_H
void errc(int status, int code, const char *fmt, ...) __printflike(3, 4) __dead;
#endif
#if !HAVE_PROTOTYPE_VERRC
void verrc(int status, int code, const char *fmt, va_list args) __printflike(3, 0) __dead;
#endif
__MKC_END_DECLS
#endif // _MKC_ERRC_H_
|