From 1e2772c72000e30ff85beecdd92212518c50ddba Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:14:17 +0200 Subject: [PATCH] Mon 14 Oct 23:14:00 CEST 2024 --- library/stdlib.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 library/stdlib.c diff --git a/library/stdlib.c b/library/stdlib.c new file mode 100644 index 0000000..3a6cb67 --- /dev/null +++ b/library/stdlib.c @@ -0,0 +1,20 @@ + +#include "library/stdlib.h" +#include "library/syscalls.h" + +void exit( int code ) +{ + syscall_process_exit(code); + +} + +/* Some easy things yet to be implemented. */ + +int rand(); +int srand( int ); +int system( const char *str ); +int sleep( int seconds ); +int usleep( int usec ); +int time( int *t ); +struct timeval; +int gettimeofday( struct timeval *tval, void *arg );