Searched refs:bind_fd (Results 1 – 1 of 1) sorted by relevance
| /linux/tools/testing/selftests/landlock/ |
| H A D | net_test.c | 514 int inval_fd, bind_fd, client_fd, status, ret; in test_bind_and_connect() local 573 bind_fd = socket_variant(srv); in test_bind_and_connect() 574 ASSERT_LE(0, bind_fd); in test_bind_and_connect() 576 ret = bind_variant(bind_fd, srv); in test_bind_and_connect() 584 EXPECT_EQ(0, listen(bind_fd, backlog)); in test_bind_and_connect() 593 EXPECT_EQ(0, close(bind_fd)); in test_bind_and_connect() 615 client_fd = bind_fd; in test_bind_and_connect() 618 client_fd = accept(bind_fd, NULL, 0); in test_bind_and_connect() 631 if (client_fd != bind_fd) in test_bind_and_connect() 635 EXPECT_EQ(0, close(bind_fd)); in test_bind_and_connect() [all …]
|