HomeSort by relevance Sort by last modified time
    Searched defs:sock_fd (Results 1 - 6 of 6) sorted by null

  /system/core/libcutils/
debugger.c 59 static int send_request(int sock_fd, void* msg_ptr, size_t msg_len) {
61 if (TEMP_FAILURE_RETRY(write(sock_fd, msg_ptr, msg_len)) != (ssize_t) msg_len) {
65 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) {
100 int sock_fd = socket_local_client(socket_name, ANDROID_SOCKET_NAMESPACE_ABSTRACT, local
102 if (sock_fd < 0) {
110 if (setsockopt(sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tm, sizeof(tm)) == -1) {
114 if (setsockopt(sock_fd, SOL_SOCKET, SO_SNDTIMEO, &tm, sizeof(tm)) == -1) {
119 if (send_request(sock_fd, msg_ptr, msg_len) < 0) {
120 TEMP_FAILURE_RETRY(close(sock_fd));
124 return sock_fd;
132 int sock_fd = make_dump_request(DEBUGGER_ACTION_DUMP_BACKTRACE, tid, timeout_secs); local
156 int sock_fd = make_dump_request(DEBUGGER_ACTION_DUMP_TOMBSTONE, tid, timeout_secs); local
    [all...]
  /external/chromium_org/chrome/test/chromedriver/net/
port_server.cc 72 int sock_fd = socket(AF_UNIX, SOCK_STREAM, 0); local
73 if (sock_fd < 0)
75 base::SyncSocket sock(sock_fd);
79 if (setsockopt(sock_fd,
84 setsockopt(sock_fd,
  /device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_socket.c 545 int sock_fd = -1; local
562 sock_fd = socket(AF_INET, SOCK_STREAM, 0);
563 if (sock_fd < 0) {
565 return sock_fd;
569 socket_flag = fcntl(sock_fd, F_GETFL, 0);
570 fcntl(sock_fd, F_SETFL, socket_flag | O_NONBLOCK);
574 result = setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR,
579 close(sock_fd);
580 sock_fd = -1;
581 return sock_fd;
    [all...]
  /external/dhcpcd/
if-linux.c 64 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);
  /external/libpcap/
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,
646 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
735 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state,
742 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf);
789 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device)
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
923 int sock_fd; local
3001 int sock_fd = -1, arptype; local
    [all...]
  /external/ppp/pppd/
sys-linux.c 178 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
314 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
315 if (sock_fd < 0)
363 if (sock_fd >= 0)
364 close(sock_fd);
1167 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1182 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1840 int ret, sock_fd; local
    [all...]

Completed in 629 milliseconds