#include
#include
#include
#include
#include
#include
#include
typedef struct{
char* mode;
int file;
char *name;
char buffer[1024];
int posit;
}_FILE;
_FILE *_fopen(char *path, char *mode)
{
int fd;
_FILE *tmp=(_FILE *)0;
if(mode == "w+") { fd = open(path,O_CREAT|O_RDWR, 0644); }
else { fd = open(path,O_CREAT|O_RDWR|O_APPEND, 0644); }