From 6dc51abfc8d0f6a824bbb140fc95b614f4c3c989 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 22 Oct 2022 12:20:05 +0200 Subject: [PATCH] libc: Add remove() stub --- libs/libc/include/stdio.h | 2 ++ libs/libc/src/stdio.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/libs/libc/include/stdio.h b/libs/libc/include/stdio.h index 774aaac2..65c2e106 100644 --- a/libs/libc/include/stdio.h +++ b/libs/libc/include/stdio.h @@ -145,6 +145,8 @@ extern "C" * of the last error encountered during a call to a system or library function. */ void perror(const char* str); + int remove(const char* pathname); // Not implemented. + #ifdef __cplusplus } #endif diff --git a/libs/libc/src/stdio.cpp b/libs/libc/src/stdio.cpp index c86e4f57..49a726b7 100644 --- a/libs/libc/src/stdio.cpp +++ b/libs/libc/src/stdio.cpp @@ -43,4 +43,8 @@ extern "C" if (s && *s) { fprintf(stderr, "%s: ", s); } fprintf(stderr, "%s\n", strerror(savederr)); } + int remove(const char*) + { + NOT_IMPLEMENTED("remove"); + } } \ No newline at end of file