summaryrefslogtreecommitdiff
path: root/Source/Library/Userland/Binding
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-21 19:11:53 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-21 19:11:53 +0200
commite70b7c569ba13a68aba1c2b127811e61ac88a902 (patch)
tree4fa6bb927e22b9664e172ebe9c74b10680df3036 /Source/Library/Userland/Binding
parentdc37d089e8ca98ff2dc8a320c21fc3ac0a87eaa6 (diff)
downloadMelon-e70b7c569ba13a68aba1c2b127811e61ac88a902.tar.gz
Melon-e70b7c569ba13a68aba1c2b127811e61ac88a902.zip
Started working on user managment
Diffstat (limited to 'Source/Library/Userland/Binding')
-rw-r--r--Source/Library/Userland/Binding/Process.class.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Library/Userland/Binding/Process.class.h b/Source/Library/Userland/Binding/Process.class.h
index 00afe27..935bb39 100644
--- a/Source/Library/Userland/Binding/Process.class.h
+++ b/Source/Library/Userland/Binding/Process.class.h
@@ -1,6 +1,7 @@
#include <Syscall/RessourceCaller.class.h>
#include <Process.iface.h>
+#include <String.class.h>
class Process : public RessourceCaller {
public:
@@ -19,4 +20,13 @@ class Process : public RessourceCaller {
void freePage(u32int pos) {
doCall(PRIF_FREEPAGE, pos);
}
+ u32int getPid() {
+ return doCall(PRIF_GETPID);
+ }
+ u32int getPpid() {
+ return doCall(PRIF_GETPPID);
+ }
+ String getCmdline() {
+ return String::unserialize(doCall(PRIF_GETCMDLINE));
+ }
};