/system/core/libnetutils/ |
H A D | packet.c | 20 #include <sys/socket.h> 47 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) { 48 return fatal("socket(PF_PACKET)"); 59 return fatal("Cannot bind raw socket to interface");
|
H A D | ifc_utils.c | 23 #include <sys/socket.h> 121 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM, 0); 123 printerr("socket() failed: %s\n", strerror(errno)); 135 ifc_ctl_sock6 = socket(AF_INET6, SOCK_DGRAM, 0); 137 printerr("socket() failed: %s\n", strerror(errno)); 314 s = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
|
/system/core/libnl_2/ |
H A D | netlink.c | 23 #include <sys/socket.h> 103 /* Receive a set of messages from a netlink socket */ 203 /* Send raw data over netlink socket */ 247 /* Create and connect netlink socket */ 254 /* Create RX socket */ 255 sk->s_fd = socket(PF_NETLINK, SOCK_RAW, protocol); 263 /* Bind RX socket */
|
/system/core/toolbox/ |
H A D | iftop.c | 40 #include <sys/socket.h> 75 s = socket(AF_INET, SOCK_DGRAM, 0); 77 perror("socket");
|
H A D | netstat.c | 35 #include <sys/socket.h>
|
/system/bluetooth/bluez-clean-headers/bluetooth/ |
H A D | l2cap.h | 24 #include <sys/socket.h>
|
/system/core/init/ |
H A D | keywords.h | 82 KEYWORD(socket, OPTION, 0, 0)
|
H A D | util.c | 32 #include <sys/socket.h> 83 * create_socket - creates a Unix domain socket in ANDROID_SOCKET_DIR 84 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the 96 fd = socket(PF_UNIX, type, 0); 98 ERROR("Failed to open socket '%s': %s\n", name, strerror(errno)); 109 ERROR("Failed to unlink old socket '%s': %s\n", name, strerror(errno)); 124 ERROR("Failed to bind socket '%s': %s\n", name, strerror(errno)); 136 INFO("Created socket '%s' with mode '%o', user '%d', group '%d'\n",
|
H A D | builtins.c | 25 #include <sys/socket.h> 175 s = socket(AF_INET, SOCK_DGRAM, 0);
|
/system/core/libcutils/ |
H A D | zygote.c | 32 #include <sys/socket.h> 176 // The command socket is passed to the peer as close-on-exec 187 // Wait for socket to close 214 * ZYGOTE_RETRY_MILLIS for the zygote socket to be available.
|
H A D | abort_socket.c | 21 #include <sys/socket.h> 31 /* set primary socket to non-blocking */ 281 socket. Clients should not rely on this behavior - it is racy because we 283 all threads are done with the socket before calling asocket_destory().
|
/system/netd/ |
H A D | SecondaryTableController.cpp | 22 #include <sys/socket.h>
|
H A D | ndc.c | 25 #include <sys/socket.h> 45 // try interpreting the first arg as the socket name - if it fails go back to netd 58 printf("Using alt socket %s\n", argv[1]);
|
H A D | DnsProxyListener.cpp | 24 #include <sys/socket.h>
|
H A D | NatController.cpp | 21 #include <sys/socket.h>
|
H A D | TetherController.cpp | 22 #include <sys/socket.h>
|
/system/extras/tests/iptables/qtaguid/ |
H A D | socketTag.cpp | 19 * This socket tagging test is to ensure that the 29 #include <sys/socket.h> 98 fd = socket(AF_INET, SOCK_STREAM, 0); 100 testPrintE("socket creation failed: %s", strerror(errno)); 104 testPrintE("socket setup: failed to tag"); 109 testPrintE("socket setup: Unexpected results: tag not found"); 114 testPrintE("socket setup: Unexpected results"); 121 /* checkTag() also tries to lookup the socket address in the kernel and 125 * Without the kernel reporting more info on who setup the socket tag, it is
|
/system/core/libion/ |
H A D | ion_test.c | 9 #include <sys/socket.h> 180 printf("could not get recv_fd from socket");
|
/system/core/libnl_2/genl/ |
H A D | genl.c | 23 #include <sys/socket.h>
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 25 #include <sys/socket.h> 73 * Parse an binary message from a NETLINK_ROUTE netlink socket. 161 * netlink socket.
|
H A D | SocketListener.cpp | 19 #include <sys/socket.h> 79 SLOGE("Obtaining file descriptor socket '%s' failed: %s", 87 SLOGE("Unable to listen on socket (%s)", strerror(errno));
|
/system/security/keystore-engine/ |
H A D | eng_keystore.cpp | 30 #include <sys/socket.h>
|
/system/core/adb/ |
H A D | sysdeps_win32.c | 90 /* used to emulate unix-domain socket pairs */ 100 SOCKET socket; member in union:FHRec_::__anon283 112 #define fh_socket u.socket 468 /***** socket-based file descriptors *****/ 497 /* gently tell any peer that we're closing the socket */ 596 s = socket(AF_INET, type, 0); 598 D("socket_loopback_client: could not create socket\n" ); 635 s = socket(AF_INET, type, 0); 686 s = socket(hp->h_addrtype, type, 0); 722 s = socket(AF_INE [all...] |
/system/bluetooth/tools/ |
H A D | asocket_test.c | 17 /** socket testing */ 30 #include <sys/socket.h> 119 printf("%d: socket()\n", gettid()); 120 ret = socket(family, typ, protocol); 121 printf("%d: socket() = %d\n", gettid(), ret);
|
H A D | socktest.c | 17 /** socket testing */ 31 #include <sys/socket.h> 118 printf("%ld: socket()\n", pthread_self()); 119 ret = socket(family, typ, protocol); 120 printf("%ld: socket() = %d\n", pthread_self(), ret);
|