ArvernOS
Loading...
Searching...
No Matches
k_syscall.h File Reference
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
Include dependency graph for k_syscall.h:

Functions

void syscall_init ()
 
int k_not_implemented ()
 
int k_open (const char *pathname, uint32_t flags)
 
off_t k_lseek (int fd, off_t offset, int whence)
 
int k_openat (int dirfd, const char *pathname, int flags)
 

Function Documentation

◆ k_lseek()

off_t k_lseek ( int fd,
off_t offset,
int whence )
Todo
Implement SEEK_END.

◆ k_not_implemented()

int k_not_implemented ( )

This is a no-op syscall that should be used when an actual syscall is not implemented (in most cases, that's because the syscall requires some arch or board specific code that hasn't been written yet).

◆ k_open()

int k_open ( const char * pathname,
uint32_t flags )
Todo
Check flags.

◆ k_openat()

int k_openat ( int dirfd,
const char * pathname,
int flags )
Todo
Add better support for dirfd and other AT_* special values.

◆ syscall_init()

void syscall_init ( )

Initializes the syscalls management.