/busybox-1.35.0/libbb/ |
D | udp_io.c | 42 struct msghdr msg; in send_to_from() 67 memset(&msg, 0, sizeof(msg)); in send_to_from() 68 msg.msg_name = (void *)(struct sockaddr *)to; /* or compiler will annoy us */ in send_to_from() 69 msg.msg_namelen = tolen; in send_to_from() 70 msg.msg_iov = iov; in send_to_from() 71 msg.msg_iovlen = 1; in send_to_from() 72 msg.msg_control = &u; in send_to_from() 73 msg.msg_controllen = sizeof(u); in send_to_from() 74 msg.msg_flags = flags; in send_to_from() 76 cmsgptr = CMSG_FIRSTHDR(&msg); in send_to_from() [all …]
|
D | verror_msg.c | 22 char *msg, *msg1; in bb_verror_msg() local 47 msg = stack_msg; in bb_verror_msg() 53 used = vasprintf(&msg, s, p); in bb_verror_msg() 65 msg1 = realloc(msg, applet_len + used + strerr_len + msgeol_len + 3); in bb_verror_msg() 67 msg[used++] = '\n'; /* overwrites NUL */ in bb_verror_msg() 70 msg = msg1; in bb_verror_msg() 72 memmove(msg + applet_len, msg, used); in bb_verror_msg() 75 strcpy(msg, applet_name); in bb_verror_msg() 76 msg[applet_len - 2] = ':'; in bb_verror_msg() 77 msg[applet_len - 1] = ' '; in bb_verror_msg() [all …]
|
D | obscure.c | 176 const char *msg; in obscure() local 178 msg = obscure_msg(old, newval, pw); in obscure() 179 if (msg) { in obscure() 180 printf("Bad password: %s\n", msg); in obscure()
|
/busybox-1.35.0/networking/ |
D | tc.c | 331 struct tcmsg *msg = NLMSG_DATA(hdr); in print_qdisc() local 340 len -= NLMSG_LENGTH(sizeof(*msg)); in print_qdisc() 346 if (filter_ifindex && filter_ifindex != msg->tcm_ifindex) in print_qdisc() 349 parse_rtattr(tb, TCA_MAX, TCA_RTA(msg), len); in print_qdisc() 357 printf("qdisc %s %x: ", name, msg->tcm_handle>>16); in print_qdisc() 359 printf("dev %s ", ll_index_to_name(msg->tcm_ifindex)); in print_qdisc() 360 if (msg->tcm_parent == TC_H_ROOT) in print_qdisc() 362 else if (msg->tcm_parent) { in print_qdisc() 363 char *classid = print_tc_classid(msg->tcm_parent); in print_qdisc() 368 if (msg->tcm_info != 1) in print_qdisc() [all …]
|
D | ntpd.c | 816 msg_t *msg, ssize_t len) in do_sendto() argument 822 ret = sendto(fd, msg, len, MSG_DONTWAIT, to, addrlen); in do_sendto() 824 ret = send_to_from(fd, msg, len, MSG_DONTWAIT, to, from, addrlen); in do_sendto() 835 hash(key_entry_t *key_entry, const msg_t *msg, uint8_t *output) in hash() argument 841 unsigned hash_size = sizeof(*msg) - sizeof(msg->m_keyid) - sizeof(msg->m_digest); in hash() 847 md5_hash(&ctx.m, msg, hash_size); in hash() 853 sha1_hash(&ctx.s, msg, hash_size); in hash() 867 hashes_differ(peer_t *p, const msg_t *msg) in hashes_differ() argument 870 hash(p->key_entry, msg, digest); in hashes_differ() 871 return memcmp(digest, msg->m_digest, p->key_entry->msg_size - NTP_MSGSIZE_NOAUTH - KEYID_SIZE); in hashes_differ() [all …]
|
D | ftpgetput.c | 84 static void ftp_die(const char *msg) NORETURN; 85 static void ftp_die(const char *msg) in ftp_die() argument 94 (msg ? " to " : ""), (msg ? msg : ""), buf); in ftp_die()
|
D | tls.h | 93 #define psTraceCrypto(msg) bb_simple_error_msg_and_die(msg) argument
|
/busybox-1.35.0/examples/var_service/dhcp_if_pinger/ |
D | run | 15 msg() { function 34 msg "Failed to ping $router, fail count:$failcnt" 40 msg "Restarting dhcp_$if" 44 msg "Restarting supplicant_$if"
|
/busybox-1.35.0/util-linux/ |
D | wall.c | 35 char *msg; in wall_main() local 45 msg = xmalloc_read(fd, NULL); in wall_main() 54 xopen_xwrite_close(line, msg); in wall_main() 59 free(msg); in wall_main()
|
D | mountpoint.c | 43 const char *msg; in mountpoint_main() local 53 msg = "%s"; in mountpoint_main() 66 msg = "%s: not a block device"; in mountpoint_main() 103 bb_perror_msg(msg, arg); in mountpoint_main()
|
D | umount.c | 201 const char *msg = "%s busy - remounted read-only"; in umount_main() local 204 msg = "can't remount %s read-only"; in umount_main() 207 bb_error_msg(msg, m->device); in umount_main()
|
/busybox-1.35.0/networking/udhcp/ |
D | d6_packet.c | 64 const char *msg; in d6_send_raw_packet_from_client_data_ifindex() local 68 msg = "socket(%s)"; in d6_send_raw_packet_from_client_data_ifindex() 85 msg = "bind(%s)"; in d6_send_raw_packet_from_client_data_ifindex() 119 msg = "sendto"; in d6_send_raw_packet_from_client_data_ifindex() 124 bb_perror_msg(msg, "PACKET"); in d6_send_raw_packet_from_client_data_ifindex() 138 const char *msg; in d6_send_kernel_packet_from_client_data_ifindex() local 142 msg = "socket(%s)"; in d6_send_kernel_packet_from_client_data_ifindex() 152 msg = "bind(%s)"; in d6_send_kernel_packet_from_client_data_ifindex() 162 msg = "connect"; in d6_send_kernel_packet_from_client_data_ifindex() 168 msg = "write"; in d6_send_kernel_packet_from_client_data_ifindex() [all …]
|
D | packet.c | 116 const char *msg; in udhcp_send_raw_packet() local 120 msg = "socket(%s)"; in udhcp_send_raw_packet() 137 msg = "bind(%s)"; in udhcp_send_raw_packet() 180 msg = "sendto"; in udhcp_send_raw_packet() 185 bb_perror_msg(msg, "PACKET"); in udhcp_send_raw_packet() 200 const char *msg; in udhcp_send_kernel_packet() local 204 msg = "socket(%s)"; in udhcp_send_kernel_packet() 219 msg = "bindtodevice"; in udhcp_send_kernel_packet() 229 msg = "bind(%s)"; in udhcp_send_kernel_packet() 238 msg = "connect"; in udhcp_send_kernel_packet() [all …]
|
D | common.h | 300 void log1s(const char *msg) FAST_FUNC; 304 # define log2s(msg) do { if (dhcp_verbose >= 2) bb_simple_info_msg(msg); } while (0) argument 308 # define log2s(msg) ((void)0) argument 312 # define log3s(msg) do { if (dhcp_verbose >= 3) bb_simple_info_msg(msg); } while (0) argument 315 # define log3s(msg) ((void)0) argument 321 # define log1s(msg) ((void)0) argument 323 # define log2s(msg) ((void)0) argument 325 # define log3s(msg) ((void)0) argument
|
D | arpping.c | 50 const char *msg; in arpping() local 135 msg = "no ARP reply received for this address"; in arpping() 137 msg += 3; in arpping() 138 log1s(msg); in arpping()
|
/busybox-1.35.0/scripts/kconfig/ |
D | kxgettext.c | 81 const char *msg; member 89 static struct message *message__new(const char *msg, char *option, char *file, int lineno) in message__new() argument 100 self->msg = strdup(msg); in message__new() 101 if (self->msg == NULL) in message__new() 116 static struct message *mesage__find(const char *msg) in mesage__find() argument 121 if (strcmp(m->msg, msg) == 0) in mesage__find() 144 static int message__add(const char *msg, char *option, char *file, int lineno) in message__add() argument 148 char *escaped = escape(msg, bf, sizeof(bf)); in message__add() 207 "msgstr \"\"\n", self->msg); in message__print_gettext_msgid_msgstr()
|
/busybox-1.35.0/networking/libiproute/ |
D | libnetlink.c | 96 struct msghdr msg; in rtnl_dump_request() member 103 s.msg.msg_name = (void*)&s.nladdr; in rtnl_dump_request() 104 s.msg.msg_namelen = sizeof(s.nladdr); in rtnl_dump_request() 105 s.msg.msg_iov = iov; in rtnl_dump_request() 106 s.msg.msg_iovlen = 2; in rtnl_dump_request() 119 return sendmsg(rth->fd, &s.msg, 0); in rtnl_dump_request() 137 struct msghdr msg = { in rtnl_dump_filter() local 147 status = recvmsg(rth->fd, &msg, 0); in rtnl_dump_filter() 159 if (msg.msg_namelen != sizeof(nladdr)) { in rtnl_dump_filter() 160 bb_error_msg_and_die("sender address length == %d", msg.msg_namelen); in rtnl_dump_filter() [all …]
|
/busybox-1.35.0/sysklogd/ |
D | syslogd.c | 607 static void log_to_shmem(const char *msg) in log_to_shmem() argument 622 len = strlen(msg) + 1; /* length with NUL included */ in log_to_shmem() 628 memcpy(G.shbuf->data + old_tail, msg, len); in log_to_shmem() 634 memcpy(G.shbuf->data + old_tail, msg, k); in log_to_shmem() 635 msg += k; in log_to_shmem() 649 void log_to_shmem(const char *msg); 674 static void log_to_kmsg(int pri, const char *msg) in log_to_kmsg() argument 682 full_write(G.kmsgfd, G.printbuf, sprintf(G.printbuf, "<%d>%s\n", pri, msg)); in log_to_kmsg() 687 static void log_to_kmsg(int pri UNUSED_PARAM, const char *msg UNUSED_PARAM) {} in log_to_kmsg() 691 static void log_locally(time_t now, char *msg, logFile_t *log_file) in log_locally() argument [all …]
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | bzlib_private.h | 43 #define AssertH(cond, msg) do { } while (0) argument 47 #define AssertD(cond, msg) \ argument 50 bb_error_msg_and_die("(debug build): internal error %s", msg); \ 53 #define AssertD(cond, msg) do { } while (0) argument
|
/busybox-1.35.0/mailutils/ |
D | mail.c | 94 char *msg; in send_mail_command() local 97 msg = (char*)fmt; in send_mail_command() 99 msg = xasprintf(fmt, param); in send_mail_command() 100 send_r_n(msg); in send_mail_command() 103 return msg; in send_mail_command()
|
D | popmaildir.c | 70 char *msg = send_mail_command(fmt, param); in pop3_checkr() local 74 free(msg); in pop3_checkr() 85 bb_error_msg_and_die("%s failed, reply was: %s", msg, answer); in pop3_checkr()
|
/busybox-1.35.0/init/ |
D | init.c | 238 char msg[128]; in message() local 240 msg[0] = '\r'; in message() 242 l = 1 + vsnprintf(msg + 1, sizeof(msg) - 2, fmt, arguments); in message() 243 if (l > sizeof(msg) - 2) in message() 244 l = sizeof(msg) - 2; in message() 248 msg[l] = '\0'; in message() 253 syslog(LOG_INFO, "%s", msg + 1); in message() 256 msg[l++] = '\n'; in message() 257 msg[l] = '\0'; in message() 259 msg[l++] = '\n'; in message() [all …]
|
/busybox-1.35.0/testsuite/echo/ |
D | echo-prints-slash-zero | 3 test "`busybox echo -e -n 'msg\n\0' | od -t x1 | head -n 1`" = "0000000 6d 73 67 0a 00"
|
/busybox-1.35.0/miscutils/ |
D | crond.c | 175 static void crondlog(unsigned level, const char *msg, va_list va) in crondlog() argument 184 bb_vinfo_msg(msg, va); in crondlog() 188 static void log5(const char *msg, ...) in log5() argument 191 va_start(va, msg); in log5() 192 crondlog(4, msg, va); in log5() 196 static void log7(const char *msg, ...) in log7() argument 199 va_start(va, msg); in log7() 200 crondlog(7, msg, va); in log7() 204 static void log8(const char *msg, ...) in log8() argument 207 va_start(va, msg); in log8() [all …]
|
D | devfsd.c | 345 #define simple_info_logger(p, msg) bb_simple_info_msg(msg) argument 347 #define simple_msg_logger(p, msg) bb_simple_error_msg(msg) argument 349 #define simple_msg_logger_and_die(p, msg) bb_simple_error_msg_and_die(msg) argument 354 #define simple_info_logger(p, msg) argument 356 #define simple_msg_logger(p, msg) argument 358 #define simple_msg_logger_and_die(p, msg) exit(EXIT_FAILURE) argument 567 const char *msg = ""; in process_config_line() local 620 msg = "WHEN in"; in process_config_line() 632 msg = "UID.GID"; in process_config_line() 684 msg = "WHAT in"; in process_config_line() [all …]
|