Searched refs:msg (Results 1 - 25 of 65) sorted by relevance

123

/system/extras/fatblock/
H A Dutils.c33 void warn(char *msg) argument
35 fprintf(stderr, "%s", msg);
38 void die(char *msg) argument
40 fprintf(stderr, "%s", msg);
H A Dutils.h31 void warn(char *msg);
32 void die(char *msg);
/system/netd/
H A DNetlinkHandler.cpp97 char msg[255]; local
98 snprintf(msg, sizeof(msg), "Iface added %s", name);
101 msg, false);
105 char msg[255]; local
106 snprintf(msg, sizeof(msg), "Iface removed %s", name);
109 msg, false);
113 char msg[255]; local
114 snprintf(msg, sizeo
122 char msg[255]; local
131 char msg[255]; local
140 char msg[255]; local
[all...]
H A DDnsProxyListener.cpp116 char* msg = NULL; local
117 asprintf( &msg, "Invalid number of arguments to getaddrinfo: %i", argc);
118 ALOGW("%s", msg);
119 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
120 free(msg);
182 char* msg = NULL; local
183 asprintf(&msg, "Invalid number of arguments to gethostbyaddr: %i", argc);
184 ALOGW("%s", msg);
185 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
186 free(msg);
198 char* msg = NULL; local
[all...]
H A DMDnsSdListener.cpp100 char *msg; local
104 asprintf(&msg, "%d %d", refNumber, errorCode);
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false);
123 asprintf(&msg, "%d %s %s %s", refNumber, quotedServiceName, regType, replyDomain);
125 context->mListener->sendBroadcast(respCode, msg, false);
127 free(msg);
132 char *msg; local
133 asprintf(&msg, "Invalid number of arguments to %s", str);
134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
135 free(msg);
148 char *msg; local
193 char *msg; local
247 char *msg; local
305 char *msg; local
312 char *msg; local
359 char *msg; local
395 char* msg = NULL; local
[all...]
/system/core/adb/
H A Dfile_sync_service.c58 syncmsg msg; local
61 msg.stat.id = ID_STAT;
64 msg.stat.mode = 0;
65 msg.stat.size = 0;
66 msg.stat.time = 0;
68 msg.stat.mode = htoll(st.st_mode);
69 msg.stat.size = htoll(st.st_size);
70 msg.stat.time = htoll(st.st_mtime);
73 return writex(s, &msg.stat, sizeof(msg
81 syncmsg msg; local
131 syncmsg msg; local
153 syncmsg msg; local
229 syncmsg msg; local
321 syncmsg msg; local
361 syncmsg msg; local
[all...]
H A Dtransport_usb.c34 p->msg.command = H4(p->msg.command);
35 p->msg.arg0 = H4(p->msg.arg0);
36 p->msg.arg1 = H4(p->msg.arg1);
37 p->msg.data_length = H4(p->msg.data_length);
38 p->msg.data_check = H4(p->msg
[all...]
H A Dtransport_local.c32 p->msg.command = H4(p->msg.command);
33 p->msg.arg0 = H4(p->msg.arg0);
34 p->msg.arg1 = H4(p->msg.arg1);
35 p->msg.data_length = H4(p->msg.data_length);
36 p->msg.data_check = H4(p->msg
[all...]
H A Dfile_sync_client.c67 syncmsg msg; local
69 msg.req.id = ID_QUIT;
70 msg.req.namelen = 0;
72 writex(fd, &msg.req, sizeof(msg.req));
79 syncmsg msg; local
86 msg.req.id = ID_LIST;
87 msg.req.namelen = htoll(len);
89 if(writex(fd, &msg.req, sizeof(msg
128 syncmsg msg; local
153 syncmsg msg; local
170 syncmsg msg; local
187 syncmsg msg; local
300 syncmsg msg; local
443 syncmsg msg; local
[all...]
/system/core/libnetutils/
H A Ddhcpmsg.c24 static void *init_dhcp_msg(dhcp_msg *msg, int type, void *hwaddr, uint32_t xid) argument
28 memset(msg, 0, sizeof(dhcp_msg));
30 msg->op = OP_BOOTREQUEST;
31 msg->htype = HTYPE_ETHER;
32 msg->hlen = 6;
33 msg->hops = 0;
35 msg->flags = htons(FLAGS_BROADCAST);
37 msg->xid = xid;
39 memcpy(msg->chaddr, hwaddr, 6);
41 x = msg
55 init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid) argument
73 init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid, uint32_t ipaddr, uint32_t serveraddr) argument
[all...]
H A Ddhcpclient.c166 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
177 if (msg->options[0] != OPT_COOKIE1) return -1;
178 if (msg->options[1] != OPT_COOKIE2) return -1;
179 if (msg->options[2] != OPT_COOKIE3) return -1;
180 if (msg->options[3] != OPT_COOKIE4) return -1;
182 x = msg->options + 4;
232 info->ipaddr = msg->yiaddr;
249 void dump_dhcp_msg(dhcp_msg *msg, int len) argument
265 if (msg->op == OP_BOOTREQUEST)
267 else if (msg
342 send_message(int sock, int if_index, dhcp_msg *msg, int size) argument
351 is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument
392 dhcp_msg *msg; local
[all...]
H A Dpacket.h21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
23 int receive_packet(int s, struct dhcp_msg *msg);
/system/core/libcutils/
H A Ddebugger.c30 debugger_msg_t msg; local
31 msg.tid = tid;
32 msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
35 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
63 debugger_msg_t msg; local
64 msg.tid = tid;
65 msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
68 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeo
[all...]
H A Dzygote.c55 struct msghdr msg;
63 memset(&msg, 0, sizeof(msg));
72 msg.msg_iov = ivs;
73 msg.msg_iovlen = 1;
77 msg.msg_control = msgbuf;
78 msg.msg_controllen = sizeof msgbuf;
80 cmsg = CMSG_FIRSTHDR(&msg);
93 ret = sendmsg(fd, &msg, MSG_NOSIGNAL);
101 msg
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp16 int FrameworkClient::sendMsg(const char *msg) { argument
24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
26 SLOGW("Unable to send msg '%s' (%s)", msg, strerror(errno));
32 int FrameworkClient::sendMsg(const char *msg, const char *data) { argument
33 size_t bufflen = strlen(msg) + strlen(data) + 1;
39 snprintf(buffer, bufflen, "%s%s", msg, data);
H A DSocketClient.cpp53 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { argument
54 return sendMsg(code, msg, addErrno, mUseCmdNum);
57 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { argument
63 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno));
65 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno));
69 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg);
71 ret = asprintf(&buf, "%d %s", code, msg);
133 int SocketClient::sendMsg(const char *msg) { argument
135 if (sendData(msg, strlen(msg)
[all...]
/system/core/libnl_2/
H A Dattr.c21 #include "netlink/msg.h"
75 struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype) argument
77 struct nlattr *start = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
80 rc = nla_put(msg, attrtype, 0, NULL);
88 int nla_nest_end(struct nl_msg *msg, struct nlattr *start) argument
91 start->nla_len = (unsigned char *)nlmsg_tail(nlmsg_hdr(msg)) -
151 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) argument
156 nla = nla_reserve(msg, attrtype, datalen);
166 int nla_put_u8(struct nl_msg *msg, int attrtype, uint8_t value) argument
168 return nla_put(msg, attrtyp
172 nla_put_u16(struct nl_msg *msg, int attrtype, uint16_t value) argument
178 nla_put_u32(struct nl_msg *msg, int attrtype, uint32_t value) argument
184 nla_put_u64(struct nl_msg *msg, int attrtype, uint64_t value) argument
193 nla_put_nested(struct nl_msg *msg, int attrtype, struct nl_msg *nested) argument
211 nla_reserve(struct nl_msg *msg, int attrtype, int data_len) argument
[all...]
H A Dnetlink.c29 int nl_send_auto_complete(struct nl_sock *sk, struct nl_msg *msg) argument
31 struct nlmsghdr *nlh = msg->nm_nlh;
48 return nl_send(sk, msg);
65 struct msghdr msg; local
78 msg.msg_name = (void *) &sk->s_peer;
79 msg.msg_namelen = sizeof(sk->s_peer);
80 msg.msg_iov = &recvmsg_iov;
81 msg.msg_iovlen = 1;
82 msg.msg_control = NULL;
83 msg
117 struct nl_msg *msg; local
204 nl_send(struct nl_sock *sk, struct nl_msg *msg) argument
217 nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen) argument
242 nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) argument
[all...]
/system/core/include/sysutils/
H A DFrameworkClient.h16 int sendMsg(const char *msg);
17 int sendMsg(const char *msg, const char *data);
H A DSocketClient.h45 int sendMsg(int code, const char *msg, bool addErrno);
46 int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum);
72 int sendMsg(const char *msg);
/system/core/sh/
H A Derror.c125 exvwarning(int sv_errno, const char *msg, va_list ap) argument
137 if (msg != NULL) {
138 doformat(&errout, msg, ap);
154 exverror(int cond, const char *msg, va_list ap) argument
160 if (msg) {
162 TRACEV((msg, ap));
167 if (msg)
168 exvwarning(-1, msg, ap);
177 error(const char *msg, ...) argument
181 va_start(ap, msg);
189 exerror(int cond, const char *msg, ...) argument
286 const char *msg; /* text describing the error */ member in struct:errname
[all...]
/system/core/libnl_2/genl/
H A Dgenl.c49 void *genlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, argument
59 if ((sizeof(struct nl_msg) + new_size) > msg->nm_size)
63 nlh = msg->nm_nlh;
101 struct msghdr msg; local
131 msg.msg_name = (void *) &sock->s_peer;
132 msg.msg_namelen = sizeof(sock->s_peer);
133 msg.msg_iov = &sendmsg_iov;
134 msg.msg_iovlen = 1; /* Only sending one iov */
135 msg.msg_control = NULL;
136 msg
[all...]
/system/core/init/
H A Ddevices.c305 static void parse_event(const char *msg, struct uevent *uevent) argument
318 while(*msg) {
319 if(!strncmp(msg, "ACTION=", 7)) {
320 msg += 7;
321 uevent->action = msg;
322 } else if(!strncmp(msg, "DEVPATH=", 8)) {
323 msg += 8;
324 uevent->path = msg;
325 } else if(!strncmp(msg, "SUBSYSTEM=", 10)) {
326 msg
811 char msg[UEVENT_MSG_LEN+2]; local
[all...]
/system/core/include/cutils/
H A Dlogger.h27 char msg[0]; /* the entry's payload */ member in struct:logger_entry
43 char msg[0]; /* the entry's payload */ member in struct:logger_entry_v2
/system/vold/
H A DDirectVolume.cpp118 char msg[255]; local
120 snprintf(msg, sizeof(msg),
124 msg, false);
280 char msg[255]; local
288 snprintf(msg, sizeof(msg), "Volume %s %s disk removed (%d:%d)",
291 msg, false);
298 char msg[255]; local
319 snprintf(msg, sizeo
[all...]

Completed in 114 milliseconds

123