Lines Matching defs:SYSCALL
48 #define SYSCALL(a, b) ATF_REQUIRE_EQ_MSG(a, b, "%s got %s", #a, strerror(errno))
97 SYSCALL(pipe(fdto), 0);
98 SYSCALL(pipe(fdfrom), 0);
106 SYSCALL(pthread_create(&thread, NULL, waitthread, &pid), 0);
108 SYSCALL(read(fdfrom[0], &q, 1), 1);
110 SYSCALL(ptrace(PT_ATTACH, pid, NULL, 0), 0);
112 SYSCALL(write(fdto[1], &p, 1), 1);
115 SYSCALL(ptrace(PT_CONTINUE, pid, (void *)1, 0), 0);
116 SYSCALL(read(fdfrom[0], &p, 1), 1);
118 SYSCALL(ptrace(PT_STOP, pid, NULL, 0), 0);
119 SYSCALL(ptrace(PT_KILL, pid, NULL, 0), 0);
120 SYSCALL(waitpid(pid, &status, 0), pid);