/system/vold/ |
D | vdc.c | 36 static int do_monitor(int sock, int stop_after_cmd); 37 static int do_cmd(int sock, int argc, char **argv); 40 int sock; in main() local 45 if ((sock = socket_local_client("vold", in main() 53 exit(do_monitor(sock, 0)); in main() 54 exit(do_cmd(sock, argc, argv)); in main() 57 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument 76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { in do_cmd() 81 return do_monitor(sock, 1); in do_cmd() 84 static int do_monitor(int sock, int stop_after_cmd) { in do_monitor() argument [all …]
|
/system/netd/ |
D | ndc.c | 35 static int do_monitor(int sock, int stop_after_cmd); 36 static int do_cmd(int sock, int argc, char **argv); 39 int sock; in main() local 47 if ((sock = socket_local_client(argv[1], in main() 50 if ((sock = socket_local_client("netd", in main() 63 exit(do_monitor(sock, 0)); in main() 64 exit(do_cmd(sock, argc-cmdOffset, &(argv[cmdOffset]))); in main() 67 static int do_cmd(int sock, int argc, char **argv) { in do_cmd() argument 106 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { in do_cmd() 114 return do_monitor(sock, 1); in do_cmd() [all …]
|
D | NetlinkManager.cpp | 53 NetlinkHandler *NetlinkManager::setupSocket(int *sock, int netlinkFamily, in setupSocket() argument 65 if ((*sock = socket(PF_NETLINK, SOCK_DGRAM, netlinkFamily)) < 0) { in setupSocket() 70 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in setupSocket() 72 close(*sock); in setupSocket() 76 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in setupSocket() 78 close(*sock); in setupSocket() 82 if (bind(*sock, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) { in setupSocket() 84 close(*sock); in setupSocket() 88 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); in setupSocket() 91 close(*sock); in setupSocket()
|
D | NetlinkManager.h | 59 NetlinkHandler* setupSocket(int *sock, int netlinkFamily, int groups,
|
/system/core/libnl_2/genl/ |
D | genl.c | 93 int genl_ctrl_alloc_cache(struct nl_sock *sock, struct nl_cache **result) in genl_ctrl_alloc_cache() argument 114 nlmhdr.nlmsg_seq = sock->s_seq_next; in genl_ctrl_alloc_cache() 115 nlmhdr.nlmsg_pid = sock->s_local.nl_pid; in genl_ctrl_alloc_cache() 131 msg.msg_name = (void *) &sock->s_peer; in genl_ctrl_alloc_cache() 132 msg.msg_namelen = sizeof(sock->s_peer); in genl_ctrl_alloc_cache() 140 num_char = sendmsg(sock->s_fd, &msg, 0); in genl_ctrl_alloc_cache() 167 recvmsg_len = recvmsg(sock->s_fd, &msg, 0); in genl_ctrl_alloc_cache()
|
/system/core/libcutils/ |
D | properties.c | 104 int sock = -1; in connectToServer() local 109 sock = socket(AF_UNIX, SOCK_STREAM, 0); in connectToServer() 110 if (sock < 0) { in connectToServer() 118 cc = connect(sock, (struct sockaddr*) &addr, SUN_LEN(&addr)); in connectToServer() 124 close(sock); in connectToServer() 128 return sock; in connectToServer()
|
/system/core/include/sysutils/ |
D | SocketClient.h | 33 SocketClient(int sock, bool owned); 34 SocketClient(int sock, bool owned, bool useCmdNum);
|
D | FrameworkClient.h | 13 FrameworkClient(int sock);
|
/system/core/libnetutils/ |
D | dhcpclient.c | 342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) in send_message() argument 347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST, in send_message()
|