defined why2_open

This commit is contained in:
Václav Šmejkal 2023-02-05 19:05:52 +01:00
parent 8f7d6b9cb1
commit 263c73b80f
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -10,6 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <why2/flags.h>
@ -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