Vhex-kernel/include/kernel/syscall.h

29 lines
706 B
C
Raw Normal View History

#ifndef __SYSCALL_H__
# define __SYSCALL_H__
#include <stdint.h>
#include <stddef.h>
#include <kernel/util/types.h>
2019-12-29 16:39:30 +01:00
//---
//
// Vhex part !!
//
//---
// Process
2019-12-29 16:39:30 +01:00
extern pid_t sys_fork(void);
extern pid_t sys_getpid(void);
extern pid_t sys_getppid(void);
extern pid_t sys_waitpid(pid_t pid, int *wstatus, int options);
extern pid_t sys_fexecve(const char *pathname);
extern void sys_exit(int status);
2019-12-29 16:39:30 +01:00
// File
extern int sys_open(const char *pathname, int flags, ...);
extern ssize_t sys_write(int fd, const void *buf, size_t count);
extern ssize_t sys_read(int fd, void *buf, size_t count);
extern off_t sys_lseek(int fd, off_t offset, int whence);
extern int sys_close(int fd);
2019-12-29 16:39:30 +01:00
#endif /*__SYSCALL_H__*/