Skip to content
Snippets Groups Projects
Commit bee61230 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

kill a few stupid prex typedefs

parent 471f6468
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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:
......
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment