/bionic/libc/bionic/ |
D | android_set_abort_message.cpp | 44 char msg[0]; member 47 offsetof(abort_msg_t, msg) == sizeof(size_t), 53 abort_msg_t msg; member 55 static_assert(offsetof(magic_abort_msg_t, msg) == 2 * sizeof(uint64_t), 71 void android_set_abort_message(const char* msg) { in android_set_abort_message() argument 80 size_t size = sizeof(magic_abort_msg_t) + strlen(msg) + 1; in android_set_abort_message() 92 new_magic_abort_message->msg.size = size; in android_set_abort_message() 93 strcpy(new_magic_abort_message->msg.msg, msg); in android_set_abort_message() 94 __libc_shared_globals()->abort_msg = &new_magic_abort_message->msg; in android_set_abort_message()
|
D | system_property_set.cpp | 178 static int send_prop_msg(const prop_msg* msg) { in send_prop_msg() argument 187 const int num_bytes = TEMP_FAILURE_RETRY(send(s, msg, sizeof(prop_msg), 0)); in send_prop_msg() 214 msg->name, msg->value); in send_prop_msg() 261 prop_msg msg; in __system_property_set() local 262 memset(&msg, 0, sizeof msg); in __system_property_set() 263 msg.cmd = PROP_MSG_SETPROP; in __system_property_set() 264 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set() 265 strlcpy(msg.value, value, sizeof msg.value); in __system_property_set() 267 return send_prop_msg(&msg); in __system_property_set()
|
D | sys_msg.cpp | 54 ssize_t msgrcv(int id, void* msg, size_t n, long type, int flags) { in msgrcv() argument 56 return syscall(SYS_msgrcv, id, msg, n, type, flags); in msgrcv() 58 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type); in msgrcv() 62 int msgsnd(int id, const void* msg, size_t n, int flags) { in msgsnd() argument 64 return syscall(SYS_msgsnd, id, msg, n, flags); in msgsnd() 66 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0); in msgsnd()
|
D | ifaddrs.cpp | 196 ifaddrmsg* msg = reinterpret_cast<ifaddrmsg*>(NLMSG_DATA(hdr)); in __getifaddrs_callback() local 200 … while (known_addr != nullptr && known_addr->interface_index != static_cast<int>(msg->ifa_index)) { in __getifaddrs_callback() 206 new_addr->interface_index = static_cast<int>(msg->ifa_index); in __getifaddrs_callback() 219 rtattr* rta = IFA_RTA(msg); in __getifaddrs_callback() 223 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback() 224 new_addr->SetAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback() 225 new_addr->SetNetmask(msg->ifa_family, msg->ifa_prefixlen); in __getifaddrs_callback() 228 if (msg->ifa_family == AF_INET) { in __getifaddrs_callback() 229 new_addr->SetBroadcastAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback() 237 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback() [all …]
|
D | __cmsg_nxthdr.cpp | 31 cmsghdr* __cmsg_nxthdr(msghdr* msg, cmsghdr* cmsg) { in __cmsg_nxthdr() argument 34 size_t len = reinterpret_cast<char*>(ptr+1) - reinterpret_cast<char*>(msg->msg_control); in __cmsg_nxthdr() 35 if (len > msg->msg_controllen) { in __cmsg_nxthdr()
|
D | recvmsg.cpp | 41 struct msghdr* msg, const char* function_name) { in track_fds() argument 46 for (struct cmsghdr* cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in track_fds()
|
D | bionic_netlink.cpp | 66 rtgenmsg msg; in SendRequest() member 72 request.msg.rtgen_family = AF_UNSPEC; // All families. in SendRequest()
|
D | NetdClientDispatch.cpp | 69 ssize_t sendmsg(int fd, const struct msghdr* msg, int flags) { in sendmsg() argument 70 return __netdClientDispatch.sendmsg(fd, msg, flags); in sendmsg()
|
/bionic/tests/ |
D | sys_msg_test.cpp | 58 } msg = { 1, "hello world" }; in TEST() local 59 ASSERT_EQ(0, msgsnd(id, &msg, sizeof(msg), 0)); in TEST() 64 ASSERT_EQ(sizeof(msg), ds.msg_cbytes); in TEST() 67 memset(&msg, 0, sizeof(msg)); in TEST() 68 ASSERT_EQ(static_cast<ssize_t>(sizeof(msg)), msgrcv(id, &msg, sizeof(msg), 0, 0)); in TEST() 69 ASSERT_EQ(1, msg.type); in TEST() 70 ASSERT_STREQ("hello world", msg.data); in TEST()
|
D | __cxa_thread_atexit_test.cpp | 27 void set_message(const std::string& msg) { in set_message() argument 28 message = msg; in set_message() 46 std::string msg("dtor called."); in TEST() local 48 ASSERT_EQ(0, pthread_create(&t, nullptr, thread_nop, &msg)); in TEST() 55 void set_message(const std::string& msg) { in set_message() argument 56 message = msg; in set_message()
|
/bionic/libc/dns/nameser/ |
D | ns_parse.c | 47 static void setsection(ns_msg *msg, ns_sect sect); 107 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument 108 const u_char *eom = msg + msglen; in ns_initparse() 111 handle->_msg = msg; in ns_initparse() 113 if (msg + NS_INT16SZ > eom) in ns_initparse() 115 NS_GET16(handle->_id, msg); in ns_initparse() 116 if (msg + NS_INT16SZ > eom) in ns_initparse() 118 NS_GET16(handle->_flags, msg); in ns_initparse() 120 if (msg + NS_INT16SZ > eom) in ns_initparse() 122 NS_GET16(handle->_counts[i], msg); in ns_initparse() [all …]
|
D | ns_name.c | 408 ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src, in ns_name_unpack() argument 411 return (ns_name_unpack2(msg, eom, src, dst, dstsiz, NULL)); in ns_name_unpack() 423 ns_name_unpack2(const u_char *msg, const u_char *eom, const u_char *src, in ns_name_unpack2() argument 435 if (srcp < msg || srcp >= eom) { in ns_name_unpack2() 472 if (l >= eom - msg) { /* Out of range. */ in ns_name_unpack2() 476 srcp = msg + l; in ns_name_unpack2() 484 if (checked >= eom - msg) { in ns_name_unpack2() 529 const u_char **cpp, **lpp, *eob, *msg; in ns_name_pack() local 538 if ((msg = *dnptrs++) != NULL) { in ns_name_pack() 544 msg = NULL; in ns_name_pack() [all …]
|
D | ns_print.c | 60 static int addname(const u_char *msg, size_t msglen, 108 ns_sprintrrf(const u_char *msg, size_t msglen, in ns_sprintrrf() argument 174 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 201 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 205 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 276 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 294 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 298 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 383 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() 402 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf() [all …]
|
/bionic/libc/include/sys/ |
D | cdefs.h | 134 #define __errorattr(msg) __attribute__((unavailable(msg))) argument 135 #define __warnattr(msg) __attribute__((deprecated(msg))) argument 136 #define __warnattr_real(msg) __attribute__((deprecated(msg))) argument 137 #define __enable_if(cond, msg) __attribute__((enable_if(cond, msg))) argument 138 #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) argument 139 #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning"))) argument 146 # define __warnattr_strict(msg) /* __warnattr(msg) */ argument 148 # define __warnattr_strict(msg) argument
|
D | socket.h | 105 #define CMSG_FIRSTHDR(msg) \ argument 106 ((msg)->msg_controllen >= sizeof(struct cmsghdr) \ 107 ? (struct cmsghdr*) (msg)->msg_control : (struct cmsghdr*) NULL) 114 static inline struct cmsghdr* __cmsg_nxthdr(struct msghdr* msg, struct cmsghdr* cmsg) { in __cmsg_nxthdr() argument 119 __BIONIC_CAST(reinterpret_cast, char*, msg->msg_control); in __cmsg_nxthdr() 120 if (len > msg->msg_controllen) { in __cmsg_nxthdr()
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 441 static int write_stderr(const char* tag, const char* msg) { in write_stderr() argument 447 vec[2].iov_base = const_cast<char*>(msg); in write_stderr() 448 vec[2].iov_len = strlen(msg); in write_stderr() 489 int async_safe_write_log(int priority, const char* tag, const char* msg) { in async_safe_write_log() argument 493 return write_stderr(tag, msg); in async_safe_write_log() 515 vec[5].iov_base = const_cast<char*>(msg); in async_safe_write_log() 516 vec[5].iov_len = strlen(msg) + 1; in async_safe_write_log() 540 char msg[1024]; in async_safe_fatal_va_list() local 541 BufferOutputStream os(msg, sizeof(msg)); in async_safe_fatal_va_list() 552 {msg, strlen(msg)}, {const_cast<char*>("\n"), 1}, in async_safe_fatal_va_list() [all …]
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 60 extern "C" int async_safe_write_log(int priority, const char* tag, const char* msg) { in async_safe_write_log() argument 61 g_fake_log_print += std::to_string(priority) + ' ' + tag + ' ' + msg + '\n'; in async_safe_write_log() 66 extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { in __android_log_buf_write() argument 70 g_fake_log_buf += msg; in __android_log_buf_write()
|
D | malloc_debug_system_tests.cpp | 165 log_msg msg; in GetLogStr() local 166 ssize_t actual = android_logger_list_read(list, &msg); in GetLogStr() 180 ASSERT_EQ(msg.entry.pid, pid); in GetLogStr() 182 char* msg_str = msg.msg(); in GetLogStr()
|
/bionic/libc/dns/resolv/ |
D | res_data.c | 151 p_query(const u_char *msg) { in p_query() argument 152 fp_query(msg, stdout); in p_query() 156 fp_query(const u_char *msg, FILE *file) { in fp_query() argument 157 fp_nquery(msg, PACKETSZ, file); in fp_query() 161 fp_nquery(const u_char *msg, int len, FILE *file) { in fp_nquery() argument 165 res_pquery(&_nres, msg, len, file); in fp_nquery()
|
D | res_debug.c | 279 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 284 if (ns_initparse(msg, len, &handle) < 0) { in res_pquery() 351 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument 355 if ((n = dn_expand(msg, msg + len, cp, name, (int)sizeof name)) < 0) in p_cdnname() 365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument 366 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname() 373 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, in p_fqnname() argument 379 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname() 394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument 398 n = p_fqnname(cp, msg, MAXCDNAME, name, (int)sizeof name); in p_fqname()
|
/bionic/libc/kernel/tools/ |
D | utils.py | 10 def panic(msg): argument 12 sys.stderr.write(msg) 48 def write(self,msg): argument 49 self.line += msg 50 logging.debug("write '%s'" % msg)
|
D | clean_header.py | 76 def print_error(no_update, msg): argument 78 panic(msg) 79 sys.stderr.write("warning: " + msg)
|
/bionic/linker/ |
D | linker_dlwarning.cpp | 55 std::string msg = current_msg; in get_dlwarning() local 57 f(obj, msg.c_str()); in get_dlwarning()
|
/bionic/libc/kernel/uapi/linux/ |
D | msg.h | 30 struct msg * msg_first; 31 struct msg * msg_last;
|
D | ipmi.h | 84 struct ipmi_msg msg; member 98 struct ipmi_msg msg; member
|