From 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 27 Mar 2012 11:51:08 +0200 Subject: reorganize file structure to match the upstream requirements --- pintos-progos/filesys/file.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 pintos-progos/filesys/file.h (limited to 'pintos-progos/filesys/file.h') diff --git a/pintos-progos/filesys/file.h b/pintos-progos/filesys/file.h deleted file mode 100644 index a33c5af..0000000 --- a/pintos-progos/filesys/file.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef FILESYS_FILE_H -#define FILESYS_FILE_H - -#include "filesys/off_t.h" - -struct inode; - -/* Opening and closing files. */ -struct file *file_open (struct inode *); -struct file *file_reopen (struct file *); -void file_close (struct file *); -struct inode *file_get_inode (struct file *); - -/* Reading and writing. */ -off_t file_read (struct file *, void *, off_t); -off_t file_read_at (struct file *, void *, off_t size, off_t start); -off_t file_write (struct file *, const void *, off_t); -off_t file_write_at (struct file *, const void *, off_t size, off_t start); - -/* Preventing writes. */ -void file_deny_write (struct file *); -void file_allow_write (struct file *); - -/* File position. */ -void file_seek (struct file *, off_t); -off_t file_tell (struct file *); -off_t file_length (struct file *); - -#endif /* filesys/file.h */ -- cgit v1.2.3