Lines Matching refs:fd2
80 static void sem_player(int fd1, int fd2) in sem_player() argument
85 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player()
86 xsem_wait(fd2); in sem_player()
91 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player()
92 xsem_wait(fd2); in sem_player()
97 fprintf(stdout, "[%u] waiting 5 times on %d\n", getpid(), fd2); in sem_player()
98 xsem_wait(fd2); in sem_player()
99 xsem_wait(fd2); in sem_player()
100 xsem_wait(fd2); in sem_player()
101 xsem_wait(fd2); in sem_player()
102 xsem_wait(fd2); in sem_player()
112 int c, fd1, fd2, status; in main() local
128 (fd2 = eventfd2(0, EFD_SEMLIKE)) == -1) { in main()
133 sem_player(fd1, fd2); in main()
137 sem_player(fd2, fd1); in main()