Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Verlässliche Systemsoftware
projects
osv
Commits
57741446
Commit
57741446
authored
11 years ago
by
Avi Kivity
Browse files
Options
Downloads
Patches
Plain Diff
file: remove badfileops
Unused. Signed-off-by:
Avi Kivity
<
avi@cloudius-systems.com
>
parent
356d6909
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fs/vfs/kern_descrip.cc
+0
-60
0 additions, 60 deletions
fs/vfs/kern_descrip.cc
include/osv/file.h
+0
-2
0 additions, 2 deletions
include/osv/file.h
with
0 additions
and
62 deletions
fs/vfs/kern_descrip.cc
+
0
−
60
View file @
57741446
...
...
@@ -252,66 +252,6 @@ void file_setdata(file* fp, void* data)
fp
->
f_data
=
data
;
}
static
int
badfo_init
(
struct
file
*
fp
)
{
return
EBADF
;
}
static
int
badfo_readwrite
(
struct
file
*
fp
,
struct
uio
*
uio
,
int
flags
)
{
return
EBADF
;
}
static
int
badfo_truncate
(
struct
file
*
fp
,
off_t
length
)
{
return
EINVAL
;
}
static
int
badfo_ioctl
(
struct
file
*
fp
,
u_long
com
,
void
*
data
)
{
return
EBADF
;
}
static
int
badfo_poll
(
struct
file
*
fp
,
int
events
)
{
return
0
;
}
static
int
badfo_stat
(
struct
file
*
fp
,
struct
stat
*
sb
)
{
return
EBADF
;
}
static
int
badfo_close
(
struct
file
*
fp
)
{
return
EBADF
;
}
static
int
badfo_chmod
(
struct
file
*
fp
,
mode_t
mode
)
{
return
EBADF
;
}
struct
fileops
badfileops
=
{
.
fo_init
=
badfo_init
,
.
fo_read
=
badfo_readwrite
,
.
fo_write
=
badfo_readwrite
,
.
fo_truncate
=
badfo_truncate
,
.
fo_ioctl
=
badfo_ioctl
,
.
fo_poll
=
badfo_poll
,
.
fo_stat
=
badfo_stat
,
.
fo_close
=
badfo_close
,
.
fo_chmod
=
badfo_chmod
,
};
int
fo_init
(
struct
file
*
fp
)
{
...
...
This diff is collapsed.
Click to expand it.
include/osv/file.h
+
0
−
2
View file @
57741446
...
...
@@ -137,8 +137,6 @@ struct fileops {
fo_chmod_t
*
fo_chmod
;
};
extern
struct
fileops
badfileops
;
/* Alloc an fd for fp */
int
_fdalloc
(
struct
file
*
fp
,
int
*
newfd
,
int
min_fd
);
int
fdalloc
(
struct
file
*
fp
,
int
*
newfd
);
...
...
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