From 8ec4ea37162121bf76d9df4b469478697ef6ba04 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Wed, 9 Dec 2009 16:02:23 +0100 Subject: Some changes --- Source/Applications/Shell/Shell.ns.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Applications') diff --git a/Source/Applications/Shell/Shell.ns.cpp b/Source/Applications/Shell/Shell.ns.cpp index d34c360..56a6b5f 100644 --- a/Source/Applications/Shell/Shell.ns.cpp +++ b/Source/Applications/Shell/Shell.ns.cpp @@ -1,5 +1,6 @@ #include "Shell.ns.h" #include +#include namespace Shell { @@ -64,6 +65,8 @@ u32int run() { outvt << "Uptime : " << (s64int)Sys::uptime() << "s\n"; } else if (cmd[0] == "free") { outvt << "Free RAM : " << (s64int)Sys::freeRam() << " Kio of " << (s64int)Sys::totalRam() << " Kio\n"; + } else if (cmd[0] == "uid") { + outvt << "User ID : " << (s64int)(Process::get().getUid()) << "\n"; } else if (cmd[0] == "help") { while (cmd.size() > 1) cmd.pop(); cmd.push("/Applications/Shell/Help.txt"); -- cgit v1.2.3