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