Lines Matching refs:pid2
23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) in sys_kcmp() argument
25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp()
35 int pid1, pid2; in main() local
81 pid2 = fork(); in main()
82 if (pid2 < 0) { in main()
87 if (!pid2) { in main()
88 int pid2 = getpid(); in main() local
101 pid1, pid2, in main()
102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
104 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
105 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
106 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main()
107 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main()
108 sys_kcmp(pid1, pid2, KCMP_SYSVSEM, 0, 0), in main()
111 sys_kcmp(pid1, pid2, KCMP_TYPES + 1, 0, 0)); in main()
114 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1); in main()
163 waitpid(pid2, &status, P_ALL); in main()