Searched refs:bind_fd (Results 1 – 1 of 1) sorted by relevance
| /linux/tools/testing/selftests/landlock/ |
| H A D | net_test.c | 518 int inval_fd, bind_fd, client_fd, status, ret; in test_bind_and_connect() local 577 bind_fd = socket_variant(srv); in test_bind_and_connect() 578 ASSERT_LE(0, bind_fd); in test_bind_and_connect() 580 ret = bind_variant(bind_fd, srv); in test_bind_and_connect() 588 EXPECT_EQ(0, listen(bind_fd, backlog)); in test_bind_and_connect() 597 EXPECT_EQ(0, close(bind_fd)); in test_bind_and_connect() 619 client_fd = bind_fd; in test_bind_and_connect() 622 client_fd = accept(bind_fd, NULL, 0); in test_bind_and_connect() 635 if (client_fd != bind_fd) in test_bind_and_connect() 639 EXPECT_EQ(0, close(bind_fd)); in test_bind_and_connect() [all …]
|