diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-09 16:02:23 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-09 16:02:23 +0100 |
commit | 8ec4ea37162121bf76d9df4b469478697ef6ba04 (patch) | |
tree | ea9e3583ab8041f4f5734187e5d0a68ee345eb55 /Source/Applications/Shell | |
parent | 7471d467fed21671f2f4549446249de7e3a7d578 (diff) | |
download | Melon-8ec4ea37162121bf76d9df4b469478697ef6ba04.tar.gz Melon-8ec4ea37162121bf76d9df4b469478697ef6ba04.zip |
Some changes
Diffstat (limited to 'Source/Applications/Shell')
-rw-r--r-- | Source/Applications/Shell/Shell.ns.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <Binding/Sys.ns.h> +#include <Binding/Process.class.h> 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"); |