On 6/14/22 9:36 PM, Pavel Begunkov wrote:
+int main(void) +{ + unsigned long tstop; + unsigned long nr_reqs = 0; + struct io_uring_cqe *cqe; + struct io_uring_sqe *sqe; + struct io_uring ring; + int pipe1[2]; + int ret, i, qd = 128; + + if (argc > 1) + return 0; +
Hi Pavel, I am testing this and it doesn't compile, the main(void) needs fixing. ``` poll-bench.c: In function ‘main’: poll-bench.c:39:13: error: ‘argc’ undeclared (first use in this function) 39 | if (argc > 1) | ^~~~ poll-bench.c:39:13: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [Makefile:34: poll-bench] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/ammarfaizi2/app/liburing/examples' make: *** [Makefile:12: all] Error 2 ``` -- Ammar Faizi