Home
last modified time | relevance | path

Searched refs:sock1 (Results 1 – 11 of 11) 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/adhd/cras/client/libcras/src/
Daudio_socket.rs228 let (sock1, sock2) = UnixStream::pair().unwrap(); in init_audio_socket_pair()
229 let sender = AudioSocket::new(sock1); in init_audio_socket_pair()
259 let (sock1, sock2) = UnixStream::pair().unwrap(); in audio_socket_data_ready_send_and_recv()
260 let mut audio_socket_send = AudioSocket::new(sock1); in audio_socket_data_ready_send_and_recv()
279 let (sock1, sock2) = UnixStream::pair().unwrap(); in audio_socket_capture_ready()
280 let mut audio_socket_send = AudioSocket::new(sock1); in audio_socket_capture_ready()
303 let sock1 = { in audio_socket_send_when_broken_pipe() localVariable
304 let (sock1, _) = UnixStream::pair().unwrap(); in audio_socket_send_when_broken_pipe()
305 sock1 in audio_socket_send_when_broken_pipe()
307 let mut audio_socket = AudioSocket::new(sock1); in audio_socket_send_when_broken_pipe()
Dlibcras.rs430 let (sock1, sock2) = UnixStream::pair()?; in create_stream()
437 let audio_socket = AudioSocket::new(sock1); in create_stream()
669 let (sock1, sock2) = UnixStream::pair()?;
679 let audio_socket = AudioSocket::new(sock1);
/external/toybox/toys/pending/
Ddhcp6.c49 int length, state, request_length, sock, sock1, status, retval, retries;
297 sendlength = sendto(TT.sock1, &mesg, sendlength , 0,(struct sockaddr *)&addr6, in send_msg()
474 xclose(TT.sock1); in lease_fail()
566 TT.sock1 = xsocket(PF_INET6, SOCK_DGRAM, 0); in dhcp6_main()
573 xsetsockopt(TT.sock1, SOL_SOCKET, SO_REUSEADDR, &constone, sizeof(constone)); in dhcp6_main()
575 xbind(TT.sock1, (struct sockaddr *)&sinaddr6, sizeof(sinaddr6)); in dhcp6_main()
684 xclose(TT.sock1); in dhcp6_main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock_addr.c1120 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument
1127 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr()
1133 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument
1135 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip()
1138 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument
1140 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr()
1143 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument
1145 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()
/external/python/cpython3/Lib/test/
Dtest_signal.py186 sock1 = socket.socket()
187 self.addCleanup(sock1.close)
188 sock1.setblocking(False)
189 fd1 = sock1.fileno()
Dtest_socket.py6575 sock1, sock2 = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM)
6576 with sock1, sock2:
6577 socket.send_fds(sock1, [MSG], fds)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py802 sock1 = mock.Mock()
807 sock1.fileno(): future1,
811 self.loop._stop_serving(sock1)
812 self.assertTrue(sock1.close.called)
814 self.proactor._stop_serving.assert_called_with(sock1)
/external/toybox/android/linux/generated/
Dglobals.h612 int length, state, request_length, sock, sock1, status, retval, retries; member
/external/toybox/android/device/generated/
Dglobals.h612 int length, state, request_length, sock, sock1, status, retval, retries; member
/external/toybox/android/mac/generated/
Dglobals.h612 int length, state, request_length, sock, sock1, status, retval, retries; member