diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-30 14:32:01 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-30 14:32:01 -0400 |
commit | b905869a35f062a4e5072f10bec3a2ba3db0e365 (patch) | |
tree | 0666691804878857b4bb07daca8a54f5ddb8ae0b /include/print.h | |
download | jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.tar.gz jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.tar.bz2 jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.zip |
working userland with some invoke syscalls
Diffstat (limited to 'include/print.h')
-rw-r--r-- | include/print.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 <stdarg.h> + +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 |