dev.c, which has stubs we need
[akaros.git] / kern / include / env.h
index 838b3fb..fbce2a2 100644 (file)
@@ -21,6 +21,7 @@
 #include <vfs.h>
 #include <schedule.h>
 #include <devalarm.h>
+#include <ns.h>
 
 TAILQ_HEAD(vcore_tailq, vcore);
 /* 'struct proc_list' declared in sched.h (not ideal...) */
@@ -31,6 +32,7 @@ struct proc {
        TAILQ_ENTRY(proc) sibling_link;
        spinlock_t proc_lock;
        struct user_context scp_ctx;    /* context for an SCP.  TODO: move to vc0 */
+       char user[64]; /* user name */
        pid_t pid;
        /* Tempting to add a struct proc *parent, but we'd need to protect the use
         * of that reference from concurrent parent-death (letting init inherit
@@ -83,6 +85,7 @@ struct proc {
        struct namespace                        *ns;
        struct fs_struct                        fs_env;
        struct files_struct                     open_files;
+       struct pgrp                             *pgrp;
 
        /* UCQ hashlocks */
        struct hashlock                         *ucq_hashlock;