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

27 lines
445 B
C
Raw Normal View History

2021-05-09 23:00:11 +02:00
#ifndef __BITS_TYPES_STRUCT_FILE_H__
# define __BITS_TYPES_STRUCT_FILE_H__
2020-09-17 19:27:01 +02:00
#include <stdint.h>
#include <stddef.h>
2021-05-09 17:34:00 +02:00
#include <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;
};
2021-05-09 23:00:11 +02:00
#endif /*__BITS_TYPES_STRUCT_FILE_H__*/