Lines Matching refs:err

380         const DWORD err = GetLastError();  in adb_open()  local
383 switch (err) { in adb_open()
395 D("unknown error: %s", android::base::SystemErrorCodeToString(err).c_str()); in adb_open()
423 const DWORD err = GetLastError(); in adb_creat() local
426 switch (err) { in adb_creat()
438 D("unknown error: %s", android::base::SystemErrorCodeToString(err).c_str()); in adb_creat()
566 static void _socket_set_errno( const DWORD err ) { in _socket_set_errno() argument
570 switch ( err ) { in _socket_set_errno()
602 err, errno ); in _socket_set_errno()
668 const DWORD err = WSAGetLastError(); in _fh_socket_close() local
669 D("closesocket failed: %s", android::base::SystemErrorCodeToString(err).c_str()); in _fh_socket_close()
684 const DWORD err = WSAGetLastError(); in _fh_socket_read() local
687 if (err != WSAEWOULDBLOCK) { in _fh_socket_read()
689 android::base::SystemErrorCodeToString(err).c_str()); in _fh_socket_read()
691 _socket_set_errno(err); in _fh_socket_read()
700 const DWORD err = WSAGetLastError(); in _fh_socket_write() local
703 if (err != WSAEWOULDBLOCK) { in _fh_socket_write()
705 android::base::SystemErrorCodeToString(err).c_str()); in _fh_socket_write()
707 _socket_set_errno(err); in _fh_socket_write()
736 const DWORD err = WSAGetLastError(); in _fh_socket_writev() local
739 if (err != WSAEWOULDBLOCK) { in _fh_socket_writev()
741 android::base::SystemErrorCodeToString(err).c_str()); in _fh_socket_writev()
743 _socket_set_errno(err); in _fh_socket_writev()
815 const DWORD err = WSAGetLastError(); in adb_socket() local
817 "cannot create socket: %s", android::base::SystemErrorCodeToString(err).c_str()); in adb_socket()
819 _socket_set_errno(err); in adb_socket()
839 const DWORD err = WSAGetLastError(); in adb_bind() local
841 << " failed: " + android::base::SystemErrorCodeToString(err); in adb_bind()
842 _socket_set_errno(err); in adb_bind()
896 const DWORD err = WSAGetLastError(); in adb_sendmsg() local
897 LOG(ERROR) << "WSASendMsg() failed " << android::base::SystemErrorCodeToString(err); in adb_sendmsg()
898 _socket_set_errno(err); in adb_sendmsg()
921 const DWORD err = WSAGetLastError(); in GetWSARecvMsgFunc() local
923 android::base::SystemErrorCodeToString(err).c_str()); in GetWSARecvMsgFunc()
924 _socket_set_errno(err); in GetWSARecvMsgFunc()
958 const DWORD err = WSAGetLastError(); in adb_recvmsg() local
959 LOG(ERROR) << "WSARecvMsg() failed " << android::base::SystemErrorCodeToString(err); in adb_recvmsg()
960 _socket_set_errno(err); in adb_recvmsg()
1016 const DWORD err = WSAGetLastError(); in network_loopback_client() local
1018 android::base::SystemErrorCodeToString(err).c_str()); in network_loopback_client()
1020 _socket_set_errno(err); in network_loopback_client()
1027 const DWORD err = WSAGetLastError(); in network_loopback_client() local
1030 android::base::SystemErrorCodeToString(err).c_str()); in network_loopback_client()
1033 _socket_set_errno(err); in network_loopback_client()
1066 const DWORD err = WSAGetLastError(); in _network_server() local
1068 android::base::SystemErrorCodeToString(err).c_str()); in _network_server()
1070 _socket_set_errno(err); in _network_server()
1080 const DWORD err = WSAGetLastError(); in _network_server() local
1082 android::base::SystemErrorCodeToString(err).c_str()); in _network_server()
1084 _socket_set_errno(err); in _network_server()
1090 const DWORD err = WSAGetLastError(); in _network_server() local
1093 android::base::SystemErrorCodeToString(err).c_str()); in _network_server()
1095 _socket_set_errno(err); in _network_server()
1100 const DWORD err = WSAGetLastError(); in _network_server() local
1102 "cannot listen on socket: %s", android::base::SystemErrorCodeToString(err).c_str()); in _network_server()
1105 _socket_set_errno(err); in _network_server()
1153 const DWORD err = WSAGetLastError(); in network_connect() local
1156 android::base::SystemErrorCodeToString(err).c_str()); in network_connect()
1159 _socket_set_errno(err); in network_connect()
1170 const DWORD err = WSAGetLastError(); in network_connect() local
1172 android::base::SystemErrorCodeToString(err).c_str()); in network_connect()
1174 _socket_set_errno(err); in network_connect()
1183 const DWORD err = WSAGetLastError(); in network_connect() local
1185 android::base::SystemErrorCodeToString(err).c_str()); in network_connect()
1188 _socket_set_errno(err); in network_connect()
1212 const DWORD err = WSAGetLastError(); in network_peek() local
1213 LOG(ERROR) << "ioctlsocket() failed " << android::base::SystemErrorCodeToString(err); in network_peek()
1214 _socket_set_errno(err); in network_peek()
1246 const DWORD err = WSAGetLastError(); in adb_socket_accept() local
1248 << " failed: " + android::base::SystemErrorCodeToString(err); in adb_socket_accept()
1249 _socket_set_errno(err); in adb_socket_accept()
1276 const DWORD err = WSAGetLastError(); in adb_setsockopt() local
1278 optname, android::base::SystemErrorCodeToString(err).c_str()); in adb_setsockopt()
1279 _socket_set_errno(err); in adb_setsockopt()
1296 const DWORD err = WSAGetLastError(); in adb_getsockname() local
1298 android::base::SystemErrorCodeToString(err).c_str()); in adb_getsockname()
1299 _socket_set_errno(err); in adb_getsockname()
1334 const DWORD err = WSAGetLastError(); in adb_shutdown() local
1336 android::base::SystemErrorCodeToString(err).c_str()); in adb_shutdown()
1337 _socket_set_errno(err); in adb_shutdown()
1435 const DWORD err = WSAGetLastError(); in set_tcp_keepalive() local
1437 android::base::SystemErrorCodeToString(err).c_str()); in set_tcp_keepalive()
1438 _socket_set_errno(err); in set_tcp_keepalive()