1 /** 2 * D header file for DragonFlyBSD 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.dragonflybsd.err; 9 import core.stdc.stdarg : va_list; 10 11 version (DragonFlyBSD): 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