LibC: Add a lot of stub implementations for different libc functions
some ports want to link against these, but they are not ever called based on simple testing This patch adds stubs for - openlog - syslog - getrusage - mlock - mprotect - getpeername - shutdown - tzset - mktime
This commit is contained in:
@@ -27,3 +27,16 @@ int msync(void* addr, size_t len, int flags)
|
||||
{
|
||||
return syscall(SYS_MSYNC, addr, len, flags);
|
||||
}
|
||||
|
||||
|
||||
#include <BAN/Assert.h>
|
||||
|
||||
int mlock(const void*, size_t)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
int mprotect(void*, size_t, int)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user