fxlibc/include/fxlibc/target/vhex-generic/types/struct_FILE.h

27 lines
398 B
C
Raw Normal View History

2020-09-17 19:27:01 +02:00
#ifndef __FILE_H__
# define __FILE_H__
#include <stdint.h>
#include <stddef.h>
#include <fxlibc/sys/types.h>
2020-09-17 19:27:01 +02:00
//---
// TODO: VFS abstraction ? or ABI-spesific abstraction ?
//---
2020-09-17 19:27:01 +02:00
// Define _IO_FILE
2020-09-17 19:27:01 +02:00
// TODO: add open flags
// TODO: add file descriptor ?
// TODO: update me !
struct _IO_FILE
{
off_t cursor;
int permission;
void *file_op;
2020-09-17 19:27:01 +02:00
void *private;
};
#endif /*__FILE_H__*/