summaryrefslogtreecommitdiffstats
path: root/usr/klibc/tests/idtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/tests/idtest.c')
-rw-r--r--usr/klibc/tests/idtest.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/klibc/tests/idtest.c b/usr/klibc/tests/idtest.c
new file mode 100644
index 0000000..c3c4447
--- /dev/null
+++ b/usr/klibc/tests/idtest.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <unistd.h>
+
+int main(void)
+{
+ printf("pid = %u\n", getpid());
+ printf("ppid = %u\n", getppid());
+ printf("uid = %u\n", getuid());
+ printf("euid = %u\n", geteuid());
+ printf("gid = %u\n", getgid());
+ printf("egid = %u\n", getegid());
+ sleep(10);
+ return 0;
+}