defined why2_open
This commit is contained in:
parent
8f7d6b9cb1
commit
263c73b80f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user