/external/bluetooth/bluedroid/btif/src/ |
D | btif_sock.c | 43 const uint8_t* uuid, int channel, int* sock_fd, int flags); 45 const uint8_t* uuid, int channel, int* sock_fd, int flags); 93 const uint8_t* service_uuid, int channel, int* sock_fd, int flags) in btsock_listen() argument 95 if((service_uuid == NULL && channel <= 0) || sock_fd == NULL) in btsock_listen() 97 …TRACE_ERROR("invalid parameters, uuid:%p, channel:%d, sock_fd:%p", service_uuid, channel, sock_fd); in btsock_listen() 100 *sock_fd = -1; in btsock_listen() 105 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, flags); in btsock_listen() 123 const uint8_t* uuid, int channel, int* sock_fd, int flags) in btsock_connect() argument 125 if((uuid == NULL && channel <= 0) || bd_addr == NULL || sock_fd == NULL) in btsock_connect() 128 bd_addr, uuid, channel, sock_fd); in btsock_connect() [all …]
|
D | btif_sock_util.c | 72 int sock_send_all(int sock_fd, const uint8_t* buf, int len) in sock_send_all() argument 78 do ret = send(sock_fd, buf, s, 0); in sock_send_all() 82 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret); in sock_send_all() 90 int sock_recv_all(int sock_fd, uint8_t* buf, int len) in sock_recv_all() argument 96 do ret = recv(sock_fd, buf, r, MSG_WAITALL); in sock_recv_all() 100 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret); in sock_recv_all() 109 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) in sock_send_fd() argument 119 if(sock_fd == -1 || send_fd == -1) in sock_send_fd() 144 ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL); in sock_send_fd() 149 sock_fd, send_fd, (int)ret, errno, strerror(errno)); in sock_send_fd()
|
D | btif_sock_rfc.c | 314 int* sock_fd, int flags) in btsock_rfc_listen() argument 318 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30))) in btsock_rfc_listen() 320 … APPL_TRACE_ERROR("invalid rfc channel:%d or sock_fd:%p, uuid:%p", channel, sock_fd, service_uuid); in btsock_rfc_listen() 323 *sock_fd = -1; in btsock_rfc_listen() 344 *sock_fd = rs->app_fd; in btsock_rfc_listen() 358 int channel, int* sock_fd, int flags) in btsock_rfc_connect() argument 360 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30))) in btsock_rfc_connect() 362 APPL_TRACE_ERROR("invalid rfc channel:%d or sock_fd:%p, uuid:%p", channel, sock_fd, in btsock_rfc_connect() 366 *sock_fd = -1; in btsock_rfc_connect() 384 *sock_fd = rs->app_fd; in btsock_rfc_connect() [all …]
|
/external/libpcap/ |
D | pcap-linux.c | 385 static int has_wext(int sock_fd, const char *device, char *ebuf); 387 static int enter_rfmon_mode(pcap_t *handle, int sock_fd, 639 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument 646 ifindex = iface_get_id(sock_fd, device, handle->errbuf); 735 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument 742 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf); 789 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument 827 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice); 875 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) { 879 del_mon_if(handle, sock_fd, &nlstate, device, [all …]
|
/external/bluetooth/bluedroid/btif/include/ |
D | btif_sock_util.h | 61 int sock_send_fd(int sock_fd, const uint8_t* buffer, int len, int send_fd); 62 int sock_send_all(int sock_fd, const uint8_t* buf, int len); 63 int sock_recv_all(int sock_fd, uint8_t* buf, int len);
|
D | btif_sock_rfc.h | 33 int* sock_fd, int flags); 35 int channel, int* sock_fd, int flags);
|
/external/ppp/pppd/ |
D | sys-linux.c | 178 static int sock_fd = -1; /* socket for doing interface ioctls */ variable 314 sock_fd = socket(AF_INET, SOCK_DGRAM, 0); in sys_init() 315 if (sock_fd < 0) in sys_init() 363 if (sock_fd >= 0) in sys_close() 364 close(sock_fd); in sys_close() 1167 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0) in netif_set_mtu() 1182 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) { in netif_get_mtu() 1350 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) { 1618 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifdefaultroute() 1651 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifdefaultroute() [all …]
|
/external/chromium_org/chrome/test/chromedriver/net/ |
D | port_server.cc | 72 int sock_fd = socket(AF_UNIX, SOCK_STREAM, 0); in RequestPort() local 73 if (sock_fd < 0) in RequestPort() 75 base::SyncSocket sock(sock_fd); in RequestPort() 79 if (setsockopt(sock_fd, in RequestPort() 84 setsockopt(sock_fd, in RequestPort()
|
/external/dhcpcd/ |
D | if-linux.c | 64 static int sock_fd; variable 133 sock_fd = _open_link_socket(&sock_nl); in init_sockets() 134 set_cloexec(sock_fd); in init_sockets() 135 return sock_fd; in init_sockets() 427 if (sendmsg(sock_fd, &msg, 0) != -1) in send_netlink() 428 r = get_netlink(sock_fd, 0, &err_netlink); in send_netlink()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_interceptors.inc | 1752 INTERCEPTOR(int, getsockname, int sock_fd, void *addr, int *addrlen) { 1754 COMMON_INTERCEPTOR_ENTER(ctx, getsockname, sock_fd, addr, addrlen); 1760 int res = REAL(getsockname)(sock_fd, addr, addrlen);
|