From bdd947fc64eaba784505cae805a2b4196814438e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 6 Feb 2023 16:58:02 +0100 Subject: [PATCH] defined why2_opendir fuck if this is gonna be painful as the last memory functions, I'm gonna hang myself --- src/core/lib/utils/memory.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index 429239d..9c1628d 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -162,6 +162,15 @@ void *why2_fdopen(int file, char *modes) return opened; } +void *why2_opendir(char *name) +{ + void *opened = opendir(name); + + push_to_list(opened, OPENDIR); + + return opened; +} + void why2_deallocate(void *pointer) { //VARIABLES