[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
file.h
Go to the documentation of this file.
1#ifndef FILESYS_FILE_H
2#define FILESYS_FILE_H
3
4#include "filesys/off_t.h"
5
6struct inode;
7
8/* Opening and closing files. */
9struct file *file_open (struct inode *);
10struct file *file_reopen (struct file *);
11struct file *file_duplicate (struct file *file);
12void file_close (struct file *);
13struct inode *file_get_inode (struct file *);
14
15/* Reading and writing. */
16off_t file_read (struct file *, void *, off_t);
17off_t file_read_at (struct file *, void *, off_t size, off_t start);
18off_t file_write (struct file *, const void *, off_t);
19off_t file_write_at (struct file *, const void *, off_t size, off_t start);
20
21/* Preventing writes. */
22void file_deny_write (struct file *);
23void file_allow_write (struct file *);
24
25/* File position. */
26void file_seek (struct file *, off_t);
27off_t file_tell (struct file *);
28off_t file_length (struct file *);
29
30#endif /* filesys/file.h */
struct inode * file_get_inode(struct file *)
Definition: file.c:63
void file_close(struct file *)
Definition: file.c:53
struct file * file_open(struct inode *)
Definition: file.c:17
off_t file_read(struct file *, void *, off_t)
Definition: file.c:73
off_t file_length(struct file *)
Definition: file.c:141
off_t file_read_at(struct file *, void *, off_t size, off_t start)
Definition: file.c:85
off_t file_write_at(struct file *, const void *, off_t size, off_t start)
Definition: file.c:111
off_t file_tell(struct file *)
Definition: file.c:158
struct file * file_reopen(struct file *)
Definition: file.c:34
void file_seek(struct file *, off_t)
Definition: file.c:149
off_t file_write(struct file *, const void *, off_t)
Definition: file.c:97
void file_deny_write(struct file *)
Definition: file.c:119
struct file * file_duplicate(struct file *file)
Definition: file.c:41
void file_allow_write(struct file *)
Definition: file.c:131
uint16_t size
Definition: mmu.h:0
int32_t off_t
Definition: off_t.h:9
Definition: file.c:7
Definition: inode.c:30