From 263c73b80f40e2242fbbedc2c618986bf5c79276 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 5 Feb 2023 19:05:52 +0100 Subject: [PATCH] defined why2_open --- src/core/lib/utils/memory.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index e826e53..33378cf 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -160,6 +161,15 @@ void *why2_fdopen(int file, char *modes) return opened; } +int why2_open(char *name, int flags, unsigned int mode) +{ + int opened = open(name, flags, mode); + + push_to_list(&opened, OPEN); + + return opened; +} + void why2_deallocate(void *pointer) { //VARIABLES