summaryrefslogtreecommitdiff
path: root/fs/file.h
blob: f8445a2d6532b14d5a7d0c07144a0de5a2060e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef FILE_H
#define FILE_H

#include <stdint.h>

typedef struct
{
    int(* seek)(int offset, int whence);

    int(* read)(char *buf, int len);
    int(* wrtie)(char *buf, int len);

    int(* close)();
    int(* stat)(struct stat *buf);

    void *data; //opaque

}file;

#endif