summaryrefslogtreecommitdiff
path: root/fs/file.h
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-23 01:36:12 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-23 01:36:12 +0200
commit4a06bc7bcb9b88e4975fef6bb619ddc9b4f5bc80 (patch)
tree540b9db7d27a9d1871b8444a2f9a29d7365e0965 /fs/file.h
parent566134df26612d34f2a377659c55fb0f1ae9dfa4 (diff)
working on mount/file
Diffstat (limited to 'fs/file.h')
-rw-r--r--fs/file.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/file.h b/fs/file.h
index 5455925..f8445a2 100644
--- a/fs/file.h
+++ b/fs/file.h
@@ -5,14 +5,12 @@
typedef struct
{
+ int(* seek)(int offset, int whence);
- void(* tell)();
- void(* seek)(int offset, int whence);
+ int(* read)(char *buf, int len);
+ int(* wrtie)(char *buf, int len);
- void(* read)(char *buf, int len);
- void(* wrtie)(char *buf, int len);
-
- void(* close)();
+ int(* close)();
int(* stat)(struct stat *buf);
void *data; //opaque