Files
RockOS/rocklibc/include/syscall.h

22 lines
424 B
C

#ifndef RLIBC_SYSCALL_H
#define RLIBC_SYSCALL_H
#include <stdint.h>
#include <stddef.h>
#define SYS_EXIT 1
#define SYS_READ 3
#define SYS_WRITE 4
int write(int fd, const void *buf, size_t count);
int read(int fd, void *buf, size_t count);
int close(int fd);
size_t lseek(int fd, size_t offset, int whence);
void exit(int status) __attribute__((noreturn));
void *sbrk(intptr_t increment);
int brk(void *addr);
#endif