1 |
#ifndef PLIBC_SYSCALLS_H |
2 |
#define PLIBC_SYSCALLS_H |
3 |
|
4 |
#include "stddef.h" |
5 |
#include <stdint.h> |
6 |
#include <sys/types.h> |
7 |
|
8 |
extern int sys_write (int fd, const void *buf, size_t count); |
9 |
extern void *sys_sbrk (intptr_t increment); |
10 |
extern void *sys_brk (void); |
11 |
extern void __attribute__ ((noreturn)) sys_exit (int status); |
12 |
extern void *sys_mmap (void *addr, size_t len, int prot, int flags, int fd, |
13 |
off_t offset); |
14 |
extern void *sys_sysinfo (void *buffer); |
15 |
extern int sys_kill (int pid, int sig); |
16 |
extern int sys_open (const char *pathname, int flags, mode_t mode); |
17 |
extern int sys_close (int fd); |
18 |
|
19 |
#endif /* PLIBC_SYSCALLS_H */ |