/system/core/init/ |
H A D | property_service.c | 411 prop_msg msg; local 432 r = TEMP_FAILURE_RETRY(recv(s, &msg, sizeof(msg), 0)); 434 ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n", 440 switch(msg.cmd) { 442 msg.name[PROP_NAME_MAX-1] = 0; 443 msg.value[PROP_VALUE_MAX-1] = 0; 449 if(memcmp(msg.name,"ctl.",4) == 0) { 453 if (check_control_perms(msg.value, cr.uid, cr.gid, source_ctx)) { 454 handle_control_message((char*) msg [all...] |
/system/core/libcutils/ |
H A D | debugger.c | 30 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 D | mq.c | 474 struct msghdr msg; local 484 msg.msg_control = control_un.control; 485 msg.msg_controllen = sizeof(control_un.control); 486 cmptr = CMSG_FIRSTHDR(&msg); 494 msg.msg_name = NULL; 495 msg.msg_namelen = 0; 498 msg.msg_iov = iov; 499 msg.msg_iovlen = 1; 501 ssize_t result = sendmsg(peerProxy->fd->fd, &msg, 0); 720 struct msghdr msg; local [all...] |
H A D | zygote.c | 55 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/libion/ |
H A D | ion_test.c | 113 struct msghdr msg = { local 134 cmsg = CMSG_FIRSTHDR(&msg); 141 printf("master sending msg 1\n"); 142 sendmsg(sd[0], &msg, 0); 143 if (recvmsg(sd[0], &msg, 0) < 0) 144 perror("master recv msg 2"); 148 sendmsg(sd[0], &msg, 0); 150 if (recvmsg(sd[0], &msg, 0) < 0) 153 struct msghdr msg; local 172 perror("child recv msg [all...] |
/system/core/liblog/ |
H A D | fake_log_device.c | 347 int logPrio, const char* tag, const char* msg) 359 TRACE("LOG %d: %s %s", logPrio, tag, msg); 434 const char* end = msg + strlen(msg); 436 const char* p = msg; 440 if (p > msg && *(p-1) != '\n') numLines++; 459 msg = "LOG: write failed, no memory"; 469 p = msg; 572 const char* msg = (const char*) vector[2].iov_base; local 589 showLog(state, logPrio, tag, msg); 346 showLog(LogState *state, int logPrio, const char* tag, const char* msg) argument [all...] |
H A D | logd_write.c | 133 int __android_log_write(int prio, const char *tag, const char *msg) argument 157 vec[2].iov_base = (void *) msg; 158 vec[2].iov_len = strlen(msg) + 1; 163 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *msg) argument 186 vec[2].iov_base = (void *) msg; 187 vec[2].iov_len = strlen(msg) + 1;
|
H A D | logprint.c | 362 * starts at buf->msg+1 363 * msg 364 * starts at buf->msg+1+len(tag)+1 381 if (buf->msg[i] == '\0') { 398 buf->msg[msgEnd] = '\0'; 401 entry->priority = buf->msg[0]; 402 entry->tag = buf->msg + 1; 403 entry->message = buf->msg + msgStart; 616 eventData = (const unsigned char*) buf->msg;
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 166 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 D | dhcpmsg.c | 24 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 D | dhcpmsg.h | 101 int init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid); 103 int init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid,
|
H A D | packet.c | 89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument 130 udpsum = checksum(msg, size, udpsum); 137 iov[2].iov_base = (char *)msg; 156 int receive_packet(int s, struct dhcp_msg *msg) argument 237 memcpy(msg, &packet.dhcp, dhcp_size);
|
H A D | packet.h | 21 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/libnl_2/ |
H A D | Android.mk | 17 msg.c \
|
H A D | attr.c | 21 #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 D | netlink.c | 29 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/libnl_2/genl/ |
H A D | genl.c | 49 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/libpixelflinger/codeflinger/ |
H A D | CodeCache.cpp | 60 static void heap_error(const char* msg, const char* function, void* p); 68 static void heap_error(const char* msg, const char* function, void* p) { argument 70 msg, function, p);
|
/system/core/libsysutils/src/ |
H A D | FrameworkClient.cpp | 16 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 D | SocketClient.cpp | 53 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...] |
H A D | SocketListener.cpp | 246 void SocketListener::sendBroadcast(int code, const char *msg, bool addErrno) { argument 252 if ((*i)->sendMsg(code, msg, addErrno, false)) {
|
/system/core/logcat/ |
H A D | logcat.cpp | 170 //printf(">>> pri=%d len=%d msg='%s'\n", 305 entry->entry.msg[entry->entry.len] = '\0';
|
/system/core/logwrapper/ |
H A D | logwrapper.c | 30 void fatal(const char *msg) { argument 31 fprintf(stderr, "%s", msg); 32 ALOG(LOG_ERROR, "logwrapper", "%s", msg);
|
/system/core/sh/ |
H A D | arith_lex.c | 346 static void yy_fatal_error (yyconst char msg[] ); 637 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) 1699 static void yy_fatal_error (yyconst char* msg ) 1701 (void) fprintf( stderr, "%s\n", msg );
|
H A D | error.c | 125 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...] |