From 46f60b192ae142b1608db58b5adca6d3703129fc Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 15 Oct 2022 15:13:10 +0200 Subject: [PATCH] libc: Add libgen.h stub functions (not implemented) --- libs/libc/include/libgen.h | 16 ++++++++++++++++ libs/libc/src/libgen.cpp | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 libs/libc/include/libgen.h create mode 100644 libs/libc/src/libgen.cpp diff --git a/libs/libc/include/libgen.h b/libs/libc/include/libgen.h new file mode 100644 index 00000000..c42384f4 --- /dev/null +++ b/libs/libc/include/libgen.h @@ -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 \ No newline at end of file diff --git a/libs/libc/src/libgen.cpp b/libs/libc/src/libgen.cpp new file mode 100644 index 00000000..d7aa4630 --- /dev/null +++ b/libs/libc/src/libgen.cpp @@ -0,0 +1,15 @@ +#include +#include + +extern "C" +{ + char* basename(char*) + { + NOT_IMPLEMENTED("basename"); + } + + char* dirname(char*) + { + NOT_IMPLEMENTED("dirname"); + } +} \ No newline at end of file