/system/core/include/cutils/ |
H A D | uevent.h | 21 #include <sys/socket.h> 28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length); 29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
|
H A D | abort_socket.h | 17 /* Helper to perform abortable blocking operations on a socket: 25 * Calling close() on a regular POSIX socket does not abort blocked syscalls on 26 * that socket in other threads. 28 * After calling asocket_abort() the socket cannot be reused. 30 * Call asocket_destory() *after* all threads have finished with the socket to 31 * finish closing the socket and free the asocket structure. 33 * The helper is implemented by setting the socket non-blocking to initiate 35 * on both the primary socket and a local pipe. This makes the poll() abortable 42 * socket, due to the local pipe. It may be possible to use a global pipe per 43 * process rather than per socket, bu [all...] |
/system/core/libsysutils/src/ |
H A D | NetlinkListener.cpp | 19 #include <sys/socket.h> 34 NetlinkListener::NetlinkListener(int socket) : argument 35 SocketListener(socket, false) { 40 NetlinkListener::NetlinkListener(int socket, int format) : argument 41 SocketListener(socket, false), mFormat(format) { 46 int socket = cli->getSocket(); local 51 socket, mBuffer, sizeof(mBuffer), &uid));
|
H A D | FrameworkClient.cpp | 11 FrameworkClient::FrameworkClient(int socket) { argument 12 mSocket = socket;
|
H A D | SocketClient.cpp | 3 #include <sys/socket.h> 14 SocketClient::SocketClient(int socket, bool owned) { argument 15 init(socket, owned, false); 18 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { argument 19 init(socket, owned, useCmdNum); 22 void SocketClient::init(int socket, bool owned, bool useCmdNum) { argument 23 mSocket = socket; 38 int err = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds);
|
/system/core/rootdir/etc/ |
H A D | dbus.conf | 8 <!-- Only allow socket-credentials-based authentication --> 11 <!-- Only listen on a local socket. (abstract=/path/to/socket 15 <listen>unix:path=/dev/socket/dbus</listen> 17 <!-- Allow everything, D-Bus socket is protected by unix filesystem
|
/system/core/include/sysutils/ |
H A D | NetlinkListener.h | 36 NetlinkListener(int socket); 37 NetlinkListener(int socket, int format); 39 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
|
/system/bluetooth/tools/ |
H A D | sock_shutdown_bug_tcp.c | 20 #include <sys/socket.h> 34 fd = socket(PF_INET, SOCK_STREAM, 0); 52 fd = socket(PF_INET, SOCK_STREAM, 0);
|
H A D | sock_shutdown_bug_l2cap.c | 20 #include <sys/socket.h> 36 fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP);
|
H A D | sock_shutdown_bug_rfcomm.c | 20 #include <sys/socket.h> 37 fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); 50 fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
|
/system/core/libcutils/ |
H A D | uevent.c | 23 #include <sys/socket.h> 32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) argument 35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &user); 41 * socket's peer. 47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, argument 64 ssize_t n = recvmsg(socket, &hdr, 0); 107 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
|
H A D | socket_inaddr_any_server.c | 27 #include <sys/socket.h> 47 s = socket(AF_INET, type, 0);
|
H A D | socket_loopback_client.c | 27 #include <sys/socket.h> 48 s = socket(AF_INET, type, 0);
|
H A D | socket_loopback_server.c | 29 #include <sys/socket.h> 47 s = socket(AF_INET, type, 0);
|
H A D | socket_network_client.c | 27 #include <sys/socket.h> 54 s = socket(hp->h_addrtype, type, 0);
|
H A D | socket_local_server.c | 36 #include <sys/socket.h> 48 * Binds a pre-created socket(AF_LOCAL) 's' to 'name' 89 /** Open a server-side UNIX domain datagram socket in the Linux non-filesystem 100 s = socket(AF_LOCAL, type, 0);
|
/system/core/adb/ |
H A D | jdwp_service.c | 12 when adbd starts, it creates a unix server socket 45 - it attaches the first socket in the pair to a local socket 46 which is itself attached to the transport's remote socket: 49 - it sends the file descriptor of the second socket directly 60 then, the JDWP thread uses this new socket descriptor as its 84 due to the way adb works, this doesn't need a special socket 85 type or fancy handling of socket termination if either the debugger 94 ** for each JDWP process, we record its pid and its connected socket 101 #include <sys/socket 109 int socket; member in struct:JdwpProcess 235 jdwp_process_event( int socket, unsigned events, void* _proc ) argument 552 asocket socket; member in struct:__anon281 626 asocket socket; member in struct:JdwpTracker [all...] |
H A D | test_track_devices.c | 3 #include <sys/socket.h> 66 s = socket( PF_INET, SOCK_STREAM, 0 );
|
H A D | test_track_jdwp.c | 3 #include <sys/socket.h> 66 s = socket( PF_INET, SOCK_STREAM, 0 );
|
/system/core/libnl_2/ |
H A D | Android.mk | 14 socket.c \
|
/system/vold/ |
H A D | NetlinkManager.cpp | 20 #include <sys/socket.h> 60 if ((mSock = socket(PF_NETLINK, 62 SLOGE("Unable to create uevent socket: %s", strerror(errno)); 67 SLOGE("Unable to set uevent socket SO_RECBUFFORCE option: %s", strerror(errno)); 72 SLOGE("Unable to set uevent socket SO_PASSCRED option: %s", strerror(errno)); 77 SLOGE("Unable to bind uevent socket: %s", strerror(errno));
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_udp.c | 12 #include <sys/socket.h> 77 if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1) 78 diep("socket"); 100 if ((s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP))==-1) 101 diep("socket");
|
H A D | test_getaddrinfo.c | 6 #include <sys/socket.h>
|
/system/bluetooth/bluez-clean-headers/bluetooth/ |
H A D | rfcomm.h | 24 #include <sys/socket.h>
|
/system/core/toolbox/ |
H A D | route.c | 37 #include <sys/socket.h> 106 int s = socket(AF_INET, SOCK_DGRAM, 0);
|