/bionic/tests/ |
D | sys_msg_test.cpp | 59 } msg = { 1, "hello world" }; in TEST() local 60 ASSERT_EQ(0, msgsnd(id, &msg, sizeof(msg), 0)); in TEST() 65 ASSERT_EQ(sizeof(msg), ds.msg_cbytes); in TEST() 68 memset(&msg, 0, sizeof(msg)); in TEST() 69 ASSERT_EQ(static_cast<ssize_t>(sizeof(msg)), msgrcv(id, &msg, sizeof(msg), 0, 0)); in TEST() 70 ASSERT_EQ(1, msg.type); in TEST() 71 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/bionic/ |
D | android_set_abort_message.cpp | 40 char msg[0]; member 45 void android_set_abort_message(const char* msg) { in android_set_abort_message() argument 59 size_t size = sizeof(abort_msg_t) + strlen(msg) + 1; in android_set_abort_message() 67 strcpy(new_abort_message->msg, msg); in android_set_abort_message()
|
D | sys_msg.cpp | 55 ssize_t msgrcv(int id, void* msg, size_t n, long type, int flags) { in msgrcv() argument 57 return syscall(SYS_msgrcv, id, msg, n, type, flags); in msgrcv() 59 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type); in msgrcv() 63 int msgsnd(int id, const void* msg, size_t n, int flags) { in msgsnd() argument 65 return syscall(SYS_msgsnd, id, msg, n, flags); in msgsnd() 67 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0); in msgsnd()
|
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 | ifaddrs.cpp | 194 ifaddrmsg* msg = reinterpret_cast<ifaddrmsg*>(NLMSG_DATA(hdr)); in __getifaddrs_callback() local 198 while (addr != nullptr && addr->interface_index != static_cast<int>(msg->ifa_index)) { in __getifaddrs_callback() 214 rtattr* rta = IFA_RTA(msg); in __getifaddrs_callback() 218 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback() 219 new_addr->SetAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback() 220 new_addr->SetNetmask(msg->ifa_family, msg->ifa_prefixlen); in __getifaddrs_callback() 223 if (msg->ifa_family == AF_INET) { in __getifaddrs_callback() 224 new_addr->SetBroadcastAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback() 227 if (msg->ifa_family == AF_INET || msg->ifa_family == AF_INET6) { in __getifaddrs_callback() 228 new_addr->SetLocalAddress(msg->ifa_family, RTA_DATA(rta), RTA_PAYLOAD(rta)); in __getifaddrs_callback()
|
D | strerror_r.cpp | 20 const char* msg; member 24 for (size_t i = 0; strings[i].msg != NULL; ++i) { in __code_string_lookup() 26 return strings[i].msg; in __code_string_lookup()
|
D | libc_logging.cpp | 437 static int __libc_write_stderr(const char* tag, const char* msg) { in __libc_write_stderr() argument 443 vec[2].iov_base = const_cast<char*>(msg); in __libc_write_stderr() 444 vec[2].iov_len = strlen(msg); in __libc_write_stderr() 543 int __libc_write_log(int priority, const char* tag, const char* msg) { in __libc_write_log() argument 547 return __libc_write_stderr(tag, msg); in __libc_write_log() 569 vec[5].iov_base = const_cast<char*>(msg); in __libc_write_log() 570 vec[5].iov_len = strlen(msg) + 1; in __libc_write_log() 593 char msg[1024]; in __libc_fatal_va_list() local 594 BufferOutputStream os(msg, sizeof(msg)); in __libc_fatal_va_list() 605 { msg, os.total }, in __libc_fatal_va_list() [all …]
|
D | bionic_netlink.cpp | 70 rtgenmsg msg; in SendRequest() member 76 request.msg.rtgen_family = AF_UNSPEC; // All families. in SendRequest()
|
/bionic/libc/include/sys/ |
D | cdefs.h | 184 # define __errorattr(msg) __attribute__((unavailable(msg))) argument 185 # define __warnattr(msg) __attribute__((deprecated(msg))) argument 186 # define __warnattr_real(msg) __attribute__((deprecated(msg))) argument 187 # define __enable_if(cond, msg) __attribute__((enable_if(cond, msg))) argument 189 # define __errorattr(msg) __attribute__((__error__(msg))) argument 190 # define __warnattr(msg) __attribute__((__warning__(msg))) argument 195 # define __errordecl(name, msg) extern void name(void) __errorattr(msg) argument 203 # define __warnattr_strict(msg) /* __warnattr(msg) */ argument 205 # define __warnattr_strict(msg) argument
|
/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/tools/bionicbb/ |
D | tasks.py | 37 def process_message(msg, dry_run): argument 39 body = gmail.get_body(msg) 42 logging.fatal('No Gerrit info found: %s', msg.subject) 103 for msg in gmail.get_all_messages(gmail_service, label_id): 104 msg = msg_service.get(userId='me', id=msg['id']).execute() 105 if process_message(msg, dry_run) and not dry_run: 106 msg_service.trash(userId='me', id=msg['id']).execute()
|
D | gmail.py | 22 def get_body(msg): argument 23 if 'attachmentId' in msg['payload']['body']: 26 b64_body = msg['payload']['body']['data']
|
/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 | 31 struct msg * msg_first; 32 struct msg * msg_last;
|
D | ipmi.h | 100 struct ipmi_msg msg; member 117 struct ipmi_msg msg; member
|
/bionic/libc/include/android/ |
D | set_abort_message.h | 36 void android_set_abort_message(const char* msg) __INTRODUCED_IN(21);
|
/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()
|
/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/libm/ |
D | freebsd-compat.h | 29 #define __warn_references(sym,msg) /* ignored */ argument
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 62 extern "C" int __android_log_buf_write(int bufId, int prio, const char* tag, const char* msg) { in __android_log_buf_write() argument 66 g_fake_log_buf += msg; in __android_log_buf_write()
|
/bionic/libc/kernel/uapi/linux/dvb/ |
D | ca.h | 57 unsigned char msg[256]; member
|