Add support for some basic system calls and args handling correctly. #29

Merged
sb3923 merged 49 commits from system-calls into master 2024-11-07 19:36:30 +00:00
3 changed files with 192 additions and 19 deletions
Showing only changes of commit f8e529e877 - Show all commits

View File

@@ -105,76 +105,76 @@ exit (int status UNUSED)
} }
static pid_t static pid_t
exec (const char *cmd_line) exec (const char *cmd_line UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static int static int
wait (pid_t pid) wait (pid_t pid UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static bool static bool
file_create (const char *file, unsigned initial_size) file_create (const char *file UNUSED, unsigned initial_size UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static bool static bool
file_remove (const char *file) file_remove (const char *file UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static int static int
open (const char *file) open (const char *file UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static int static int
filesize (int fd) filesize (int fd UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static int static int
read (int fd, void *buffer, unsigned size) read (int fd UNUSED, void *buffer UNUSED, unsigned size UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static int static int
write (int fd, const void *buffer, unsigned size) write (int fd UNUSED, const void *buffer UNUSED, unsigned size UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static void static void
seek (int fd, unsigned position) seek (int fd UNUSED, unsigned position UNUSED)
{ {
//TODO //TODO
} }
static unsigned static unsigned
tell (int fd) tell (int fd UNUSED)
{ {
//TODO //TODO
return 0; return 0;
} }
static void static void
close (int fd) close (int fd UNUSED)
{ {
//TODO //TODO
} }