Update linusus once again
This commit is contained in:
parent
10eac9e242
commit
3e712d309e
@ -14,8 +14,6 @@ struct sus_File_impl{
|
|||||||
int fd;
|
int fd;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct sus_File_impl sus_File_impl;
|
|
||||||
|
|
||||||
sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter) {
|
sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter) {
|
||||||
int flags = O_RDWR;
|
int flags = O_RDWR;
|
||||||
if(parameter & SUS_FILE_NEW) flags |= O_CREAT | O_EXCL;
|
if(parameter & SUS_FILE_NEW) flags |= O_CREAT | O_EXCL;
|
||||||
@ -43,7 +41,7 @@ sus_File sus_fileOpenInMem(char * fileName, unsigned long parameter) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sus_File_impl *file = (sus_File_impl *) sus_heapAlloc(sizeof(sus_File_impl));
|
sus_File file = (sus_File) sus_heapAlloc(sizeof(struct sus_File_impl));
|
||||||
file->memroy = mem;
|
file->memroy = mem;
|
||||||
file->length = info.st_size;
|
file->length = info.st_size;
|
||||||
file->fd = fd;
|
file->fd = fd;
|
||||||
|
Loading…
Reference in New Issue
Block a user