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:
@@ -452,3 +452,18 @@ size_t strftime(char* __restrict s, size_t maxsize, const char* __restrict forma
|
||||
s[len++] = '\0';
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include <BAN/Assert.h>
|
||||
|
||||
long timezone;
|
||||
void tzset()
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
time_t mktime(struct tm*)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user