liblinux/src/liblinux.h

17 lines
328 B
C
Raw Normal View History

2021-12-03 14:05:10 +00:00
#ifndef LIBLINUX_H
#define LIBLINUX_H
#include "syscall.h"
#include <stddef.h>
#include <sys/types.h>
void exit(int status); // FIXME: noreturn
int open(const char *pathname, int flags);
int close(int fd);
ssize_t write(int fd, const void *buf, size_t count);
ssize_t read(int fd, void *buf, size_t count);
// TODO
#endif