Compare commits

..

No commits in common. "09a615bd9943a5bb0340891b4327a419f0996993" and "17671fd435517f8a82f930158248950a14df0dd4" have entirely different histories.

4 changed files with 4 additions and 10 deletions

View File

@ -17,8 +17,8 @@ pid_t get_current_max_threads()
void display_process(struct pstat* pstatbuf)
{
printf("%d %d %ld %ld %s %s (%ld ms)\n", pstatbuf->pt_uid, pstatbuf->pt_gid, pstatbuf->pt_pid, pstatbuf->pt_ppid,
pstatbuf->pt_name, pstatname(pstatbuf), pstatbuf->pt_time);
printf("%ld %ld %s %s (%ld ms)\n", pstatbuf->pt_pid, pstatbuf->pt_ppid, pstatbuf->pt_name, pstatname(pstatbuf),
pstatbuf->pt_time);
}
int try_pstat(pid_t pid, struct pstat* pstatbuf)

View File

@ -615,8 +615,6 @@ struct pstat
char pt_name[128];
int pt_state;
long pt_time;
uid_t pt_uid;
gid_t pt_gid;
};
void sys_pstat(Context* context, long pid, struct pstat* buf)
@ -649,8 +647,6 @@ void sys_pstat(Context* context, long pid, struct pstat* buf)
kpstat->pt_ppid = task->ppid;
kpstat->pt_state = (int)task->state;
kpstat->pt_time = (long)task->cpu_time;
kpstat->pt_uid = task->uid;
kpstat->pt_gid = task->gid;
strlcpy(kpstat->pt_name, task->name, sizeof(kpstat->pt_name));
release_user_ref(kpstat);
}

View File

@ -10,8 +10,6 @@ struct pstat
char pt_name[128];
int pt_state;
long pt_time;
uid_t pt_uid;
gid_t pt_gid;
};
#define PT_IDLE 0

View File

@ -57,8 +57,8 @@ extern char* program_invocation_name;
extern "C" void initialize_libc(int, char** argv)
{
check_for_file(STDIN_FILENO, &stdin, "/dev/kbd", "r");
check_for_file(STDOUT_FILENO, &stdout, "/dev/console", "a");
check_for_file(STDERR_FILENO, &stderr, "/dev/console", "a");
check_for_file(STDOUT_FILENO, &stdout, "/dev/console", "w");
check_for_file(STDERR_FILENO, &stderr, "/dev/console", "w");
if (argv) program_invocation_name = argv[0];