libc: Add libgen.h stub functions (not implemented)

This commit is contained in:
apio 2022-10-15 15:13:10 +02:00
parent 9aa96de61d
commit 46f60b192a
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#ifndef _LIBGEN_H
#define _LIBGEN_H
#ifdef __cplusplus
extern "C"
{
#endif
char* basename(char*); // Not implemented.
char* dirname(char*); // Not implemented.
#ifdef __cplusplus
}
#endif
#endif

15
libs/libc/src/libgen.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <libgen.h>
#include <luna.h>
extern "C"
{
char* basename(char*)
{
NOT_IMPLEMENTED("basename");
}
char* dirname(char*)
{
NOT_IMPLEMENTED("dirname");
}
}