From 3655115e5a3c50fc06afd801100a9d75d813fd2b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 19 Oct 2022 14:23:14 +0200 Subject: user/libc: BSD err.h, getprogname() --- src/user/lib/include/err.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/user/lib/include/err.h') diff --git a/src/user/lib/include/err.h b/src/user/lib/include/err.h index e69de29..9ce4253 100644 --- a/src/user/lib/include/err.h +++ b/src/user/lib/include/err.h @@ -0,0 +1,8 @@ +#pragma once +#include <stdarg.h> + +_Noreturn void err(int ret, const char *fmt, ...); +_Noreturn void errx(int ret, const char *fmt, ...); + +void vwarn(const char *fmt, va_list args); +void vwarnx(const char *fmt, va_list args); -- cgit v1.2.3