Searched refs:sock_fd (Results 1 - 8 of 8) sorted by relevance

/external/bluetooth/bluedroid/btif/include/
H A Dbtif_sock_rfc.h33 int* sock_fd, int flags);
35 int channel, int* sock_fd, int flags);
H A Dbtif_sock_util.h61 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);
/external/bluetooth/bluedroid/btif/src/
H A Dbtif_sock.c43 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)
95 if((service_uuid == NULL && channel <= 0) || sock_fd == NULL)
97 BTIF_TRACE_ERROR3("invalid parameters, uuid:%p, channel:%d, sock_fd:%p", service_uuid, channel, sock_fd);
100 *sock_fd = -1;
105 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, flags);
123 const uint8_t* uuid, int channel, int* sock_fd, int flags)
125 if((uuid == NULL && channel <= 0) || bd_addr == NULL || sock_fd
92 btsock_listen(btsock_type_t type, const char* service_name, const uint8_t* service_uuid, int channel, int* sock_fd, int flags) argument
122 btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t* uuid, int channel, int* sock_fd, int flags) argument
[all...]
H A Dbtif_sock_util.c72 int sock_send_all(int sock_fd, const uint8_t* buf, int len) argument
78 do ret = send(sock_fd, buf, s, 0);
82 BTIF_TRACE_ERROR3("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret);
90 int sock_recv_all(int sock_fd, uint8_t* buf, int len) argument
96 do ret = recv(sock_fd, buf, r, MSG_WAITALL);
100 BTIF_TRACE_ERROR3("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret);
109 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) argument
119 if(sock_fd == -1 || send_fd == -1)
144 ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL);
149 sock_fd, send_f
[all...]
H A Dbtif_sock_rfc.c308 int* sock_fd, int flags)
312 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30)))
314 APPL_TRACE_ERROR3("invalid rfc channel:%d or sock_fd:%p, uuid:%p", channel, sock_fd, service_uuid);
317 *sock_fd = -1;
338 *sock_fd = rs->app_fd;
347 int channel, int* sock_fd, int flags)
349 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30)))
351 APPL_TRACE_ERROR3("invalid rfc channel:%d or sock_fd:%p, uuid:%p", channel, sock_fd,
307 btsock_rfc_listen(const char* service_name, const uint8_t* service_uuid, int channel, int* sock_fd, int flags) argument
346 btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* service_uuid, int channel, int* sock_fd, int flags) argument
[all...]
/external/ppp/pppd/
H A Dsys-linux.c177 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
313 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
314 if (sock_fd < 0)
362 if (sock_fd >= 0)
363 close(sock_fd);
1166 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1181 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1349 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1617 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1650 if (ioctl(sock_fd, SIOCDELR
1839 int ret, sock_fd; local
[all...]
/external/libpcap/
H A Dpcap-linux.c1392 int sock_fd = -1, arptype; local
1405 sock_fd = device ?
1409 if (sock_fd == -1) {
1429 handle->md.lo_ifindex = iface_get_id(sock_fd, "lo", ebuf);
1446 arptype = iface_get_arptype(sock_fd, device, ebuf);
1468 if (close(sock_fd) == -1) {
1473 sock_fd = socket(PF_PACKET, SOCK_DGRAM,
1475 if (sock_fd == -1) {
1514 handle->md.ifindex = iface_get_id(sock_fd, device, ebuf);
1518 if ((err = iface_bind(sock_fd, handl
[all...]
/external/dhcpcd/
H A Dif-linux.c64 static int sock_fd; variable
133 sock_fd = _open_link_socket(&sock_nl);
134 set_cloexec(sock_fd);
135 return sock_fd;
427 if (sendmsg(sock_fd, &msg, 0) != -1)
428 r = get_netlink(sock_fd, 0, &err_netlink);

Completed in 351 milliseconds