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:
2024-08-22 14:28:39 +03:00
parent ca8832c0e1
commit 500f774b7f
6 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#include <BAN/Assert.h>
#include <sys/resource.h>
int getrusage(int, struct rusage*)
{
ASSERT_NOT_REACHED();
}