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:
@@ -77,3 +77,17 @@ int setsockopt(int socket, int level, int option_name, const void* option_value,
|
||||
{
|
||||
return syscall(SYS_SETSOCKOPT, socket, level, option_name, option_value, option_len);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include <BAN/Assert.h>
|
||||
|
||||
int getpeername(int, struct sockaddr* __restrict, socklen_t* __restrict)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
int shutdown(int, int)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user