summaryrefslogtreecommitdiff
path: root/Source/Library/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Library/Userland')
-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));
+ }
};