Home
last modified time | relevance | path

Searched refs:sock1 (Results 1 – 6 of 6) sorted by relevance

/external/ltp/testcases/kernel/syscalls/bind/
Dbind03.c23 static int sock1, sock2; variable
30 sock1 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in run()
48 SAFE_BIND(sock1, (struct sockaddr *)&sun1, sizeof(sun1)); in run()
54 if (bind(sock1, (struct sockaddr *)&sun2, sizeof(sun2)) == 0) { in run()
87 close(sock1); in cleanup()
/external/toybox/toys/pending/
Ddhcp6.c49 int length, state, request_length, sock, sock1, status, retval, retries;
300 sendlength = sendto(TT.sock1, &mesg, sendlength , 0,(struct sockaddr *)&addr6, in send_msg()
477 xclose(TT.sock1); in lease_fail()
569 TT.sock1 = xsocket(PF_INET6, SOCK_DGRAM, 0); in dhcp6_main()
576 xsetsockopt(TT.sock1, SOL_SOCKET, SO_REUSEADDR, &constone, sizeof(constone)); in dhcp6_main()
578 if (bind(TT.sock1, (struct sockaddr *)&sinaddr6, sizeof(sinaddr6))) { in dhcp6_main()
579 xclose(TT.sock1); in dhcp6_main()
690 xclose(TT.sock1); in dhcp6_main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock_addr.c877 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument
884 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr()
890 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument
892 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip()
895 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument
897 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr()
900 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument
902 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()
/external/python/cpython3/Lib/test/
Dtest_signal.py130 sock1 = socket.socket()
131 self.addCleanup(sock1.close)
132 sock1.setblocking(False)
133 fd1 = sock1.fileno()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py847 sock1 = mock.Mock()
852 sock1.fileno(): future1,
856 self.loop._stop_serving(sock1)
857 self.assertTrue(sock1.close.called)
859 self.proactor._stop_serving.assert_called_with(sock1)
/external/toybox/generated/
Dglobals.h542 int length, state, request_length, sock, sock1, status, retval, retries; member