Add the 'current_kthread' helper
[akaros.git] / kern / include / env.h
index bbecd07..30a5ac0 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/queue.h>
 #include <atomic.h>
 #include <mm.h>
-#include <vfs.h>
 #include <schedule.h>
 #include <devalarm.h>
 #include <ns.h>
@@ -30,6 +29,7 @@ struct username {
        char name[128];
        spinlock_t name_lock;
 };
+void __set_username(struct username *u, char *name);
 void set_username(struct username *u, char *name);
 
 #define PROC_PROGNAME_SZ 20
@@ -97,8 +97,7 @@ struct proc {
        sysevent_front_ring_t syseventfrontring;
 
        /* Filesystem info */
-       struct namespace                        *ns;
-       struct fs_struct                        fs_env;
+       int                                                     umask;
        struct fd_table                         open_files;
        struct pgrp                                     *pgrp;
        struct chan                                     *slash;
@@ -117,8 +116,6 @@ struct proc {
        struct vmm vmm;
 
        struct strace                           *strace;
-       bool                                            strace_on;
-       bool                                            strace_inherit;
 };
 
 /* Til we remove all Env references */