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
bee61230
Commit
bee61230
authored
12 years ago
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
kill a few stupid prex typedefs
parent
471f6468
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fs/vfs/vfs.h
+1
-2
1 addition, 2 deletions
fs/vfs/vfs.h
fs/vfs/vfs_mount.c
+2
-2
2 additions, 2 deletions
fs/vfs/vfs_mount.c
fs/vfs/vfs_task.c
+0
-1
0 additions, 1 deletion
fs/vfs/vfs_task.c
include/osv/prex.h
+0
-8
0 additions, 8 deletions
include/osv/prex.h
with
3 additions
and
13 deletions
fs/vfs/vfs.h
+
1
−
2
View file @
bee61230
...
...
@@ -72,7 +72,6 @@ extern int vfs_debug;
*/
struct
task
{
struct
list_head
t_link
;
/* hash link */
task_t
t_taskid
;
/* task id */
char
t_cwd
[
PATH_MAX
];
/* current working directory */
file_t
t_cwdfp
;
/* directory for cwd */
file_t
t_ofile
[
OPEN_MAX
];
/* pointers to file structures of open files */
...
...
@@ -129,7 +128,7 @@ void task_delfd(struct task *t, int fd);
int
task_conv
(
struct
task
*
t
,
const
char
*
path
,
int
mode
,
char
*
full
);
int
sec_file_permission
(
task_t
task
,
char
*
path
,
int
mode
);
//
int sec_file_permission(task_t task, char *path, int mode);
int
sec_vnode_permission
(
char
*
path
);
int
namei
(
char
*
path
,
vnode_t
*
vpp
);
...
...
This diff is collapsed.
Click to expand it.
fs/vfs/vfs_mount.c
+
2
−
2
View file @
bee61230
...
...
@@ -86,7 +86,7 @@ sys_mount(char *dev, char *dir, char *fsname, int flags, void *data)
const
struct
vfssw
*
fs
;
mount_t
mp
;
list_t
head
,
n
;
device
_t
device
;
struct
device
*
device
;
vnode_t
vp
,
vp_covered
;
int
error
;
...
...
@@ -253,7 +253,7 @@ sys_umount(char *path)
#if HAVE_DEVICES
if
(
mp
->
m_dev
)
device_close
(
(
device_t
)
mp
->
m_dev
);
device_close
(
mp
->
m_dev
);
#endif
free
(
mp
);
out:
...
...
This diff is collapsed.
Click to expand it.
fs/vfs/vfs_task.c
+
0
−
1
View file @
bee61230
...
...
@@ -51,7 +51,6 @@ task_alloc(struct task **pt)
if
(
!
(
t
=
malloc
(
sizeof
(
struct
task
))))
return
ENOMEM
;
memset
(
t
,
0
,
sizeof
(
struct
task
));
t
->
t_taskid
=
0
;
strlcpy
(
t
->
t_cwd
,
"/"
,
sizeof
(
t
->
t_cwd
));
mutex_init
(
&
t
->
t_lock
);
...
...
This diff is collapsed.
Click to expand it.
include/osv/prex.h
+
0
−
8
View file @
bee61230
...
...
@@ -7,7 +7,6 @@
__BEGIN_DECLS
#define TASK_NULL ((task_t)0)
#define BSIZE 512
/* size of secondary block (bytes) */
/*
...
...
@@ -26,13 +25,6 @@ __BEGIN_DECLS
#define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK)
typedef
unsigned
long
object_t
;
typedef
unsigned
long
task_t
;
typedef
unsigned
long
thread_t
;
typedef
unsigned
long
cond_t
;
typedef
unsigned
long
sem_t
;
typedef
unsigned
long
device_t
;
size_t
strlcat
(
char
*
dst
,
const
char
*
src
,
size_t
siz
);
size_t
strlcpy
(
char
*
dst
,
const
char
*
src
,
size_t
siz
);
...
...
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