Kintsugi OS 0.5.0
x86 Monolithic OS
Loading...
Searching...
No Matches
runtime.h
Go to the documentation of this file.
1#ifndef USER_RUNTIME_H
2#define USER_RUNTIME_H
3typedef unsigned int u32;
4int syscall(u32 number, u32 a, u32 b, u32 c, u32 d);
5void* malloc(u32 size);
6void free(void* pointer);
7/* Blocking line input, includes newline, returns 0 on Ctrl+D. No trailing NUL. */
8int read_stdin(void* buffer, u32 capacity);
9#endif
static void number(u32 n)
Definition commands.c:30
unsigned int u32
Definition ctypes.h:11
void free(void *pointer)
Definition runtime.c:56
unsigned int u32
Definition runtime.h:3
void * malloc(u32 size)
Definition runtime.c:20
int read_stdin(void *buffer, u32 capacity)
Definition runtime.c:77
int syscall(u32 number, u32 a, u32 b, u32 c, u32 d)
Definition runtime.c:3