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
3
typedef
unsigned
int
u32
;
4
int
syscall
(
u32
number
,
u32
a,
u32
b,
u32
c,
u32
d);
5
void
*
malloc
(
u32
size);
6
void
free
(
void
* pointer);
7
/* Blocking line input, includes newline, returns 0 on Ctrl+D. No trailing NUL. */
8
int
read_stdin
(
void
* buffer,
u32
capacity);
9
#endif
number
static void number(u32 n)
Definition
commands.c:30
u32
unsigned int u32
Definition
ctypes.h:11
free
void free(void *pointer)
Definition
runtime.c:56
u32
unsigned int u32
Definition
runtime.h:3
malloc
void * malloc(u32 size)
Definition
runtime.c:20
read_stdin
int read_stdin(void *buffer, u32 capacity)
Definition
runtime.c:77
syscall
int syscall(u32 number, u32 a, u32 b, u32 c, u32 d)
Definition
runtime.c:3
src
user
runtime.h
Generated by
1.9.8