root 5 年之前
父節點
當前提交
3586c7048b
共有 3 個文件被更改,包括 2 次插入 和 31 次删除
  1. 1 0
      config.h
  2. 0 30
      include/fs/file_opt.h
  3. 1 1
      include/kernel/init.h

+ 1 - 0
config.h

@@ -0,0 +1 @@
+#define CONFIG_FS

+ 0 - 30
include/fs/file_opt.h

@@ -1,30 +0,0 @@
-struct file_operations {
-	/* open a file */
-	int * (* open) (char *, __uint32_t, __uint32_t, errno_t *);
-
-	/* or create one */
-
-	/* `creat` doesn't return file-descriptor, it returns errno */
-	errno_t (* creat) (char *, __uint32_t, __uint32_t);
-
-	/* `fill` fills a inode descriptor */
-	errno_t (* fill) (char *, __uint32_t, __uint32_t, struct inode_desc *);
-
-
-	/* read from file-descriptor */
-	errno_t (* read) (int *, char *, __uint64_t);
-	
-	/* write to file-descriptor */
-	errno_t (* write) (int *, char *, __uint64_t);
-
-	/* change position */
-
-	/* 'seg' = whence */
-
-
-
-	__uint32_t (* lseek) (int *, __uint32_t, __uint32_t);
-
-	/* close a file-descriptor */
-	void (* ffree) (int *);
-};

+ 1 - 1
include/kernel/init.h

@@ -27,7 +27,7 @@
 #ifndef INCLUDED_INIT_H
 #define INCLUDED_INIT_H
 
-
+#include <config.h>
 #include <kernel/types.h>
 #include <kernel/errno.h>