libc: Stub out tmpfile() as well as add an empty math.h

This commit is contained in:
apio 2022-10-23 18:58:48 +02:00
parent 58b01b74e2
commit b615166373
3 changed files with 8 additions and 0 deletions

0
libs/libc/include/math.h Normal file
View File

View File

@ -162,6 +162,8 @@ extern "C"
int remove(const char* pathname); // Not implemented. int remove(const char* pathname); // Not implemented.
FILE* tmpfile(void); // Not implemented.
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -58,4 +58,10 @@ extern "C"
{ {
NOT_IMPLEMENTED("sscanf"); NOT_IMPLEMENTED("sscanf");
} }
FILE* tmpfile()
{
errno = ENOTSUP;
return NULL;
}
} }