Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
[ldv: rewritten everything]
* tests/getpid.c: New file.
* tests/getppid.c: Likewise.
* tests/.gitignore: Add getpid and getppid.
* tests/pure_executables.list: Likewise.
* tests/Makefile.am (check_PROGRAMS): Likewise.
* tests/gen_tests.in (getpid, getppid): New entries.
getgroups32
getpeername
getpgrp
+getpid
+getppid
getrandom
getresgid
getresgid32
getgroups32 \
getpeername \
getpgrp \
+ getpid \
+ getppid \
getrandom \
getresgid \
getresgid32 \
getgroups32 -a19
getpeername -a27
getpgrp -a10
+getpid -a9
+getppid -a10
getrandom -a32 -s3
getresgid -a25
getresgid32 -a27
--- /dev/null
+#include "tests.h"
+#include <stdio.h>
+#include <unistd.h>
+#include <asm/unistd.h>
+
+int
+main(void)
+{
+ printf("getpid() = %ld\n", syscall(__NR_getpid));
+ puts("+++ exited with 0 +++");
+ return 0;
+}
--- /dev/null
+#include "tests.h"
+#include <stdio.h>
+#include <unistd.h>
+#include <asm/unistd.h>
+
+int
+main(void)
+{
+ printf("getppid() = %ld\n", syscall(__NR_getppid));
+ puts("+++ exited with 0 +++");
+ return 0;
+}
getgroups32
getpeername
getpgrp
+getpid
+getppid
getrandom
getresgid
getresgid32