2019-12-30 16:31:03 +01:00
|
|
|
#ifndef __FILE_H__
|
|
|
|
# define __FILE_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
2020-01-01 14:19:18 +01:00
|
|
|
#include <kernel/types.h>
|
2019-12-30 16:31:03 +01:00
|
|
|
|
|
|
|
#ifndef FILE_OPEN_NUMBER
|
|
|
|
# define FILE_OPEN_NUMBER 4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct file_s
|
|
|
|
{
|
|
|
|
void *abstract;
|
|
|
|
off_t cursor;
|
|
|
|
uint8_t mode;
|
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
typedef struct file_s FILE;
|
|
|
|
|
|
|
|
#endif /*__FILE_H__*/
|