From b905869a35f062a4e5072f10bec3a2ba3db0e365 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 30 Jul 2025 14:32:01 -0400 Subject: working userland with some invoke syscalls --- include/print.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/print.h (limited to 'include/print.h') diff --git a/include/print.h b/include/print.h new file mode 100644 index 0000000..f4c942c --- /dev/null +++ b/include/print.h @@ -0,0 +1,17 @@ +#ifndef _JOVE_LIB_PRINT_H +#define _JOVE_LIB_PRINT_H 1 + +#include + +void _klogf(const char *file, const char *func, int line, const char *fmt, ...); +#define klogf(...) _klogf(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__) + +int kprintf(const char *fmt, ...); +int ksprintf(char *s, const char *fmt, ...); +int ksnprintf(char *s, int size, const char *fmt, ...); + +int kvprintf(const char *fmt, va_list ap); +int kvsprintf(char *s, const char *fmt, va_list ap); +int kvsnprintf(char *s, int size, const char *fmt, va_list ap); + +#endif -- cgit v1.2.1