Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libphobos/libdruntime/core/sys/freebsd/err.d
2023-03-06 14:48:14 +01:00

32 lines
1.1 KiB
D

/**
* D header file for FreeBSD err.h.
*
* Copyright: Copyright © 2019, The D Language Foundation
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Ernesto Castellotti
*/
module core.sys.freebsd.err;
import core.stdc.stdarg : va_list;
version (FreeBSD):
extern (C):
nothrow:
@nogc:
alias ExitFunction = void function(int);
void err(int eval, scope const char* fmt, ...);
void errc(int eval, int code, scope const char* fmt, ...);
void errx(int eval, scope const char* fmt, ...);
void warn(scope const char* fmt, ...);
void warnc(int code, scope const char* fmt, ...);
void warnx(scope const char* fmt, ...);
void verr(int eval, scope const char* fmt, va_list args);
void verrc(int eval, int code, scope const char* fmt, va_list args);
void verrx(int eval, scope const char* fmt, va_list args);
void vwarn(scope const char* fmt, va_list args);
void vwarnc(int code, scope const char* fmt, va_list args);
void vwarnx(scope const char* fmt, va_list args);
void err_set_file(void* vfp);
void err_set_exit(ExitFunction exitf);