Skip to content

Commit 949620a

Browse files
committed
add stub-implementations of syscalls to quiet compiler warnings
1 parent 91cf3f3 commit 949620a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

syscalls.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ void* _sbrk(int incr)
5151

5252
return (void*) prev_heap_end;
5353
}
54+
55+
// empty syscall functions to quiet the compiler
56+
// perhaps we should actually implement them to make some stdlib stuff work?
57+
// perhaps we should add debug prints so we know if/when they're being called
58+
void _close(void){}
59+
void _fstat_r(void){}
60+
void _getpid_r(void){}
61+
void _gettimeofday_r(void){}
62+
void _isatty_r(void){}
63+
void _kill_r(void){}
64+
void _link_r(void){}
65+
void _lseek(void){}
66+
void _read(void){}
67+
void _open_r(void){}
68+
void _times_r(void){}
69+
void _unlink_r(void){}

0 commit comments

Comments
 (0)