xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/freebsd/err.d (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
1 /**
2   * D header file for FreeBSD err.h.
3   *
4   * Copyright: Copyright © 2019, The D Language Foundation
5   * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
6   * Authors: Ernesto Castellotti
7   */
8 module core.sys.freebsd.err;
9 import core.stdc.stdarg : va_list;
10 
11 version (FreeBSD):
12 extern (C):
13 nothrow:
14 @nogc:
15 
16 alias ExitFunction = void function(int);
17 
18 void err(int eval, scope const char* fmt, ...);
19 void errc(int eval, int code, scope const char* fmt, ...);
20 void errx(int eval, scope const char* fmt, ...);
21 void warn(scope const char* fmt, ...);
22 void warnc(int code, scope const char* fmt, ...);
23 void warnx(scope const char* fmt, ...);
24 void verr(int eval, scope const char* fmt, va_list args);
25 void verrc(int eval, int code, scope const char* fmt, va_list args);
26 void verrx(int eval, scope const char* fmt, va_list args);
27 void vwarn(scope const char* fmt, va_list args);
28 void vwarnc(int code, scope const char* fmt, va_list args);
29 void vwarnx(scope const char* fmt, va_list args);
30 void err_set_file(void* vfp);
31 void err_set_exit(ExitFunction exitf);
32