1 /** 2 * D header file for Darwin 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.darwin.err; 9 import core.stdc.stdarg : va_list; 10 11 version (OSX) 12 version = Darwin; 13 else version (iOS) 14 version = Darwin; 15 else version (TVOS) 16 version = Darwin; 17 else version (WatchOS) 18 version = Darwin; 19 20 21 version (Darwin): 22 extern (C): 23 nothrow: 24 @nogc: 25 26 alias ExitFunction = void function(int); 27 28 void err(int eval, scope const char* fmt, ...); 29 void errc(int eval, int code, scope const char* fmt, ...); 30 void errx(int eval, scope const char* fmt, ...); 31 void warn(scope const char* fmt, ...); 32 void warnc(int code, scope const char* fmt, ...); 33 void warnx(scope const char* fmt, ...); 34 void verr(int eval, scope const char* fmt, va_list args); 35 void verrc(int eval, int code, scope const char* fmt, va_list args); 36 void verrx(int eval, scope const char* fmt, va_list args); 37 void vwarn(scope const char* fmt, va_list args); 38 void vwarnc(int code, scope const char* fmt, va_list args); 39 void vwarnx(scope const char* fmt, va_list args); 40 void err_set_file(void* vfp); 41 void err_set_exit(ExitFunction exitf); 42