removed why2_open stuff

declaration and definition
This commit is contained in:
Václav Šmejkal 2023-02-06 08:18:14 +01:00
parent 29dd766903
commit 109ec9a7b6
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59
2 changed files with 0 additions and 15 deletions

View File

@ -9,7 +9,6 @@ char *why2_strdup(char *string);
void *why2_fopen(char *name, char *modes);
void *why2_fdopen(int file, char *modes);
int why2_open(char *name, int flags, unsigned int mode);
void *why2_opendir(char *name);
void why2_deallocate(void *pointer);

View File

@ -20,7 +20,6 @@ enum POINTER_TYPES
{
ALLOCATION,
FOPEN,
OPEN,
OPENDIR
};
@ -161,15 +160,6 @@ 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
@ -187,10 +177,6 @@ void why2_deallocate(void *pointer)
fclose(pointer);
break;
case OPEN: //OPEN SYSTEM CALL
close(*((int*) pointer)); //TODO: Fix global pointer problem
break;
case OPENDIR: //OPENDIR SYSTEM CALL
closedir(pointer);
break;