Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pintos_forked_resit
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s2-alsaloumi
Pintos_forked_resit
Commits
d10583e8
Commit
d10583e8
authored
1 year ago
by
h2-addad
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
d7515ccb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/filesys/file.h
+29
-0
29 additions, 0 deletions
src/filesys/file.h
with
29 additions
and
0 deletions
src/filesys/file.h
0 → 100644
+
29
−
0
View file @
d10583e8
#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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment