Searched refs:unix_addr (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/landlock/ |
H A D | scoped_abstract_unix_test.c | 115 err = connect(stream_client, &self->stream_address.unix_addr, in TEST_F() 125 err = connect(dgram_client, &self->dgram_address.unix_addr, in TEST_F() 146 ASSERT_EQ(0, bind(stream_server, &self->stream_address.unix_addr, in TEST_F() 148 ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr, in TEST_F() 212 bind(stream_server, &self->stream_address.unix_addr, in TEST_F() 214 ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr, in TEST_F() 245 err_stream = connect(stream_client, &self->stream_address.unix_addr, in TEST_F() 248 err_dgram = connect(dgram_client, &self->dgram_address.unix_addr, in TEST_F() 364 &self->child_stream_address.unix_addr, in TEST_F() 369 &self->child_dgram_address.unix_addr, in TEST_F() [all …]
|
H A D | common.h | 247 struct sockaddr_un unix_addr; member 261 srv->unix_addr.sun_family = AF_UNIX; in set_unix_address() 262 sprintf(srv->unix_addr.sun_path, in set_unix_address() 265 srv->unix_addr_len = SUN_LEN(&srv->unix_addr); in set_unix_address() 266 srv->unix_addr.sun_path[0] = '\0'; in set_unix_address()
|
H A D | scoped_signal_test.c | 411 ASSERT_EQ(0, connect(client_socket, &server_address.unix_addr, in TEST_F() 447 ASSERT_EQ(0, bind(server_socket, &server_address.unix_addr, in TEST_F()
|
H A D | net_test.c | 133 return sizeof(srv->unix_addr) - in get_addrlen() 134 sizeof(srv->unix_addr.sun_path); in get_addrlen() 201 ret = bind(sock_fd, &srv->unix_addr, addrlen); in bind_variant_addrlen() 237 ret = connect(sock_fd, &srv->unix_addr, addrlen); in connect_variant_addrlen()
|